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 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 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-krb4-security=DIR Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1081 --with-rsh-security use rsh as a transport
1082 --with-ssh-security use ssh as a transport
1083 --with-bsdtcp-security use tcp as a transport
1084 --with-bsdudp-security use tcp as a transport
1085 --with-server-principal=ARG server host principal ["amanda"]
1086 --with-server-instance=ARG server host instance ["amanda"]
1087 --with-server-keyfile=ARG server host key file ["/.amanda"]
1088 --with-client-principal=ARG client host principal ["rcmd"]
1089 --with-client-instance=ARG client host instance [HOSTNAME_INSTANCE]
1090 --with-client-keyfile=ARG client host key file [KEYFILE]
1091 --with-ticket-lifetime=ARG ticket lifetime [128]
1092 --with-krb5-security=DIR Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1093 --with-low-tcpportrange=low,high bind reserved TCP server sockets to ports within this range unlimited (mainly for amrecover)
1094 --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range [unlimited]
1095 --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range [unlimited]
1096 --with-maxtapeblocksize=kb Maximum size of a tape block
1097 --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1098 --with-mmap force use of mmap instead of shared memory support
1099 --with-buffered-dump buffer the dumping sockets on the server for speed
1100 --with-assertions compile assertions into code
1101 --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1102 --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1103 --with-debug-days=NN number of days to keep debugging files [default=4]
1104 --with-testing[=suffix] use alternate service names
1105 --with-dump-honor-nodump if dump supports -h, use it for level0s too
1106 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1107 --with-pic try to use only PIC/non-PIC objects [default=use
1110 include additional configurations [automatic]
1111 --without-built-manpages Do not build manpages from XML source.
1113 Some influential environment variables:
1114 CC C compiler command
1115 CFLAGS C compiler flags
1116 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1117 nonstandard directory <lib dir>
1118 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1119 headers in a nonstandard directory <include dir>
1121 CXX C++ compiler command
1122 CXXFLAGS C++ compiler flags
1123 CXXCPP C++ preprocessor
1124 F77 Fortran 77 compiler command
1125 FFLAGS Fortran 77 compiler flags
1127 Use these variables to override the choices made by `configure' or to help
1128 it to find libraries and programs with nonstandard names/locations.
1133 if test "$ac_init_help" = "recursive"; then
1134 # If there are subdirs, report their specific --help.
1136 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1137 test -d $ac_dir || continue
1140 if test "$ac_dir" != .; then
1141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1142 # A "../" for each directory in $ac_dir_suffix.
1143 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1145 ac_dir_suffix= ac_top_builddir=
1149 .) # No --srcdir option. We are building in place.
1151 if test -z "$ac_top_builddir"; then
1154 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1156 [\\/]* | ?:[\\/]* ) # Absolute path.
1157 ac_srcdir=$srcdir$ac_dir_suffix;
1158 ac_top_srcdir=$srcdir ;;
1160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1164 # Do not use `cd foo && pwd` to compute absolute paths, because
1165 # the directories may not exist.
1167 .) ac_abs_builddir="$ac_dir";;
1170 .) ac_abs_builddir=`pwd`;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1172 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1178 case ${ac_top_builddir}. in
1179 .) ac_abs_top_builddir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1181 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1184 case $ac_abs_builddir in
1185 .) ac_abs_srcdir=$ac_srcdir;;
1188 .) ac_abs_srcdir=$ac_abs_builddir;;
1189 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1190 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1193 case $ac_abs_builddir in
1194 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1196 case $ac_top_srcdir in
1197 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1198 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1199 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1204 # Check for guested configure; otherwise get Cygnus style configure.
1205 if test -f $ac_srcdir/configure.gnu; then
1207 $SHELL $ac_srcdir/configure.gnu --help=recursive
1208 elif test -f $ac_srcdir/configure; then
1210 $SHELL $ac_srcdir/configure --help=recursive
1211 elif test -f $ac_srcdir/configure.ac ||
1212 test -f $ac_srcdir/configure.in; then
1214 $ac_configure --help
1216 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1222 test -n "$ac_init_help" && exit 0
1223 if $ac_init_version; then
1226 Copyright (C) 2003 Free Software Foundation, Inc.
1227 This configure script is free software; the Free Software Foundation
1228 gives unlimited permission to copy, distribute and modify it.
1234 This file contains any messages produced by compilers while
1235 running configure, to aid debugging if configure makes a mistake.
1237 It was created by $as_me, which was
1238 generated by GNU Autoconf 2.59. Invocation command line was
1249 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1250 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1251 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1252 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1253 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1255 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1256 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1258 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1259 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1260 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1261 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1262 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1263 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1264 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1272 test -z "$as_dir" && as_dir=.
1273 echo "PATH: $as_dir"
1288 # Keep a trace of the command line.
1289 # Strip out --no-create and --no-recursion so they do not pile up.
1290 # Strip out --silent because we don't want to record it for future runs.
1291 # Also quote any args containing shell meta-characters.
1292 # Make two passes to allow for proper duplicate-argument suppression.
1297 ac_must_keep_next=false
1303 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1305 | -silent | --silent | --silen | --sile | --sil)
1307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1311 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1313 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1314 if test $ac_must_keep_next = true; then
1315 ac_must_keep_next=false # Got value, back to normal.
1318 *=* | --config-cache | -C | -disable-* | --disable-* \
1319 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1320 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1321 | -with-* | --with-* | -without-* | --without-* | --x)
1322 case "$ac_configure_args0 " in
1323 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1326 -* ) ac_must_keep_next=true ;;
1329 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1330 # Get rid of the leading space.
1336 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1337 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1339 # When interrupted or exit'd, cleanup temporary files, and complete
1340 # config.log. We remove comments because anyway the quotes in there
1341 # would cause problems or look ugly.
1342 # WARNING: Be sure not to use single quotes in there, as some shells,
1343 # such as our DU 5.0 friend, will then `close' the trap.
1344 trap 'exit_status=$?
1345 # Save into config.log some information that might help in debugging.
1350 ## ---------------- ##
1351 ## Cache variables. ##
1352 ## ---------------- ##
1355 # The following way of writing the cache mishandles newlines in values,
1358 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1361 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1366 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1373 ## ----------------- ##
1374 ## Output variables. ##
1375 ## ----------------- ##
1378 for ac_var in $ac_subst_vars
1380 eval ac_val=$`echo $ac_var`
1381 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -n "$ac_subst_files"; then
1392 for ac_var in $ac_subst_files
1394 eval ac_val=$`echo $ac_var`
1395 echo "$ac_var='"'"'$ac_val'"'"'"
1400 if test -s confdefs.h; then
1407 sed "/^$/d" confdefs.h | sort
1410 test "$ac_signal" != 0 &&
1411 echo "$as_me: caught signal $ac_signal"
1412 echo "$as_me: exit $exit_status"
1414 rm -f core *.core &&
1415 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1418 for ac_signal in 1 2 13 15; do
1419 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1424 rm -rf conftest* confdefs.h
1425 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1428 # Predefined preprocessor variables.
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_NAME "$PACKAGE_NAME"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_STRING "$PACKAGE_STRING"
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1455 # Let the site file select an alternate cache file if it wants to.
1456 # Prefer explicitly selected file to automatically selected ones.
1457 if test -z "$CONFIG_SITE"; then
1458 if test "x$prefix" != xNONE; then
1459 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1461 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1464 for ac_site_file in $CONFIG_SITE; do
1465 if test -r "$ac_site_file"; then
1466 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1467 echo "$as_me: loading site script $ac_site_file" >&6;}
1468 sed 's/^/| /' "$ac_site_file" >&5
1473 if test -r "$cache_file"; then
1474 # Some versions of bash will fail to source /dev/null (special
1475 # files actually), so we avoid doing that.
1476 if test -f "$cache_file"; then
1477 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1478 echo "$as_me: loading cache $cache_file" >&6;}
1480 [\\/]* | ?:[\\/]* ) . $cache_file;;
1481 *) . ./$cache_file;;
1485 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1486 echo "$as_me: creating cache $cache_file" >&6;}
1490 # Check that the precious variables saved in the cache have kept the same
1492 ac_cache_corrupted=false
1493 for ac_var in `(set) 2>&1 |
1494 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1495 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1496 eval ac_new_set=\$ac_env_${ac_var}_set
1497 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1498 eval ac_new_val="\$ac_env_${ac_var}_value"
1499 case $ac_old_set,$ac_new_set in
1501 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1502 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1503 ac_cache_corrupted=: ;;
1505 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1506 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1507 ac_cache_corrupted=: ;;
1510 if test "x$ac_old_val" != "x$ac_new_val"; then
1511 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1512 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1513 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1514 echo "$as_me: former value: $ac_old_val" >&2;}
1515 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1516 echo "$as_me: current value: $ac_new_val" >&2;}
1517 ac_cache_corrupted=:
1520 # Pass precious variables to config.status.
1521 if test "$ac_new_set" = set; then
1523 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1524 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 *) ac_arg=$ac_var=$ac_new_val ;;
1527 case " $ac_configure_args " in
1528 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1529 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1533 if $ac_cache_corrupted; then
1534 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1535 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1537 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1538 { (exit 1); exit 1; }; }
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1567 for ac_dir in config $srcdir/config; do
1568 if test -f $ac_dir/install-sh; then
1570 ac_install_sh="$ac_aux_dir/install-sh -c"
1572 elif test -f $ac_dir/install.sh; then
1574 ac_install_sh="$ac_aux_dir/install.sh -c"
1576 elif test -f $ac_dir/shtool; then
1578 ac_install_sh="$ac_aux_dir/shtool install -c"
1582 if test -z "$ac_aux_dir"; then
1583 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1584 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1585 { (exit 1); exit 1; }; }
1587 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1588 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1589 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1591 # Make sure we can run config.sub.
1592 $ac_config_sub sun4 >/dev/null 2>&1 ||
1593 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595 { (exit 1); exit 1; }; }
1597 echo "$as_me:$LINENO: checking build system type" >&5
1598 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599 if test "${ac_cv_build+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 ac_cv_build_alias=$build_alias
1603 test -z "$ac_cv_build_alias" &&
1604 ac_cv_build_alias=`$ac_config_guess`
1605 test -z "$ac_cv_build_alias" &&
1606 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608 { (exit 1); exit 1; }; }
1609 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616 echo "${ECHO_T}$ac_cv_build" >&6
1618 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 echo "$as_me:$LINENO: checking host system type" >&5
1624 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625 if test "${ac_cv_host+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_host_alias=$host_alias
1629 test -z "$ac_cv_host_alias" &&
1630 ac_cv_host_alias=$ac_cv_build_alias
1631 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638 echo "${ECHO_T}$ac_cv_host" >&6
1640 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645 echo "$as_me:$LINENO: checking target system type" >&5
1646 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1647 if test "${ac_cv_target+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 ac_cv_target_alias=$target_alias
1651 test "x$ac_cv_target_alias" = "x" &&
1652 ac_cv_target_alias=$ac_cv_host_alias
1653 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1660 echo "${ECHO_T}$ac_cv_target" >&6
1661 target=$ac_cv_target
1662 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667 # The aliases save the names the user supplied, while $host etc.
1668 # will get canonicalized.
1669 test -n "$target_alias" &&
1670 test "$program_prefix$program_suffix$program_transform_name" = \
1672 program_prefix=${target_alias}-
1675 CONFIGURE_COMMAND="'$0'"
1677 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1680 cat >>confdefs.h <<_ACEOF
1681 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1686 am__api_version="1.9"
1687 # Find a good install program. We prefer a C program (faster),
1688 # so one script is as good as another. But avoid the broken or
1689 # incompatible versions:
1690 # SysV /etc/install, /usr/sbin/install
1691 # SunOS /usr/etc/install
1692 # IRIX /sbin/install
1694 # AmigaOS /C/install, which installs bootblocks on floppy discs
1695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1698 # OS/2's system install, which has a completely different semantic
1699 # ./install, which can be erroneously created by make from ./install.sh.
1700 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1701 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1702 if test -z "$INSTALL"; then
1703 if test "${ac_cv_path_install+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 # Account for people who put trailing slashes in PATH elements.
1713 ./ | .// | /cC/* | \
1714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1715 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1718 # OSF1 and SCO ODT 3.0 have their own names for install.
1719 # Don't use installbsd from OSF since it installs stuff as root
1721 for ac_prog in ginstall scoinst install; do
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1724 if test $ac_prog = install &&
1725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # AIX install. It has an incompatible calling convention.
1728 elif test $ac_prog = install &&
1729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730 # program-specific install script used by HP pwplus--don't use.
1733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1745 if test "${ac_cv_path_install+set}" = set; then
1746 INSTALL=$ac_cv_path_install
1748 # As a last resort, use the slow shell script. We don't cache a
1749 # path for INSTALL within a source directory, because that will
1750 # break other packages using the cache if that directory is
1751 # removed, or if the path is relative.
1752 INSTALL=$ac_install_sh
1755 echo "$as_me:$LINENO: result: $INSTALL" >&5
1756 echo "${ECHO_T}$INSTALL" >&6
1758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1759 # It thinks the first close brace ends the variable substitution.
1760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1766 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1767 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1770 echo timestamp > conftest.file
1771 # Do `set' in a subshell so we don't clobber the current shell's
1772 # arguments. Must try -L first in case configure is actually a
1773 # symlink; some systems play weird games with the mod time of symlinks
1774 # (eg FreeBSD returns the mod time of the symlink's containing
1777 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1778 if test "$*" = "X"; then
1780 set X `ls -t $srcdir/configure conftest.file`
1783 if test "$*" != "X $srcdir/configure conftest.file" \
1784 && test "$*" != "X conftest.file $srcdir/configure"; then
1786 # If neither matched, then we have a broken ls. This can happen
1787 # if, for instance, CONFIG_SHELL is bash and it inherits a
1788 # broken ls alias from the environment. This has actually
1789 # happened. Such a system could not be considered "sane".
1790 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1791 alias in your environment" >&5
1792 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1793 alias in your environment" >&2;}
1794 { (exit 1); exit 1; }; }
1797 test "$2" = conftest.file
1803 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1804 Check your system clock" >&5
1805 echo "$as_me: error: newly created file is older than distributed files!
1806 Check your system clock" >&2;}
1807 { (exit 1); exit 1; }; }
1809 echo "$as_me:$LINENO: result: yes" >&5
1810 echo "${ECHO_T}yes" >&6
1811 test "$program_prefix" != NONE &&
1812 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1813 # Use a double $ so make ignores it.
1814 test "$program_suffix" != NONE &&
1815 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1816 # Double any \ or $. echo might interpret backslashes.
1817 # By default was `s,x,x', remove it if useless.
1818 cat <<\_ACEOF >conftest.sed
1819 s/[\\$]/&&/g;s/;s,x,x,$//
1821 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1824 # expand $ac_aux_dir to an absolute path
1825 am_aux_dir=`cd $ac_aux_dir && pwd`
1827 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1828 # Use eval to expand $SHELL
1829 if eval "$MISSING --run true"; then
1830 am_missing_run="$MISSING --run "
1833 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1834 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1837 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1838 # We used to keeping the `.' as first argument, in order to
1839 # allow $(mkdir_p) to be used without argument. As in
1840 # $(mkdir_p) $(somedir)
1841 # where $(somedir) is conditionally defined. However this is wrong
1843 # 1. if the package is installed by a user who cannot write `.'
1844 # make install will fail,
1845 # 2. the above comment should most certainly read
1846 # $(mkdir_p) $(DESTDIR)$(somedir)
1847 # so it does not work when $(somedir) is undefined and
1848 # $(DESTDIR) is not.
1849 # To support the latter case, we have to write
1850 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1851 # so the `.' trick is pointless.
1852 mkdir_p='mkdir -p --'
1854 # On NextStep and OpenStep, the `mkdir' command does not
1855 # recognize any option. It will interpret all options as
1856 # directories to create, and then abort because `.' already
1858 for d in ./-p ./--version;
1860 test -d $d && rmdir $d
1862 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1863 if test -f "$ac_aux_dir/mkinstalldirs"; then
1864 mkdir_p='$(mkinstalldirs)'
1866 mkdir_p='$(install_sh) -d'
1870 for ac_prog in gawk mawk nawk awk
1872 # Extract the first word of "$ac_prog", so it can be a program name with args.
1873 set dummy $ac_prog; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_AWK+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$AWK"; then
1880 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_AWK="$ac_prog"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$AWK"; then
1900 echo "$as_me:$LINENO: result: $AWK" >&5
1901 echo "${ECHO_T}$AWK" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1907 test -n "$AWK" && break
1910 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1911 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1912 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1913 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 cat >conftest.make <<\_ACEOF
1918 @echo 'ac_maketemp="$(MAKE)"'
1920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1921 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1922 if test -n "$ac_maketemp"; then
1923 eval ac_cv_prog_make_${ac_make}_set=yes
1925 eval ac_cv_prog_make_${ac_make}_set=no
1929 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1930 echo "$as_me:$LINENO: result: yes" >&5
1931 echo "${ECHO_T}yes" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 SET_MAKE="MAKE=${MAKE-make}"
1939 rm -rf .tst 2>/dev/null
1940 mkdir .tst 2>/dev/null
1941 if test -d .tst; then
1946 rmdir .tst 2>/dev/null
1948 # test to see if srcdir already configured
1949 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1950 test -f $srcdir/config.status; then
1951 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1952 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # test whether we have cygpath
1957 if test -z "$CYGPATH_W"; then
1958 if (cygpath --version) >/dev/null 2>/dev/null; then
1959 CYGPATH_W='cygpath -w'
1966 # Define the identity of the package.
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE "$PACKAGE"
1976 cat >>confdefs.h <<_ACEOF
1977 #define VERSION "$VERSION"
1980 # Some tools Automake needs.
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'. However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$STRIP"; then
2012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032 echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$ac_cv_prog_STRIP"; then
2042 # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_STRIP"; then
2050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_ac_ct_STRIP="strip"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2080 STRIP="$ac_cv_prog_STRIP"
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2086 # We need awk for the "check" target. The system "awk" is bad on
2088 # Always define AMTAR for backward compatibility.
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2098 ac_config_headers="$ac_config_headers config/config.h"
2102 if test -f "$srcdir/SNAPSHOT"; then
2103 cat < "$srcdir/SNAPSHOT"
2105 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2107 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2108 SNAPSHOT_STAMP=SNAPSHOT
2114 if test -f config.local; then
2115 echo "running local script ./config.local"
2120 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2121 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2122 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2123 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2126 VERSION_SUFFIX="$VERSION"
2133 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2135 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2136 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2137 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2139 SYSLOCPATH="$SYSPATH:$LOCPATH"
2140 LOCSYSPATH="$LOCPATH:$SYSPATH"
2144 # Check whether --with-cflags or --without-cflags was given.
2145 if test "${with_cflags+set}" = set; then
2146 withval="$with_cflags"
2149 "" | y | ye | yes | n | no)
2150 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
2151 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
2152 { (exit 1); exit 1; }; }
2159 CFLAGS="-D_GNU_SOURCE $CFLAGS"
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166 if test -n "$ac_tool_prefix"; then
2167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2168 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test -n "$CC"; then
2195 echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2203 if test -z "$ac_cv_prog_CC"; then
2205 # Extract the first word of "gcc", so it can be a program name with args.
2206 set dummy gcc; ac_word=$2
2207 echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$ac_ct_CC"; then
2213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222 ac_cv_prog_ac_ct_CC="gcc"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2232 if test -n "$ac_ct_CC"; then
2233 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2234 echo "${ECHO_T}$ac_ct_CC" >&6
2236 echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2245 if test -z "$CC"; then
2246 if test -n "$ac_tool_prefix"; then
2247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2248 set dummy ${ac_tool_prefix}cc; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_CC+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 if test -n "$CC"; then
2255 ac_cv_prog_CC="$CC" # Let the user override the test.
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 ac_cv_prog_CC="${ac_tool_prefix}cc"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 if test -n "$CC"; then
2275 echo "$as_me:$LINENO: result: $CC" >&5
2276 echo "${ECHO_T}$CC" >&6
2278 echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2283 if test -z "$ac_cv_prog_CC"; then
2285 # Extract the first word of "cc", so it can be a program name with args.
2286 set dummy cc; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$ac_ct_CC"; then
2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302 ac_cv_prog_ac_ct_CC="cc"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6
2316 echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2326 if test -z "$CC"; then
2327 # Extract the first word of "cc", so it can be a program name with args.
2328 set dummy cc; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2345 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2346 ac_prog_rejected=yes
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 if test $ac_prog_rejected = yes; then
2357 # We found a bogon in the path, so make sure we never use it.
2358 set dummy $ac_cv_prog_CC
2360 if test $# != 0; then
2361 # We chose a different compiler from the bogus one.
2362 # However, it has the same basename, so the bogon will be chosen
2363 # first if we set CC to just the basename; use the full file name.
2365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2371 if test -n "$CC"; then
2372 echo "$as_me:$LINENO: result: $CC" >&5
2373 echo "${ECHO_T}$CC" >&6
2375 echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2380 if test -z "$CC"; then
2381 if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_CC+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 if test -n "$CC"; then
2412 echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6
2415 echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2419 test -n "$CC" && break
2422 if test -z "$CC"; then
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_ac_ct_CC="$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6
2457 echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2461 test -n "$ac_ct_CC" && break
2470 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: no acceptable C compiler found in \$PATH
2473 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2476 # Provide some information about the compiler.
2477 echo "$as_me:$LINENO:" \
2478 "checking for C compiler version" >&5
2479 ac_compiler=`set X $ac_compile; echo $2`
2480 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2481 (eval $ac_compiler --version </dev/null >&5) 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2486 (eval $ac_compiler -v </dev/null >&5) 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2491 (eval $ac_compiler -V </dev/null >&5) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 ac_clean_files_save=$ac_clean_files
2512 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2513 # Try to create an executable without -o first, disregard a.out.
2514 # It will help us diagnose broken compilers, and finding out an intuition
2516 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2517 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2518 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2519 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2520 (eval $ac_link_default) 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 # Find the output, starting from the most likely. This scheme is
2525 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2528 # Be careful to initialize this variable, since it used to be cached.
2529 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2531 # b.out is created by i960 compilers.
2532 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2534 test -f "$ac_file" || continue
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2539 # This is the source file.
2542 # We found the default executable, but exeext='' is most
2546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 # FIXME: I believe we export ac_cv_exeext for Libtool,
2548 # but it would be cool to find out if it's true. Does anybody
2549 # maintain Libtool? --akim.
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: C compiler cannot create executables
2563 See \`config.log' for more details." >&2;}
2564 { (exit 77); exit 77; }; }
2567 ac_exeext=$ac_cv_exeext
2568 echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6
2571 # Check the compiler produces executables we can run. If not, either
2572 # the compiler is broken, or we cross compile.
2573 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2574 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2575 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2576 # If not cross compiling, check that we can run a simple program.
2577 if test "$cross_compiling" != yes; then
2578 if { ac_try='./$ac_file'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 if test "$cross_compiling" = maybe; then
2589 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2590 If you meant to cross compile, use \`--host'.
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: cannot run C compiled programs.
2593 If you meant to cross compile, use \`--host'.
2594 See \`config.log' for more details." >&2;}
2595 { (exit 1); exit 1; }; }
2599 echo "$as_me:$LINENO: result: yes" >&5
2600 echo "${ECHO_T}yes" >&6
2602 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2603 ac_clean_files=$ac_clean_files_save
2604 # Check the compiler produces executables we can run. If not, either
2605 # the compiler is broken, or we cross compile.
2606 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2607 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2608 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2609 echo "${ECHO_T}$cross_compiling" >&6
2611 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2612 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2614 (eval $ac_link) 2>&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; then
2618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2620 # work properly (i.e., refer to `conftest.exe'), while it won't with
2622 for ac_file in conftest.exe conftest conftest.*; do
2623 test -f "$ac_file" || continue
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2636 See \`config.log' for more details." >&2;}
2637 { (exit 1); exit 1; }; }
2640 rm -f conftest$ac_cv_exeext
2641 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2642 echo "${ECHO_T}$ac_cv_exeext" >&6
2644 rm -f conftest.$ac_ext
2645 EXEEXT=$ac_cv_exeext
2647 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2648 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2649 if test "${ac_cv_objext+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 cat >conftest.$ac_ext <<_ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2667 rm -f conftest.o conftest.obj
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; then
2673 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&2;}
2688 { (exit 1); exit 1; }; }
2691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2693 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2694 echo "${ECHO_T}$ac_cv_objext" >&6
2695 OBJEXT=$ac_cv_objext
2697 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2812 if test "$ac_test_CFLAGS" = set; then
2813 CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2821 if test "$GCC" = yes; then
2827 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2828 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2829 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_cv_prog_cc_stdc=no
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2858 s = g (p, va_arg (v,int));
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
2866 as 'x'. The following induces an error, until -std1 is added to get
2867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
2869 that's true only with -std1. */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 # Don't try gcc -ansi; that turns off useful extensions and
2887 # breaks some systems' header files.
2888 # AIX -qlanglvl=ansi
2889 # Ultrix and OSF/1 -std1
2890 # HP-UX 10.20 and later -Ae
2891 # HP-UX older versions -Aa -D_HPUX_SOURCE
2892 # SVR4 -Xc -D__EXTENSIONS__
2893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2895 CC="$ac_save_CC $ac_arg"
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 ac_cv_prog_cc_stdc=$ac_arg
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f conftest.err conftest.$ac_objext
2927 rm -f conftest.$ac_ext conftest.$ac_objext
2932 case "x$ac_cv_prog_cc_stdc" in
2934 echo "$as_me:$LINENO: result: none needed" >&5
2935 echo "${ECHO_T}none needed" >&6 ;;
2937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2939 CC="$CC $ac_cv_prog_cc_stdc" ;;
2942 # Some people use a C++ compiler to compile C. Since we use `exit',
2943 # in C++ we need to declare it. In case someone uses the same compiler
2944 # for both compiling C and C++ we need to have the C++ compiler decide
2945 # the declaration of exit, since it's the most demanding environment.
2946 cat >conftest.$ac_ext <<_ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 for ac_declaration in \
2975 'extern "C" void std::exit (int) throw (); using std::exit;' \
2976 'extern "C" void std::exit (int); using std::exit;' \
2977 'extern "C" void exit (int) throw ();' \
2978 'extern "C" void exit (int);' \
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>conftest.er1
3001 grep -v '^ *+' conftest.er1 >conftest.err
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 if test -n "$ac_declaration"; then
3074 echo '#ifdef __cplusplus' >>confdefs.h
3075 echo $ac_declaration >>confdefs.h
3076 echo '#endif' >>confdefs.h
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 DEPDIR="${am__leading_dot}deps"
3092 ac_config_commands="$ac_config_commands depfiles"
3095 am_make=${MAKE-make}
3096 cat > confinc << 'END'
3101 # If we don't find an include directive, just comment out the code.
3102 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3103 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3107 # First try GNU make style include.
3108 echo "include confinc" > confmf
3109 # We grep out `Entering directory' and `Leaving directory'
3110 # messages which can occur if `w' ends up in MAKEFLAGS.
3111 # In particular we don't look at `^make:' because GNU make might
3112 # be invoked under some other name (usually "gmake"), in which
3113 # case it prints its new name instead of `make'.
3114 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3119 # Now try BSD make style include.
3120 if test "$am__include" = "#"; then
3121 echo '.include "confinc"' > confmf
3122 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3123 am__include=.include
3130 echo "$as_me:$LINENO: result: $_am_result" >&5
3131 echo "${ECHO_T}$_am_result" >&6
3132 rm -f confinc confmf
3134 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3135 if test "${enable_dependency_tracking+set}" = set; then
3136 enableval="$enable_dependency_tracking"
3139 if test "x$enable_dependency_tracking" != xno; then
3140 am_depcomp="$ac_aux_dir/depcomp"
3145 if test "x$enable_dependency_tracking" != xno; then
3156 depcc="$CC" am_compiler_list=
3158 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3159 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3160 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3164 # We make a subdir and do the tests there. Otherwise we can end up
3165 # making bogus files that we don't know about and never remove. For
3166 # instance it was reported that on HP-UX the gcc test will end up
3167 # making a dummy file named `D' -- because `-MD' means `put the output
3170 # Copy depcomp to subdir because otherwise we won't find it if we're
3171 # using a relative directory.
3172 cp "$am_depcomp" conftest.dir
3174 # We will build objects and dependencies in a subdirectory because
3175 # it helps to detect inapplicable dependency modes. For instance
3176 # both Tru64's cc and ICC support -MD to output dependencies as a
3177 # side effect of compilation, but ICC will put the dependencies in
3178 # the current directory while Tru64 will put them in the object
3182 am_cv_CC_dependencies_compiler_type=none
3183 if test "$am_compiler_list" = ""; then
3184 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3186 for depmode in $am_compiler_list; do
3187 # Setup a source with many dependencies, because some compilers
3188 # like to wrap large dependency lists on column 80 (with \), and
3189 # we should not choose a depcomp mode which is confused by this.
3191 # We need to recreate these files for each test, as the compiler may
3192 # overwrite some of them when testing with obscure command lines.
3193 # This happens at least with the AIX C compiler.
3195 for i in 1 2 3 4 5 6; do
3196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3198 # Solaris 8's {/usr,}/bin/sh.
3199 touch sub/conftst$i.h
3201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205 # after this tag, mechanisms are not by side-effect, so they'll
3206 # only be used when explicitly requested
3207 if test "x$enable_dependency_tracking" = xyes; then
3215 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3216 # mode. It turns out that the SunPro C++ compiler does not properly
3217 # handle `-M -o', and we need to detect this.
3218 if depmode=$depmode \
3219 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3220 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3221 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3222 >/dev/null 2>conftest.err &&
3223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3224 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3226 # icc doesn't choke on unknown options, it will just issue warnings
3227 # or remarks (even with -Werror). So we grep stderr for any message
3228 # that says an option was ignored or not supported.
3229 # When given -MP, icc 7.0 and 7.1 complain thusly:
3230 # icc: Command line warning: ignoring option '-M'; no argument required
3231 # The diagnosis changed in icc 8.0:
3232 # icc: Command line remark: option '-MP' not supported
3233 if (grep 'ignoring option' conftest.err ||
3234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3235 am_cv_CC_dependencies_compiler_type=$depmode
3244 am_cv_CC_dependencies_compiler_type=none
3248 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3249 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3255 test "x$enable_dependency_tracking" != xno \
3256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3258 am__fastdepCC_FALSE='#'
3260 am__fastdepCC_TRUE='#'
3261 am__fastdepCC_FALSE=
3268 # Check whether --enable-largefile or --disable-largefile was given.
3269 if test "${enable_largefile+set}" = set; then
3270 enableval="$enable_largefile"
3273 if test "$enable_largefile" != no; then
3275 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3276 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3277 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 ac_cv_sys_largefile_CC=no
3281 if test "$GCC" != yes; then
3284 # IRIX 6.2 and later do not support large files by default,
3285 # so use the C compiler's -n32 option if that helps.
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <sys/types.h>
3293 /* Check that off_t can represent 2**63 - 1 correctly.
3294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3295 since some C++ compilers masquerading as C compilers
3296 incorrectly reject 9223372036854775807. */
3297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3299 && LARGE_OFF_T % 2147483647 == 1)
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag"
3319 || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest.$ac_objext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3337 rm -f conftest.err conftest.$ac_objext
3339 rm -f conftest.$ac_objext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag"
3349 || test ! -s conftest.err'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; } &&
3355 { ac_try='test -s conftest.$ac_objext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_sys_largefile_CC=' -n32'; break
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f conftest.err conftest.$ac_objext
3371 rm -f conftest.$ac_ext
3374 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3375 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3376 if test "$ac_cv_sys_largefile_CC" != no; then
3377 CC=$CC$ac_cv_sys_largefile_CC
3380 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3381 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3382 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_cv_sys_file_offset_bits=no
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #include <sys/types.h>
3394 /* Check that off_t can represent 2**63 - 1 correctly.
3395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3396 since some C++ compilers masquerading as C compilers
3397 incorrectly reject 9223372036854775807. */
3398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3400 && LARGE_OFF_T % 2147483647 == 1)
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 #define _FILE_OFFSET_BITS 64
3446 #include <sys/types.h>
3447 /* Check that off_t can represent 2**63 - 1 correctly.
3448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3449 since some C++ compilers masquerading as C compilers
3450 incorrectly reject 9223372036854775807. */
3451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3453 && LARGE_OFF_T % 2147483647 == 1)
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_cv_sys_file_offset_bits=64; break
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3495 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3496 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3497 if test "$ac_cv_sys_file_offset_bits" != no; then
3499 cat >>confdefs.h <<_ACEOF
3500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3505 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3506 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3507 if test "${ac_cv_sys_large_files+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 ac_cv_sys_large_files=no
3512 cat >conftest.$ac_ext <<_ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <sys/types.h>
3519 /* Check that off_t can represent 2**63 - 1 correctly.
3520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3521 since some C++ compilers masquerading as C compilers
3522 incorrectly reject 9223372036854775807. */
3523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3525 && LARGE_OFF_T % 2147483647 == 1)
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #define _LARGE_FILES 1
3571 #include <sys/types.h>
3572 /* Check that off_t can represent 2**63 - 1 correctly.
3573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3574 since some C++ compilers masquerading as C compilers
3575 incorrectly reject 9223372036854775807. */
3576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3578 && LARGE_OFF_T % 2147483647 == 1)
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_sys_large_files=1; break
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3621 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3622 if test "$ac_cv_sys_large_files" != no; then
3624 cat >>confdefs.h <<_ACEOF
3625 #define _LARGE_FILES $ac_cv_sys_large_files
3635 # Extract the first word of "$ac_prog", so it can be a program name with args.
3636 set dummy $ac_prog; ac_word=$2
3637 echo "$as_me:$LINENO: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_path_GREP+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $LOCSYSPATH
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 GREP=$ac_cv_path_GREP
3666 if test -n "$GREP"; then
3667 echo "$as_me:$LINENO: result: $GREP" >&5
3668 echo "${ECHO_T}$GREP" >&6
3670 echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3674 test -n "$GREP" && break
3677 if test -z "$GREP"; then
3681 cat >>confdefs.h <<_ACEOF
3682 #define GREP "$GREP"
3685 for ac_prog in egrep
3687 # Extract the first word of "$ac_prog", so it can be a program name with args.
3688 set dummy $ac_prog; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_path_EGREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $LOCSYSPATH
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 EGREP=$ac_cv_path_EGREP
3718 if test -n "$EGREP"; then
3719 echo "$as_me:$LINENO: result: $EGREP" >&5
3720 echo "${ECHO_T}$EGREP" >&6
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3726 test -n "$EGREP" && break
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_path_AMLINT+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
3746 for as_dir in $as_dummy
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 AMLINT=$ac_cv_path_AMLINT
3764 if test -n "$AMLINT"; then
3765 echo "$as_me:$LINENO: result: $AMLINT" >&5
3766 echo "${ECHO_T}$AMLINT" >&6
3768 echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6
3772 test -n "$AMLINT" && break
3775 if test ! -z "$AMLINT"; then
3776 $AMLINT -flags | $GREP -- '-errfmt=' 2>&1 > /dev/null
3777 if test $? -eq 0; then
3778 AMLINTFLAGS="-n -s -u -m -x"
3779 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
3780 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
3781 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
3782 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
3783 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
3784 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
3785 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
3786 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
3787 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
3788 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
3789 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
3790 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
3791 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
3792 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
3793 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
3794 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
3795 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
3796 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
3797 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
3798 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
3799 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
3800 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
3801 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
3802 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
3803 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
3804 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
3805 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
3806 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
3807 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
3808 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
3809 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
3810 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
3811 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
3812 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
3813 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
3814 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
3815 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
3816 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
3817 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
3818 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
3819 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
3820 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
3821 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
3822 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
3823 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
3824 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
3825 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
3826 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
3827 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
3828 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
3833 for ac_prog in splint
3835 # Extract the first word of "$ac_prog", so it can be a program name with args.
3836 set dummy $ac_prog; ac_word=$2
3837 echo "$as_me:$LINENO: checking for $ac_word" >&5
3838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839 if test "${ac_cv_path_AMLINT+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $SYSLOCPATH
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 AMLINT=$ac_cv_path_AMLINT
3866 if test -n "$AMLINT"; then
3867 echo "$as_me:$LINENO: result: $AMLINT" >&5
3868 echo "${ECHO_T}$AMLINT" >&6
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3874 test -n "$AMLINT" && break
3877 if test ! -z "$AMLINT"; then
3880 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
3885 # Check whether --with-includes or --without-includes was given.
3886 if test "${with_includes+set}" = set; then
3887 withval="$with_includes"
3890 "" | y | ye | yes | n | no)
3891 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
3892 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
3893 { (exit 1); exit 1; }; }
3896 INCLUDE_DIRS="$withval"
3900 if test "$INCLUDE_DIRS"; then
3901 for dir in $INCLUDE_DIRS; do
3902 if test -d "$dir"; then
3903 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
3905 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3906 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3912 # Check whether --with-libraries or --without-libraries was given.
3913 if test "${with_libraries+set}" = set; then
3914 withval="$with_libraries"
3917 "" | y | ye | yes | n | no)
3918 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
3919 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
3920 { (exit 1); exit 1; }; }
3923 LIBRARY_DIRS="$withval"
3927 if test "$LIBRARY_DIRS"; then
3928 for dir in $LIBRARY_DIRS; do
3929 if test -d "$dir"; then
3931 *-solaris2*,*-netbsd*)
3932 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
3935 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
3937 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3938 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3945 # Check whether --with-dumperdir or --without-dumperdir was given.
3946 if test "${with_dumperdir+set}" = set; then
3947 withval="$with_dumperdir"
3950 "" | y | ye | yes | n | no)
3951 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
3952 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
3953 { (exit 1); exit 1; }; }
3956 DUMPER_DIR="$withval"
3960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3961 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3962 DUMPER_DIR=$exec_prefix/dumper
3967 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3968 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3969 eval echo "$DUMPER_DIR"
3972 cat >>confdefs.h <<_ACEOF
3973 #define DUMPER_DIR "$DUMPER_DIR"
3979 # Check whether --with-configdir or --without-configdir was given.
3980 if test "${with_configdir+set}" = set; then
3981 withval="$with_configdir"
3984 "" | y | ye | yes | n | no)
3985 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
3986 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
3987 { (exit 1); exit 1; }; }
3989 *) CONFIG_DIR="$withval"
3994 : ${CONFIG_DIR="$sysconfdir/amanda"}
3998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3999 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
4000 eval echo "$CONFIG_DIR"
4003 cat >>confdefs.h <<_ACEOF
4004 #define CONFIG_DIR "$CONFIG_DIR"
4010 # Check whether --with-indexdir or --without-indexdir was given.
4011 if test "${with_indexdir+set}" = set; then
4012 withval="$with_indexdir"
4013 { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
4014 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
4015 { (exit 1); exit 1; }; }
4020 # Check whether --with-dbdir or --without-dbdir was given.
4021 if test "${with_dbdir+set}" = set; then
4022 withval="$with_dbdir"
4023 { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
4024 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
4025 { (exit 1); exit 1; }; }
4030 # Check whether --with-logdir or --without-logdir was given.
4031 if test "${with_logdir+set}" = set; then
4032 withval="$with_logdir"
4033 { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
4034 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
4035 { (exit 1); exit 1; }; }
4040 # Check whether --with-suffixes or --without-suffixes was given.
4041 if test "${with_suffixes+set}" = set; then
4042 withval="$with_suffixes"
4043 USE_VERSION_SUFFIXES=$withval
4045 : ${USE_VERSION_SUFFIXES=no}
4048 case "$USE_VERSION_SUFFIXES" in
4051 cat >>confdefs.h <<\_ACEOF
4052 #define USE_VERSION_SUFFIXES 1
4056 program_suffix="-$VERSION"
4057 # This is from the output of configure.in.
4058 if test "x$program_transform_name" = xs,x,x,; then
4059 program_transform_name=
4061 # Double any \ or $. echo might interpret backslashes.
4062 cat <<\EOF_SED > conftestsed
4063 s,\\,\\\\,g; s,\$,$$,g
4065 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4068 test "x$program_prefix" != xNONE &&
4069 program_transform_name="s,^,${program_prefix},; $program_transform_name"
4070 # Use a double $ so make ignores it.
4071 test "x$program_suffix" != xNONE &&
4072 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
4074 # sed with no file args requires a program.
4075 test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
4076 # Remove empty command
4077 cat <<\EOF_SED > conftestsed
4078 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
4080 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4083 n | no) USE_VERSION_SUFFIXES=no
4085 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
4086 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
4087 { (exit 1); exit 1; }; }
4094 CLIENT_SCRIPTS_OPT=amhpfixdevs
4097 CLIENT_SCRIPTS_OPT=amsinixfixdevs
4107 # Check whether --with-client-only or --without-client-only was given.
4108 if test "${with_client_only+set}" = set; then
4109 withval="$with_client_only"
4110 { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
4111 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
4112 { (exit 1); exit 1; }; }
4116 # Check whether --with-server-only or --without-server-only was given.
4117 if test "${with_server_only+set}" = set; then
4118 withval="$with_server_only"
4119 { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
4120 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
4121 { (exit 1); exit 1; }; }
4126 # Check whether --with-client or --without-client was given.
4127 if test "${with_client+set}" = set; then
4128 withval="$with_client"
4131 y | ye | yes) NO_CLIENT_MODE=false;;
4132 n | no) NO_CLIENT_MODE=true;;
4134 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
4135 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
4136 { (exit 1); exit 1; }; }
4144 # Check whether --with-server or --without-server was given.
4145 if test "${with_server+set}" = set; then
4146 withval="$with_server"
4149 y | ye | yes) NO_SERVER_MODE=false ;;
4150 n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
4152 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&5
4153 echo "$as_me: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&2;}
4154 { (exit 1); exit 1; }; }
4160 if test "x${NO_SERVER_MODE+set}" != xset ; then
4161 NO_SERVER_MODE=false
4165 # Check whether --with-restore or --without-restore was given.
4166 if test "${with_restore+set}" = set; then
4167 withval="$with_restore"
4170 y | ye | yes) NO_RESTORE_MODE=false;;
4171 n | no) NO_RESTORE_MODE=true;;
4173 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
4174 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
4175 { (exit 1); exit 1; }; }
4181 if test "x${NO_RESTORE_MODE+set}" != xset ; then
4182 NO_RESTORE_MODE=${NO_SERVER_MODE-false}
4185 if ${NO_SERVER_MODE-false}; then
4186 if ${NO_RESTORE_MODE-false}; then
4189 { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
4190 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
4191 { (exit 1); exit 1; }; }
4196 # Check whether --with-amrecover or --without-amrecover was given.
4197 if test "${with_amrecover+set}" = set; then
4198 withval="$with_amrecover"
4202 if ${NO_CLIENT_MODE-false}; then
4203 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
4204 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
4205 { (exit 1); exit 1; }; }
4207 NO_RECOVER_MODE=false;;
4208 n | no) NO_RECOVER_MODE=true;;
4210 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
4211 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
4212 { (exit 1); exit 1; }; }
4220 # Check whether --with-index-server or --without-index-server was given.
4221 if test "${with_index_server+set}" = set; then
4222 withval="$with_index_server"
4225 "" | y | ye | yes | n | no)
4226 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
4227 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
4228 { (exit 1); exit 1; }; }
4230 *) DEFAULT_SERVER="$withval"
4235 : ${DEFAULT_SERVER=`uname -n`}
4239 cat >>confdefs.h <<_ACEOF
4240 #define DEFAULT_SERVER "$DEFAULT_SERVER"
4246 # Check whether --with-force-uid or --without-force-uid was given.
4247 if test "${with_force_uid+set}" = set; then
4248 withval="$with_force_uid"
4249 FORCE_USERID="$withval"
4251 : ${FORCE_USERID=yes}
4254 case "$FORCE_USERID" in
4256 cat >>confdefs.h <<\_ACEOF
4257 #define FORCE_USERID 1
4263 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
4264 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
4265 { (exit 1); exit 1; }; }
4269 # Check whether --with-user or --without-user was given.
4270 if test "${with_user+set}" = set; then
4271 withval="$with_user"
4274 "" | y | ye | yes | n | no)
4275 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
4276 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
4277 { (exit 1); exit 1; }; }
4279 *) CLIENT_LOGIN="$withval"
4285 if test "x${CLIENT_LOGIN+set}" != xset; then
4286 { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
4287 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
4288 { (exit 1); exit 1; }; }
4291 cat >>confdefs.h <<_ACEOF
4292 #define CLIENT_LOGIN "$CLIENT_LOGIN"
4298 # Check whether --with-group or --without-group was given.
4299 if test "${with_group+set}" = set; then
4300 withval="$with_group"
4303 "" | y | ye | yes | n | no)
4304 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
4305 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
4306 { (exit 1); exit 1; }; }
4308 *) SETUID_GROUP="$withval"
4314 if test "x${SETUID_GROUP+set}" != xset; then
4315 { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
4316 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
4317 { (exit 1); exit 1; }; }
4322 # Check whether --with-owner or --without-owner was given.
4323 if test "${with_owner+set}" = set; then
4324 withval="$with_owner"
4327 "" | y | ye | yes | n | no)
4328 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
4329 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
4330 { (exit 1); exit 1; }; }
4332 *) BINARY_OWNER="$withval"
4338 if test "x${BINARY_OWNER+set}" != xset ; then
4339 BINARY_OWNER=$CLIENT_LOGIN
4342 cat >>confdefs.h <<_ACEOF
4343 #define BINARY_OWNER "$BINARY_OWNER"
4349 # Check whether --with-rundump or --without-rundump was given.
4350 if test "${with_rundump+set}" = set; then
4351 withval="$with_rundump"
4354 n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
4355 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
4356 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
4357 { (exit 1); exit 1; }; };;
4364 # Check whether --with-config or --without-config was given.
4365 if test "${with_config+set}" = set; then
4366 withval="$with_config"
4369 "" | y | ye | yes | n | no)
4370 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
4371 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
4372 { (exit 1); exit 1; }; }
4374 *) DEFAULT_CONFIG="$withval"
4379 : ${DEFAULT_CONFIG=DailySet1}
4383 cat >>confdefs.h <<_ACEOF
4384 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
4390 # Check whether --with-tape-server or --without-tape-server was given.
4391 if test "${with_tape_server+set}" = set; then
4392 withval="$with_tape_server"
4395 "" | y | ye | yes | n | no)
4396 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
4397 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
4398 { (exit 1); exit 1; }; }
4400 *) DEFAULT_TAPE_SERVER="$withval"
4405 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
4409 cat >>confdefs.h <<_ACEOF
4410 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
4416 # Check whether --with-tape-device or --without-tape-device was given.
4417 if test "${with_tape_device+set}" = set; then
4418 withval="$with_tape_device"
4421 "" | y | ye | yes | n | no)
4422 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
4423 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
4424 { (exit 1); exit 1; }; }
4426 *) DEFAULT_TAPE_DEVICE="$withval"
4432 if test -z "$DEFAULT_TAPE_DEVICE"; then
4433 echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
4434 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
4437 if test -d /dev/rmt; then
4440 for num in 9 8 7 6 5 4 3 2 1 0; do
4442 ntd=/dev/rmt/${num}bn
4443 if test -r $td -a -r $ntd; then
4449 for num in 9 8 7 6 5 4 3 2 1 0; do
4452 if test -r $td -a -r $ntd; then
4458 DEFAULT_TAPE_DEVICE=$nr_tape_dev
4459 echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
4460 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
4466 if test ! -z "$DEFAULT_TAPE_DEVICE"; then
4468 cat >>confdefs.h <<_ACEOF
4469 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
4476 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
4477 if test "${with_ftape_raw_device+set}" = set; then
4478 withval="$with_ftape_raw_device"
4481 "" | y | ye | yes | n | no)
4482 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
4483 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
4484 { (exit 1); exit 1; }; }
4486 *) DEFAULT_RAW_TAPE_DEVICE="$withval"
4492 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4493 echo "$as_me:$LINENO: checking for raw ftape device" >&5
4494 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
4495 raw_tape_dev=/dev/null
4496 for num in 3 2 1 0 ; do
4498 if test -r $td; then
4502 DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
4503 echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
4504 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
4510 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4511 DEFAULT_RAW_TAPE_DEVICE=/dev/null
4515 cat >>confdefs.h <<_ACEOF
4516 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
4522 # Check whether --with-rew-tape or --without-rew-tape was given.
4523 if test "${with_rew_tape+set}" = set; then
4524 withval="$with_rew_tape"
4525 { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
4526 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
4527 { (exit 1); exit 1; }; }
4532 # Check whether --with-norew-tape or --without-norew-tape was given.
4533 if test "${with_norew_tape+set}" = set; then
4534 withval="$with_norew_tape"
4535 { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
4536 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
4537 { (exit 1); exit 1; }; }
4542 # Check whether --with-changer-device or --without-changer-device was given.
4543 if test "${with_changer_device+set}" = set; then
4544 withval="$with_changer_device"
4547 "" | y | ye | yes | n | no)
4548 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
4549 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
4550 { (exit 1); exit 1; }; }
4552 *) DEFAULT_CHANGER_DEVICE="$withval"
4558 if test -z "$DEFAULT_CHANGER_DEVICE" &&
4559 test -f /dev/ch0; then
4560 DEFAULT_CHANGER_DEVICE=/dev/ch0
4566 if test -z "$DEFAULT_CHANGER_DEVICE"; then
4567 DEFAULT_CHANGER_DEVICE=/dev/null
4571 cat >>confdefs.h <<_ACEOF
4572 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
4578 # Check whether --with-fqdn or --without-fqdn was given.
4579 if test "${with_fqdn+set}" = set; then
4580 withval="$with_fqdn"
4589 cat >>confdefs.h <<\_ACEOF
4594 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
4595 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
4596 { (exit 1); exit 1; }; }
4601 # Check whether --with-broken-fsf or --without-broken-fsf was given.
4602 if test "${with_broken_fsf+set}" = set; then
4603 withval="$with_broken_fsf"
4604 HAVE_BROKEN_FSF=$withval
4606 : ${HAVE_BROKEN_FSF=no}
4609 case "$HAVE_BROKEN_FSF" in
4612 cat >>confdefs.h <<\_ACEOF
4613 #define HAVE_BROKEN_FSF 1
4617 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
4618 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
4619 { (exit 1); exit 1; }; }
4624 # Check whether --with-reuseports or --without-reuseports was given.
4625 if test "${with_reuseports+set}" = set; then
4626 withval="$with_reuseports"
4639 case "$REUSEADDR" in
4644 cat >>confdefs.h <<\_ACEOF
4645 #define USE_REUSEADDR 1
4650 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-reuseports option." >&5
4651 echo "$as_me: error: *** You must not supply an argument to --with-reuseports option." >&2;}
4652 { (exit 1); exit 1; }; }
4657 # Check whether --with-gnutar or --without-gnutar was given.
4658 if test "${with_gnutar+set}" = set; then
4659 withval="$with_gnutar"
4662 /*) GNUTAR="$withval";;
4665 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
4666 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
4667 { (exit 1); exit 1; }; };;
4674 # Check whether --with-smbclient or --without-smbclient was given.
4675 if test "${with_smbclient+set}" = set; then
4676 withval="$with_smbclient"
4679 /*) SAMBA_CLIENT="$withval";;
4681 n|no) SAMBA_CLIENT=;;
4682 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
4683 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
4684 { (exit 1); exit 1; }; };;
4691 # Check whether --with-samba-user or --without-samba-user was given.
4692 if test "${with_samba_user+set}" = set; then
4693 withval="$with_samba_user"
4694 { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
4695 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
4696 { (exit 1); exit 1; }; }
4702 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
4703 if test "${with_gnutar_listdir+set}" = set; then
4704 withval="$with_gnutar_listdir"
4707 n | no) unset GNUTAR_LISTDIR ;;
4708 y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
4709 /*) GNUTAR_LISTDIR="$withval" ;;
4710 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
4711 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
4712 { (exit 1); exit 1; }; }
4716 : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
4719 if test "$GNUTAR_LISTDIR"; then
4721 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4722 eval echo "$GNUTAR_LISTDIR"
4725 cat >>confdefs.h <<_ACEOF
4726 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
4729 GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
4731 GNUTAR_LISTED_INCREMENTAL_DIRX=
4736 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
4737 if test "${with_gnutar_listed_incremental+set}" = set; then
4738 withval="$with_gnutar_listed_incremental"
4739 { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
4740 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
4741 { (exit 1); exit 1; }; }
4745 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
4749 # Check whether --with-bsd-security or --without-bsd-security was given.
4750 if test "${with_bsd_security+set}" = set; then
4751 withval="$with_bsd_security"
4752 BSD_SECURITY=$withval
4754 : ${BSD_SECURITY=yes}
4757 case "$BSD_SECURITY" in
4760 cat >>confdefs.h <<\_ACEOF
4761 #define BSD_SECURITY 1
4765 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
4766 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
4767 { (exit 1); exit 1; }; }
4772 # Check whether --with-amandahosts or --without-amandahosts was given.
4773 if test "${with_amandahosts+set}" = set; then
4774 withval="$with_amandahosts"
4775 USE_AMANDAHOSTS=$withval
4777 : ${USE_AMANDAHOSTS=yes}
4780 case "$USE_AMANDAHOSTS" in
4783 case "$BSD_SECURITY" in
4785 cat >>confdefs.h <<\_ACEOF
4786 #define USE_AMANDAHOSTS 1
4792 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
4793 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
4794 { (exit 1); exit 1; }; }
4800 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4801 if test "${with_dbmalloc+set}" = set; then
4802 withval="$with_dbmalloc"
4816 echo "$as_me:$LINENO: checking for malloc in -ldbmalloc" >&5
4817 echo $ECHO_N "checking for malloc in -ldbmalloc... $ECHO_C" >&6
4818 if test "${ac_cv_lib_dbmalloc_malloc+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 ac_check_lib_save_LIBS=$LIBS
4822 LIBS="-ldbmalloc $LIBS"
4823 cat >conftest.$ac_ext <<_ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4830 /* Override any gcc2 internal prototype to avoid an error. */
4834 /* We use char because int might match the return type of a gcc2
4835 builtin and then its argument prototype would still apply. */
4845 rm -f conftest.$ac_objext conftest$ac_exeext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4847 (eval $ac_link) 2>conftest.er1
4849 grep -v '^ *+' conftest.er1 >conftest.err
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_c_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest$ac_exeext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_cv_lib_dbmalloc_malloc=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_cv_lib_dbmalloc_malloc=no
4874 rm -f conftest.err conftest.$ac_objext \
4875 conftest$ac_exeext conftest.$ac_ext
4876 LIBS=$ac_check_lib_save_LIBS
4878 echo "$as_me:$LINENO: result: $ac_cv_lib_dbmalloc_malloc" >&5
4879 echo "${ECHO_T}$ac_cv_lib_dbmalloc_malloc" >&6
4880 if test $ac_cv_lib_dbmalloc_malloc = yes; then
4881 cat >>confdefs.h <<_ACEOF
4882 #define HAVE_LIBDBMALLOC 1
4885 LIBS="-ldbmalloc $LIBS"
4889 if test "x$ac_cv_lib_dbmalloc_malloc" != "xyes"; then
4890 { echo "$as_me:$LINENO: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&5
4891 echo "$as_me: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&2;}
4895 DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
4896 DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
4902 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
4905 # Check whether --with-krb4-security or --without-krb4-security was given.
4906 if test "${with_krb4_security+set}" = set; then
4907 withval="$with_krb4_security"
4908 KRB4_SECURITY="$withval"
4910 : ${KRB4_SECURITY=no}
4914 case "$KRB4_SECURITY" in
4915 n | no) KRB4_SECURITY=no ;;
4917 *) KRB4_SPOTS="$KRB4_SECURITY"
4922 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
4923 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
4924 if test "x${KRB4_SECURITY}" = xyes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
4925 for dir in $KRB4_SPOTS; do
4926 if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
4928 # This is the original Kerberos 4.
4930 echo "$as_me:$LINENO: result: found in $dir" >&5
4931 echo "${ECHO_T}found in $dir" >&6
4934 cat >>confdefs.h <<\_ACEOF
4935 #define KRB4_SECURITY 1
4938 if test -d $dir/include/kerberosIV ; then
4940 # This handles BSD/OS.
4942 KRB4INCLUDES=-I$dir/include/kerberosIV
4944 KRB4INCLUDES=-I$dir/include
4946 KRB4LDFLAGS=-L$dir/lib
4947 KRB4LIBS="-lkrb -ldes"
4948 if test -f ${dir}/lib/libcom_err.a; then
4949 KRB4LIBS="$KRB4LIBS -lcom_err"
4952 elif test -f ${dir}/lib/libkrb4.a &&
4953 test -f ${dir}/lib/libcrypto.a &&
4954 test -f ${dir}/lib/libdes425.a ; then
4956 # This is Kerberos 5 with Kerberos 4 back-support.
4958 echo "$as_me:$LINENO: result: found in $dir" >&5
4959 echo "${ECHO_T}found in $dir" >&6
4962 cat >>confdefs.h <<\_ACEOF
4963 #define KRB4_SECURITY 1
4966 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
4967 KRB4LDFLAGS=-L$dir/lib
4968 if test -f ${dir}/lib/libkrb5.a &&
4969 test -f ${dir}/lib/libcom_err.a; then
4970 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
4972 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
4978 if test "x$KRB4LDFLAGS" = "x" ; then
4979 echo "$as_me:$LINENO: result: no libraries found" >&5
4980 echo "${ECHO_T}no libraries found" >&6
4983 echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6
4988 # Check whether --with-rsh-security or --without-rsh-security was given.
4989 if test "${with_rsh_security+set}" = set; then
4990 withval="$with_rsh_security"
4991 RSH_SECURITY=$withval
4993 : ${RSH_SECURITY=yes}
4996 case "$RSH_SECURITY" in
4999 cat >>confdefs.h <<\_ACEOF
5000 #define RSH_SECURITY 1
5004 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
5005 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
5006 { (exit 1); exit 1; }; }
5011 # Check whether --with-ssh-security or --without-ssh-security was given.
5012 if test "${with_ssh_security+set}" = set; then
5013 withval="$with_ssh_security"
5014 SSH_SECURITY=$withval
5016 : ${SSH_SECURITY=no}
5019 case "$SSH_SECURITY" in
5022 cat >>confdefs.h <<\_ACEOF
5023 #define SSH_SECURITY 1
5026 SSH_SECURITY_SET=true
5028 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-ssh-security option." >&5
5029 echo "$as_me: error: *** You must not supply an argument the to --with-ssh-security option." >&2;}
5030 { (exit 1); exit 1; }; }
5035 # Check whether --with-bsdtcp-security or --without-bsdtcp-security was given.
5036 if test "${with_bsdtcp_security+set}" = set; then
5037 withval="$with_bsdtcp_security"
5038 BSDTCP_SECURITY=$withval
5040 : ${BSDTCP_SECURITY=yes}
5043 case "$BSDTCP_SECURITY" in
5046 cat >>confdefs.h <<\_ACEOF
5047 #define BSDTCP_SECURITY 1
5050 BSDTCP_SECURITY_SET=true
5052 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&5
5053 echo "$as_me: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&2;}
5054 { (exit 1); exit 1; }; }
5059 # Check whether --with-bsdudp-security or --without-bsdudp-security was given.
5060 if test "${with_bsdudp_security+set}" = set; then
5061 withval="$with_bsdudp_security"
5062 BSDUDP_SECURITY=$withval
5064 : ${BSDUDP_SECURITY=yes}
5067 case "$BSDUDP_SECURITY" in
5070 cat >>confdefs.h <<\_ACEOF
5071 #define BSDUDP_SECURITY 1
5074 BSDUDP_SECURITY_SET=true
5076 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdudp-security option." >&5
5077 echo "$as_me: error: *** You must not supply an argument the to --with-bsdudp-security option." >&2;}
5078 { (exit 1); exit 1; }; }
5083 # Check whether --with-server-principal or --without-server-principal was given.
5084 if test "${with_server_principal+set}" = set; then
5085 withval="$with_server_principal"
5088 "" | y | ye | yes | n | no)
5089 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
5090 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
5091 { (exit 1); exit 1; }; }
5094 SERVER_HOST_PRINCIPLE="$withval"
5099 : ${SERVER_HOST_PRINCIPLE="amanda"}
5103 cat >>confdefs.h <<_ACEOF
5104 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
5109 # Check whether --with-server-instance or --without-server-instance was given.
5110 if test "${with_server_instance+set}" = set; then
5111 withval="$with_server_instance"
5114 "" | y | ye | yes | n | no)
5115 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
5116 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
5117 { (exit 1); exit 1; }; }
5119 *) SERVER_HOST_INSTANCE="$withval"
5124 : ${SERVER_HOST_INSTANCE="amanda"}
5128 cat >>confdefs.h <<_ACEOF
5129 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
5134 # Check whether --with-server-keyfile or --without-server-keyfile was given.
5135 if test "${with_server_keyfile+set}" = set; then
5136 withval="$with_server_keyfile"
5139 "" | y | ye | yes | n | no)
5140 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
5141 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
5142 { (exit 1); exit 1; }; }
5144 *) SERVER_HOST_KEY_FILE="$withval"
5149 : ${SERVER_HOST_KEY_FILE="/.amanda"}
5153 cat >>confdefs.h <<_ACEOF
5154 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
5159 # Check whether --with-client-principal or --without-client-principal was given.
5160 if test "${with_client_principal+set}" = set; then
5161 withval="$with_client_principal"
5164 "" | y | ye | yes | n | no)
5165 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
5166 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
5167 { (exit 1); exit 1; }; }
5169 *) CLIENT_HOST_PRINCIPLE="$withval"
5174 : ${CLIENT_HOST_PRINCIPLE="rcmd"}
5178 cat >>confdefs.h <<_ACEOF
5179 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
5184 # Check whether --with-client-instance or --without-client-instance was given.
5185 if test "${with_client_instance+set}" = set; then
5186 withval="$with_client_instance"
5189 "" | y | ye | yes | n | no)
5190 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
5191 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
5192 { (exit 1); exit 1; }; }
5194 *) CLIENT_HOST_INSTANCE="$withval"
5199 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
5203 cat >>confdefs.h <<_ACEOF
5204 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
5209 # Check whether --with-client-keyfile or --without-client-keyfile was given.
5210 if test "${with_client_keyfile+set}" = set; then
5211 withval="$with_client_keyfile"
5214 "" | y | ye | yes | n | no)
5215 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
5216 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
5217 { (exit 1); exit 1; }; }
5219 *) CLIENT_HOST_KEY_FILE="$withval"
5224 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
5228 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
5229 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
5230 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
5234 cat >>confdefs.h <<_ACEOF
5235 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
5240 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
5241 if test "${with_ticket_lifetime+set}" = set; then
5242 withval="$with_ticket_lifetime"
5245 "" | y | ye | yes | n | no)
5246 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
5247 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
5248 { (exit 1); exit 1; }; }
5250 *) TICKET_LIFETIME="$withval"
5255 : ${TICKET_LIFETIME=128}
5259 cat >>confdefs.h <<_ACEOF
5260 #define TICKET_LIFETIME $TICKET_LIFETIME
5265 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
5268 # Check whether --with-krb5-security or --without-krb5-security was given.
5269 if test "${with_krb5_security+set}" = set; then
5270 withval="$with_krb5_security"
5271 KRB5_SECURITY="$withval"
5273 : ${KRB5_SECURITY=no}
5277 case "$KRB5_SECURITY" in
5278 n | no) KRB5_SECURITY=no
5282 *) KRB5_SPOTS="$KRB5_SECURITY"
5287 # if found, force the static versions of these libs (.a) by linking directly
5288 # with the .a files. I don't know how to get -R dependancies checked
5289 # in autoconf at this time. -kashmir
5290 echo "$as_me:$LINENO: checking for Kerberos V" >&5
5291 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
5294 for dir in $KRB5_SPOTS; do
5295 for lib in lib lib64; do
5296 k5libdir=${dir}/${lib}
5297 if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
5298 if test -f ${k5libdir}/libk5crypto.a; then
5299 K5CRYPTO=${k5libdir}/libk5crypto.a
5300 elif test -f ${k5libdir}/libcrypto.a; then
5301 K5CRYPTO=${k5libdir}/libcrypto.a
5305 if test -f ${k5libdir}/libkrb5support.a; then
5306 K5SUPPORT=${k5libdir}/libkrb5support.a
5311 KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO $K5SUPPORT ${k5libdir}/libcom_err.a"
5314 elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
5316 KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
5317 KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
5323 if test "$KRB5_DIR_FOUND"; then
5324 echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
5325 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
5328 cat >>confdefs.h <<\_ACEOF
5329 #define KRB5_SECURITY 1
5333 # some OS's, such as NetBSD, stick krb5 includes out of the way...
5334 # should probably just use autoconf to look for various include
5335 # options and set them, but don't quite want to do that until I've
5336 # dug into it a bit more.
5338 if test -d "$KRB5_DIR_FOUND/krb5" ; then
5339 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
5341 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
5343 if test "$KRB5_CFLAGS" ; then
5344 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
5347 echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
5348 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6
5349 if test "${ac_cv_lib_krb5support_main+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 ac_check_lib_save_LIBS=$LIBS
5353 LIBS="-lkrb5support $LIBS"
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5370 rm -f conftest.$ac_objext conftest$ac_exeext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1 >conftest.err
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag"
5380 || test ! -s conftest.err'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } &&
5386 { ac_try='test -s conftest$ac_exeext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_lib_krb5support_main=yes
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_cv_lib_krb5support_main=no
5399 rm -f conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
5404 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6
5405 if test $ac_cv_lib_krb5support_main = yes; then
5406 cat >>confdefs.h <<_ACEOF
5407 #define HAVE_LIBKRB5SUPPORT 1
5410 LIBS="-lkrb5support $LIBS"
5414 KRB5LDFLAGS=-L$k5libdir
5418 if test "x$KRB5LDFLAGS" = "x" ; then
5419 echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
5420 echo "${ECHO_T}no krb5 system libraries found" >&6
5425 # Check whether --with-low-tcpportrange or --without-low-tcpportrange was given.
5426 if test "${with_low_tcpportrange+set}" = set; then
5427 withval="$with_low_tcpportrange"
5429 LOW_TCPPORTRANGE="$withval"
5434 if test x"${LOW_TCPPORTRANGE+set}" = x"set"; then
5435 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5436 { { echo "$as_me:$LINENO: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&5
5437 echo "$as_me: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
5438 { (exit 1); exit 1; }; }
5440 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
5441 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
5442 if test $min_low_tcp_port -gt $max_low_tcp_port; then
5443 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
5444 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
5445 { (exit 1); exit 1; }; }
5447 if test $min_low_tcp_port -lt 512; then
5448 { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
5449 echo "$as_me: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
5451 if test $max_low_tcp_port -ge 1024; then
5452 { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
5453 echo "$as_me: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
5456 cat >>confdefs.h <<_ACEOF
5457 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
5463 # Check whether --with-tcpportrange or --without-tcpportrange was given.
5464 if test "${with_tcpportrange+set}" = set; then
5465 withval="$with_tcpportrange"
5467 TCPPORTRANGE="$withval"
5471 if test x"${TCPPORTRANGE+set}" = x"set"; then
5472 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5473 { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
5474 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
5475 { (exit 1); exit 1; }; }
5477 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
5478 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
5479 if test $min_tcp_port -gt $max_tcp_port; then
5480 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
5481 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
5482 { (exit 1); exit 1; }; }
5484 if test $min_tcp_port -lt 1024; then
5485 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
5486 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
5488 if test $max_tcp_port -ge 65536; then
5489 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
5490 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
5493 cat >>confdefs.h <<_ACEOF
5494 #define TCPPORTRANGE $TCPPORTRANGE
5500 # Check whether --with-udpportrange or --without-udpportrange was given.
5501 if test "${with_udpportrange+set}" = set; then
5502 withval="$with_udpportrange"
5504 UDPPORTRANGE="$withval"
5508 if test x"${UDPPORTRANGE+set}" = x"set"; then
5509 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5510 { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
5511 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
5512 { (exit 1); exit 1; }; }
5514 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
5515 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
5516 if test $min_udp_port -gt $max_udp_port; then
5517 { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
5518 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
5519 { (exit 1); exit 1; }; }
5521 if test $max_udp_port -ge 1024; then
5522 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
5523 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
5525 if test $min_udp_port -le 0; then
5526 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
5527 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
5530 cat >>confdefs.h <<_ACEOF
5531 #define UDPPORTRANGE $UDPPORTRANGE
5537 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
5538 if test "${with_maxtapeblocksize+set}" = set; then
5539 withval="$with_maxtapeblocksize"
5541 MAXTAPEBLOCKSIZE="$withval"
5544 : ${MAXTAPEBLOCKSIZE=32}
5549 cat >>confdefs.h <<_ACEOF
5550 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
5556 # Check whether --with-db or --without-db was given.
5557 if test "${with_db+set}" = set; then
5561 "" | y | ye | yes | n | no)
5562 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
5563 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
5564 { (exit 1); exit 1; }; }
5566 *) DB_STYLE="$withval"
5572 if test "$DB_STYLE"; then
5574 db | dbm | gdbm | ndbm | text) ;;
5576 { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&5
5577 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&2;}
5578 { (exit 1); exit 1; }; }
5585 # Check whether --with-mmap or --without-mmap was given.
5586 if test "${with_mmap+set}" = set; then
5587 withval="$with_mmap"
5593 case "$FORCE_MMAP" in
5594 y | ye | yes | n | no) : ;;
5595 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
5596 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
5597 { (exit 1); exit 1; }; }
5602 # Check whether --with-buffered-dump or --without-buffered-dump was given.
5603 if test "${with_buffered_dump+set}" = set; then
5604 withval="$with_buffered_dump"
5605 DUMPER_SOCKET_BUFFERING=$withval
5607 : ${DUMPER_SOCKET_BUFFERING=no}
5610 case "$DUMPER_SOCKET_BUFFERING" in
5614 cat >>confdefs.h <<\_ACEOF
5615 #define DUMPER_SOCKET_BUFFERING 1
5619 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
5620 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
5621 { (exit 1); exit 1; }; }
5626 # Check whether --with-assertions or --without-assertions was given.
5627 if test "${with_assertions+set}" = set; then
5628 withval="$with_assertions"
5629 ASSERTIONS="$withval"
5634 case "$ASSERTIONS" in
5637 cat >>confdefs.h <<\_ACEOF
5638 #define ASSERTIONS 1
5642 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
5643 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
5644 { (exit 1); exit 1; }; }
5649 # Check whether --with-tmpdir or --without-tmpdir was given.
5650 if test "${with_tmpdir+set}" = set; then
5651 withval="$with_tmpdir"
5658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5659 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5663 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
5664 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
5665 { (exit 1); exit 1; }; };;
5667 AMANDA_TMPDIR="/tmp/amanda";;
5669 AMANDA_TMPDIR="$tmpdir";;
5670 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
5671 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
5672 { (exit 1); exit 1; }; };;
5675 cat >>confdefs.h <<_ACEOF
5676 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
5682 # Check whether --with-debugging or --without-debugging was given.
5683 if test "${with_debugging+set}" = set; then
5684 withval="$with_debugging"
5685 debugging="$withval"
5691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5692 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5693 eval echo "$debugging"
5695 case "$debugging" in
5696 n | no) AMANDA_DBGDIR="";;
5697 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
5698 /*) AMANDA_DBGDIR="$debugging";;
5699 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
5700 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
5701 { (exit 1); exit 1; }; }
5704 case "$AMANDA_DBGDIR" in
5707 cat >>confdefs.h <<\_ACEOF
5708 #define DEBUG_CODE 1
5712 cat >>confdefs.h <<_ACEOF
5713 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
5720 # Check whether --with-debug_days or --without-debug_days was given.
5721 if test "${with_debug_days+set}" = set; then
5722 withval="$with_debug_days"
5723 debug_days="$withval"
5728 case "$debug_days" in
5729 n | no) AMANDA_DEBUG_DAYS=0 ;;
5730 y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
5731 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
5732 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
5733 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
5734 { (exit 1); exit 1; }; }
5738 cat >>confdefs.h <<_ACEOF
5739 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
5745 # Check whether --with-testing or --without-testing was given.
5746 if test "${with_testing+set}" = set; then
5747 withval="$with_testing"
5754 n | no) SERVICE_SUFFIX="";;
5755 y | ye | yes) SERVICE_SUFFIX="-test";;
5756 *) SERVICE_SUFFIX="-$TESTING";;
5758 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
5759 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
5762 cat >>confdefs.h <<_ACEOF
5763 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
5767 cat >>confdefs.h <<_ACEOF
5768 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
5772 cat >>confdefs.h <<_ACEOF
5773 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
5778 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5779 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5781 tmp=`eval echo "$bindir"`
5783 cat >>confdefs.h <<_ACEOF
5784 #define bindir "$tmp"
5788 tmp=`eval echo "$sbindir"`
5790 cat >>confdefs.h <<_ACEOF
5791 #define sbindir "$tmp"
5795 tmp=`eval echo "$libexecdir"`
5797 cat >>confdefs.h <<_ACEOF
5798 #define libexecdir "$tmp"
5802 tmp=`eval echo $mandir`
5804 cat >>confdefs.h <<_ACEOF
5805 #define mandir "$tmp"
5810 DUMP_PROGRAMS="ufsdump dump backup"
5818 cat >>confdefs.h <<\_ACEOF
5819 #define STATFS_OSF1 1
5824 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
5825 : ${USE_RUNDUMP=yes}
5836 GETCONF_LFS="XBS5_ILP32_OFFBIG"
5839 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
5842 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
5847 GETCONF_LFS="XBS5_ILP32_OFFBIG"
5848 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
5850 cat >>confdefs.h <<\_ACEOF
5851 #define AIX_TAPEIO 1
5855 cat >>confdefs.h <<\_ACEOF
5856 #define AIX_BACKUP 1
5860 m88k-motorola-sysv4)
5892 : ${USE_RUNDUMP=yes}
5894 cat >>confdefs.h <<\_ACEOF
5895 #define STATFS_ULTRIX 1
5902 cat >>confdefs.h <<\_ACEOF
5903 #define UWARE_TAPEIO 1
5914 cat >>confdefs.h <<\_ACEOF
5915 #define STATFS_SCO_OS5 1
5926 cat >>confdefs.h <<\_ACEOF
5927 #define IGNORE_TAR_ERRORS 1
5930 # Cygwin needs PATH to find cygwin1.dll
5932 cat >>confdefs.h <<\_ACEOF
5933 #define NEED_PATH_ENV 1
5937 cat >>confdefs.h <<\_ACEOF
5938 #define IGNORE_UID_CHECK 1
5942 cat >>confdefs.h <<\_ACEOF
5943 #define IGNORE_FSTAB 1
5947 cat >>confdefs.h <<\_ACEOF
5948 #define DONT_SUID_ROOT 1
5951 NEED_SETUID_CLIENT=false
5952 NEED_RUNTIME_PSEUDO_RELOC=true
5958 This machine, target type $target, is not known
5959 to be fully supported by this configure script. If the
5960 installation of Amanda on this system succeeds or needed
5961 any patches, please email amanda-hackers@amanda.org with
5962 the patches or an indication of the sucess or failure of
5963 the Amanda installation on your system.
5970 if test -n "$dump_returns_1"; then
5972 cat >>confdefs.h <<\_ACEOF
5973 #define DUMP_RETURNS_1 1
5978 if test -n "$xenix_tapeio"; then
5980 cat >>confdefs.h <<\_ACEOF
5981 #define XENIX_TAPEIO 1
5986 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
5987 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
5988 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
5989 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
5990 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
5991 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
5992 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
5993 LIBS="$AMANDA_LIBS $LIBS"
5996 : ${MT_FILE_FLAG="-f"}
5999 cat >>confdefs.h <<_ACEOF
6000 #define MT_FILE_FLAG "$MT_FILE_FLAG"
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6011 # On Suns, sometimes $CPP names a directory.
6012 if test -n "$CPP" && test -d "$CPP"; then
6015 if test -z "$CPP"; then
6016 if test "${ac_cv_prog_CPP+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 # Double quotes because CPP needs to be expanded
6020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6023 for ac_c_preproc_warn_flag in '' yes
6025 # Use a header file that comes with gcc, so configuring glibc
6026 # with a fresh cross-compiler works.
6027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6028 # <limits.h> exists even on freestanding compilers.
6029 # On the NeXT, cc -E runs the code through the compiler's parser,
6030 # not just through cpp. "Syntax error" is here to catch this case.
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6038 # include <limits.h>
6040 # include <assert.h>
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null; then
6052 if test -s conftest.err; then
6053 ac_cpp_err=$ac_c_preproc_warn_flag
6054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6061 if test -z "$ac_cpp_err"; then
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 # Broken: fails on valid input.
6070 rm -f conftest.err conftest.$ac_ext
6072 # OK, works on sane cases. Now check whether non-existent headers
6073 # can be detected and how.
6074 cat >conftest.$ac_ext <<_ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <ac_nonexistent.h>
6082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } >/dev/null; then
6090 if test -s conftest.err; then
6091 ac_cpp_err=$ac_c_preproc_warn_flag
6092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6099 if test -z "$ac_cpp_err"; then
6100 # Broken: success on invalid input.
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 # Passes both tests.
6110 rm -f conftest.err conftest.$ac_ext
6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6114 rm -f conftest.err conftest.$ac_ext
6115 if $ac_preproc_ok; then
6127 echo "$as_me:$LINENO: result: $CPP" >&5
6128 echo "${ECHO_T}$CPP" >&6
6130 for ac_c_preproc_warn_flag in '' yes
6132 # Use a header file that comes with gcc, so configuring glibc
6133 # with a fresh cross-compiler works.
6134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135 # <limits.h> exists even on freestanding compilers.
6136 # On the NeXT, cc -E runs the code through the compiler's parser,
6137 # not just through cpp. "Syntax error" is here to catch this case.
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6145 # include <limits.h>
6147 # include <assert.h>
6151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null; then
6159 if test -s conftest.err; then
6160 ac_cpp_err=$ac_c_preproc_warn_flag
6161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6168 if test -z "$ac_cpp_err"; then
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 # Broken: fails on valid input.
6177 rm -f conftest.err conftest.$ac_ext
6179 # OK, works on sane cases. Now check whether non-existent headers
6180 # can be detected and how.
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <ac_nonexistent.h>
6189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192 grep -v '^ *+' conftest.er1 >conftest.err
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } >/dev/null; then
6197 if test -s conftest.err; then
6198 ac_cpp_err=$ac_c_preproc_warn_flag
6199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6206 if test -z "$ac_cpp_err"; then
6207 # Broken: success on invalid input.
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 # Passes both tests.
6217 rm -f conftest.err conftest.$ac_ext
6220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6221 rm -f conftest.err conftest.$ac_ext
6222 if $ac_preproc_ok; then
6225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6226 See \`config.log' for more details." >&5
6227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6228 See \`config.log' for more details." >&2;}
6229 { (exit 1); exit 1; }; }
6233 ac_cpp='$CPP $CPPFLAGS'
6234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 echo "$as_me:$LINENO: checking for egrep" >&5
6240 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6241 if test "${ac_cv_prog_egrep+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6245 then ac_cv_prog_egrep='grep -E'
6246 else ac_cv_prog_egrep='egrep'
6249 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6250 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6251 EGREP=$ac_cv_prog_egrep
6254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6256 if test "${ac_cv_header_stdc+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_header_stdc=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_cv_header_stdc=no
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309 if test $ac_cv_header_stdc = yes; then
6310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321 $EGREP "memchr" >/dev/null 2>&1; then
6324 ac_cv_header_stdc=no
6330 if test $ac_cv_header_stdc = yes; then
6331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6342 $EGREP "free" >/dev/null 2>&1; then
6345 ac_cv_header_stdc=no
6351 if test $ac_cv_header_stdc = yes; then
6352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6353 if test "$cross_compiling" = yes; then
6356 cat >conftest.$ac_ext <<_ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6363 #if ((' ' & 0x0FF) == 0x020)
6364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367 # define ISLOWER(c) \
6368 (('a' <= (c) && (c) <= 'i') \
6369 || ('j' <= (c) && (c) <= 'r') \
6370 || ('s' <= (c) && (c) <= 'z'))
6371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6379 for (i = 0; i < 256; i++)
6380 if (XOR (islower (i), ISLOWER (i))
6381 || toupper (i) != TOUPPER (i))
6386 rm -f conftest$ac_exeext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388 (eval $ac_link) 2>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6399 echo "$as_me: program exited with status $ac_status" >&5
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_cv_header_stdc=no
6406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6412 if test $ac_cv_header_stdc = yes; then
6414 cat >>confdefs.h <<\_ACEOF
6415 #define STDC_HEADERS 1
6420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6430 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6431 inttypes.h stdint.h unistd.h
6433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6434 echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 $ac_includes_default
6447 #include <$ac_header>
6449 rm -f conftest.$ac_objext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 (eval $ac_compile) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 eval "$as_ac_Header=yes"
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 eval "$as_ac_Header=no"
6478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483 cat >>confdefs.h <<_ACEOF
6484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492 # ------ AX CREATE STDINT H -------------------------------------
6493 echo "$as_me:$LINENO: checking for stdint types" >&5
6494 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
6495 ac_stdint_h=`echo common-src/amanda-int.h`
6496 # try to shortcircuit - if the default include path of the compiler
6497 # can find a "stdint.h" header then we assume that all compilers can.
6498 if test "${ac_cv_header_stdint_t+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6503 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6504 old_CFLAGS="$CFLAGS" ; CFLAGS=""
6505 cat >conftest.$ac_ext <<_ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6515 int_least32_t v = 0;
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_stdint_result="(assuming C99 compatible system)"
6543 ac_cv_header_stdint_t="stdint.h";
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_cv_header_stdint_t=""
6550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551 CXXFLAGS="$old_CXXFLAGS"
6552 CPPFLAGS="$old_CPPFLAGS"
6553 CFLAGS="$old_CFLAGS"
6557 v="... $ac_cv_header_stdint_h"
6558 if test "$ac_stdint_h" = "stdint.h" ; then
6559 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
6560 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
6561 elif test "$ac_stdint_h" = "inttypes.h" ; then
6562 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
6563 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
6564 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6565 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
6566 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
6568 ac_cv_header_stdint="$ac_cv_header_stdint_t"
6569 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
6570 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
6573 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6576 inttype_headers=`echo | sed -e 's/,/ /g'`
6578 ac_cv_stdint_result="(no helpful system typedefs seen)"
6580 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6581 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6582 if test "${ac_cv_header_stdint_x+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6587 echo "$as_me:$LINENO: result: (..)" >&5
6588 echo "${ECHO_T}(..)" >&6
6589 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6590 unset ac_cv_type_uintptr_t
6591 unset ac_cv_type_uint64_t
6592 echo "$as_me:$LINENO: checking for uintptr_t" >&5
6593 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6594 if test "${ac_cv_type_uintptr_t+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 cat >conftest.$ac_ext <<_ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6608 if ((uintptr_t *) 0)
6610 if (sizeof (uintptr_t))
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_c_werror_flag"
6626 || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try='test -s conftest.$ac_objext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_type_uintptr_t=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_type_uintptr_t=no
6645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6648 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6649 if test $ac_cv_type_uintptr_t = yes; then
6650 ac_cv_header_stdint_x=$i
6655 echo "$as_me:$LINENO: checking for uint64_t" >&5
6656 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6657 if test "${ac_cv_type_uint64_t+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6673 if (sizeof (uint64_t))
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1 >conftest.err
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_type_uint64_t=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_cv_type_uint64_t=no
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6711 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6712 if test $ac_cv_type_uint64_t = yes; then
6718 stdint.h inttypes.h sys/inttypes.h $inttype_headers
6721 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6722 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6725 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
6726 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
6729 if test "_$ac_cv_header_stdint_x" = "_" ; then
6731 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6732 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6733 if test "${ac_cv_header_stdint_o+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6738 echo "$as_me:$LINENO: result: (..)" >&5
6739 echo "${ECHO_T}(..)" >&6
6740 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6741 unset ac_cv_type_uint32_t
6742 unset ac_cv_type_uint64_t
6743 echo "$as_me:$LINENO: checking for uint32_t" >&5
6744 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6745 if test "${ac_cv_type_uint32_t+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6761 if (sizeof (uint32_t))
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_type_uint32_t=yes
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 ac_cv_type_uint32_t=no
6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6799 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6800 if test $ac_cv_type_uint32_t = yes; then
6801 ac_cv_header_stdint_o=$i
6806 echo "$as_me:$LINENO: checking for uint64_t" >&5
6807 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6808 if test "${ac_cv_type_uint64_t+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6824 if (sizeof (uint64_t))
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag"
6840 || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_type_uint64_t=yes
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_cv_type_uint64_t=no
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6862 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6863 if test $ac_cv_type_uint64_t = yes; then
6869 inttypes.h sys/inttypes.h stdint.h $inttype_headers
6873 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6874 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6877 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
6878 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
6882 if test "_$ac_cv_header_stdint_x" = "_" ; then
6883 if test "_$ac_cv_header_stdint_o" = "_" ; then
6885 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
6886 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
6887 if test "${ac_cv_header_stdint_u+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6892 echo "$as_me:$LINENO: result: (..)" >&5
6893 echo "${ECHO_T}(..)" >&6
6894 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6895 unset ac_cv_type_u_int32_t
6896 unset ac_cv_type_u_int64_t
6897 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6898 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6899 if test "${ac_cv_type_u_int32_t+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6913 if ((u_int32_t *) 0)
6915 if (sizeof (u_int32_t))
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>conftest.er1
6925 grep -v '^ *+' conftest.er1 >conftest.err
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try='test -z "$ac_c_werror_flag"
6931 || test ! -s conftest.err'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; } &&
6937 { ac_try='test -s conftest.$ac_objext'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; }; then
6943 ac_cv_type_u_int32_t=yes
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6948 ac_cv_type_u_int32_t=no
6950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6952 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6953 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6954 if test $ac_cv_type_u_int32_t = yes; then
6955 ac_cv_header_stdint_u=$i
6960 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6961 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6962 if test "${ac_cv_type_u_int64_t+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 cat >conftest.$ac_ext <<_ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6976 if ((u_int64_t *) 0)
6978 if (sizeof (u_int64_t))
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 ac_cv_type_u_int64_t=yes
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7011 ac_cv_type_u_int64_t=no
7013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7015 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
7016 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
7017 if test $ac_cv_type_u_int64_t = yes; then
7023 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
7027 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7028 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
7031 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
7032 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
7036 if test "_$ac_cv_header_stdint_x" = "_" ; then
7037 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
7038 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
7039 echo "$as_me:$LINENO: result: (..)" >&5
7040 echo "${ECHO_T}(..)" >&6
7042 echo "$as_me:$LINENO: checking for char" >&5
7043 echo $ECHO_N "checking for char... $ECHO_C" >&6
7044 if test "${ac_cv_type_char+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 cat >conftest.$ac_ext <<_ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1 >conftest.err
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7096 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7097 echo "${ECHO_T}$ac_cv_type_char" >&6
7099 echo "$as_me:$LINENO: checking size of char" >&5
7100 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7101 if test "${ac_cv_sizeof_char+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 if test "$ac_cv_type_char" = yes; then
7105 # The cast to unsigned long works around a bug in the HP C Compiler
7106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7108 # This bug is HP SR number 8606223364.
7109 if test "$cross_compiling" = yes; then
7110 # Depending upon the size, compute the lo and hi bounds.
7111 cat >conftest.$ac_ext <<_ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 $ac_includes_default
7121 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>conftest.er1
7132 grep -v '^ *+' conftest.er1 >conftest.err
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -z "$ac_c_werror_flag"
7138 || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try='test -s conftest.$ac_objext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7162 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>conftest.er1
7173 grep -v '^ *+' conftest.er1 >conftest.err
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_c_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_hi=$ac_mid; break
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_lo=`expr $ac_mid + 1`
7197 if test $ac_lo -le $ac_mid; then
7201 ac_mid=`expr 2 '*' $ac_mid + 1`
7203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 cat >conftest.$ac_ext <<_ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7219 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7226 rm -f conftest.$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228 (eval $ac_compile) 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag"
7236 || test ! -s conftest.err'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; } &&
7242 { ac_try='test -s conftest.$ac_objext'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7250 cat >conftest.$ac_ext <<_ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 $ac_includes_default
7260 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>conftest.er1
7271 grep -v '^ *+' conftest.er1 >conftest.err
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -z "$ac_c_werror_flag"
7277 || test ! -s conftest.err'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; } &&
7283 { ac_try='test -s conftest.$ac_objext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 ac_lo=$ac_mid; break
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ac_hi=`expr '(' $ac_mid ')' - 1`
7295 if test $ac_mid -le $ac_hi; then
7299 ac_mid=`expr 2 '*' $ac_mid`
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 # Binary search between lo and hi bounds.
7313 while test "x$ac_lo" != "x$ac_hi"; do
7314 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7315 cat >conftest.$ac_ext <<_ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7325 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334 (eval $ac_compile) 2>conftest.er1
7336 grep -v '^ *+' conftest.er1 >conftest.err
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -z "$ac_c_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try='test -s conftest.$ac_objext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 ac_lo=`expr '(' $ac_mid ')' + 1`
7361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 ?*) ac_cv_sizeof_char=$ac_lo;;
7365 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7366 See \`config.log' for more details." >&5
7367 echo "$as_me: error: cannot compute sizeof (char), 77
7368 See \`config.log' for more details." >&2;}
7369 { (exit 1); exit 1; }; } ;;
7372 if test "$cross_compiling" = yes; then
7373 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7374 See \`config.log' for more details." >&5
7375 echo "$as_me: error: cannot run test program while cross compiling
7376 See \`config.log' for more details." >&2;}
7377 { (exit 1); exit 1; }; }
7379 cat >conftest.$ac_ext <<_ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7385 $ac_includes_default
7386 long longval () { return (long) (sizeof (char)); }
7387 unsigned long ulongval () { return (long) (sizeof (char)); }
7394 FILE *f = fopen ("conftest.val", "w");
7397 if (((long) (sizeof (char))) < 0)
7399 long i = longval ();
7400 if (i != ((long) (sizeof (char))))
7402 fprintf (f, "%ld\n", i);
7406 unsigned long i = ulongval ();
7407 if (i != ((long) (sizeof (char))))
7409 fprintf (f, "%lu\n", i);
7411 exit (ferror (f) || fclose (f) != 0);
7417 rm -f conftest$ac_exeext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419 (eval $ac_link) 2>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
7428 ac_cv_sizeof_char=`cat conftest.val`
7430 echo "$as_me: program exited with status $ac_status" >&5
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7436 See \`config.log' for more details." >&5
7437 echo "$as_me: error: cannot compute sizeof (char), 77
7438 See \`config.log' for more details." >&2;}
7439 { (exit 1); exit 1; }; }
7441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7449 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7450 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
7451 cat >>confdefs.h <<_ACEOF
7452 #define SIZEOF_CHAR $ac_cv_sizeof_char
7456 echo "$as_me:$LINENO: checking for short" >&5
7457 echo $ECHO_N "checking for short... $ECHO_C" >&6
7458 if test "${ac_cv_type_short+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 $ac_includes_default
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>conftest.er1
7483 grep -v '^ *+' conftest.er1 >conftest.err
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest.$ac_objext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_cv_type_short=yes
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7511 echo "${ECHO_T}$ac_cv_type_short" >&6
7513 echo "$as_me:$LINENO: checking size of short" >&5
7514 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7515 if test "${ac_cv_sizeof_short+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 if test "$ac_cv_type_short" = yes; then
7519 # The cast to unsigned long works around a bug in the HP C Compiler
7520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7522 # This bug is HP SR number 8606223364.
7523 if test "$cross_compiling" = yes; then
7524 # Depending upon the size, compute the lo and hi bounds.
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 $ac_includes_default
7535 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7542 rm -f conftest.$ac_objext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>conftest.er1
7546 grep -v '^ *+' conftest.er1 >conftest.err
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -z "$ac_c_werror_flag"
7552 || test ! -s conftest.err'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; } &&
7558 { ac_try='test -s conftest.$ac_objext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 $ac_includes_default
7576 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>conftest.er1
7587 grep -v '^ *+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_hi=$ac_mid; break
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 ac_lo=`expr $ac_mid + 1`
7611 if test $ac_lo -le $ac_mid; then
7615 ac_mid=`expr 2 '*' $ac_mid + 1`
7617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7633 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7640 rm -f conftest.$ac_objext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642 (eval $ac_compile) 2>conftest.er1
7644 grep -v '^ *+' conftest.er1 >conftest.err
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -z "$ac_c_werror_flag"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670 $ac_includes_default
7674 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest.$ac_objext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_lo=$ac_mid; break
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_hi=`expr '(' $ac_mid ')' - 1`
7709 if test $ac_mid -le $ac_hi; then
7713 ac_mid=`expr 2 '*' $ac_mid`
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726 # Binary search between lo and hi bounds.
7727 while test "x$ac_lo" != "x$ac_hi"; do
7728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 $ac_includes_default
7739 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7746 rm -f conftest.$ac_objext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748 (eval $ac_compile) 2>conftest.er1
7750 grep -v '^ *+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest.$ac_objext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_lo=`expr '(' $ac_mid ')' + 1`
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778 ?*) ac_cv_sizeof_short=$ac_lo;;
7779 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7780 See \`config.log' for more details." >&5
7781 echo "$as_me: error: cannot compute sizeof (short), 77
7782 See \`config.log' for more details." >&2;}
7783 { (exit 1); exit 1; }; } ;;
7786 if test "$cross_compiling" = yes; then
7787 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7788 See \`config.log' for more details." >&5
7789 echo "$as_me: error: cannot run test program while cross compiling
7790 See \`config.log' for more details." >&2;}
7791 { (exit 1); exit 1; }; }
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7800 long longval () { return (long) (sizeof (short)); }
7801 unsigned long ulongval () { return (long) (sizeof (short)); }
7808 FILE *f = fopen ("conftest.val", "w");
7811 if (((long) (sizeof (short))) < 0)
7813 long i = longval ();
7814 if (i != ((long) (sizeof (short))))
7816 fprintf (f, "%ld\n", i);
7820 unsigned long i = ulongval ();
7821 if (i != ((long) (sizeof (short))))
7823 fprintf (f, "%lu\n", i);
7825 exit (ferror (f) || fclose (f) != 0);
7831 rm -f conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_sizeof_short=`cat conftest.val`
7844 echo "$as_me: program exited with status $ac_status" >&5
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7849 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7850 See \`config.log' for more details." >&5
7851 echo "$as_me: error: cannot compute sizeof (short), 77
7852 See \`config.log' for more details." >&2;}
7853 { (exit 1); exit 1; }; }
7855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7860 ac_cv_sizeof_short=0
7863 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7864 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7865 cat >>confdefs.h <<_ACEOF
7866 #define SIZEOF_SHORT $ac_cv_sizeof_short
7870 echo "$as_me:$LINENO: checking for int" >&5
7871 echo $ECHO_N "checking for int... $ECHO_C" >&6
7872 if test "${ac_cv_type_int+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 cat >conftest.$ac_ext <<_ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 $ac_includes_default
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7925 echo "${ECHO_T}$ac_cv_type_int" >&6
7927 echo "$as_me:$LINENO: checking size of int" >&5
7928 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7929 if test "${ac_cv_sizeof_int+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 if test "$ac_cv_type_int" = yes; then
7933 # The cast to unsigned long works around a bug in the HP C Compiler
7934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7936 # This bug is HP SR number 8606223364.
7937 if test "$cross_compiling" = yes; then
7938 # Depending upon the size, compute the lo and hi bounds.
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7949 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7956 rm -f conftest.$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>conftest.er1
7960 grep -v '^ *+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7990 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999 (eval $ac_compile) 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag"
8007 || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest.$ac_objext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_hi=$ac_mid; break
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_lo=`expr $ac_mid + 1`
8025 if test $ac_lo -le $ac_mid; then
8029 ac_mid=`expr 2 '*' $ac_mid + 1`
8031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8047 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag"
8064 || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 $ac_includes_default
8088 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8095 rm -f conftest.$ac_objext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097 (eval $ac_compile) 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag"
8105 || test ! -s conftest.err'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest.$ac_objext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_lo=$ac_mid; break
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_hi=`expr '(' $ac_mid ')' - 1`
8123 if test $ac_mid -le $ac_hi; then
8127 ac_mid=`expr 2 '*' $ac_mid`
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140 # Binary search between lo and hi bounds.
8141 while test "x$ac_lo" != "x$ac_hi"; do
8142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8153 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162 (eval $ac_compile) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest.$ac_objext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_lo=`expr '(' $ac_mid ')' + 1`
8189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8192 ?*) ac_cv_sizeof_int=$ac_lo;;
8193 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8194 See \`config.log' for more details." >&5
8195 echo "$as_me: error: cannot compute sizeof (int), 77
8196 See \`config.log' for more details." >&2;}
8197 { (exit 1); exit 1; }; } ;;
8200 if test "$cross_compiling" = yes; then
8201 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8202 See \`config.log' for more details." >&5
8203 echo "$as_me: error: cannot run test program while cross compiling
8204 See \`config.log' for more details." >&2;}
8205 { (exit 1); exit 1; }; }
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 $ac_includes_default
8214 long longval () { return (long) (sizeof (int)); }
8215 unsigned long ulongval () { return (long) (sizeof (int)); }
8222 FILE *f = fopen ("conftest.val", "w");
8225 if (((long) (sizeof (int))) < 0)
8227 long i = longval ();
8228 if (i != ((long) (sizeof (int))))
8230 fprintf (f, "%ld\n", i);
8234 unsigned long i = ulongval ();
8235 if (i != ((long) (sizeof (int))))
8237 fprintf (f, "%lu\n", i);
8239 exit (ferror (f) || fclose (f) != 0);
8245 rm -f conftest$ac_exeext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_sizeof_int=`cat conftest.val`
8258 echo "$as_me: program exited with status $ac_status" >&5
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8264 See \`config.log' for more details." >&5
8265 echo "$as_me: error: cannot compute sizeof (int), 77
8266 See \`config.log' for more details." >&2;}
8267 { (exit 1); exit 1; }; }
8269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8277 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8278 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8279 cat >>confdefs.h <<_ACEOF
8280 #define SIZEOF_INT $ac_cv_sizeof_int
8284 echo "$as_me:$LINENO: checking for long" >&5
8285 echo $ECHO_N "checking for long... $ECHO_C" >&6
8286 if test "${ac_cv_type_long+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8307 rm -f conftest.$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8339 echo "${ECHO_T}$ac_cv_type_long" >&6
8341 echo "$as_me:$LINENO: checking size of long" >&5
8342 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8343 if test "${ac_cv_sizeof_long+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 if test "$ac_cv_type_long" = yes; then
8347 # The cast to unsigned long works around a bug in the HP C Compiler
8348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8350 # This bug is HP SR number 8606223364.
8351 if test "$cross_compiling" = yes; then
8352 # Depending upon the size, compute the lo and hi bounds.
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8363 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372 (eval $ac_compile) 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest.$ac_objext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8394 cat >conftest.$ac_ext <<_ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 $ac_includes_default
8404 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>conftest.er1
8415 grep -v '^ *+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -z "$ac_c_werror_flag"
8421 || test ! -s conftest.err'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest.$ac_objext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 ac_hi=$ac_mid; break
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_lo=`expr $ac_mid + 1`
8439 if test $ac_lo -le $ac_mid; then
8443 ac_mid=`expr 2 '*' $ac_mid + 1`
8445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8461 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8502 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8509 rm -f conftest.$ac_objext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -z "$ac_c_werror_flag"
8519 || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_lo=$ac_mid; break
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8536 ac_hi=`expr '(' $ac_mid ')' - 1`
8537 if test $ac_mid -le $ac_hi; then
8541 ac_mid=`expr 2 '*' $ac_mid`
8543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 # Binary search between lo and hi bounds.
8555 while test "x$ac_lo" != "x$ac_hi"; do
8556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 $ac_includes_default
8567 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8574 rm -f conftest.$ac_objext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8576 (eval $ac_compile) 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag"
8584 || test ! -s conftest.err'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest.$ac_objext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 ac_lo=`expr '(' $ac_mid ')' + 1`
8603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8606 ?*) ac_cv_sizeof_long=$ac_lo;;
8607 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8608 See \`config.log' for more details." >&5
8609 echo "$as_me: error: cannot compute sizeof (long), 77
8610 See \`config.log' for more details." >&2;}
8611 { (exit 1); exit 1; }; } ;;
8614 if test "$cross_compiling" = yes; then
8615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8616 See \`config.log' for more details." >&5
8617 echo "$as_me: error: cannot run test program while cross compiling
8618 See \`config.log' for more details." >&2;}
8619 { (exit 1); exit 1; }; }
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 $ac_includes_default
8628 long longval () { return (long) (sizeof (long)); }
8629 unsigned long ulongval () { return (long) (sizeof (long)); }
8636 FILE *f = fopen ("conftest.val", "w");
8639 if (((long) (sizeof (long))) < 0)
8641 long i = longval ();
8642 if (i != ((long) (sizeof (long))))
8644 fprintf (f, "%ld\n", i);
8648 unsigned long i = ulongval ();
8649 if (i != ((long) (sizeof (long))))
8651 fprintf (f, "%lu\n", i);
8653 exit (ferror (f) || fclose (f) != 0);
8659 rm -f conftest$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661 (eval $ac_link) 2>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_sizeof_long=`cat conftest.val`
8672 echo "$as_me: program exited with status $ac_status" >&5
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8677 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8678 See \`config.log' for more details." >&5
8679 echo "$as_me: error: cannot compute sizeof (long), 77
8680 See \`config.log' for more details." >&2;}
8681 { (exit 1); exit 1; }; }
8683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8692 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8693 cat >>confdefs.h <<_ACEOF
8694 #define SIZEOF_LONG $ac_cv_sizeof_long
8698 echo "$as_me:$LINENO: checking for void*" >&5
8699 echo $ECHO_N "checking for void*... $ECHO_C" >&6
8700 if test "${ac_cv_type_voidp+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 ac_cv_type_voidp=yes
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
8753 echo "${ECHO_T}$ac_cv_type_voidp" >&6
8755 echo "$as_me:$LINENO: checking size of void*" >&5
8756 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
8757 if test "${ac_cv_sizeof_voidp+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 if test "$ac_cv_type_voidp" = yes; then
8761 # The cast to unsigned long works around a bug in the HP C Compiler
8762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8764 # This bug is HP SR number 8606223364.
8765 if test "$cross_compiling" = yes; then
8766 # Depending upon the size, compute the lo and hi bounds.
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 $ac_includes_default
8777 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786 (eval $ac_compile) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest.$ac_objext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 $ac_includes_default
8818 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8825 rm -f conftest.$ac_objext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8827 (eval $ac_compile) 2>conftest.er1
8829 grep -v '^ *+' conftest.er1 >conftest.err
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try='test -z "$ac_c_werror_flag"
8835 || test ! -s conftest.err'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; } &&
8841 { ac_try='test -s conftest.$ac_objext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_hi=$ac_mid; break
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 ac_lo=`expr $ac_mid + 1`
8853 if test $ac_lo -le $ac_mid; then
8857 ac_mid=`expr 2 '*' $ac_mid + 1`
8859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 cat >conftest.$ac_ext <<_ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 $ac_includes_default
8875 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
8882 rm -f conftest.$ac_objext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884 (eval $ac_compile) 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest.$ac_objext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 $ac_includes_default
8916 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag"
8933 || test ! -s conftest.err'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_lo=$ac_mid; break
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8950 ac_hi=`expr '(' $ac_mid ')' - 1`
8951 if test $ac_mid -le $ac_hi; then
8955 ac_mid=`expr 2 '*' $ac_mid`
8957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968 # Binary search between lo and hi bounds.
8969 while test "x$ac_lo" != "x$ac_hi"; do
8970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8971 cat >conftest.$ac_ext <<_ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977 $ac_includes_default
8981 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8988 rm -f conftest.$ac_objext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8990 (eval $ac_compile) 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag"
8998 || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_lo=`expr '(' $ac_mid ')' + 1`
9017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9020 ?*) ac_cv_sizeof_voidp=$ac_lo;;
9021 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9022 See \`config.log' for more details." >&5
9023 echo "$as_me: error: cannot compute sizeof (void*), 77
9024 See \`config.log' for more details." >&2;}
9025 { (exit 1); exit 1; }; } ;;
9028 if test "$cross_compiling" = yes; then
9029 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9030 See \`config.log' for more details." >&5
9031 echo "$as_me: error: cannot run test program while cross compiling
9032 See \`config.log' for more details." >&2;}
9033 { (exit 1); exit 1; }; }
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 $ac_includes_default
9042 long longval () { return (long) (sizeof (void*)); }
9043 unsigned long ulongval () { return (long) (sizeof (void*)); }
9050 FILE *f = fopen ("conftest.val", "w");
9053 if (((long) (sizeof (void*))) < 0)
9055 long i = longval ();
9056 if (i != ((long) (sizeof (void*))))
9058 fprintf (f, "%ld\n", i);
9062 unsigned long i = ulongval ();
9063 if (i != ((long) (sizeof (void*))))
9065 fprintf (f, "%lu\n", i);
9067 exit (ferror (f) || fclose (f) != 0);
9073 rm -f conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075 (eval $ac_link) 2>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_sizeof_voidp=`cat conftest.val`
9086 echo "$as_me: program exited with status $ac_status" >&5
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9092 See \`config.log' for more details." >&5
9093 echo "$as_me: error: cannot compute sizeof (void*), 77
9094 See \`config.log' for more details." >&2;}
9095 { (exit 1); exit 1; }; }
9097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9102 ac_cv_sizeof_voidp=0
9105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
9106 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
9107 cat >>confdefs.h <<_ACEOF
9108 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
9112 ac_cv_char_data_model=""
9113 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
9114 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
9115 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
9116 ac_cv_long_data_model=""
9117 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
9118 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
9119 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
9120 echo "$as_me:$LINENO: checking data model" >&5
9121 echo $ECHO_N "checking data model... $ECHO_C" >&6
9122 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
9123 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
9124 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
9125 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
9126 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
9127 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
9128 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
9129 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
9130 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
9131 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
9132 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
9133 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
9134 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
9135 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
9136 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
9137 222/*|333/*|444/*|666/*|888/*) :
9138 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
9139 *) ac_cv_data_model="none" ; n="very unusual model" ;;
9141 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
9142 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
9146 if test "_$ac_cv_header_stdint_x" != "_" ; then
9147 ac_cv_header_stdint="$ac_cv_header_stdint_x"
9148 elif test "_$ac_cv_header_stdint_o" != "_" ; then
9149 ac_cv_header_stdint="$ac_cv_header_stdint_o"
9150 elif test "_$ac_cv_header_stdint_u" != "_" ; then
9151 ac_cv_header_stdint="$ac_cv_header_stdint_u"
9153 ac_cv_header_stdint="stddef.h"
9156 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
9157 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
9158 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
9159 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
9160 unset ac_cv_type_int_least32_t
9161 unset ac_cv_type_int_fast32_t
9162 echo "$as_me:$LINENO: checking for int_least32_t" >&5
9163 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
9164 if test "${ac_cv_type_int_least32_t+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 cat >conftest.$ac_ext <<_ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 #include <$ac_cv_header_stdint>
9178 if ((int_least32_t *) 0)
9180 if (sizeof (int_least32_t))
9186 rm -f conftest.$ac_objext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9188 (eval $ac_compile) 2>conftest.er1
9190 grep -v '^ *+' conftest.er1 >conftest.err
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag"
9196 || test ! -s conftest.err'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; } &&
9202 { ac_try='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_type_int_least32_t=yes
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_cv_type_int_least32_t=no
9215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
9218 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
9220 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
9221 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
9222 if test "${ac_cv_type_int_fast32_t+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include<$ac_cv_header_stdint>
9236 if ((int_fast32_t *) 0)
9238 if (sizeof (int_fast32_t))
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_cv_type_int_fast32_t=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_cv_type_int_fast32_t=no
9273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9275 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
9276 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
9278 echo "$as_me:$LINENO: checking for intmax_t" >&5
9279 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
9280 if test "${ac_cv_type_intmax_t+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289 #include <$ac_cv_header_stdint>
9296 if (sizeof (intmax_t))
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>conftest.er1
9306 grep -v '^ *+' conftest.er1 >conftest.err
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_type_intmax_t=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_type_intmax_t=no
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9333 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
9334 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
9337 fi # shortcircut to system "stdint.h"
9338 # ------------------ PREPARE VARIABLES ------------------------------
9339 if test "$GCC" = "yes" ; then
9340 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
9342 ac_cv_stdint_message="using $CC"
9345 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
9346 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
9348 # ----------------- DONE inttypes.h checks START header -------------
9349 ac_config_commands="$ac_config_commands $ac_stdint_h"
9355 # Extract the first word of "$ac_prog", so it can be a program name with args.
9356 set dummy $ac_prog; ac_word=$2
9357 echo "$as_me:$LINENO: checking for $ac_word" >&5
9358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9359 if test "${ac_cv_path_AR+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 ac_cv_path_AR="$AR" # Let the user override the test with a path.
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $LOCSYSPATH
9371 test -z "$as_dir" && as_dir=.
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9374 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
9375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 if test -n "$AR"; then
9387 echo "$as_me:$LINENO: result: $AR" >&5
9388 echo "${ECHO_T}$AR" >&6
9390 echo "$as_me:$LINENO: result: no" >&5
9391 echo "${ECHO_T}no" >&6
9394 test -n "$AR" && break
9398 for ac_prog in gawk mawk nawk awk
9400 # Extract the first word of "$ac_prog", so it can be a program name with args.
9401 set dummy $ac_prog; ac_word=$2
9402 echo "$as_me:$LINENO: checking for $ac_word" >&5
9403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9404 if test "${ac_cv_prog_AWK+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 if test -n "$AWK"; then
9408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9417 ac_cv_prog_AWK="$ac_prog"
9418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9427 if test -n "$AWK"; then
9428 echo "$as_me:$LINENO: result: $AWK" >&5
9429 echo "${ECHO_T}$AWK" >&6
9431 echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6
9435 test -n "$AWK" && break
9440 echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
9441 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
9442 if test "${amanda_cv_awk_var_assignment+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 echo 'BEGIN{print i; exit}' > conftest.awk
9447 result=`$AWK -f conftest.awk i=xx | wc -c`
9448 if test "$result" -le 1; then
9449 result=`$AWK -f conftest.awk -v i=xx | wc -c`
9450 if test "$result" -le 1; then
9451 amanda_cv_awk_var_assignment=no
9453 amanda_cv_awk_var_assignment="yes with -v"
9456 amanda_cv_awk_var_assignment="yes"
9462 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
9463 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
9464 AWK_VAR_ASSIGNMENT_OPT=
9465 case "$amanda_cv_awk_var_assignment" in
9467 HAVE_AWK_WITH_VAR=no
9470 HAVE_AWK_WITH_VAR=yes
9473 HAVE_AWK_WITH_VAR=yes
9474 AWK_VAR_ASSIGNMENT_OPT=-v
9480 if test "x$amanda_cv_awk_var_assignment" = xno; then
9482 { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&5
9483 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&2;}
9486 for ac_prog in 'bison -y' byacc
9488 # Extract the first word of "$ac_prog", so it can be a program name with args.
9489 set dummy $ac_prog; ac_word=$2
9490 echo "$as_me:$LINENO: checking for $ac_word" >&5
9491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9492 if test "${ac_cv_prog_YACC+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 if test -n "$YACC"; then
9496 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9505 ac_cv_prog_YACC="$ac_prog"
9506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 YACC=$ac_cv_prog_YACC
9515 if test -n "$YACC"; then
9516 echo "$as_me:$LINENO: result: $YACC" >&5
9517 echo "${ECHO_T}$YACC" >&6
9519 echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6
9523 test -n "$YACC" && break
9525 test -n "$YACC" || YACC="yacc"
9529 # Extract the first word of "$ac_prog", so it can be a program name with args.
9530 set dummy $ac_prog; ac_word=$2
9531 echo "$as_me:$LINENO: checking for $ac_word" >&5
9532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9533 if test "${ac_cv_path_CAT+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $LOCSYSPATH
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
9549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 if test -n "$CAT"; then
9561 echo "$as_me:$LINENO: result: $CAT" >&5
9562 echo "${ECHO_T}$CAT" >&6
9564 echo "$as_me:$LINENO: result: no" >&5
9565 echo "${ECHO_T}no" >&6
9568 test -n "$CAT" && break
9571 if test -z "$CAT"; then
9574 for ac_prog in compress
9576 # Extract the first word of "$ac_prog", so it can be a program name with args.
9577 set dummy $ac_prog; ac_word=$2
9578 echo "$as_me:$LINENO: checking for $ac_word" >&5
9579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9580 if test "${ac_cv_path_COMPRESS+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $LOCSYSPATH
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 COMPRESS=$ac_cv_path_COMPRESS
9607 if test -n "$COMPRESS"; then
9608 echo "$as_me:$LINENO: result: $COMPRESS" >&5
9609 echo "${ECHO_T}$COMPRESS" >&6
9611 echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6
9615 test -n "$COMPRESS" && break
9620 # Extract the first word of "$ac_prog", so it can be a program name with args.
9621 set dummy $ac_prog; ac_word=$2
9622 echo "$as_me:$LINENO: checking for $ac_word" >&5
9623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9624 if test "${ac_cv_path_DD+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 ac_cv_path_DD="$DD" # Let the user override the test with a path.
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $LOCSYSPATH
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
9640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 if test -n "$DD"; then
9652 echo "$as_me:$LINENO: result: $DD" >&5
9653 echo "${ECHO_T}$DD" >&6
9655 echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6
9659 test -n "$DD" && break
9662 for ac_prog in getconf
9664 # Extract the first word of "$ac_prog", so it can be a program name with args.
9665 set dummy $ac_prog; ac_word=$2
9666 echo "$as_me:$LINENO: checking for $ac_word" >&5
9667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9668 if test "${ac_cv_path_GETCONF+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $SYSPATH
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9683 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
9684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 GETCONF=$ac_cv_path_GETCONF
9695 if test -n "$GETCONF"; then
9696 echo "$as_me:$LINENO: result: $GETCONF" >&5
9697 echo "${ECHO_T}$GETCONF" >&6
9699 echo "$as_me:$LINENO: result: no" >&5
9700 echo "${ECHO_T}no" >&6
9703 test -n "$GETCONF" && break
9707 for ac_prog in gnuplot
9709 # Extract the first word of "$ac_prog", so it can be a program name with args.
9710 set dummy $ac_prog; ac_word=$2
9711 echo "$as_me:$LINENO: checking for $ac_word" >&5
9712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9713 if test "${ac_cv_path_GNUPLOT+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $LOCSYSPATH
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
9729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 GNUPLOT=$ac_cv_path_GNUPLOT
9740 if test -n "$GNUPLOT"; then
9741 echo "$as_me:$LINENO: result: $GNUPLOT" >&5
9742 echo "${ECHO_T}$GNUPLOT" >&6
9744 echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9748 test -n "$GNUPLOT" && break
9751 if test -z "$GNUPLOT"; then
9753 { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&5
9754 echo "$as_me: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&2;}
9757 for ac_prog in gtar gnutar tar
9759 # Extract the first word of "$ac_prog", so it can be a program name with args.
9760 set dummy $ac_prog; ac_word=$2
9761 echo "$as_me:$LINENO: checking for $ac_word" >&5
9762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9763 if test "${ac_cv_path_GNUTAR+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $LOCSYSPATH
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
9779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 GNUTAR=$ac_cv_path_GNUTAR
9790 if test -n "$GNUTAR"; then
9791 echo "$as_me:$LINENO: result: $GNUTAR" >&5
9792 echo "${ECHO_T}$GNUTAR" >&6
9794 echo "$as_me:$LINENO: result: no" >&5
9795 echo "${ECHO_T}no" >&6
9798 test -n "$GNUTAR" && break
9801 if test ! -z "$GNUTAR"; then
9802 case "`\"$GNUTAR\" --version 2>&1`" in
9803 *GNU*tar* | *Free*paxutils* )
9805 cat >>confdefs.h <<_ACEOF
9806 #define GNUTAR "$GNUTAR"
9811 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
9812 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
9818 for ac_prog in smbclient
9820 # Extract the first word of "$ac_prog", so it can be a program name with args.
9821 set dummy $ac_prog; ac_word=$2
9822 echo "$as_me:$LINENO: checking for $ac_word" >&5
9823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9824 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 case $SAMBA_CLIENT in
9829 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in $LOCSYSPATH
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
9840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9849 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
9851 if test -n "$SAMBA_CLIENT"; then
9852 echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
9853 echo "${ECHO_T}$SAMBA_CLIENT" >&6
9855 echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6
9859 test -n "$SAMBA_CLIENT" && break
9862 if test ! -z "$SAMBA_CLIENT"; then
9863 case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
9867 *"Connection to not.a.host.name failed"*)
9871 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
9872 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
9876 if test -n "$SAMBA_CLIENT"; then
9878 cat >>confdefs.h <<_ACEOF
9879 #define SAMBA_CLIENT "$SAMBA_CLIENT"
9883 cat >>confdefs.h <<_ACEOF
9884 #define SAMBA_VERSION $smbversion
9892 # Extract the first word of "$ac_prog", so it can be a program name with args.
9893 set dummy $ac_prog; ac_word=$2
9894 echo "$as_me:$LINENO: checking for $ac_word" >&5
9895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896 if test "${ac_cv_path_GZIP+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $LOCSYSPATH
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9911 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
9912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 GZIP=$ac_cv_path_GZIP
9923 if test -n "$GZIP"; then
9924 echo "$as_me:$LINENO: result: $GZIP" >&5
9925 echo "${ECHO_T}$GZIP" >&6
9927 echo "$as_me:$LINENO: result: no" >&5
9928 echo "${ECHO_T}no" >&6
9931 test -n "$GZIP" && break
9934 if test "$GZIP"; then
9936 cat >>confdefs.h <<\_ACEOF
9940 COMPRESS_PATH="$GZIP"
9941 COMPRESS_SUFFIX=".gz"
9942 COMPRESS_FAST_OPT="--fast"
9943 COMPRESS_BEST_OPT="--best"
9944 UNCOMPRESS_PATH="$GZIP"
9945 UNCOMPRESS_OPT="-dc"
9947 if test "$COMPRESS"; then
9948 COMPRESS_PATH="$COMPRESS"
9949 COMPRESS_SUFFIX=".Z"
9950 COMPRESS_FAST_OPT="-f"
9951 COMPRESS_BEST_OPT="-f"
9952 UNCOMPRESS_PATH="$COMPRESS"
9953 UNCOMPRESS_OPT="-dc"
9955 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&5
9956 echo "$as_me: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&2;}
9957 COMPRESS_PATH="$CAT"
9959 COMPRESS_FAST_OPT=""
9960 COMPRESS_BEST_OPT=""
9961 UNCOMPRESS_PATH="$CAT"
9966 cat >>confdefs.h <<_ACEOF
9967 #define COMPRESS_PATH "$COMPRESS_PATH"
9971 cat >>confdefs.h <<_ACEOF
9972 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9976 cat >>confdefs.h <<_ACEOF
9977 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9981 cat >>confdefs.h <<_ACEOF
9982 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9986 cat >>confdefs.h <<_ACEOF
9987 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9991 cat >>confdefs.h <<_ACEOF
9992 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9996 for ac_prog in Mail mailx mail
9998 # Extract the first word of "$ac_prog", so it can be a program name with args.
9999 set dummy $ac_prog; ac_word=$2
10000 echo "$as_me:$LINENO: checking for $ac_word" >&5
10001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10002 if test "${ac_cv_path_MAILER+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 MAILER=$ac_cv_path_MAILER
10029 if test -n "$MAILER"; then
10030 echo "$as_me:$LINENO: result: $MAILER" >&5
10031 echo "${ECHO_T}$MAILER" >&6
10033 echo "$as_me:$LINENO: result: no" >&5
10034 echo "${ECHO_T}no" >&6
10037 test -n "$MAILER" && break
10040 if test -z "$MAILER"; then
10041 if $NO_SERVER_MODE; then
10043 { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
10044 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
10046 { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
10047 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
10048 { (exit 1); exit 1; }; }
10052 cat >>confdefs.h <<_ACEOF
10053 #define MAILER "$MAILER"
10059 # Extract the first word of "$ac_prog", so it can be a program name with args.
10060 set dummy $ac_prog; ac_word=$2
10061 echo "$as_me:$LINENO: checking for $ac_word" >&5
10062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10063 if test "${ac_cv_path_MT+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 ac_cv_path_MT="$MT" # Let the user override the test with a path.
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $LOCSYSPATH
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
10079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10090 if test -n "$MT"; then
10091 echo "$as_me:$LINENO: result: $MT" >&5
10092 echo "${ECHO_T}$MT" >&6
10094 echo "$as_me:$LINENO: result: no" >&5
10095 echo "${ECHO_T}no" >&6
10098 test -n "$MT" && break
10100 test -n "$MT" || MT="mt"
10103 for ac_prog in chio
10105 # Extract the first word of "$ac_prog", so it can be a program name with args.
10106 set dummy $ac_prog; ac_word=$2
10107 echo "$as_me:$LINENO: checking for $ac_word" >&5
10108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10109 if test "${ac_cv_path_CHIO+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $LOCSYSPATH
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
10125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 CHIO=$ac_cv_path_CHIO
10136 if test -n "$CHIO"; then
10137 echo "$as_me:$LINENO: result: $CHIO" >&5
10138 echo "${ECHO_T}$CHIO" >&6
10140 echo "$as_me:$LINENO: result: no" >&5
10141 echo "${ECHO_T}no" >&6
10144 test -n "$CHIO" && break
10146 test -n "$CHIO" || CHIO="chio"
10151 # Extract the first word of "$ac_prog", so it can be a program name with args.
10152 set dummy $ac_prog; ac_word=$2
10153 echo "$as_me:$LINENO: checking for $ac_word" >&5
10154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10155 if test "${ac_cv_path_CHS+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $LOCSYSPATH
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
10171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10180 CHS=$ac_cv_path_CHS
10182 if test -n "$CHS"; then
10183 echo "$as_me:$LINENO: result: $CHS" >&5
10184 echo "${ECHO_T}$CHS" >&6
10186 echo "$as_me:$LINENO: result: no" >&5
10187 echo "${ECHO_T}no" >&6
10190 test -n "$CHS" && break
10192 test -n "$CHS" || CHS="chs"
10197 # Extract the first word of "$ac_prog", so it can be a program name with args.
10198 set dummy $ac_prog; ac_word=$2
10199 echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10201 if test "${ac_cv_path_MTX+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $LOCSYSPATH
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10216 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
10217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 MTX=$ac_cv_path_MTX
10228 if test -n "$MTX"; then
10229 echo "$as_me:$LINENO: result: $MTX" >&5
10230 echo "${ECHO_T}$MTX" >&6
10232 echo "$as_me:$LINENO: result: no" >&5
10233 echo "${ECHO_T}no" >&6
10236 test -n "$MTX" && break
10238 test -n "$MTX" || MTX="mtx"
10241 for ac_prog in mcutil
10243 # Extract the first word of "$ac_prog", so it can be a program name with args.
10244 set dummy $ac_prog; ac_word=$2
10245 echo "$as_me:$LINENO: checking for $ac_word" >&5
10246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10247 if test "${ac_cv_path_MCUTIL+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $LOCSYSPATH
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10262 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
10263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 MCUTIL=$ac_cv_path_MCUTIL
10274 if test -n "$MCUTIL"; then
10275 echo "$as_me:$LINENO: result: $MCUTIL" >&5
10276 echo "${ECHO_T}$MCUTIL" >&6
10278 echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10282 test -n "$MCUTIL" && break
10284 test -n "$MCUTIL" || MCUTIL="mcutil"
10287 for ac_prog in lpr lp
10289 # Extract the first word of "$ac_prog", so it can be a program name with args.
10290 set dummy $ac_prog; ac_word=$2
10291 echo "$as_me:$LINENO: checking for $ac_word" >&5
10292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10293 if test "${ac_cv_path_PRINT+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
10309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 PRINT=$ac_cv_path_PRINT
10320 if test -n "$PRINT"; then
10321 echo "$as_me:$LINENO: result: $PRINT" >&5
10322 echo "${ECHO_T}$PRINT" >&6
10324 echo "$as_me:$LINENO: result: no" >&5
10325 echo "${ECHO_T}no" >&6
10328 test -n "$PRINT" && break
10331 if test ! -z "$PRINT"; then
10333 cat >>confdefs.h <<_ACEOF
10334 #define LPRCMD "$PRINT"
10337 echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
10338 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
10339 if test "${amanda_cv_printer_flag+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 amanda_cv_printer_flag=$PRINTER_FLAG
10345 lpr|*/lpr) amanda_cv_printer_flag="-P";;
10346 lp|*/lp) amanda_cv_printer_flag="-d";;
10350 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
10351 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
10352 if test ! -z "$amanda_cv_printer_flag"; then
10354 cat >>confdefs.h <<_ACEOF
10355 #define LPRFLAG "$amanda_cv_printer_flag"
10359 { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
10360 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
10364 for ac_prog in pcat
10366 # Extract the first word of "$ac_prog", so it can be a program name with args.
10367 set dummy $ac_prog; ac_word=$2
10368 echo "$as_me:$LINENO: checking for $ac_word" >&5
10369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10370 if test "${ac_cv_path_PCAT+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $LOCSYSPATH
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10385 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
10386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10395 PCAT=$ac_cv_path_PCAT
10397 if test -n "$PCAT"; then
10398 echo "$as_me:$LINENO: result: $PCAT" >&5
10399 echo "${ECHO_T}$PCAT" >&6
10401 echo "$as_me:$LINENO: result: no" >&5
10402 echo "${ECHO_T}no" >&6
10405 test -n "$PCAT" && break
10408 for ac_prog in perl5 perl
10410 # Extract the first word of "$ac_prog", so it can be a program name with args.
10411 set dummy $ac_prog; ac_word=$2
10412 echo "$as_me:$LINENO: checking for $ac_word" >&5
10413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10414 if test "${ac_cv_path_PERL+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $LOCSYSPATH
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10429 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 PERL=$ac_cv_path_PERL
10441 if test -n "$PERL"; then
10442 echo "$as_me:$LINENO: result: $PERL" >&5
10443 echo "${ECHO_T}$PERL" >&6
10445 echo "$as_me:$LINENO: result: no" >&5
10446 echo "${ECHO_T}no" >&6
10449 test -n "$PERL" && break
10454 for ac_prog in $DUMP_PROGRAMS
10456 # Extract the first word of "$ac_prog", so it can be a program name with args.
10457 set dummy $ac_prog; ac_word=$2
10458 echo "$as_me:$LINENO: checking for $ac_word" >&5
10459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10460 if test "${ac_cv_path_DUMP+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $SYSLOCPATH
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
10476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 DUMP=$ac_cv_path_DUMP
10487 if test -n "$DUMP"; then
10488 echo "$as_me:$LINENO: result: $DUMP" >&5
10489 echo "${ECHO_T}$DUMP" >&6
10491 echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6
10495 test -n "$DUMP" && break
10498 for ac_prog in ufsrestore restore
10500 # Extract the first word of "$ac_prog", so it can be a program name with args.
10501 set dummy $ac_prog; ac_word=$2
10502 echo "$as_me:$LINENO: checking for $ac_word" >&5
10503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10504 if test "${ac_cv_path_RESTORE+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $SYSLOCPATH
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10519 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
10520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 RESTORE=$ac_cv_path_RESTORE
10531 if test -n "$RESTORE"; then
10532 echo "$as_me:$LINENO: result: $RESTORE" >&5
10533 echo "${ECHO_T}$RESTORE" >&6
10535 echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6
10539 test -n "$RESTORE" && break
10542 if test "$DUMP" -a "$RESTORE"; then
10544 cat >>confdefs.h <<_ACEOF
10545 #define DUMP "$DUMP"
10549 cat >>confdefs.h <<_ACEOF
10550 #define RESTORE "$RESTORE"
10553 if test -x $DUMP; then
10554 echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
10555 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
10556 if test "${amanda_cv_dump_estimate+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
10565 | $GREP -v Label >conftest.d-E 2>&1'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }
10571 cat conftest.d-E >&5
10572 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
10575 | $GREP -v Label >conftest.d-S 2>&1'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }
10581 cat conftest.d-S >&5
10582 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10585 | $GREP -v Label >conftest.d 2>&1'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }
10592 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 amanda_cv_dump_estimate=E
10599 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10605 amanda_cv_dump_estimate=S
10607 amanda_cv_dump_estimate=no
10609 rm -f conftest.d conftest.d-E conftest.d-S
10611 *) amanda_cv_dump_estimate=no
10616 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
10617 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
10619 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
10620 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
10621 amanda_cv_dump_estimate=no
10623 if test "x$amanda_cv_dump_estimate" != xno; then
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
10632 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
10633 if test "${with_dump_honor_nodump+set}" = set; then
10634 withval="$with_dump_honor_nodump"
10635 if test -x $DUMP; then
10636 echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
10637 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
10638 if test "${amanda_cv_honor_nodump+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
10647 | $GREP -v Label >conftest.d-h 2>&1'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }
10653 cat conftest.d-h >&5
10654 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10657 | $GREP -v Label >conftest.d 2>&1'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }
10664 if { ac_try='diff conftest.d-h conftest.d 1>&2'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 amanda_cv_honor_nodump=yes
10672 amanda_cv_honor_nodump=no
10674 rm -f conftest.d conftest.d-h
10676 *) amanda_cv_honor_nodump=no
10681 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
10682 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
10684 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
10685 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
10686 amanda_cv_honor_nodump=no
10688 if test "x$amanda_cv_honor_nodump" = xyes; then
10690 cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_HONOR_NODUMP 1
10699 for ac_prog in xfsdump
10701 # Extract the first word of "$ac_prog", so it can be a program name with args.
10702 set dummy $ac_prog; ac_word=$2
10703 echo "$as_me:$LINENO: checking for $ac_word" >&5
10704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10705 if test "${ac_cv_path_XFSDUMP+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $SYSLOCPATH
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
10721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 XFSDUMP=$ac_cv_path_XFSDUMP
10732 if test -n "$XFSDUMP"; then
10733 echo "$as_me:$LINENO: result: $XFSDUMP" >&5
10734 echo "${ECHO_T}$XFSDUMP" >&6
10736 echo "$as_me:$LINENO: result: no" >&5
10737 echo "${ECHO_T}no" >&6
10740 test -n "$XFSDUMP" && break
10743 for ac_prog in xfsrestore
10745 # Extract the first word of "$ac_prog", so it can be a program name with args.
10746 set dummy $ac_prog; ac_word=$2
10747 echo "$as_me:$LINENO: checking for $ac_word" >&5
10748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10749 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 case $XFSRESTORE in
10754 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
10757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758 for as_dir in $SYSLOCPATH
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10764 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
10765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 XFSRESTORE=$ac_cv_path_XFSRESTORE
10776 if test -n "$XFSRESTORE"; then
10777 echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
10778 echo "${ECHO_T}$XFSRESTORE" >&6
10780 echo "$as_me:$LINENO: result: no" >&5
10781 echo "${ECHO_T}no" >&6
10784 test -n "$XFSRESTORE" && break
10787 if test "$XFSDUMP" -a "$XFSRESTORE"; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define XFSDUMP "$XFSDUMP"
10794 cat >>confdefs.h <<_ACEOF
10795 #define XFSRESTORE "$XFSRESTORE"
10798 { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
10799 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
10801 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
10804 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
10805 for ac_prog in vxdump
10807 # Extract the first word of "$ac_prog", so it can be a program name with args.
10808 set dummy $ac_prog; ac_word=$2
10809 echo "$as_me:$LINENO: checking for $ac_word" >&5
10810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10811 if test "${ac_cv_path_VXDUMP+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
10819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $VXSYSLOCPATH
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 VXDUMP=$ac_cv_path_VXDUMP
10838 if test -n "$VXDUMP"; then
10839 echo "$as_me:$LINENO: result: $VXDUMP" >&5
10840 echo "${ECHO_T}$VXDUMP" >&6
10842 echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6
10846 test -n "$VXDUMP" && break
10849 for ac_prog in vxrestore
10851 # Extract the first word of "$ac_prog", so it can be a program name with args.
10852 set dummy $ac_prog; ac_word=$2
10853 echo "$as_me:$LINENO: checking for $ac_word" >&5
10854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10855 if test "${ac_cv_path_VXRESTORE+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $VXSYSLOCPATH
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
10871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 VXRESTORE=$ac_cv_path_VXRESTORE
10882 if test -n "$VXRESTORE"; then
10883 echo "$as_me:$LINENO: result: $VXRESTORE" >&5
10884 echo "${ECHO_T}$VXRESTORE" >&6
10886 echo "$as_me:$LINENO: result: no" >&5
10887 echo "${ECHO_T}no" >&6
10890 test -n "$VXRESTORE" && break
10893 if test "$VXDUMP" -a "$VXRESTORE"; then
10895 cat >>confdefs.h <<_ACEOF
10896 #define VXDUMP "$VXDUMP"
10900 cat >>confdefs.h <<_ACEOF
10901 #define VXRESTORE "$VXRESTORE"
10906 for ac_prog in vdump
10908 # Extract the first word of "$ac_prog", so it can be a program name with args.
10909 set dummy $ac_prog; ac_word=$2
10910 echo "$as_me:$LINENO: checking for $ac_word" >&5
10911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10912 if test "${ac_cv_path_VDUMP+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $SYSLOCPATH
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
10928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10937 VDUMP=$ac_cv_path_VDUMP
10939 if test -n "$VDUMP"; then
10940 echo "$as_me:$LINENO: result: $VDUMP" >&5
10941 echo "${ECHO_T}$VDUMP" >&6
10943 echo "$as_me:$LINENO: result: no" >&5
10944 echo "${ECHO_T}no" >&6
10947 test -n "$VDUMP" && break
10950 for ac_prog in vrestore
10952 # Extract the first word of "$ac_prog", so it can be a program name with args.
10953 set dummy $ac_prog; ac_word=$2
10954 echo "$as_me:$LINENO: checking for $ac_word" >&5
10955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10956 if test "${ac_cv_path_VRESTORE+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $SYSLOCPATH
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10971 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
10972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 VRESTORE=$ac_cv_path_VRESTORE
10983 if test -n "$VRESTORE"; then
10984 echo "$as_me:$LINENO: result: $VRESTORE" >&5
10985 echo "${ECHO_T}$VRESTORE" >&6
10987 echo "$as_me:$LINENO: result: no" >&5
10988 echo "${ECHO_T}no" >&6
10991 test -n "$VRESTORE" && break
10994 if test "$VDUMP" -a "$VRESTORE"; then
10996 cat >>confdefs.h <<_ACEOF
10997 #define VDUMP "$VDUMP"
11001 cat >>confdefs.h <<_ACEOF
11002 #define VRESTORE "$VRESTORE"
11007 if test "$PCAT"; then
11008 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
11012 if test "$COMPRESS"; then
11013 AMPLOT_COMPRESS=$COMPRESS
11014 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
11016 AMPLOT_CAT_COMPRESS=
11018 if test "$GZIP"; then
11019 AMPLOT_COMPRESS=$GZIP
11020 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
11029 # Determine the printf format characters to use when printing
11030 # values of type long long. This will normally be "ll", but where
11031 # the compiler treats "long long" as a alias for "long" and printf
11032 # doesn't know about "long long" use "l". Hopefully the sprintf
11033 # will produce a inconsistant result in the later case. If the compiler
11034 # fails due to seeing "%lld" we fall back to "l".
11036 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
11037 # configure on Win32.
11039 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
11040 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
11041 if test "$cross_compiling" = yes; then
11042 echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
11043 echo "${ECHO_T}assuming target platform uses ll" >&6
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11055 long long int j = 0;
11058 sprintf(buf, "%lld", j);
11059 exit((sizeof(long long int) != sizeof(long int))? 0 :
11060 (strcmp(buf, "0") != 0));
11064 rm -f conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 echo "$as_me:$LINENO: result: ll" >&5
11076 echo "${ECHO_T}ll" >&6
11079 echo "$as_me: program exited with status $ac_status" >&5
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ( exit $ac_status )
11084 echo "$as_me:$LINENO: result: l" >&5
11085 echo "${ECHO_T}l" >&6
11088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11091 cat >>confdefs.h <<_ACEOF
11092 #define LL_FMT "$LL_FMT"
11100 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
11101 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
11102 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 amanda_cv_LFS_CFLAGS=
11107 if test "$GETCONF"; then
11108 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
11109 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
11116 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
11117 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
11118 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
11119 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
11120 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 amanda_cv_LFS_LDFLAGS=
11125 if test "$GETCONF"; then
11126 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
11127 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
11134 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
11135 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
11136 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
11137 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
11138 if test "${amanda_cv_LFS_LIBS+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 amanda_cv_LFS_LIBS=
11143 if test "$GETCONF"; then
11144 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
11145 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
11152 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
11153 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
11154 if test "x$need_resetofs" = xyes; then
11156 cat >>confdefs.h <<\_ACEOF
11157 #define NEED_RESETOFS 1
11163 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
11164 CPPFLAGS="$amanda_cv_LFS_CPPFLAGS $CPPFLAGS"
11165 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
11166 LIBS="$amanda_cv_LFS_LIBS $LIBS"
11168 echo "$as_me:$LINENO: checking for int" >&5
11169 echo $ECHO_N "checking for int... $ECHO_C" >&6
11170 if test "${ac_cv_type_int+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 $ac_includes_default
11191 rm -f conftest.$ac_objext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11193 (eval $ac_compile) 2>conftest.er1
11195 grep -v '^ *+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -z "$ac_c_werror_flag"
11201 || test ! -s conftest.err'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; } &&
11207 { ac_try='test -s conftest.$ac_objext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11222 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11223 echo "${ECHO_T}$ac_cv_type_int" >&6
11225 echo "$as_me:$LINENO: checking size of int" >&5
11226 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11227 if test "${ac_cv_sizeof_int+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 if test "$ac_cv_type_int" = yes; then
11231 # The cast to unsigned long works around a bug in the HP C Compiler
11232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11234 # This bug is HP SR number 8606223364.
11235 if test "$cross_compiling" = yes; then
11236 # Depending upon the size, compute the lo and hi bounds.
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 $ac_includes_default
11247 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11254 rm -f conftest.$ac_objext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11256 (eval $ac_compile) 2>conftest.er1
11258 grep -v '^ *+' conftest.er1 >conftest.err
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest.$ac_objext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11288 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_hi=$ac_mid; break
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_lo=`expr $ac_mid + 1`
11323 if test $ac_lo -le $ac_mid; then
11327 ac_mid=`expr 2 '*' $ac_mid + 1`
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 $ac_includes_default
11345 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11352 rm -f conftest.$ac_objext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11354 (eval $ac_compile) 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -z "$ac_c_werror_flag"
11362 || test ! -s conftest.err'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; } &&
11368 { ac_try='test -s conftest.$ac_objext'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
11402 { ac_try='test -z "$ac_c_werror_flag"
11403 || test ! -s conftest.err'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest.$ac_objext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_lo=$ac_mid; break
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_hi=`expr '(' $ac_mid ')' - 1`
11421 if test $ac_mid -le $ac_hi; then
11425 ac_mid=`expr 2 '*' $ac_mid`
11427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11438 # Binary search between lo and hi bounds.
11439 while test "x$ac_lo" != "x$ac_hi"; do
11440 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11451 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460 (eval $ac_compile) 2>conftest.er1
11462 grep -v '^ *+' conftest.er1 >conftest.err
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try='test -z "$ac_c_werror_flag"
11468 || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_lo=`expr '(' $ac_mid ')' + 1`
11487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11490 ?*) ac_cv_sizeof_int=$ac_lo;;
11491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11492 See \`config.log' for more details." >&5
11493 echo "$as_me: error: cannot compute sizeof (int), 77
11494 See \`config.log' for more details." >&2;}
11495 { (exit 1); exit 1; }; } ;;
11498 if test "$cross_compiling" = yes; then
11499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11500 See \`config.log' for more details." >&5
11501 echo "$as_me: error: cannot run test program while cross compiling
11502 See \`config.log' for more details." >&2;}
11503 { (exit 1); exit 1; }; }
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 $ac_includes_default
11512 long longval () { return (long) (sizeof (int)); }
11513 unsigned long ulongval () { return (long) (sizeof (int)); }
11515 #include <stdlib.h>
11520 FILE *f = fopen ("conftest.val", "w");
11523 if (((long) (sizeof (int))) < 0)
11525 long i = longval ();
11526 if (i != ((long) (sizeof (int))))
11528 fprintf (f, "%ld\n", i);
11532 unsigned long i = ulongval ();
11533 if (i != ((long) (sizeof (int))))
11535 fprintf (f, "%lu\n", i);
11537 exit (ferror (f) || fclose (f) != 0);
11543 rm -f conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_cv_sizeof_int=`cat conftest.val`
11556 echo "$as_me: program exited with status $ac_status" >&5
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ( exit $ac_status )
11561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11562 See \`config.log' for more details." >&5
11563 echo "$as_me: error: cannot compute sizeof (int), 77
11564 See \`config.log' for more details." >&2;}
11565 { (exit 1); exit 1; }; }
11567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11576 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11577 cat >>confdefs.h <<_ACEOF
11578 #define SIZEOF_INT $ac_cv_sizeof_int
11582 echo "$as_me:$LINENO: checking for long" >&5
11583 echo $ECHO_N "checking for long... $ECHO_C" >&6
11584 if test "${ac_cv_type_long+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 cat >conftest.$ac_ext <<_ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 $ac_includes_default
11605 rm -f conftest.$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>conftest.er1
11609 grep -v '^ *+' conftest.er1 >conftest.err
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_type_long=yes
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11636 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11637 echo "${ECHO_T}$ac_cv_type_long" >&6
11639 echo "$as_me:$LINENO: checking size of long" >&5
11640 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11641 if test "${ac_cv_sizeof_long+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 if test "$ac_cv_type_long" = yes; then
11645 # The cast to unsigned long works around a bug in the HP C Compiler
11646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11648 # This bug is HP SR number 8606223364.
11649 if test "$cross_compiling" = yes; then
11650 # Depending upon the size, compute the lo and hi bounds.
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 $ac_includes_default
11661 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670 (eval $ac_compile) 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -z "$ac_c_werror_flag"
11678 || test ! -s conftest.err'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest.$ac_objext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11702 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11709 rm -f conftest.$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711 (eval $ac_compile) 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag"
11719 || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_hi=$ac_mid; break
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_lo=`expr $ac_mid + 1`
11737 if test $ac_lo -le $ac_mid; then
11741 ac_mid=`expr 2 '*' $ac_mid + 1`
11743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 $ac_includes_default
11759 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest.$ac_objext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 $ac_includes_default
11800 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11807 rm -f conftest.$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11811 grep -v '^ *+' conftest.er1 >conftest.err
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 ac_lo=$ac_mid; break
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 ac_hi=`expr '(' $ac_mid ')' - 1`
11835 if test $ac_mid -le $ac_hi; then
11839 ac_mid=`expr 2 '*' $ac_mid`
11841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11852 # Binary search between lo and hi bounds.
11853 while test "x$ac_lo" != "x$ac_hi"; do
11854 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 $ac_includes_default
11865 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11872 rm -f conftest.$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag"
11882 || test ! -s conftest.err'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try='test -s conftest.$ac_objext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_lo=`expr '(' $ac_mid ')' + 1`
11901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11904 ?*) ac_cv_sizeof_long=$ac_lo;;
11905 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11906 See \`config.log' for more details." >&5
11907 echo "$as_me: error: cannot compute sizeof (long), 77
11908 See \`config.log' for more details." >&2;}
11909 { (exit 1); exit 1; }; } ;;
11912 if test "$cross_compiling" = yes; then
11913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11914 See \`config.log' for more details." >&5
11915 echo "$as_me: error: cannot run test program while cross compiling
11916 See \`config.log' for more details." >&2;}
11917 { (exit 1); exit 1; }; }
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 $ac_includes_default
11926 long longval () { return (long) (sizeof (long)); }
11927 unsigned long ulongval () { return (long) (sizeof (long)); }
11929 #include <stdlib.h>
11934 FILE *f = fopen ("conftest.val", "w");
11937 if (((long) (sizeof (long))) < 0)
11939 long i = longval ();
11940 if (i != ((long) (sizeof (long))))
11942 fprintf (f, "%ld\n", i);
11946 unsigned long i = ulongval ();
11947 if (i != ((long) (sizeof (long))))
11949 fprintf (f, "%lu\n", i);
11951 exit (ferror (f) || fclose (f) != 0);
11957 rm -f conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ac_cv_sizeof_long=`cat conftest.val`
11970 echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ( exit $ac_status )
11975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11976 See \`config.log' for more details." >&5
11977 echo "$as_me: error: cannot compute sizeof (long), 77
11978 See \`config.log' for more details." >&2;}
11979 { (exit 1); exit 1; }; }
11981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11986 ac_cv_sizeof_long=0
11989 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11990 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11991 cat >>confdefs.h <<_ACEOF
11992 #define SIZEOF_LONG $ac_cv_sizeof_long
11996 echo "$as_me:$LINENO: checking for long long" >&5
11997 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11998 if test "${ac_cv_type_long_long+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12011 if ((long long *) 0)
12013 if (sizeof (long long))
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021 (eval $ac_compile) 2>conftest.er1
12023 grep -v '^ *+' conftest.er1 >conftest.err
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag"
12029 || test ! -s conftest.err'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_cv_type_long_long=yes
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 ac_cv_type_long_long=no
12048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12050 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12051 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12053 echo "$as_me:$LINENO: checking size of long long" >&5
12054 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12055 if test "${ac_cv_sizeof_long_long+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 if test "$ac_cv_type_long_long" = yes; then
12059 # The cast to unsigned long works around a bug in the HP C Compiler
12060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12062 # This bug is HP SR number 8606223364.
12063 if test "$cross_compiling" = yes; then
12064 # Depending upon the size, compute the lo and hi bounds.
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12071 $ac_includes_default
12075 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>conftest.er1
12086 grep -v '^ *+' conftest.er1 >conftest.err
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag"
12092 || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 $ac_includes_default
12116 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12127 grep -v '^ *+' conftest.er1 >conftest.err
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_hi=$ac_mid; break
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_lo=`expr $ac_mid + 1`
12151 if test $ac_lo -le $ac_mid; then
12155 ac_mid=`expr 2 '*' $ac_mid + 1`
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 cat >conftest.$ac_ext <<_ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12173 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12204 cat >conftest.$ac_ext <<_ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210 $ac_includes_default
12214 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_lo=$ac_mid; break
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_hi=`expr '(' $ac_mid ')' - 1`
12249 if test $ac_mid -le $ac_hi; then
12253 ac_mid=`expr 2 '*' $ac_mid`
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12266 # Binary search between lo and hi bounds.
12267 while test "x$ac_lo" != "x$ac_hi"; do
12268 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12269 cat >conftest.$ac_ext <<_ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 $ac_includes_default
12279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12286 rm -f conftest.$ac_objext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288 (eval $ac_compile) 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_lo=`expr '(' $ac_mid ')' + 1`
12315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12318 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12319 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12320 See \`config.log' for more details." >&5
12321 echo "$as_me: error: cannot compute sizeof (long long), 77
12322 See \`config.log' for more details." >&2;}
12323 { (exit 1); exit 1; }; } ;;
12326 if test "$cross_compiling" = yes; then
12327 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12328 See \`config.log' for more details." >&5
12329 echo "$as_me: error: cannot run test program while cross compiling
12330 See \`config.log' for more details." >&2;}
12331 { (exit 1); exit 1; }; }
12333 cat >conftest.$ac_ext <<_ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12340 long longval () { return (long) (sizeof (long long)); }
12341 unsigned long ulongval () { return (long) (sizeof (long long)); }
12343 #include <stdlib.h>
12348 FILE *f = fopen ("conftest.val", "w");
12351 if (((long) (sizeof (long long))) < 0)
12353 long i = longval ();
12354 if (i != ((long) (sizeof (long long))))
12356 fprintf (f, "%ld\n", i);
12360 unsigned long i = ulongval ();
12361 if (i != ((long) (sizeof (long long))))
12363 fprintf (f, "%lu\n", i);
12365 exit (ferror (f) || fclose (f) != 0);
12371 rm -f conftest$ac_exeext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12373 (eval $ac_link) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_sizeof_long_long=`cat conftest.val`
12384 echo "$as_me: program exited with status $ac_status" >&5
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ( exit $ac_status )
12389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12390 See \`config.log' for more details." >&5
12391 echo "$as_me: error: cannot compute sizeof (long long), 77
12392 See \`config.log' for more details." >&2;}
12393 { (exit 1); exit 1; }; }
12395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12400 ac_cv_sizeof_long_long=0
12403 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12404 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12405 cat >>confdefs.h <<_ACEOF
12406 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12410 echo "$as_me:$LINENO: checking for intmax_t" >&5
12411 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12412 if test "${ac_cv_type_intmax_t+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 cat >conftest.$ac_ext <<_ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12425 if ((intmax_t *) 0)
12427 if (sizeof (intmax_t))
12433 rm -f conftest.$ac_objext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435 (eval $ac_compile) 2>conftest.er1
12437 grep -v '^ *+' conftest.er1 >conftest.err
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_c_werror_flag"
12443 || test ! -s conftest.err'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } &&
12449 { ac_try='test -s conftest.$ac_objext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_type_intmax_t=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_type_intmax_t=no
12462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12464 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
12467 echo "$as_me:$LINENO: checking size of intmax_t" >&5
12468 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
12469 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 if test "$ac_cv_type_intmax_t" = yes; then
12473 # The cast to unsigned long works around a bug in the HP C Compiler
12474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12476 # This bug is HP SR number 8606223364.
12477 if test "$cross_compiling" = yes; then
12478 # Depending upon the size, compute the lo and hi bounds.
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12489 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag"
12506 || test ! -s conftest.err'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 $ac_includes_default
12530 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_hi=$ac_mid; break
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_lo=`expr $ac_mid + 1`
12565 if test $ac_lo -le $ac_mid; then
12569 ac_mid=`expr 2 '*' $ac_mid + 1`
12571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 $ac_includes_default
12587 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596 (eval $ac_compile) 2>conftest.er1
12598 grep -v '^ *+' conftest.er1 >conftest.err
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_c_werror_flag"
12604 || test ! -s conftest.err'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest.$ac_objext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12618 cat >conftest.$ac_ext <<_ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 $ac_includes_default
12628 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12639 grep -v '^ *+' conftest.er1 >conftest.err
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -z "$ac_c_werror_flag"
12645 || test ! -s conftest.err'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_lo=$ac_mid; break
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 ac_hi=`expr '(' $ac_mid ')' - 1`
12663 if test $ac_mid -le $ac_hi; then
12667 ac_mid=`expr 2 '*' $ac_mid`
12669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680 # Binary search between lo and hi bounds.
12681 while test "x$ac_lo" != "x$ac_hi"; do
12682 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 $ac_includes_default
12693 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12700 rm -f conftest.$ac_objext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12702 (eval $ac_compile) 2>conftest.er1
12704 grep -v '^ *+' conftest.er1 >conftest.err
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag"
12710 || test ! -s conftest.err'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest.$ac_objext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 ac_lo=`expr '(' $ac_mid ')' + 1`
12729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12732 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
12733 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12734 See \`config.log' for more details." >&5
12735 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12736 See \`config.log' for more details." >&2;}
12737 { (exit 1); exit 1; }; } ;;
12740 if test "$cross_compiling" = yes; then
12741 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12742 See \`config.log' for more details." >&5
12743 echo "$as_me: error: cannot run test program while cross compiling
12744 See \`config.log' for more details." >&2;}
12745 { (exit 1); exit 1; }; }
12747 cat >conftest.$ac_ext <<_ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 $ac_includes_default
12754 long longval () { return (long) (sizeof (intmax_t)); }
12755 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
12757 #include <stdlib.h>
12762 FILE *f = fopen ("conftest.val", "w");
12765 if (((long) (sizeof (intmax_t))) < 0)
12767 long i = longval ();
12768 if (i != ((long) (sizeof (intmax_t))))
12770 fprintf (f, "%ld\n", i);
12774 unsigned long i = ulongval ();
12775 if (i != ((long) (sizeof (intmax_t))))
12777 fprintf (f, "%lu\n", i);
12779 exit (ferror (f) || fclose (f) != 0);
12785 rm -f conftest$ac_exeext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787 (eval $ac_link) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_cv_sizeof_intmax_t=`cat conftest.val`
12798 echo "$as_me: program exited with status $ac_status" >&5
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ( exit $ac_status )
12803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12804 See \`config.log' for more details." >&5
12805 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12806 See \`config.log' for more details." >&2;}
12807 { (exit 1); exit 1; }; }
12809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12814 ac_cv_sizeof_intmax_t=0
12817 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
12818 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
12819 cat >>confdefs.h <<_ACEOF
12820 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
12824 echo "$as_me:$LINENO: checking for off_t" >&5
12825 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12826 if test "${ac_cv_type_off_t+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 $ac_includes_default
12841 if (sizeof (off_t))
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849 (eval $ac_compile) 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag"
12857 || test ! -s conftest.err'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 ac_cv_type_off_t=yes
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 ac_cv_type_off_t=no
12876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12878 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12879 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12881 echo "$as_me:$LINENO: checking size of off_t" >&5
12882 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12883 if test "${ac_cv_sizeof_off_t+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 if test "$ac_cv_type_off_t" = yes; then
12887 # The cast to unsigned long works around a bug in the HP C Compiler
12888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12890 # This bug is HP SR number 8606223364.
12891 if test "$cross_compiling" = yes; then
12892 # Depending upon the size, compute the lo and hi bounds.
12893 cat >conftest.$ac_ext <<_ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 $ac_includes_default
12903 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag"
12920 || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest.$ac_objext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12944 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12955 grep -v '^ *+' conftest.er1 >conftest.err
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_hi=$ac_mid; break
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_lo=`expr $ac_mid + 1`
12979 if test $ac_lo -le $ac_mid; then
12983 ac_mid=`expr 2 '*' $ac_mid + 1`
12985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 cat >conftest.$ac_ext <<_ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 $ac_includes_default
13001 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13008 rm -f conftest.$ac_objext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>conftest.er1
13012 grep -v '^ *+' conftest.er1 >conftest.err
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -z "$ac_c_werror_flag"
13018 || test ! -s conftest.err'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; } &&
13024 { ac_try='test -s conftest.$ac_objext'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13032 cat >conftest.$ac_ext <<_ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 $ac_includes_default
13042 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_lo=$ac_mid; break
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_hi=`expr '(' $ac_mid ')' - 1`
13077 if test $ac_mid -le $ac_hi; then
13081 ac_mid=`expr 2 '*' $ac_mid`
13083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13094 # Binary search between lo and hi bounds.
13095 while test "x$ac_lo" != "x$ac_hi"; do
13096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 $ac_includes_default
13107 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 ac_lo=`expr '(' $ac_mid ')' + 1`
13143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13146 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13148 See \`config.log' for more details." >&5
13149 echo "$as_me: error: cannot compute sizeof (off_t), 77
13150 See \`config.log' for more details." >&2;}
13151 { (exit 1); exit 1; }; } ;;
13154 if test "$cross_compiling" = yes; then
13155 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13156 See \`config.log' for more details." >&5
13157 echo "$as_me: error: cannot run test program while cross compiling
13158 See \`config.log' for more details." >&2;}
13159 { (exit 1); exit 1; }; }
13161 cat >conftest.$ac_ext <<_ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 $ac_includes_default
13168 long longval () { return (long) (sizeof (off_t)); }
13169 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13171 #include <stdlib.h>
13176 FILE *f = fopen ("conftest.val", "w");
13179 if (((long) (sizeof (off_t))) < 0)
13181 long i = longval ();
13182 if (i != ((long) (sizeof (off_t))))
13184 fprintf (f, "%ld\n", i);
13188 unsigned long i = ulongval ();
13189 if (i != ((long) (sizeof (off_t))))
13191 fprintf (f, "%lu\n", i);
13193 exit (ferror (f) || fclose (f) != 0);
13199 rm -f conftest$ac_exeext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13201 (eval $ac_link) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_cv_sizeof_off_t=`cat conftest.val`
13212 echo "$as_me: program exited with status $ac_status" >&5
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 ( exit $ac_status )
13217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13218 See \`config.log' for more details." >&5
13219 echo "$as_me: error: cannot compute sizeof (off_t), 77
13220 See \`config.log' for more details." >&2;}
13221 { (exit 1); exit 1; }; }
13223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13228 ac_cv_sizeof_off_t=0
13231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13232 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13233 cat >>confdefs.h <<_ACEOF
13234 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13238 echo "$as_me:$LINENO: checking for size_t" >&5
13239 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13240 if test "${ac_cv_type_size_t+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13255 if (sizeof (size_t))
13261 rm -f conftest.$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } &&
13270 { ac_try='test -z "$ac_c_werror_flag"
13271 || test ! -s conftest.err'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } &&
13277 { ac_try='test -s conftest.$ac_objext'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; }; then
13283 ac_cv_type_size_t=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ac_cv_type_size_t=no
13290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13292 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13293 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13295 echo "$as_me:$LINENO: checking size of size_t" >&5
13296 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
13297 if test "${ac_cv_sizeof_size_t+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 if test "$ac_cv_type_size_t" = yes; then
13301 # The cast to unsigned long works around a bug in the HP C Compiler
13302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13304 # This bug is HP SR number 8606223364.
13305 if test "$cross_compiling" = yes; then
13306 # Depending upon the size, compute the lo and hi bounds.
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 $ac_includes_default
13317 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
13324 rm -f conftest.$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 $ac_includes_default
13358 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_hi=$ac_mid; break
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_lo=`expr $ac_mid + 1`
13393 if test $ac_lo -le $ac_mid; then
13397 ac_mid=`expr 2 '*' $ac_mid + 1`
13399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 $ac_includes_default
13415 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
13422 rm -f conftest.$ac_objext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13424 (eval $ac_compile) 2>conftest.er1
13426 grep -v '^ *+' conftest.er1 >conftest.err
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -z "$ac_c_werror_flag"
13432 || test ! -s conftest.err'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest.$ac_objext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13446 cat >conftest.$ac_ext <<_ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 $ac_includes_default
13456 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
13463 rm -f conftest.$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest.$ac_objext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_lo=$ac_mid; break
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_hi=`expr '(' $ac_mid ')' - 1`
13491 if test $ac_mid -le $ac_hi; then
13495 ac_mid=`expr 2 '*' $ac_mid`
13497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13508 # Binary search between lo and hi bounds.
13509 while test "x$ac_lo" != "x$ac_hi"; do
13510 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13521 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13528 rm -f conftest.$ac_objext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530 (eval $ac_compile) 2>conftest.er1
13532 grep -v '^ *+' conftest.er1 >conftest.err
13534 cat conftest.err >&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -z "$ac_c_werror_flag"
13538 || test ! -s conftest.err'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest.$ac_objext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_lo=`expr '(' $ac_mid ')' + 1`
13557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13560 ?*) ac_cv_sizeof_size_t=$ac_lo;;
13561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13562 See \`config.log' for more details." >&5
13563 echo "$as_me: error: cannot compute sizeof (size_t), 77
13564 See \`config.log' for more details." >&2;}
13565 { (exit 1); exit 1; }; } ;;
13568 if test "$cross_compiling" = yes; then
13569 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13570 See \`config.log' for more details." >&5
13571 echo "$as_me: error: cannot run test program while cross compiling
13572 See \`config.log' for more details." >&2;}
13573 { (exit 1); exit 1; }; }
13575 cat >conftest.$ac_ext <<_ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 $ac_includes_default
13582 long longval () { return (long) (sizeof (size_t)); }
13583 unsigned long ulongval () { return (long) (sizeof (size_t)); }
13585 #include <stdlib.h>
13590 FILE *f = fopen ("conftest.val", "w");
13593 if (((long) (sizeof (size_t))) < 0)
13595 long i = longval ();
13596 if (i != ((long) (sizeof (size_t))))
13598 fprintf (f, "%ld\n", i);
13602 unsigned long i = ulongval ();
13603 if (i != ((long) (sizeof (size_t))))
13605 fprintf (f, "%lu\n", i);
13607 exit (ferror (f) || fclose (f) != 0);
13613 rm -f conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_cv_sizeof_size_t=`cat conftest.val`
13626 echo "$as_me: program exited with status $ac_status" >&5
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ( exit $ac_status )
13631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13632 See \`config.log' for more details." >&5
13633 echo "$as_me: error: cannot compute sizeof (size_t), 77
13634 See \`config.log' for more details." >&2;}
13635 { (exit 1); exit 1; }; }
13637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13642 ac_cv_sizeof_size_t=0
13645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
13646 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
13647 cat >>confdefs.h <<_ACEOF
13648 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13652 echo "$as_me:$LINENO: checking for ssize_t" >&5
13653 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13654 if test "${ac_cv_type_ssize_t+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13669 if (sizeof (ssize_t))
13675 rm -f conftest.$ac_objext
13676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13677 (eval $ac_compile) 2>conftest.er1
13679 grep -v '^ *+' conftest.er1 >conftest.err
13681 cat conftest.err >&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } &&
13684 { ac_try='test -z "$ac_c_werror_flag"
13685 || test ! -s conftest.err'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; }; then
13697 ac_cv_type_ssize_t=yes
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 ac_cv_type_ssize_t=no
13704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13707 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13709 echo "$as_me:$LINENO: checking size of ssize_t" >&5
13710 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
13711 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 if test "$ac_cv_type_ssize_t" = yes; then
13715 # The cast to unsigned long works around a bug in the HP C Compiler
13716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13718 # This bug is HP SR number 8606223364.
13719 if test "$cross_compiling" = yes; then
13720 # Depending upon the size, compute the lo and hi bounds.
13721 cat >conftest.$ac_ext <<_ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13731 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 $ac_includes_default
13772 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781 (eval $ac_compile) 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag"
13789 || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_hi=$ac_mid; break
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_lo=`expr $ac_mid + 1`
13807 if test $ac_lo -le $ac_mid; then
13811 ac_mid=`expr 2 '*' $ac_mid + 1`
13813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13829 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838 (eval $ac_compile) 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_c_werror_flag"
13846 || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 $ac_includes_default
13870 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
13877 rm -f conftest.$ac_objext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879 (eval $ac_compile) 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_lo=$ac_mid; break
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_hi=`expr '(' $ac_mid ')' - 1`
13905 if test $ac_mid -le $ac_hi; then
13909 ac_mid=`expr 2 '*' $ac_mid`
13911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13922 # Binary search between lo and hi bounds.
13923 while test "x$ac_lo" != "x$ac_hi"; do
13924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13925 cat >conftest.$ac_ext <<_ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13935 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13942 rm -f conftest.$ac_objext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944 (eval $ac_compile) 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_lo=`expr '(' $ac_mid ')' + 1`
13971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13974 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
13975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
13976 See \`config.log' for more details." >&5
13977 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
13978 See \`config.log' for more details." >&2;}
13979 { (exit 1); exit 1; }; } ;;
13982 if test "$cross_compiling" = yes; then
13983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13984 See \`config.log' for more details." >&5
13985 echo "$as_me: error: cannot run test program while cross compiling
13986 See \`config.log' for more details." >&2;}
13987 { (exit 1); exit 1; }; }
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 $ac_includes_default
13996 long longval () { return (long) (sizeof (ssize_t)); }
13997 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
13999 #include <stdlib.h>
14004 FILE *f = fopen ("conftest.val", "w");
14007 if (((long) (sizeof (ssize_t))) < 0)
14009 long i = longval ();
14010 if (i != ((long) (sizeof (ssize_t))))
14012 fprintf (f, "%ld\n", i);
14016 unsigned long i = ulongval ();
14017 if (i != ((long) (sizeof (ssize_t))))
14019 fprintf (f, "%lu\n", i);
14021 exit (ferror (f) || fclose (f) != 0);
14027 rm -f conftest$ac_exeext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14029 (eval $ac_link) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14038 ac_cv_sizeof_ssize_t=`cat conftest.val`
14040 echo "$as_me: program exited with status $ac_status" >&5
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ( exit $ac_status )
14045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
14046 See \`config.log' for more details." >&5
14047 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
14048 See \`config.log' for more details." >&2;}
14049 { (exit 1); exit 1; }; }
14051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14056 ac_cv_sizeof_ssize_t=0
14059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
14060 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
14061 cat >>confdefs.h <<_ACEOF
14062 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
14066 echo "$as_me:$LINENO: checking for time_t" >&5
14067 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
14068 if test "${ac_cv_type_time_t+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 $ac_includes_default
14083 if (sizeof (time_t))
14089 rm -f conftest.$ac_objext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14091 (eval $ac_compile) 2>conftest.er1
14093 grep -v '^ *+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -z "$ac_c_werror_flag"
14099 || test ! -s conftest.err'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest.$ac_objext'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_type_time_t=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_cv_type_time_t=no
14118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
14121 echo "${ECHO_T}$ac_cv_type_time_t" >&6
14123 echo "$as_me:$LINENO: checking size of time_t" >&5
14124 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
14125 if test "${ac_cv_sizeof_time_t+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 if test "$ac_cv_type_time_t" = yes; then
14129 # The cast to unsigned long works around a bug in the HP C Compiler
14130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14132 # This bug is HP SR number 8606223364.
14133 if test "$cross_compiling" = yes; then
14134 # Depending upon the size, compute the lo and hi bounds.
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14145 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>conftest.er1
14156 grep -v '^ *+' conftest.er1 >conftest.err
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag"
14162 || test ! -s conftest.err'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest.$ac_objext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 $ac_includes_default
14186 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>conftest.er1
14197 grep -v '^ *+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_c_werror_flag"
14203 || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest.$ac_objext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_hi=$ac_mid; break
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_lo=`expr $ac_mid + 1`
14221 if test $ac_lo -le $ac_mid; then
14225 ac_mid=`expr 2 '*' $ac_mid + 1`
14227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14243 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -z "$ac_c_werror_flag"
14260 || test ! -s conftest.err'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14284 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>conftest.er1
14295 grep -v '^ *+' conftest.er1 >conftest.err
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag"
14301 || test ! -s conftest.err'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_lo=$ac_mid; break
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 ac_hi=`expr '(' $ac_mid ')' - 1`
14319 if test $ac_mid -le $ac_hi; then
14323 ac_mid=`expr 2 '*' $ac_mid`
14325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14336 # Binary search between lo and hi bounds.
14337 while test "x$ac_lo" != "x$ac_hi"; do
14338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 $ac_includes_default
14349 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>conftest.er1
14360 grep -v '^ *+' conftest.er1 >conftest.err
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -z "$ac_c_werror_flag"
14366 || test ! -s conftest.err'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14383 ac_lo=`expr '(' $ac_mid ')' + 1`
14385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14388 ?*) ac_cv_sizeof_time_t=$ac_lo;;
14389 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14390 See \`config.log' for more details." >&5
14391 echo "$as_me: error: cannot compute sizeof (time_t), 77
14392 See \`config.log' for more details." >&2;}
14393 { (exit 1); exit 1; }; } ;;
14396 if test "$cross_compiling" = yes; then
14397 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14398 See \`config.log' for more details." >&5
14399 echo "$as_me: error: cannot run test program while cross compiling
14400 See \`config.log' for more details." >&2;}
14401 { (exit 1); exit 1; }; }
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14410 long longval () { return (long) (sizeof (time_t)); }
14411 unsigned long ulongval () { return (long) (sizeof (time_t)); }
14413 #include <stdlib.h>
14418 FILE *f = fopen ("conftest.val", "w");
14421 if (((long) (sizeof (time_t))) < 0)
14423 long i = longval ();
14424 if (i != ((long) (sizeof (time_t))))
14426 fprintf (f, "%ld\n", i);
14430 unsigned long i = ulongval ();
14431 if (i != ((long) (sizeof (time_t))))
14433 fprintf (f, "%lu\n", i);
14435 exit (ferror (f) || fclose (f) != 0);
14441 rm -f conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452 ac_cv_sizeof_time_t=`cat conftest.val`
14454 echo "$as_me: program exited with status $ac_status" >&5
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ( exit $ac_status )
14459 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14460 See \`config.log' for more details." >&5
14461 echo "$as_me: error: cannot compute sizeof (time_t), 77
14462 See \`config.log' for more details." >&2;}
14463 { (exit 1); exit 1; }; }
14465 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14470 ac_cv_sizeof_time_t=0
14473 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
14474 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
14475 cat >>confdefs.h <<_ACEOF
14476 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14481 # Check whether --enable-shared or --disable-shared was given.
14482 if test "${enable_shared+set}" = set; then
14483 enableval="$enable_shared"
14484 p=${PACKAGE-default}
14486 yes) enable_shared=yes ;;
14487 no) enable_shared=no ;;
14490 # Look at the argument we got. We use all the common list separators.
14491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14492 for pkg in $enableval; do
14494 if test "X$pkg" = "X$p"; then
14505 # Check whether --enable-static or --disable-static was given.
14506 if test "${enable_static+set}" = set; then
14507 enableval="$enable_static"
14508 p=${PACKAGE-default}
14510 yes) enable_static=yes ;;
14511 no) enable_static=no ;;
14514 # Look at the argument we got. We use all the common list separators.
14515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14516 for pkg in $enableval; do
14518 if test "X$pkg" = "X$p"; then
14529 # Check whether --enable-fast-install or --disable-fast-install was given.
14530 if test "${enable_fast_install+set}" = set; then
14531 enableval="$enable_fast_install"
14532 p=${PACKAGE-default}
14534 yes) enable_fast_install=yes ;;
14535 no) enable_fast_install=no ;;
14537 enable_fast_install=no
14538 # Look at the argument we got. We use all the common list separators.
14539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14540 for pkg in $enableval; do
14542 if test "X$pkg" = "X$p"; then
14543 enable_fast_install=yes
14550 enable_fast_install=yes
14553 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14554 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14555 if test "${lt_cv_path_SED+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 # Loop through the user's path and test for sed and gsed.
14559 # Then use that list of sed's as ones to test for truncation.
14560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561 for as_dir in $PATH
14564 test -z "$as_dir" && as_dir=.
14565 for lt_ac_prog in sed gsed; do
14566 for ac_exec_ext in '' $ac_executable_extensions; do
14567 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14568 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14575 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14576 # along with /bin/sed that truncates output.
14577 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14578 test ! -f $lt_ac_sed && continue
14579 cat /dev/null > conftest.in
14581 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14582 # Check for GNU sed and select it if it is found.
14583 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14584 lt_cv_path_SED=$lt_ac_sed
14588 cat conftest.in conftest.in >conftest.tmp
14589 mv conftest.tmp conftest.in
14590 cp conftest.in conftest.nl
14592 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14593 cmp -s conftest.out conftest.nl || break
14594 # 10000 chars as input seems more than enough
14595 test $lt_ac_count -gt 10 && break
14596 lt_ac_count=`expr $lt_ac_count + 1`
14597 if test $lt_ac_count -gt $lt_ac_max; then
14598 lt_ac_max=$lt_ac_count
14599 lt_cv_path_SED=$lt_ac_sed
14606 SED=$lt_cv_path_SED
14607 echo "$as_me:$LINENO: result: $SED" >&5
14608 echo "${ECHO_T}$SED" >&6
14611 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14612 if test "${with_gnu_ld+set}" = set; then
14613 withval="$with_gnu_ld"
14614 test "$withval" = no || with_gnu_ld=yes
14619 if test "$GCC" = yes; then
14620 # Check if gcc -print-prog-name=ld gives a path.
14621 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14622 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14625 # gcc leaves a trailing carriage return which upsets mingw
14626 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14628 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14631 # Accept absolute paths.
14633 re_direlt='/[^/][^/]*/\.\./'
14634 # Canonicalize the pathname of ld
14635 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14636 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14637 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14639 test -z "$LD" && LD="$ac_prog"
14642 # If it fails, then pretend we aren't using GCC.
14646 # If it is relative, then search for the first ld in PATH.
14647 with_gnu_ld=unknown
14650 elif test "$with_gnu_ld" = yes; then
14651 echo "$as_me:$LINENO: checking for GNU ld" >&5
14652 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14654 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14655 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14657 if test "${lt_cv_path_LD+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 if test -z "$LD"; then
14661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14662 for ac_dir in $PATH; do
14664 test -z "$ac_dir" && ac_dir=.
14665 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14666 lt_cv_path_LD="$ac_dir/$ac_prog"
14667 # Check to see if the program is GNU ld. I'd rather use --version,
14668 # but apparently some variants of GNU ld only accept -v.
14669 # Break only if it was the GNU/non-GNU ld that we prefer.
14670 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14671 *GNU* | *'with BFD'*)
14672 test "$with_gnu_ld" != no && break
14675 test "$with_gnu_ld" != yes && break
14682 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14686 LD="$lt_cv_path_LD"
14687 if test -n "$LD"; then
14688 echo "$as_me:$LINENO: result: $LD" >&5
14689 echo "${ECHO_T}$LD" >&6
14691 echo "$as_me:$LINENO: result: no" >&5
14692 echo "${ECHO_T}no" >&6
14694 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14695 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14696 { (exit 1); exit 1; }; }
14697 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14698 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14699 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14703 case `$LD -v 2>&1 </dev/null` in
14704 *GNU* | *'with BFD'*)
14705 lt_cv_prog_gnu_ld=yes
14708 lt_cv_prog_gnu_ld=no
14712 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14713 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14714 with_gnu_ld=$lt_cv_prog_gnu_ld
14717 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14718 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14719 if test "${lt_cv_ld_reload_flag+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 lt_cv_ld_reload_flag='-r'
14724 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14725 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14726 reload_flag=$lt_cv_ld_reload_flag
14727 case $reload_flag in
14729 *) reload_flag=" $reload_flag" ;;
14731 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14734 if test "$GCC" = yes; then
14735 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
14737 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14742 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
14743 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
14744 if test "${lt_cv_path_NM+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 if test -n "$NM"; then
14748 # Let the user override the test.
14749 lt_cv_path_NM="$NM"
14751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14752 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
14754 test -z "$ac_dir" && ac_dir=.
14755 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
14756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14757 # Check to see if the nm accepts a BSD-compat flag.
14758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14759 # nm: unknown option "B" ignored
14760 # Tru64's nm complains that /dev/null is an invalid object file
14761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14762 */dev/null* | *'Invalid file or object type'*)
14763 lt_cv_path_NM="$tmp_nm -B"
14767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14769 lt_cv_path_NM="$tmp_nm -p"
14773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14774 continue # so that we can try to find one that supports BSD flags
14781 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
14784 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14785 echo "${ECHO_T}$lt_cv_path_NM" >&6
14786 NM="$lt_cv_path_NM"
14788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14791 if test "$LN_S" = "ln -s"; then
14792 echo "$as_me:$LINENO: result: yes" >&5
14793 echo "${ECHO_T}yes" >&6
14795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14796 echo "${ECHO_T}no, using $LN_S" >&6
14799 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
14800 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
14801 if test "${lt_cv_deplibs_check_method+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 lt_cv_file_magic_cmd='$MAGIC_CMD'
14805 lt_cv_file_magic_test_file=
14806 lt_cv_deplibs_check_method='unknown'
14807 # Need to set the preceding variable on all platforms that support
14808 # interlibrary dependencies.
14809 # 'none' -- dependencies not supported.
14810 # `unknown' -- same as none, but documents that we really don't know.
14811 # 'pass_all' -- all dependencies passed with no checks.
14812 # 'test_compile' -- check by making test program.
14813 # 'file_magic [[regex]]' -- check by looking for files in library path
14814 # which responds to the $file_magic_cmd with a given extended regex.
14815 # If you have `file' or equivalent on your system and you're not sure
14816 # whether `pass_all' will *always* work, you probably want this one.
14820 lt_cv_deplibs_check_method=pass_all
14824 lt_cv_deplibs_check_method=pass_all
14828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14829 lt_cv_file_magic_cmd='/usr/bin/file -L'
14830 lt_cv_file_magic_test_file=/shlib/libc.so
14834 # func_win32_libid is a shell function defined in ltmain.sh
14835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14836 lt_cv_file_magic_cmd='func_win32_libid'
14840 # Base MSYS/MinGW do not provide the 'file' command needed by
14841 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14842 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14843 lt_cv_file_magic_cmd='$OBJDUMP -f'
14846 darwin* | rhapsody*)
14847 lt_cv_deplibs_check_method=pass_all
14850 freebsd* | kfreebsd*-gnu | dragonfly*)
14851 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14854 # Not sure whether the presence of OpenBSD here was a mistake.
14855 # Let's accept both of them until this is cleared up.
14856 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14857 lt_cv_file_magic_cmd=/usr/bin/file
14858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14862 lt_cv_deplibs_check_method=pass_all
14867 lt_cv_deplibs_check_method=pass_all
14870 hpux10.20* | hpux11*)
14871 lt_cv_file_magic_cmd=/usr/bin/file
14874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14875 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14878 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]'
14879 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14882 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14883 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14888 irix5* | irix6* | nonstopux*)
14890 *-32|*"-32 ") libmagic=32-bit;;
14891 *-n32|*"-n32 ") libmagic=N32;;
14892 *-64|*"-64 ") libmagic=64-bit;;
14893 *) libmagic=never-match;;
14895 lt_cv_deplibs_check_method=pass_all
14898 # This must be Linux ELF.
14900 lt_cv_deplibs_check_method=pass_all
14904 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14913 lt_cv_file_magic_cmd=/usr/bin/file
14914 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14918 lt_cv_deplibs_check_method=unknown
14922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14929 osf3* | osf4* | osf5*)
14930 lt_cv_deplibs_check_method=pass_all
14934 lt_cv_deplibs_check_method=pass_all
14938 lt_cv_deplibs_check_method=pass_all
14941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14942 case $host_vendor in
14944 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]'
14945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14948 lt_cv_deplibs_check_method=pass_all
14951 lt_cv_file_magic_cmd='/bin/file'
14952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14955 lt_cv_file_magic_cmd='/bin/file'
14956 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14957 lt_cv_file_magic_test_file=/lib/libc.so
14960 lt_cv_deplibs_check_method=pass_all
14965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
14966 lt_cv_deplibs_check_method=pass_all
14971 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14972 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14973 file_magic_cmd=$lt_cv_file_magic_cmd
14974 deplibs_check_method=$lt_cv_deplibs_check_method
14975 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14978 # If no C compiler was specified, use CC.
14981 # Allow CC to be a program name with arguments.
14984 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14985 if test "${enable_libtool_lock+set}" = set; then
14986 enableval="$enable_libtool_lock"
14989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14991 # Some flags need to be propagated to the compiler or linker for good
14995 # Find out which ABI we are using.
14996 echo 'int i;' > conftest.$ac_ext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998 (eval $ac_compile) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; then
15002 case `/usr/bin/file conftest.$ac_objext` in
15004 HPUX_IA64_MODE="32"
15007 HPUX_IA64_MODE="64"
15014 # Find out which ABI we are using.
15015 echo '#line 15015 "configure"' > conftest.$ac_ext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15017 (eval $ac_compile) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; then
15021 if test "$lt_cv_prog_gnu_ld" = yes; then
15022 case `/usr/bin/file conftest.$ac_objext` in
15024 LD="${LD-ld} -melf32bsmip"
15027 LD="${LD-ld} -melf32bmipn32"
15030 LD="${LD-ld} -melf64bmip"
15034 case `/usr/bin/file conftest.$ac_objext` in
15050 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
15051 # Find out which ABI we are using.
15052 echo 'int i;' > conftest.$ac_ext
15053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15054 (eval $ac_compile) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; then
15058 case `/usr/bin/file conftest.o` in
15062 LD="${LD-ld} -m elf_i386"
15064 ppc64-*linux*|powerpc64-*linux*)
15065 LD="${LD-ld} -m elf32ppclinux"
15068 LD="${LD-ld} -m elf_s390"
15071 LD="${LD-ld} -m elf32_sparc"
15078 LD="${LD-ld} -m elf_x86_64"
15080 ppc*-*linux*|powerpc*-*linux*)
15081 LD="${LD-ld} -m elf64ppc"
15084 LD="${LD-ld} -m elf64_s390"
15087 LD="${LD-ld} -m elf64_sparc"
15097 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15098 SAVE_CFLAGS="$CFLAGS"
15099 CFLAGS="$CFLAGS -belf"
15100 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15101 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15102 if test "${lt_cv_cc_needs_belf+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 ac_cpp='$CPP $CPPFLAGS'
15107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15111 cat >conftest.$ac_ext <<_ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>conftest.er1
15130 grep -v '^ *+' conftest.er1 >conftest.err
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest$ac_exeext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 lt_cv_cc_needs_belf=yes
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 lt_cv_cc_needs_belf=no
15155 rm -f conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15158 ac_cpp='$CPP $CPPFLAGS'
15159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15164 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15165 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15166 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15167 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15168 CFLAGS="$SAVE_CFLAGS"
15174 need_locks="$enable_libtool_lock"
15178 for ac_header in dlfcn.h
15180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15182 echo "$as_me:$LINENO: checking for $ac_header" >&5
15183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15190 # Is the header compilable?
15191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 $ac_includes_default
15200 #include <$ac_header>
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>conftest.er1
15206 grep -v '^ *+' conftest.er1 >conftest.err
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
15211 { ac_try='test -z "$ac_c_werror_flag"
15212 || test ! -s conftest.err'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_header_compiler=yes
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 ac_header_compiler=no
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15233 echo "${ECHO_T}$ac_header_compiler" >&6
15235 # Is the header present?
15236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 #include <$ac_header>
15246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } >/dev/null; then
15254 if test -s conftest.err; then
15255 ac_cpp_err=$ac_c_preproc_warn_flag
15256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15263 if test -z "$ac_cpp_err"; then
15264 ac_header_preproc=yes
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ac_header_preproc=no
15271 rm -f conftest.err conftest.$ac_ext
15272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15273 echo "${ECHO_T}$ac_header_preproc" >&6
15275 # So? What about this header?
15276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15282 ac_header_preproc=yes
15285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15299 ## ------------------------------------------ ##
15300 ## Report this to the AC_PACKAGE_NAME lists. ##
15301 ## ------------------------------------------ ##
15304 sed "s/^/$as_me: WARNING: /" >&2
15307 echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 eval "$as_ac_Header=\$ac_header_preproc"
15314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15319 cat >>confdefs.h <<_ACEOF
15320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15328 ac_cpp='$CXXCPP $CPPFLAGS'
15329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15332 if test -n "$ac_tool_prefix"; then
15333 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15337 echo "$as_me:$LINENO: checking for $ac_word" >&5
15338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15339 if test "${ac_cv_prog_CXX+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 if test -n "$CXX"; then
15343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346 for as_dir in $PATH
15349 test -z "$as_dir" && as_dir=.
15350 for ac_exec_ext in '' $ac_executable_extensions; do
15351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15361 CXX=$ac_cv_prog_CXX
15362 if test -n "$CXX"; then
15363 echo "$as_me:$LINENO: result: $CXX" >&5
15364 echo "${ECHO_T}$CXX" >&6
15366 echo "$as_me:$LINENO: result: no" >&5
15367 echo "${ECHO_T}no" >&6
15370 test -n "$CXX" && break
15373 if test -z "$CXX"; then
15375 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15377 # Extract the first word of "$ac_prog", so it can be a program name with args.
15378 set dummy $ac_prog; ac_word=$2
15379 echo "$as_me:$LINENO: checking for $ac_word" >&5
15380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15381 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 if test -n "$ac_ct_CXX"; then
15385 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15388 for as_dir in $PATH
15391 test -z "$as_dir" && as_dir=.
15392 for ac_exec_ext in '' $ac_executable_extensions; do
15393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15394 ac_cv_prog_ac_ct_CXX="$ac_prog"
15395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15404 if test -n "$ac_ct_CXX"; then
15405 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15406 echo "${ECHO_T}$ac_ct_CXX" >&6
15408 echo "$as_me:$LINENO: result: no" >&5
15409 echo "${ECHO_T}no" >&6
15412 test -n "$ac_ct_CXX" && break
15414 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15420 # Provide some information about the compiler.
15421 echo "$as_me:$LINENO:" \
15422 "checking for C++ compiler version" >&5
15423 ac_compiler=`set X $ac_compile; echo $2`
15424 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15425 (eval $ac_compiler --version </dev/null >&5) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }
15429 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15430 (eval $ac_compiler -v </dev/null >&5) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }
15434 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15435 (eval $ac_compiler -V </dev/null >&5) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }
15440 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15441 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15442 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15463 rm -f conftest.$ac_objext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465 (eval $ac_compile) 2>conftest.er1
15467 grep -v '^ *+' conftest.er1 >conftest.err
15469 cat conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -z "$ac_cxx_werror_flag"
15473 || test ! -s conftest.err'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; } &&
15479 { ac_try='test -s conftest.$ac_objext'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 ac_compiler_gnu=yes
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15498 GXX=`test $ac_compiler_gnu = yes && echo yes`
15499 ac_test_CXXFLAGS=${CXXFLAGS+set}
15500 ac_save_CXXFLAGS=$CXXFLAGS
15502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15504 if test "${ac_cv_prog_cxx_g+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524 (eval $ac_compile) 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_cxx_werror_flag"
15532 || test ! -s conftest.err'
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); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_cv_prog_cxx_g=yes
15546 echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15549 ac_cv_prog_cxx_g=no
15551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15553 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15554 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15555 if test "$ac_test_CXXFLAGS" = set; then
15556 CXXFLAGS=$ac_save_CXXFLAGS
15557 elif test $ac_cv_prog_cxx_g = yes; then
15558 if test "$GXX" = yes; then
15564 if test "$GXX" = yes; then
15570 for ac_declaration in \
15572 'extern "C" void std::exit (int) throw (); using std::exit;' \
15573 'extern "C" void std::exit (int); using std::exit;' \
15574 'extern "C" void exit (int) throw ();' \
15575 'extern "C" void exit (int);' \
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 #include <stdlib.h>
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596 (eval $ac_compile) 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_cxx_werror_flag"
15604 || test ! -s conftest.err'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15624 cat >conftest.$ac_ext <<_ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15639 rm -f conftest.$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>conftest.er1
15643 grep -v '^ *+' conftest.er1 >conftest.err
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_cxx_werror_flag"
15649 || test ! -s conftest.err'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; } &&
15655 { ac_try='test -s conftest.$ac_objext'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15670 if test -n "$ac_declaration"; then
15671 echo '#ifdef __cplusplus' >>confdefs.h
15672 echo $ac_declaration >>confdefs.h
15673 echo '#endif' >>confdefs.h
15677 ac_cpp='$CXXCPP $CPPFLAGS'
15678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15682 depcc="$CXX" am_compiler_list=
15684 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15685 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15686 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15690 # We make a subdir and do the tests there. Otherwise we can end up
15691 # making bogus files that we don't know about and never remove. For
15692 # instance it was reported that on HP-UX the gcc test will end up
15693 # making a dummy file named `D' -- because `-MD' means `put the output
15696 # Copy depcomp to subdir because otherwise we won't find it if we're
15697 # using a relative directory.
15698 cp "$am_depcomp" conftest.dir
15700 # We will build objects and dependencies in a subdirectory because
15701 # it helps to detect inapplicable dependency modes. For instance
15702 # both Tru64's cc and ICC support -MD to output dependencies as a
15703 # side effect of compilation, but ICC will put the dependencies in
15704 # the current directory while Tru64 will put them in the object
15708 am_cv_CXX_dependencies_compiler_type=none
15709 if test "$am_compiler_list" = ""; then
15710 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15712 for depmode in $am_compiler_list; do
15713 # Setup a source with many dependencies, because some compilers
15714 # like to wrap large dependency lists on column 80 (with \), and
15715 # we should not choose a depcomp mode which is confused by this.
15717 # We need to recreate these files for each test, as the compiler may
15718 # overwrite some of them when testing with obscure command lines.
15719 # This happens at least with the AIX C compiler.
15721 for i in 1 2 3 4 5 6; do
15722 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15723 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15724 # Solaris 8's {/usr,}/bin/sh.
15725 touch sub/conftst$i.h
15727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15731 # after this tag, mechanisms are not by side-effect, so they'll
15732 # only be used when explicitly requested
15733 if test "x$enable_dependency_tracking" = xyes; then
15741 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15742 # mode. It turns out that the SunPro C++ compiler does not properly
15743 # handle `-M -o', and we need to detect this.
15744 if depmode=$depmode \
15745 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15747 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15748 >/dev/null 2>conftest.err &&
15749 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15750 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15751 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15752 # icc doesn't choke on unknown options, it will just issue warnings
15753 # or remarks (even with -Werror). So we grep stderr for any message
15754 # that says an option was ignored or not supported.
15755 # When given -MP, icc 7.0 and 7.1 complain thusly:
15756 # icc: Command line warning: ignoring option '-M'; no argument required
15757 # The diagnosis changed in icc 8.0:
15758 # icc: Command line remark: option '-MP' not supported
15759 if (grep 'ignoring option' conftest.err ||
15760 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15761 am_cv_CXX_dependencies_compiler_type=$depmode
15768 rm -rf conftest.dir
15770 am_cv_CXX_dependencies_compiler_type=none
15774 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15775 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15776 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15781 test "x$enable_dependency_tracking" != xno \
15782 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15783 am__fastdepCXX_TRUE=
15784 am__fastdepCXX_FALSE='#'
15786 am__fastdepCXX_TRUE='#'
15787 am__fastdepCXX_FALSE=
15793 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15794 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15795 (test "X$CXX" != "Xg++"))) ; then
15797 ac_cpp='$CXXCPP $CPPFLAGS'
15798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15801 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15802 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15803 if test -z "$CXXCPP"; then
15804 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 # Double quotes because CXXCPP needs to be expanded
15808 for CXXCPP in "$CXX -E" "/lib/cpp"
15810 ac_preproc_ok=false
15811 for ac_cxx_preproc_warn_flag in '' yes
15813 # Use a header file that comes with gcc, so configuring glibc
15814 # with a fresh cross-compiler works.
15815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15816 # <limits.h> exists even on freestanding compilers.
15817 # On the NeXT, cc -E runs the code through the compiler's parser,
15818 # not just through cpp. "Syntax error" is here to catch this case.
15819 cat >conftest.$ac_ext <<_ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15826 # include <limits.h>
15828 # include <assert.h>
15832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } >/dev/null; then
15840 if test -s conftest.err; then
15841 ac_cpp_err=$ac_cxx_preproc_warn_flag
15842 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15849 if test -z "$ac_cpp_err"; then
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 # Broken: fails on valid input.
15858 rm -f conftest.err conftest.$ac_ext
15860 # OK, works on sane cases. Now check whether non-existent headers
15861 # can be detected and how.
15862 cat >conftest.$ac_ext <<_ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 #include <ac_nonexistent.h>
15870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } >/dev/null; then
15878 if test -s conftest.err; then
15879 ac_cpp_err=$ac_cxx_preproc_warn_flag
15880 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15887 if test -z "$ac_cpp_err"; then
15888 # Broken: success on invalid input.
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 # Passes both tests.
15898 rm -f conftest.err conftest.$ac_ext
15901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15902 rm -f conftest.err conftest.$ac_ext
15903 if $ac_preproc_ok; then
15908 ac_cv_prog_CXXCPP=$CXXCPP
15911 CXXCPP=$ac_cv_prog_CXXCPP
15913 ac_cv_prog_CXXCPP=$CXXCPP
15915 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15916 echo "${ECHO_T}$CXXCPP" >&6
15917 ac_preproc_ok=false
15918 for ac_cxx_preproc_warn_flag in '' yes
15920 # Use a header file that comes with gcc, so configuring glibc
15921 # with a fresh cross-compiler works.
15922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15923 # <limits.h> exists even on freestanding compilers.
15924 # On the NeXT, cc -E runs the code through the compiler's parser,
15925 # not just through cpp. "Syntax error" is here to catch this case.
15926 cat >conftest.$ac_ext <<_ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15933 # include <limits.h>
15935 # include <assert.h>
15939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15942 grep -v '^ *+' conftest.er1 >conftest.err
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } >/dev/null; then
15947 if test -s conftest.err; then
15948 ac_cpp_err=$ac_cxx_preproc_warn_flag
15949 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15956 if test -z "$ac_cpp_err"; then
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 # Broken: fails on valid input.
15965 rm -f conftest.err conftest.$ac_ext
15967 # OK, works on sane cases. Now check whether non-existent headers
15968 # can be detected and how.
15969 cat >conftest.$ac_ext <<_ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975 #include <ac_nonexistent.h>
15977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15980 grep -v '^ *+' conftest.er1 >conftest.err
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } >/dev/null; then
15985 if test -s conftest.err; then
15986 ac_cpp_err=$ac_cxx_preproc_warn_flag
15987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15994 if test -z "$ac_cpp_err"; then
15995 # Broken: success on invalid input.
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 # Passes both tests.
16005 rm -f conftest.err conftest.$ac_ext
16008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16009 rm -f conftest.err conftest.$ac_ext
16010 if $ac_preproc_ok; then
16013 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16014 See \`config.log' for more details." >&5
16015 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16016 See \`config.log' for more details." >&2;}
16017 { (exit 1); exit 1; }; }
16021 ac_cpp='$CXXCPP $CPPFLAGS'
16022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16030 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16031 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16032 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16033 if test -n "$ac_tool_prefix"; then
16034 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16038 echo "$as_me:$LINENO: checking for $ac_word" >&5
16039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16040 if test "${ac_cv_prog_F77+set}" = set; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 if test -n "$F77"; then
16044 ac_cv_prog_F77="$F77" # Let the user override the test.
16046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH
16050 test -z "$as_dir" && as_dir=.
16051 for ac_exec_ext in '' $ac_executable_extensions; do
16052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16053 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16062 F77=$ac_cv_prog_F77
16063 if test -n "$F77"; then
16064 echo "$as_me:$LINENO: result: $F77" >&5
16065 echo "${ECHO_T}$F77" >&6
16067 echo "$as_me:$LINENO: result: no" >&5
16068 echo "${ECHO_T}no" >&6
16071 test -n "$F77" && break
16074 if test -z "$F77"; then
16076 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16078 # Extract the first word of "$ac_prog", so it can be a program name with args.
16079 set dummy $ac_prog; ac_word=$2
16080 echo "$as_me:$LINENO: checking for $ac_word" >&5
16081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16082 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 if test -n "$ac_ct_F77"; then
16086 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16089 for as_dir in $PATH
16092 test -z "$as_dir" && as_dir=.
16093 for ac_exec_ext in '' $ac_executable_extensions; do
16094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16095 ac_cv_prog_ac_ct_F77="$ac_prog"
16096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16104 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16105 if test -n "$ac_ct_F77"; then
16106 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
16107 echo "${ECHO_T}$ac_ct_F77" >&6
16109 echo "$as_me:$LINENO: result: no" >&5
16110 echo "${ECHO_T}no" >&6
16113 test -n "$ac_ct_F77" && break
16120 # Provide some information about the compiler.
16121 echo "$as_me:16121:" \
16122 "checking for Fortran 77 compiler version" >&5
16123 ac_compiler=`set X $ac_compile; echo $2`
16124 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16125 (eval $ac_compiler --version </dev/null >&5) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }
16129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16130 (eval $ac_compiler -v </dev/null >&5) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }
16134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16135 (eval $ac_compiler -V </dev/null >&5) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }
16141 # If we don't use `.F' as extension, the preprocessor is not run on the
16142 # input file. (Note that this only needs to work for GNU compilers.)
16143 ac_save_ext=$ac_ext
16145 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
16146 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
16147 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 cat >conftest.$ac_ext <<_ACEOF
16158 rm -f conftest.$ac_objext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16160 (eval $ac_compile) 2>conftest.er1
16162 grep -v '^ *+' conftest.er1 >conftest.err
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -z "$ac_f77_werror_flag"
16168 || test ! -s conftest.err'
16169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170 (eval $ac_try) 2>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; } &&
16174 { ac_try='test -s conftest.$ac_objext'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 ac_compiler_gnu=yes
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16188 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16191 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
16192 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
16193 ac_ext=$ac_save_ext
16194 ac_test_FFLAGS=${FFLAGS+set}
16195 ac_save_FFLAGS=$FFLAGS
16197 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
16198 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
16199 if test "${ac_cv_prog_f77_g+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 cat >conftest.$ac_ext <<_ACEOF
16208 rm -f conftest.$ac_objext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>conftest.er1
16212 grep -v '^ *+' conftest.er1 >conftest.err
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -z "$ac_f77_werror_flag"
16218 || test ! -s conftest.err'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_cv_prog_f77_g=yes
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_cv_prog_f77_g=no
16237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16240 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16241 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16242 if test "$ac_test_FFLAGS" = set; then
16243 FFLAGS=$ac_save_FFLAGS
16244 elif test $ac_cv_prog_f77_g = yes; then
16245 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16251 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16258 G77=`test $ac_compiler_gnu = yes && echo yes`
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16267 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16269 # find the maximum length of command line arguments
16270 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16271 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16272 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 # On DJGPP, this test can blow up pretty badly due to problems in libc
16281 # (any single argument exceeding 2000 bytes causes a buffer overrun
16282 # during glob expansion). Even if it were fixed, the result of this
16283 # check would be larger than it should be.
16284 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16288 # Under GNU Hurd, this test is not required because there is
16289 # no limit to the length of command line arguments.
16290 # Libtool will interpret -1 as no limit whatsoever
16291 lt_cv_sys_max_cmd_len=-1;
16295 # On Win9x/ME, this test blows up -- it succeeds, but takes
16296 # about 5 minutes as the teststring grows exponentially.
16297 # Worse, since 9x/ME are not pre-emptively multitasking,
16298 # you end up with a "frozen" computer, even though with patience
16299 # the test eventually succeeds (with a max line length of 256k).
16300 # Instead, let's just punt: use the minimum linelength reported by
16301 # all of the supported platforms: 8192 (on NT/2K/XP).
16302 lt_cv_sys_max_cmd_len=8192;
16306 # On AmigaOS with pdksh, this test takes hours, literally.
16307 # So we just punt and use a minimum line length of 8192.
16308 lt_cv_sys_max_cmd_len=8192;
16311 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16312 # This has been around since 386BSD, at least. Likely further.
16313 if test -x /sbin/sysctl; then
16314 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16315 elif test -x /usr/sbin/sysctl; then
16316 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16318 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16320 # And add a safety zone
16321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16325 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16326 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16327 # nice to cause kernel panics so lets avoid the loop below.
16328 # First set a reasonable default.
16329 lt_cv_sys_max_cmd_len=16384
16331 if test -x /sbin/sysconfig; then
16332 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16333 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16338 # If test is not a shell built-in, we'll probably end up computing a
16339 # maximum length that is only half of the actual maximum length, but
16341 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16342 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16343 = "XX$teststring") >/dev/null 2>&1 &&
16344 new_result=`expr "X$teststring" : ".*" 2>&1` &&
16345 lt_cv_sys_max_cmd_len=$new_result &&
16346 test $i != 17 # 1/2 MB should be enough
16349 teststring=$teststring$teststring
16352 # Add a significant safety factor because C++ compilers can tack on massive
16353 # amounts of additional arguments before passing them to the linker.
16354 # It appears as though 1/2 is a usable value.
16355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16361 if test -n $lt_cv_sys_max_cmd_len ; then
16362 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16363 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16365 echo "$as_me:$LINENO: result: none" >&5
16366 echo "${ECHO_T}none" >&6
16372 # Check for command to grab the raw symbol name followed by C symbol from nm.
16373 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16374 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16375 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 # These are sane defaults that work on at least a few old systems.
16380 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16382 # Character class describing NM global symbol codes.
16383 symcode='[BCDEGRST]'
16385 # Regexp to match symbols that can be accessed directly from C.
16386 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16388 # Transform an extracted symbol line into a proper C declaration
16389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16391 # Transform an extracted symbol line into symbol name and symbol address
16392 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'"
16394 # Define system-specific variables.
16399 cygwin* | mingw* | pw32*)
16400 symcode='[ABCDGISTW]'
16402 hpux*) # Its linker distinguishes data from code symbols
16403 if test "$host_cpu" = ia64; then
16404 symcode='[ABCDEGRST]'
16406 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16407 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'"
16410 if test "$host_cpu" = ia64; then
16411 symcode='[ABCDGIRSTW]'
16412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16413 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'"
16416 irix* | nonstopux*)
16417 symcode='[BCDEGRST]'
16420 symcode='[BCDEGQRST]'
16430 # Handle CRLF in mingw tool chain
16434 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16438 # If we're using GNU nm, then use its standard symbol codes.
16439 case `$NM -V 2>&1` in
16440 *GNU* | *'with BFD'*)
16441 symcode='[ABCDGIRSTW]' ;;
16444 # Try without a prefix undercore, then with it.
16445 for ac_symprfx in "" "_"; do
16447 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16448 symxfrm="\\1 $ac_symprfx\\2 \\2"
16450 # Write the raw and C identifiers.
16451 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16453 # Check to see that the pipe works correctly.
16457 cat > conftest.$ac_ext <<EOF
16462 void nm_test_func(){}
16466 int main(){nm_test_var='a';nm_test_func();return(0);}
16469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16470 (eval $ac_compile) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; then
16474 # Now try to grab the symbols.
16476 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16477 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } && test -s "$nlist"; then
16481 # Try sorting and uniquifying the output.
16482 if sort "$nlist" | uniq > "$nlist"T; then
16483 mv -f "$nlist"T "$nlist"
16488 # Make sure that we snagged all the symbols we need.
16489 if grep ' nm_test_var$' "$nlist" >/dev/null; then
16490 if grep ' nm_test_func$' "$nlist" >/dev/null; then
16491 cat <<EOF > conftest.$ac_ext
16497 # Now generate the symbol file.
16498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16500 cat <<EOF >> conftest.$ac_ext
16501 #if defined (__STDC__) && __STDC__
16502 # define lt_ptr_t void *
16504 # define lt_ptr_t char *
16508 /* The mapping between symbol names and symbols. */
16513 lt_preloaded_symbols[] =
16516 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16517 cat <<\EOF >> conftest.$ac_ext
16525 # Now try linking the two files.
16526 mv conftest.$ac_objext conftstm.$ac_objext
16527 lt_save_LIBS="$LIBS"
16528 lt_save_CFLAGS="$CFLAGS"
16529 LIBS="conftstm.$ac_objext"
16530 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } && test -s conftest${ac_exeext}; then
16538 LIBS="$lt_save_LIBS"
16539 CFLAGS="$lt_save_CFLAGS"
16541 echo "cannot find nm_test_func in $nlist" >&5
16544 echo "cannot find nm_test_var in $nlist" >&5
16547 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16550 echo "$progname: failed program was:" >&5
16551 cat conftest.$ac_ext >&5
16553 rm -f conftest* conftst*
16555 # Do not use the global_symbol_pipe unless it works.
16556 if test "$pipe_works" = yes; then
16559 lt_cv_sys_global_symbol_pipe=
16565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16566 lt_cv_sys_global_symbol_to_cdecl=
16568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16569 echo "$as_me:$LINENO: result: failed" >&5
16570 echo "${ECHO_T}failed" >&6
16572 echo "$as_me:$LINENO: result: ok" >&5
16573 echo "${ECHO_T}ok" >&6
16576 echo "$as_me:$LINENO: checking for objdir" >&5
16577 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16578 if test "${lt_cv_objdir+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 rm -f .libs 2>/dev/null
16582 mkdir .libs 2>/dev/null
16583 if test -d .libs; then
16586 # MS-DOS does not allow filenames that begin with a dot.
16589 rmdir .libs 2>/dev/null
16591 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16592 echo "${ECHO_T}$lt_cv_objdir" >&6
16593 objdir=$lt_cv_objdir
16601 # AIX sometimes has problems with the GCC collect2 program. For some
16602 # reason, if we set the COLLECT_NAMES environment variable, the problems
16603 # vanish in a puff of smoke.
16604 if test "X${COLLECT_NAMES+set}" != Xset; then
16606 export COLLECT_NAMES
16611 # Sed substitution that helps us do robust quoting. It backslashifies
16612 # metacharacters that are still active within double-quoted strings.
16613 Xsed='sed -e 1s/^X//'
16614 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16616 # Same as above, but do not quote variable references.
16617 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
16619 # Sed substitution to delay expansion of an escaped shell variable in a
16620 # double_quote_subst'ed string.
16621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16623 # Sed substitution to avoid accidental globbing in evaled expressions
16624 no_glob_subst='s/\*/\\\*/g'
16629 # Global variables:
16630 default_ofile=libtool
16631 can_build_shared=yes
16633 # All known linkers require a `.a' archive for static linking (except MSVC,
16634 # which needs '.lib').
16636 ltmain="$ac_aux_dir/ltmain.sh"
16637 ofile="$default_ofile"
16638 with_gnu_ld="$lt_cv_prog_gnu_ld"
16640 if test -n "$ac_tool_prefix"; then
16641 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16642 set dummy ${ac_tool_prefix}ar; ac_word=$2
16643 echo "$as_me:$LINENO: checking for $ac_word" >&5
16644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16645 if test "${ac_cv_prog_AR+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 if test -n "$AR"; then
16649 ac_cv_prog_AR="$AR" # Let the user override the test.
16651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16652 for as_dir in $PATH
16655 test -z "$as_dir" && as_dir=.
16656 for ac_exec_ext in '' $ac_executable_extensions; do
16657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16658 ac_cv_prog_AR="${ac_tool_prefix}ar"
16659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16668 if test -n "$AR"; then
16669 echo "$as_me:$LINENO: result: $AR" >&5
16670 echo "${ECHO_T}$AR" >&6
16672 echo "$as_me:$LINENO: result: no" >&5
16673 echo "${ECHO_T}no" >&6
16677 if test -z "$ac_cv_prog_AR"; then
16679 # Extract the first word of "ar", so it can be a program name with args.
16680 set dummy ar; ac_word=$2
16681 echo "$as_me:$LINENO: checking for $ac_word" >&5
16682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16683 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 if test -n "$ac_ct_AR"; then
16687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690 for as_dir in $PATH
16693 test -z "$as_dir" && as_dir=.
16694 for ac_exec_ext in '' $ac_executable_extensions; do
16695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16696 ac_cv_prog_ac_ct_AR="ar"
16697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16703 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16706 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16707 if test -n "$ac_ct_AR"; then
16708 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16709 echo "${ECHO_T}$ac_ct_AR" >&6
16711 echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6
16717 AR="$ac_cv_prog_AR"
16720 if test -n "$ac_tool_prefix"; then
16721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16723 echo "$as_me:$LINENO: checking for $ac_word" >&5
16724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16725 if test "${ac_cv_prog_RANLIB+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 if test -n "$RANLIB"; then
16729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16732 for as_dir in $PATH
16735 test -z "$as_dir" && as_dir=.
16736 for ac_exec_ext in '' $ac_executable_extensions; do
16737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16747 RANLIB=$ac_cv_prog_RANLIB
16748 if test -n "$RANLIB"; then
16749 echo "$as_me:$LINENO: result: $RANLIB" >&5
16750 echo "${ECHO_T}$RANLIB" >&6
16752 echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6
16757 if test -z "$ac_cv_prog_RANLIB"; then
16758 ac_ct_RANLIB=$RANLIB
16759 # Extract the first word of "ranlib", so it can be a program name with args.
16760 set dummy ranlib; ac_word=$2
16761 echo "$as_me:$LINENO: checking for $ac_word" >&5
16762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 if test -n "$ac_ct_RANLIB"; then
16767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16770 for as_dir in $PATH
16773 test -z "$as_dir" && as_dir=.
16774 for ac_exec_ext in '' $ac_executable_extensions; do
16775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16776 ac_cv_prog_ac_ct_RANLIB="ranlib"
16777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16783 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16787 if test -n "$ac_ct_RANLIB"; then
16788 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16789 echo "${ECHO_T}$ac_ct_RANLIB" >&6
16791 echo "$as_me:$LINENO: result: no" >&5
16792 echo "${ECHO_T}no" >&6
16795 RANLIB=$ac_ct_RANLIB
16797 RANLIB="$ac_cv_prog_RANLIB"
16800 if test -n "$ac_tool_prefix"; then
16801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16802 set dummy ${ac_tool_prefix}strip; ac_word=$2
16803 echo "$as_me:$LINENO: checking for $ac_word" >&5
16804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16805 if test "${ac_cv_prog_STRIP+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 if test -n "$STRIP"; then
16809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16812 for as_dir in $PATH
16815 test -z "$as_dir" && as_dir=.
16816 for ac_exec_ext in '' $ac_executable_extensions; do
16817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16827 STRIP=$ac_cv_prog_STRIP
16828 if test -n "$STRIP"; then
16829 echo "$as_me:$LINENO: result: $STRIP" >&5
16830 echo "${ECHO_T}$STRIP" >&6
16832 echo "$as_me:$LINENO: result: no" >&5
16833 echo "${ECHO_T}no" >&6
16837 if test -z "$ac_cv_prog_STRIP"; then
16839 # Extract the first word of "strip", so it can be a program name with args.
16840 set dummy strip; ac_word=$2
16841 echo "$as_me:$LINENO: checking for $ac_word" >&5
16842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16843 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 if test -n "$ac_ct_STRIP"; then
16847 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16850 for as_dir in $PATH
16853 test -z "$as_dir" && as_dir=.
16854 for ac_exec_ext in '' $ac_executable_extensions; do
16855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16856 ac_cv_prog_ac_ct_STRIP="strip"
16857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16863 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16866 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16867 if test -n "$ac_ct_STRIP"; then
16868 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16869 echo "${ECHO_T}$ac_ct_STRIP" >&6
16871 echo "$as_me:$LINENO: result: no" >&5
16872 echo "${ECHO_T}no" >&6
16877 STRIP="$ac_cv_prog_STRIP"
16882 old_CFLAGS="$CFLAGS"
16884 # Set sane defaults for various variables
16885 test -z "$AR" && AR=ar
16886 test -z "$AR_FLAGS" && AR_FLAGS=cru
16887 test -z "$AS" && AS=as
16888 test -z "$CC" && CC=cc
16889 test -z "$LTCC" && LTCC=$CC
16890 test -z "$DLLTOOL" && DLLTOOL=dlltool
16891 test -z "$LD" && LD=ld
16892 test -z "$LN_S" && LN_S="ln -s"
16893 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16894 test -z "$NM" && NM=nm
16895 test -z "$SED" && SED=sed
16896 test -z "$OBJDUMP" && OBJDUMP=objdump
16897 test -z "$RANLIB" && RANLIB=:
16898 test -z "$STRIP" && STRIP=:
16899 test -z "$ac_objext" && ac_objext=o
16901 # Determine commands to create old-style static archives.
16902 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16903 old_postinstall_cmds='chmod 644 $oldlib'
16904 old_postuninstall_cmds=
16906 if test -n "$RANLIB"; then
16909 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
16912 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
16915 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16918 for cc_temp in $compiler""; do
16920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16929 # Only perform the check for file, if the check method requires it
16930 case $deplibs_check_method in
16932 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16933 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16934 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16935 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16943 lt_save_MAGIC_CMD="$MAGIC_CMD"
16944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16946 for ac_dir in $ac_dummy; do
16948 test -z "$ac_dir" && ac_dir=.
16949 if test -f $ac_dir/${ac_tool_prefix}file; then
16950 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16951 if test -n "$file_magic_test_file"; then
16952 case $deplibs_check_method in
16954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16957 $EGREP "$file_magic_regex" > /dev/null; then
16962 *** Warning: the command libtool uses to detect shared libraries,
16963 *** $file_magic_cmd, produces output that libtool cannot recognize.
16964 *** The result is that libtool may fail to recognize shared libraries
16965 *** as such. This will affect the creation of libtool libraries that
16966 *** depend on shared libraries, but programs linked with such libtool
16967 *** libraries will work regardless of this problem. Nevertheless, you
16968 *** may want to report the problem to your system manager and/or to
16969 *** bug-libtool@gnu.org
16979 MAGIC_CMD="$lt_save_MAGIC_CMD"
16984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16985 if test -n "$MAGIC_CMD"; then
16986 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16987 echo "${ECHO_T}$MAGIC_CMD" >&6
16989 echo "$as_me:$LINENO: result: no" >&5
16990 echo "${ECHO_T}no" >&6
16993 if test -z "$lt_cv_path_MAGIC_CMD"; then
16994 if test -n "$ac_tool_prefix"; then
16995 echo "$as_me:$LINENO: checking for file" >&5
16996 echo $ECHO_N "checking for file... $ECHO_C" >&6
16997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17005 lt_save_MAGIC_CMD="$MAGIC_CMD"
17006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17008 for ac_dir in $ac_dummy; do
17010 test -z "$ac_dir" && ac_dir=.
17011 if test -f $ac_dir/file; then
17012 lt_cv_path_MAGIC_CMD="$ac_dir/file"
17013 if test -n "$file_magic_test_file"; then
17014 case $deplibs_check_method in
17016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17019 $EGREP "$file_magic_regex" > /dev/null; then
17024 *** Warning: the command libtool uses to detect shared libraries,
17025 *** $file_magic_cmd, produces output that libtool cannot recognize.
17026 *** The result is that libtool may fail to recognize shared libraries
17027 *** as such. This will affect the creation of libtool libraries that
17028 *** depend on shared libraries, but programs linked with such libtool
17029 *** libraries will work regardless of this problem. Nevertheless, you
17030 *** may want to report the problem to your system manager and/or to
17031 *** bug-libtool@gnu.org
17041 MAGIC_CMD="$lt_save_MAGIC_CMD"
17046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17047 if test -n "$MAGIC_CMD"; then
17048 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17049 echo "${ECHO_T}$MAGIC_CMD" >&6
17051 echo "$as_me:$LINENO: result: no" >&5
17052 echo "${ECHO_T}no" >&6
17065 enable_win32_dll=no
17067 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17068 if test "${enable_libtool_lock+set}" = set; then
17069 enableval="$enable_libtool_lock"
17072 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17075 # Check whether --with-pic or --without-pic was given.
17076 if test "${with_pic+set}" = set; then
17077 withval="$with_pic"
17078 pic_mode="$withval"
17082 test -z "$pic_mode" && pic_mode=default
17084 # Use C for the default configuration in the libtool script
17088 ac_cpp='$CPP $CPPFLAGS'
17089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17094 # Source file extension for C test sources.
17097 # Object file extension for compiled C test sources.
17101 # Code to be used in simple compile tests
17102 lt_simple_compile_test_code="int some_variable = 0;\n"
17104 # Code to be used in simple link tests
17105 lt_simple_link_test_code='int main(){return(0);}\n'
17108 # If no C compiler was specified, use CC.
17111 # Allow CC to be a program name with arguments.
17115 # save warnings/boilerplate of simple test code
17116 ac_outfile=conftest.$ac_objext
17117 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17119 _lt_compiler_boilerplate=`cat conftest.err`
17122 ac_outfile=conftest.$ac_objext
17123 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17125 _lt_linker_boilerplate=`cat conftest.err`
17130 # Check for any special shared library compilation flags.
17133 if test "$GCC" = no; then
17136 lt_prog_cc_shlib='-belf'
17140 if test -n "$lt_prog_cc_shlib"; then
17141 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17142 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17143 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
17145 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17146 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17147 lt_cv_prog_cc_can_build_shared=no
17153 # Check to make sure the static flag actually works.
17155 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17156 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17157 if test "${lt_prog_compiler_static_works+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 lt_prog_compiler_static_works=no
17161 save_LDFLAGS="$LDFLAGS"
17162 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17163 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17164 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17165 # The linker can only warn and ignore the option if not recognized
17166 # So say no if there are warnings
17167 if test -s conftest.err; then
17168 # Append any errors to the config.log.
17169 cat conftest.err 1>&5
17170 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
17171 $SED '/^$/d' conftest.err >conftest.er2
17172 if diff conftest.exp conftest.er2 >/dev/null; then
17173 lt_prog_compiler_static_works=yes
17176 lt_prog_compiler_static_works=yes
17180 LDFLAGS="$save_LDFLAGS"
17183 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17184 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17186 if test x"$lt_prog_compiler_static_works" = xyes; then
17189 lt_prog_compiler_static=
17195 ## There is no encapsulation within the following macros, do not change
17196 ## the running order or otherwise move them around unless you know exactly
17197 ## what you are doing...
17199 lt_prog_compiler_no_builtin_flag=
17201 if test "$GCC" = yes; then
17202 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17205 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17206 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17207 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 lt_cv_prog_compiler_rtti_exceptions=no
17211 ac_outfile=conftest.$ac_objext
17212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17213 lt_compiler_flag="-fno-rtti -fno-exceptions"
17214 # Insert the option either (1) after the last *FLAGS variable, or
17215 # (2) before a word containing "conftest.", or (3) at the end.
17216 # Note that $ac_compile itself does not contain backslashes and begins
17217 # with a dollar sign (not a hyphen), so the echo should work correctly.
17218 # The option is referenced via a variable to avoid confusing sed.
17219 lt_compile=`echo "$ac_compile" | $SED \
17220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17222 -e 's:$: $lt_compiler_flag:'`
17223 (eval echo "\"\$as_me:17223: $lt_compile\"" >&5)
17224 (eval "$lt_compile" 2>conftest.err)
17226 cat conftest.err >&5
17227 echo "$as_me:17227: \$? = $ac_status" >&5
17228 if (exit $ac_status) && test -s "$ac_outfile"; then
17229 # The compiler can only warn and ignore the option if not recognized
17230 # So say no if there are warnings other than the usual output.
17231 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17232 $SED '/^$/d' conftest.err >conftest.er2
17233 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17234 lt_cv_prog_compiler_rtti_exceptions=yes
17240 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17241 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17243 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17244 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17251 lt_prog_compiler_wl=
17252 lt_prog_compiler_pic=
17253 lt_prog_compiler_static=
17255 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17258 if test "$GCC" = yes; then
17259 lt_prog_compiler_wl='-Wl,'
17260 lt_prog_compiler_static='-static'
17264 # All AIX code is PIC.
17265 if test "$host_cpu" = ia64; then
17266 # AIX 5 now supports IA64 processor
17267 lt_prog_compiler_static='-Bstatic'
17272 # FIXME: we need at least 68020 code to build shared libraries, but
17273 # adding the `-m68020' flag to GCC prevents building anything better,
17275 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17278 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17279 # PIC is the default for these OSes.
17282 mingw* | pw32* | os2*)
17283 # This hack is so that the source file can tell whether it is being
17284 # built for inclusion in a dll (and should export symbols for example).
17285 lt_prog_compiler_pic='-DDLL_EXPORT'
17288 darwin* | rhapsody*)
17289 # PIC is the default on this platform
17290 # Common symbols not allowed in MH_DYLIB files
17291 lt_prog_compiler_pic='-fno-common'
17295 # Just because we use GCC doesn't mean we suddenly get shared libraries
17296 # on systems that don't support them.
17297 lt_prog_compiler_can_build_shared=no
17302 if test -d /usr/nec; then
17303 lt_prog_compiler_pic=-Kconform_pic
17308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17309 # not for PA HP-UX.
17315 lt_prog_compiler_pic='-fPIC'
17321 lt_prog_compiler_pic='-fPIC'
17325 # PORTME Check for flag to pass linker flags through the system compiler.
17328 lt_prog_compiler_wl='-Wl,'
17329 if test "$host_cpu" = ia64; then
17330 # AIX 5 now supports IA64 processor
17331 lt_prog_compiler_static='-Bstatic'
17333 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17337 # PIC is the default on this platform
17338 # Common symbols not allowed in MH_DYLIB files
17339 case $cc_basename in
17341 lt_prog_compiler_pic='-qnocommon'
17342 lt_prog_compiler_wl='-Wl,'
17347 mingw* | pw32* | os2*)
17348 # This hack is so that the source file can tell whether it is being
17349 # built for inclusion in a dll (and should export symbols for example).
17350 lt_prog_compiler_pic='-DDLL_EXPORT'
17353 hpux9* | hpux10* | hpux11*)
17354 lt_prog_compiler_wl='-Wl,'
17355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17356 # not for PA HP-UX.
17362 lt_prog_compiler_pic='+Z'
17365 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17366 lt_prog_compiler_static='${wl}-a ${wl}archive'
17369 irix5* | irix6* | nonstopux*)
17370 lt_prog_compiler_wl='-Wl,'
17371 # PIC (with -KPIC) is the default.
17372 lt_prog_compiler_static='-non_shared'
17376 lt_prog_compiler_pic='-KPIC'
17377 lt_prog_compiler_static='-Bstatic'
17381 case $cc_basename in
17383 lt_prog_compiler_wl='-Wl,'
17384 lt_prog_compiler_pic='-KPIC'
17385 lt_prog_compiler_static='-static'
17387 pgcc* | pgf77* | pgf90* | pgf95*)
17388 # Portland Group compilers (*not* the Pentium gcc compiler,
17389 # which looks to be a dead project)
17390 lt_prog_compiler_wl='-Wl,'
17391 lt_prog_compiler_pic='-fpic'
17392 lt_prog_compiler_static='-Bstatic'
17395 lt_prog_compiler_wl='-Wl,'
17396 # All Alpha code is PIC.
17397 lt_prog_compiler_static='-non_shared'
17402 osf3* | osf4* | osf5*)
17403 lt_prog_compiler_wl='-Wl,'
17404 # All OSF/1 code is PIC.
17405 lt_prog_compiler_static='-non_shared'
17409 lt_prog_compiler_pic='-Kpic'
17410 lt_prog_compiler_static='-dn'
17414 lt_prog_compiler_pic='-KPIC'
17415 lt_prog_compiler_static='-Bstatic'
17416 case $cc_basename in
17417 f77* | f90* | f95*)
17418 lt_prog_compiler_wl='-Qoption ld ';;
17420 lt_prog_compiler_wl='-Wl,';;
17425 lt_prog_compiler_wl='-Qoption ld '
17426 lt_prog_compiler_pic='-PIC'
17427 lt_prog_compiler_static='-Bstatic'
17430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17431 lt_prog_compiler_wl='-Wl,'
17432 lt_prog_compiler_pic='-KPIC'
17433 lt_prog_compiler_static='-Bstatic'
17437 if test -d /usr/nec ;then
17438 lt_prog_compiler_pic='-Kconform_pic'
17439 lt_prog_compiler_static='-Bstatic'
17444 lt_prog_compiler_wl='-Wl,'
17445 lt_prog_compiler_can_build_shared=no
17449 lt_prog_compiler_pic='-pic'
17450 lt_prog_compiler_static='-Bstatic'
17454 lt_prog_compiler_can_build_shared=no
17459 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17460 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17463 # Check to make sure the PIC flag actually works.
17465 if test -n "$lt_prog_compiler_pic"; then
17467 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17468 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17469 if test "${lt_prog_compiler_pic_works+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 lt_prog_compiler_pic_works=no
17473 ac_outfile=conftest.$ac_objext
17474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17475 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17476 # Insert the option either (1) after the last *FLAGS variable, or
17477 # (2) before a word containing "conftest.", or (3) at the end.
17478 # Note that $ac_compile itself does not contain backslashes and begins
17479 # with a dollar sign (not a hyphen), so the echo should work correctly.
17480 # The option is referenced via a variable to avoid confusing sed.
17481 lt_compile=`echo "$ac_compile" | $SED \
17482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17484 -e 's:$: $lt_compiler_flag:'`
17485 (eval echo "\"\$as_me:17485: $lt_compile\"" >&5)
17486 (eval "$lt_compile" 2>conftest.err)
17488 cat conftest.err >&5
17489 echo "$as_me:17489: \$? = $ac_status" >&5
17490 if (exit $ac_status) && test -s "$ac_outfile"; then
17491 # The compiler can only warn and ignore the option if not recognized
17492 # So say no if there are warnings other than the usual output.
17493 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17494 $SED '/^$/d' conftest.err >conftest.er2
17495 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17496 lt_prog_compiler_pic_works=yes
17502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17503 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17505 if test x"$lt_prog_compiler_pic_works" = xyes; then
17506 case $lt_prog_compiler_pic in
17508 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17511 lt_prog_compiler_pic=
17512 lt_prog_compiler_can_build_shared=no
17517 # For platforms which do not support PIC, -DPIC is meaningless:
17519 lt_prog_compiler_pic=
17522 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17526 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17527 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17528 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 lt_cv_prog_compiler_c_o=no
17532 $rm -r conftest 2>/dev/null
17536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17538 lt_compiler_flag="-o out/conftest2.$ac_objext"
17539 # Insert the option either (1) after the last *FLAGS variable, or
17540 # (2) before a word containing "conftest.", or (3) at the end.
17541 # Note that $ac_compile itself does not contain backslashes and begins
17542 # with a dollar sign (not a hyphen), so the echo should work correctly.
17543 lt_compile=`echo "$ac_compile" | $SED \
17544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17546 -e 's:$: $lt_compiler_flag:'`
17547 (eval echo "\"\$as_me:17547: $lt_compile\"" >&5)
17548 (eval "$lt_compile" 2>out/conftest.err)
17550 cat out/conftest.err >&5
17551 echo "$as_me:17551: \$? = $ac_status" >&5
17552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17554 # The compiler can only warn and ignore the option if not recognized
17555 # So say no if there are warnings
17556 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17557 $SED '/^$/d' out/conftest.err >out/conftest.er2
17558 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17559 lt_cv_prog_compiler_c_o=yes
17564 # SGI C++ compiler will create directory out/ii_files/ for
17565 # template instantiation
17566 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17567 $rm out/* && rmdir out
17573 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17574 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17577 hard_links="nottested"
17578 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17579 # do not overwrite the value of need_locks provided by the user
17580 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17581 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17586 ln conftest.a conftest.b 2>&5 || hard_links=no
17587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17588 echo "$as_me:$LINENO: result: $hard_links" >&5
17589 echo "${ECHO_T}$hard_links" >&6
17590 if test "$hard_links" = no; then
17591 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17592 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17599 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17600 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17603 allow_undefined_flag=
17604 enable_shared_with_static_runtimes=no
17606 archive_expsym_cmds=
17607 old_archive_From_new_cmds=
17608 old_archive_from_expsyms_cmds=
17609 export_dynamic_flag_spec=
17610 whole_archive_flag_spec=
17611 thread_safe_flag_spec=
17612 hardcode_libdir_flag_spec=
17613 hardcode_libdir_flag_spec_ld=
17614 hardcode_libdir_separator=
17616 hardcode_minus_L=no
17617 hardcode_shlibpath_var=unsupported
17618 link_all_deplibs=unknown
17619 hardcode_automatic=no
17621 module_expsym_cmds=
17622 always_export_symbols=no
17623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17624 # include_expsyms should be a list of space-separated symbols to be *always*
17625 # included in the symbol list
17627 # exclude_expsyms can be an extended regexp of symbols to exclude
17628 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17629 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17630 # as well as any symbol that contains `d'.
17631 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17633 # platforms (ab)use it in PIC code, but their linkers get confused if
17634 # the symbol is explicitly referenced. Since portable code cannot
17635 # rely on this symbol name, it's probably fine to never include it in
17636 # preloaded symbol tables.
17637 extract_expsyms_cmds=
17638 # Just being paranoid about ensuring that cc_basename is set.
17639 for cc_temp in $compiler""; do
17641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17647 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17650 cygwin* | mingw* | pw32*)
17651 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17652 # When not using gcc, we currently assume that we are using
17653 # Microsoft Visual C++.
17654 if test "$GCC" != yes; then
17664 if test "$with_gnu_ld" = yes; then
17665 # If archive_cmds runs LD, not CC, wlarc should be empty
17668 # Set some defaults for GNU ld with shared library support. These
17669 # are reset later if shared libraries are not supported. Putting them
17670 # here allows them to be overridden if necessary.
17671 runpath_var=LD_RUN_PATH
17672 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17673 export_dynamic_flag_spec='${wl}--export-dynamic'
17674 # ancient GNU ld didn't support --whole-archive et. al.
17675 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17676 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17678 whole_archive_flag_spec=
17680 supports_anon_versioning=no
17681 case `$LD -v 2>/dev/null` in
17682 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17683 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17684 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17685 *\ 2.11.*) ;; # other 2.11 versions
17686 *) supports_anon_versioning=yes ;;
17689 # See if GNU ld supports shared libraries.
17691 aix3* | aix4* | aix5*)
17692 # On AIX/PPC, the GNU linker is very broken
17693 if test "$host_cpu" != ia64; then
17697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17698 *** to be unable to reliably create shared libraries on AIX.
17699 *** Therefore, libtool is disabling shared libraries support. If you
17700 *** really care for shared libraries, you may want to modify your PATH
17701 *** so that a non-GNU linker is found, and then restart.
17708 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)'
17709 hardcode_libdir_flag_spec='-L$libdir'
17710 hardcode_minus_L=yes
17712 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17713 # that the semantics of dynamic libraries on AmigaOS, at least up
17714 # to version 4, is to share data among multiple programs linked
17715 # with the same dynamic library. Since this doesn't match the
17716 # behavior of shared libraries on other platforms, we can't use
17722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17723 allow_undefined_flag=unsupported
17724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17725 # support --undefined. This deserves some investigation. FIXME
17726 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732 cygwin* | mingw* | pw32*)
17733 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17734 # as there is no search path for DLLs.
17735 hardcode_libdir_flag_spec='-L$libdir'
17736 allow_undefined_flag=unsupported
17737 always_export_symbols=no
17738 enable_shared_with_static_runtimes=yes
17739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17741 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17743 # If the export-symbols file already is a .def file (1st line
17744 # is EXPORTS), use it as is; otherwise, prepend...
17745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17746 cp $export_symbols $output_objdir/$soname.def;
17748 echo EXPORTS > $output_objdir/$soname.def;
17749 cat $export_symbols >> $output_objdir/$soname.def;
17751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17760 case $cc_basename,$host_cpu in
17761 pgcc*) # Portland Group C compiler
17762 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'
17763 tmp_addflag=' $pic_flag'
17765 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17766 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'
17767 tmp_addflag=' $pic_flag -Mnomain' ;;
17768 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17769 tmp_addflag=' -i_dynamic' ;;
17770 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17771 tmp_addflag=' -i_dynamic -nofor_main' ;;
17772 ifc* | ifort*) # Intel Fortran compiler
17773 tmp_addflag=' -nofor_main' ;;
17775 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17777 if test $supports_anon_versioning = yes; then
17778 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17780 $echo "local: *; };" >> $output_objdir/$libname.ver~
17781 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17790 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17799 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17804 *** create shared libraries on Solaris systems. Therefore, libtool
17805 *** is disabling shared libraries support. We urge you to upgrade GNU
17806 *** binutils to release 2.9.1 or newer. Another option is to modify
17807 *** your PATH or compiler configuration so that the native linker is
17808 *** used, and then restart.
17811 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17820 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17822 hardcode_direct=yes
17823 hardcode_shlibpath_var=no
17827 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17836 if test "$ld_shlibs" = no; then
17838 hardcode_libdir_flag_spec=
17839 export_dynamic_flag_spec=
17840 whole_archive_flag_spec=
17843 # PORTME fill in a description of your system's linker (not GNU ld)
17846 allow_undefined_flag=unsupported
17847 always_export_symbols=yes
17848 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'
17849 # Note: this linker hardcodes the directories in LIBPATH if there
17850 # are no directories specified by -L.
17851 hardcode_minus_L=yes
17852 if test "$GCC" = yes && test -z "$link_static_flag"; then
17853 # Neither direct hardcoding nor static linking is supported with a
17855 hardcode_direct=unsupported
17860 if test "$host_cpu" = ia64; then
17861 # On IA64, the linker does run time linking by default, so we don't
17862 # have to do anything special.
17863 aix_use_runtimelinking=no
17864 exp_sym_flag='-Bexport'
17867 # If we're using GNU nm, then we don't want the "-C" option.
17868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17869 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17870 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'
17872 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'
17874 aix_use_runtimelinking=no
17876 # Test if we are trying to use run time linking or normal
17877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17878 # need to do runtime linking.
17879 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17880 for ld_flag in $LDFLAGS; do
17881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17882 aix_use_runtimelinking=yes
17888 exp_sym_flag='-bexport'
17889 no_entry_flag='-bnoentry'
17892 # When large executables or shared objects are built, AIX ld can
17893 # have problems creating the table of contents. If linking a library
17894 # or program results in "error TOC overflow" add -mminimal-toc to
17895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17899 hardcode_direct=yes
17900 hardcode_libdir_separator=':'
17901 link_all_deplibs=yes
17903 if test "$GCC" = yes; then
17904 case $host_os in aix4.[012]|aix4.[012].*)
17905 # We only want to do this on AIX 4.2 and lower, the check
17906 # below for broken collect2 doesn't work under 4.3+
17907 collect2name=`${CC} -print-prog-name=collect2`
17908 if test -f "$collect2name" && \
17909 strings "$collect2name" | grep resolve_lib_name >/dev/null
17911 # We have reworked collect2
17912 hardcode_direct=yes
17914 # We have old collect2
17915 hardcode_direct=unsupported
17916 # It fails to find uninstalled libraries when the uninstalled
17917 # path is not listed in the libpath. Setting hardcode_minus_L
17918 # to unsupported forces relinking
17919 hardcode_minus_L=yes
17920 hardcode_libdir_flag_spec='-L$libdir'
17921 hardcode_libdir_separator=
17924 shared_flag='-shared'
17925 if test "$aix_use_runtimelinking" = yes; then
17926 shared_flag="$shared_flag "'${wl}-G'
17930 if test "$host_cpu" = ia64; then
17931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17932 # chokes on -Wl,-G. The following line is correct:
17935 if test "$aix_use_runtimelinking" = yes; then
17936 shared_flag='${wl}-G'
17938 shared_flag='${wl}-bM:SRE'
17943 # It seems that -bexpall does not export symbols beginning with
17944 # underscore (_), so it is better to generate a list of symbols to export.
17945 always_export_symbols=yes
17946 if test "$aix_use_runtimelinking" = yes; then
17947 # Warning - without using the other runtime loading flags (-brtl),
17948 # -berok will link without error, but may produce a broken library.
17949 allow_undefined_flag='-berok'
17950 # Determine the default libpath from the value encoded in an empty executable.
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17968 (eval $ac_link) 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag"
17976 || test ! -s conftest.err'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try='test -s conftest$ac_exeext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17991 # Check for a 64-bit object if we didn't find anything.
17992 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; }
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17999 rm -f conftest.err conftest.$ac_objext \
18000 conftest$ac_exeext conftest.$ac_ext
18001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18004 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"
18006 if test "$host_cpu" = ia64; then
18007 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18008 allow_undefined_flag="-z nodefs"
18009 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"
18011 # Determine the default libpath from the value encoded in an empty executable.
18012 cat >conftest.$ac_ext <<_ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029 (eval $ac_link) 2>conftest.er1
18031 grep -v '^ *+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
18036 { ac_try='test -z "$ac_c_werror_flag"
18037 || test ! -s conftest.err'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
18050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18052 # Check for a 64-bit object if we didn't find anything.
18053 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; }
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18060 rm -f conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18064 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18065 # Warning - without using the other run time loading flags,
18066 # -berok will link without error, but may produce a broken library.
18067 no_undefined_flag=' ${wl}-bernotok'
18068 allow_undefined_flag=' ${wl}-berok'
18069 # -bexpall does not export symbols beginning with underscore (_)
18070 always_export_symbols=yes
18071 # Exported symbols can be pulled into shared objects from archives
18072 whole_archive_flag_spec=' '
18073 archive_cmds_need_lc=yes
18074 # This is similar to how AIX traditionally builds its shared libraries.
18075 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'
18081 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)'
18082 hardcode_libdir_flag_spec='-L$libdir'
18083 hardcode_minus_L=yes
18084 # see comment about different semantics on the GNU ld section
18089 export_dynamic_flag_spec=-rdynamic
18092 cygwin* | mingw* | pw32*)
18093 # When not using gcc, we currently assume that we are using
18094 # Microsoft Visual C++.
18095 # hardcode_libdir_flag_spec is actually meaningless, as there is
18096 # no search path for DLLs.
18097 hardcode_libdir_flag_spec=' '
18098 allow_undefined_flag=unsupported
18099 # Tell ltmain to make .lib files, not .a files.
18101 # Tell ltmain to make .dll files, not .so files.
18103 # FIXME: Setting linknames here is a bad hack.
18104 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18105 # The linker will automatically build a .lib file if we build a DLL.
18106 old_archive_From_new_cmds='true'
18107 # FIXME: Should let the user specify the lib program.
18108 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18109 fix_srcfile_path='`cygpath -w "$srcfile"`'
18110 enable_shared_with_static_runtimes=yes
18113 darwin* | rhapsody*)
18115 rhapsody* | darwin1.[012])
18116 allow_undefined_flag='${wl}-undefined ${wl}suppress'
18119 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18120 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18122 case ${MACOSX_DEPLOYMENT_TARGET} in
18124 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18127 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18133 archive_cmds_need_lc=no
18135 hardcode_automatic=yes
18136 hardcode_shlibpath_var=unsupported
18137 whole_archive_flag_spec=''
18138 link_all_deplibs=yes
18139 if test "$GCC" = yes ; then
18140 output_verbose_link_cmd='echo'
18141 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18142 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18143 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18144 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}'
18145 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}'
18147 case $cc_basename in
18149 output_verbose_link_cmd='echo'
18150 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18151 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18153 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}'
18154 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}'
18164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165 hardcode_libdir_flag_spec='-L$libdir'
18166 hardcode_shlibpath_var=no
18173 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18174 # support. Future versions do this automatically, but an explicit c++rt0.o
18175 # does not break anything, and helps significantly (at the cost of a little
18178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18179 hardcode_libdir_flag_spec='-R$libdir'
18180 hardcode_direct=yes
18181 hardcode_shlibpath_var=no
18184 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18187 hardcode_direct=yes
18188 hardcode_minus_L=yes
18189 hardcode_shlibpath_var=no
18192 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18193 freebsd* | kfreebsd*-gnu | dragonfly*)
18194 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18195 hardcode_libdir_flag_spec='-R$libdir'
18196 hardcode_direct=yes
18197 hardcode_shlibpath_var=no
18201 if test "$GCC" = yes; then
18202 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'
18204 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'
18206 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18207 hardcode_libdir_separator=:
18208 hardcode_direct=yes
18210 # hardcode_minus_L: Not really in the search PATH,
18211 # but as the default location of the library.
18212 hardcode_minus_L=yes
18213 export_dynamic_flag_spec='${wl}-E'
18217 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18220 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18223 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18229 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18236 if test "$with_gnu_ld" = no; then
18239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18240 hardcode_libdir_flag_spec_ld='+b $libdir'
18241 hardcode_libdir_separator=:
18243 hardcode_shlibpath_var=no
18246 hardcode_libdir_flag_spec='-L$libdir'
18248 hardcode_shlibpath_var=no
18250 # hardcode_minus_L: Not really in the search PATH,
18251 # but as the default location of the library.
18252 hardcode_minus_L=yes
18255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18256 hardcode_libdir_separator=:
18257 hardcode_direct=yes
18258 export_dynamic_flag_spec='${wl}-E'
18260 # hardcode_minus_L: Not really in the search PATH,
18261 # but as the default location of the library.
18262 hardcode_minus_L=yes
18268 irix5* | irix6* | nonstopux*)
18269 if test "$GCC" = yes; then
18270 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'
18272 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'
18273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
18275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18276 hardcode_libdir_separator=:
18277 link_all_deplibs=yes
18281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18286 hardcode_libdir_flag_spec='-R$libdir'
18287 hardcode_direct=yes
18288 hardcode_shlibpath_var=no
18292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18293 hardcode_direct=yes
18294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18295 hardcode_libdir_separator=:
18296 hardcode_shlibpath_var=no
18300 hardcode_direct=yes
18301 hardcode_shlibpath_var=no
18302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18304 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18305 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18306 export_dynamic_flag_spec='${wl}-E'
18309 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18311 hardcode_libdir_flag_spec='-R$libdir'
18314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18322 hardcode_libdir_flag_spec='-L$libdir'
18323 hardcode_minus_L=yes
18324 allow_undefined_flag=unsupported
18325 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'
18326 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18330 if test "$GCC" = yes; then
18331 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18332 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'
18334 allow_undefined_flag=' -expect_unresolved \*'
18335 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'
18337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18338 hardcode_libdir_separator=:
18341 osf4* | osf5*) # as osf3* with the addition of -msym flag
18342 if test "$GCC" = yes; then
18343 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18344 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'
18345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18347 allow_undefined_flag=' -expect_unresolved \*'
18348 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'
18349 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18350 $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'
18352 # Both c and cxx compiler support -rpath directly
18353 hardcode_libdir_flag_spec='-rpath $libdir'
18355 hardcode_libdir_separator=:
18359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360 hardcode_shlibpath_var=no
18361 export_dynamic_flag_spec='${wl}-Bexport'
18362 runpath_var=LD_RUN_PATH
18363 hardcode_runpath_var=yes
18367 no_undefined_flag=' -z text'
18368 if test "$GCC" = yes; then
18370 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18372 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18375 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18376 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18377 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18379 hardcode_libdir_flag_spec='-R$libdir'
18380 hardcode_shlibpath_var=no
18382 solaris2.[0-5] | solaris2.[0-5].*) ;;
18384 # The compiler driver will combine linker options so we
18385 # cannot just pass the convience library names through
18386 # without $wl, iff we do not link with $LD.
18387 # Luckily, gcc supports the same syntax we need for Sun Studio.
18388 # Supported since Solaris 2.6 (maybe 2.5.1?)
18391 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18393 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' ;;
18396 link_all_deplibs=yes
18400 if test "x$host_vendor" = xsequent; then
18401 # Use $CC to link under sequent, because it throws in some extra .o
18402 # files that make .init and .fini sections work.
18403 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18405 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18407 hardcode_libdir_flag_spec='-L$libdir'
18408 hardcode_direct=yes
18409 hardcode_minus_L=yes
18410 hardcode_shlibpath_var=no
18414 case $host_vendor in
18416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18417 hardcode_direct=yes # is this really true???
18420 ## LD is ld it makes a PLAMLIB
18421 ## CC just makes a GrossModule.
18422 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18423 reload_cmds='$CC -r -o $output$reload_objs'
18427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18428 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18431 runpath_var='LD_RUN_PATH'
18432 hardcode_shlibpath_var=no
18436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18437 hardcode_shlibpath_var=no
18438 export_dynamic_flag_spec='-Bexport'
18442 if test -d /usr/nec; then
18443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18444 hardcode_shlibpath_var=no
18445 runpath_var=LD_RUN_PATH
18446 hardcode_runpath_var=yes
18452 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18453 hardcode_direct=yes
18454 hardcode_minus_L=no
18455 hardcode_shlibpath_var=no
18456 hardcode_runpath_var=yes
18457 runpath_var=LD_RUN_PATH
18460 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18461 no_undefined_flag='${wl}-z ${wl}text'
18462 if test "$GCC" = yes; then
18463 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18465 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18467 runpath_var='LD_RUN_PATH'
18468 hardcode_shlibpath_var=no
18472 no_undefined_flag=' -z text'
18473 # $CC -shared without GNU ld will not create a library from C++
18474 # object files and a static libstdc++, better avoid it by now
18475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18476 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18478 hardcode_libdir_flag_spec=
18479 hardcode_shlibpath_var=no
18480 runpath_var='LD_RUN_PATH'
18484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18485 hardcode_libdir_flag_spec='-L$libdir'
18486 hardcode_shlibpath_var=no
18495 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18496 echo "${ECHO_T}$ld_shlibs" >&6
18497 test "$ld_shlibs" = no && can_build_shared=no
18499 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18500 if test "$GCC" = yes; then
18501 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18505 # Do we need to explicitly link libc?
18507 case "x$archive_cmds_need_lc" in
18509 # Assume -lc should be added
18510 archive_cmds_need_lc=yes
18512 if test "$enable_shared" = yes && test "$GCC" = yes; then
18513 case $archive_cmds in
18515 # FIXME: we may have to deal with multi-command sequences.
18518 # Test whether the compiler implicitly links with -lc since on some
18519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18520 # to ld, don't add -lc before -lgcc.
18521 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18522 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18527 (eval $ac_compile) 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } 2>conftest.err; then
18533 libobjs=conftest.$ac_objext
18535 wl=$lt_prog_compiler_wl
18541 lt_save_allow_undefined_flag=$allow_undefined_flag
18542 allow_undefined_flag=
18543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18544 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }
18549 archive_cmds_need_lc=no
18551 archive_cmds_need_lc=yes
18553 allow_undefined_flag=$lt_save_allow_undefined_flag
18555 cat conftest.err 1>&5
18558 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18559 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18566 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18567 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18568 library_names_spec=
18569 libname_spec='lib$name'
18573 postuninstall_cmds=
18577 shlibpath_overrides_runpath=unknown
18579 dynamic_linker="$host_os ld.so"
18580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18581 if test "$GCC" = yes; then
18582 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18583 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18584 # if the path contains ";" then we assume it to be the separator
18585 # otherwise default to the standard path separator (i.e. ":") - it is
18586 # assumed that no part of a normal pathname contains ";" but that should
18587 # okay in the real world where ";" in dirpaths is itself problematic.
18588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18595 need_lib_prefix=unknown
18596 hardcode_into_libs=no
18598 # when you set need_version to no, make sure it does not cause -set_version
18599 # flags to be left without arguments
18600 need_version=unknown
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18606 shlibpath_var=LIBPATH
18608 # AIX 3 has no versioning support, so we append a major version to the name.
18609 soname_spec='${libname}${release}${shared_ext}$major'
18616 hardcode_into_libs=yes
18617 if test "$host_cpu" = ia64; then
18618 # AIX 5 supports IA64
18619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18620 shlibpath_var=LD_LIBRARY_PATH
18622 # With GCC up to 2.95.x, collect2 would create an import file
18623 # for dependence libraries. The import file would start with
18624 # the line `#! .'. This would cause the generated library to
18625 # depend on `.', always an invalid library. This was fixed in
18626 # development snapshots of GCC prior to 3.0.
18628 aix4 | aix4.[01] | aix4.[01].*)
18629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18631 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18634 can_build_shared=no
18638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18639 # soname into executable. Probably we can add versioning support to
18640 # collect2, so additional links can be useful in future.
18641 if test "$aix_use_runtimelinking" = yes; then
18642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18643 # instead of lib<name>.a to let people know that these are not
18644 # typical AIX shared libraries.
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18647 # We preserve .a as extension for shared libraries through AIX4.2
18648 # and later when we are not doing run time linking.
18649 library_names_spec='${libname}${release}.a $libname.a'
18650 soname_spec='${libname}${release}${shared_ext}$major'
18652 shlibpath_var=LIBPATH
18657 library_names_spec='$libname.ixlibrary $libname.a'
18658 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18659 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'
18663 library_names_spec='${libname}${shared_ext}'
18664 dynamic_linker="$host_os ld.so"
18665 shlibpath_var=LIBRARY_PATH
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18674 shlibpath_var=LD_LIBRARY_PATH
18675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18677 # the default ld.so.conf also contains /usr/contrib/lib and
18678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18679 # libtool to hard-code these into programs
18682 cygwin* | mingw* | pw32*)
18683 version_type=windows
18688 case $GCC,$host_os in
18689 yes,cygwin* | yes,mingw* | yes,pw32*)
18690 library_names_spec='$libname.dll.a'
18691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18692 postinstall_cmds='base_file=`basename \${file}`~
18693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18694 dldir=$destdir/`dirname \$dlpath`~
18695 test -d \$dldir || mkdir -p \$dldir~
18696 $install_prog $dir/$dlname \$dldir/$dlname~
18697 chmod a+x \$dldir/$dlname'
18698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18699 dlpath=$dir/\$dldll~
18701 shlibpath_overrides_runpath=yes
18705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18710 # MinGW DLLs use traditional 'lib' prefix
18711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18714 # It is most probably a Windows format PATH printed by
18715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18716 # path with ; separators, and with drive letters. We can handle the
18717 # drive letters (cygwin fileutils understands them), so leave them,
18718 # especially as we might pass files found there to a mingw objdump,
18719 # which wouldn't understand a cygwinified path. Ahh.
18720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18726 # pw32 DLLs use 'pw' prefix rather than 'lib'
18727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18736 dynamic_linker='Win32 ld.exe'
18737 # FIXME: first we should search . and the directory the executable is in
18741 darwin* | rhapsody*)
18742 dynamic_linker="$host_os dyld"
18743 version_type=darwin
18746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18747 soname_spec='${libname}${release}${major}$shared_ext'
18748 shlibpath_overrides_runpath=yes
18749 shlibpath_var=DYLD_LIBRARY_PATH
18750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18751 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18752 if test "$GCC" = yes; then
18753 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"`
18755 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18765 soname_spec='${libname}${release}${shared_ext}$major'
18766 shlibpath_var=LD_LIBRARY_PATH
18777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18778 soname_spec='${libname}${release}${shared_ext}$major'
18779 shlibpath_var=LD_LIBRARY_PATH
18780 shlibpath_overrides_runpath=no
18781 hardcode_into_libs=yes
18782 dynamic_linker='GNU ld.so'
18785 freebsd* | dragonfly*)
18786 # DragonFly does not have aout. When/if they implement a new
18787 # versioning mechanism, adjust this.
18788 if test -x /usr/bin/objformat; then
18789 objformat=`/usr/bin/objformat`
18792 freebsd[123]*) objformat=aout ;;
18793 *) objformat=elf ;;
18796 version_type=freebsd-$objformat
18797 case $version_type in
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18808 shlibpath_var=LD_LIBRARY_PATH
18811 shlibpath_overrides_runpath=yes
18813 freebsd3.[01]* | freebsdelf3.[01]*)
18814 shlibpath_overrides_runpath=yes
18815 hardcode_into_libs=yes
18818 shlibpath_overrides_runpath=no
18819 hardcode_into_libs=yes
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18829 soname_spec='${libname}${release}${shared_ext}$major'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 hardcode_into_libs=yes
18834 hpux9* | hpux10* | hpux11*)
18835 # Give a soname corresponding to the major version so that dld.sl refuses to
18836 # link against other versions.
18843 hardcode_into_libs=yes
18844 dynamic_linker="$host_os dld.so"
18845 shlibpath_var=LD_LIBRARY_PATH
18846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848 soname_spec='${libname}${release}${shared_ext}$major'
18849 if test "X$HPUX_IA64_MODE" = X32; then
18850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18858 hardcode_into_libs=yes
18859 dynamic_linker="$host_os dld.sl"
18860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18869 dynamic_linker="$host_os dld.sl"
18870 shlibpath_var=SHLIB_PATH
18871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873 soname_spec='${libname}${release}${shared_ext}$major'
18876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18877 postinstall_cmds='chmod 555 $lib'
18880 irix5* | irix6* | nonstopux*)
18882 nonstopux*) version_type=nonstopux ;;
18884 if test "$lt_cv_prog_gnu_ld" = yes; then
18892 soname_spec='${libname}${release}${shared_ext}$major'
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18895 irix5* | nonstopux*)
18896 libsuff= shlibsuff=
18899 case $LD in # libtool.m4 will add one of these switches to LD
18900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18901 libsuff= shlibsuff= libmagic=32-bit;;
18902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18903 libsuff=32 shlibsuff=N32 libmagic=N32;;
18904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18905 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18906 *) libsuff= shlibsuff= libmagic=never-match;;
18910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18911 shlibpath_overrides_runpath=no
18912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18914 hardcode_into_libs=yes
18917 # No shared lib support for Linux oldld, aout, or coff.
18918 linux*oldld* | linux*aout* | linux*coff*)
18922 # This must be Linux ELF.
18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928 soname_spec='${libname}${release}${shared_ext}$major'
18929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18930 shlibpath_var=LD_LIBRARY_PATH
18931 shlibpath_overrides_runpath=no
18932 # This implies no fast_install, which is unacceptable.
18933 # Some rework will be needed to allow for fast_install
18934 # before this can be enabled.
18935 hardcode_into_libs=yes
18937 # Append ld.so.conf contents to the search path
18938 if test -f /etc/ld.so.conf; then
18939 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' ' '`
18940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18943 # We used to test for /lib/ld.so.1 and disable shared libraries on
18944 # powerpc, because MkLinux only supported shared libraries with the
18945 # GNU dynamic linker. Since this was broken with cross compilers,
18946 # most powerpc-linux boxes support dynamic linking these days and
18947 # people can always --disable-shared, the test was removed, and we
18948 # assume the GNU/Linux dynamic linker is in use.
18949 dynamic_linker='GNU/Linux ld.so'
18956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18957 soname_spec='${libname}${release}${shared_ext}$major'
18958 shlibpath_var=LD_LIBRARY_PATH
18959 shlibpath_overrides_runpath=no
18960 hardcode_into_libs=yes
18961 dynamic_linker='GNU ld.so'
18968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18971 dynamic_linker='NetBSD (a.out) ld.so'
18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18974 soname_spec='${libname}${release}${shared_ext}$major'
18975 dynamic_linker='NetBSD ld.elf_so'
18977 shlibpath_var=LD_LIBRARY_PATH
18978 shlibpath_overrides_runpath=yes
18979 hardcode_into_libs=yes
18984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18985 shlibpath_var=LD_LIBRARY_PATH
18986 shlibpath_overrides_runpath=yes
18993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18994 soname_spec='${libname}${release}${shared_ext}$major'
18995 shlibpath_var=LD_LIBRARY_PATH
18996 shlibpath_overrides_runpath=yes
19002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19005 *) need_version=no ;;
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19009 shlibpath_var=LD_LIBRARY_PATH
19010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19012 openbsd2.[89] | openbsd2.[89].*)
19013 shlibpath_overrides_runpath=no
19016 shlibpath_overrides_runpath=yes
19020 shlibpath_overrides_runpath=yes
19025 libname_spec='$name'
19028 library_names_spec='$libname${shared_ext} $libname.a'
19029 dynamic_linker='OS/2 ld.exe'
19030 shlibpath_var=LIBPATH
19033 osf3* | osf4* | osf5*)
19037 soname_spec='${libname}${release}${shared_ext}$major'
19038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039 shlibpath_var=LD_LIBRARY_PATH
19040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19046 soname_spec='${libname}${release}${shared_ext}$major'
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048 shlibpath_var=LD_LIBRARY_PATH
19055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19056 soname_spec='${libname}${release}${shared_ext}$major'
19057 shlibpath_var=LD_LIBRARY_PATH
19058 shlibpath_overrides_runpath=yes
19059 hardcode_into_libs=yes
19060 # ldd complains unless libraries are executable
19061 postinstall_cmds='chmod +x $lib'
19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19068 shlibpath_var=LD_LIBRARY_PATH
19069 shlibpath_overrides_runpath=yes
19070 if test "$with_gnu_ld" = yes; then
19076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19079 soname_spec='${libname}${release}${shared_ext}$major'
19080 shlibpath_var=LD_LIBRARY_PATH
19081 case $host_vendor in
19083 shlibpath_overrides_runpath=no
19085 export_dynamic_flag_spec='${wl}-Blargedynsym'
19086 runpath_var=LD_RUN_PATH
19094 shlibpath_overrides_runpath=no
19095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19101 if test -d /usr/nec ;then
19103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19104 soname_spec='$libname${shared_ext}.$major'
19105 shlibpath_var=LD_LIBRARY_PATH
19111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112 soname_spec='${libname}${release}${shared_ext}$major'
19113 shlibpath_var=LD_LIBRARY_PATH
19120 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19121 echo "${ECHO_T}$dynamic_linker" >&6
19122 test "$dynamic_linker" = no && can_build_shared=no
19124 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19125 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19127 if test -n "$hardcode_libdir_flag_spec" || \
19128 test -n "$runpath_var" || \
19129 test "X$hardcode_automatic" = "Xyes" ; then
19131 # We can hardcode non-existant directories.
19132 if test "$hardcode_direct" != no &&
19133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19134 # have to relink, otherwise we might link with an installed library
19135 # when we should be linking with a yet-to-be-installed one
19136 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
19137 test "$hardcode_minus_L" != no; then
19138 # Linking always hardcodes the temporary library directory.
19139 hardcode_action=relink
19141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19142 hardcode_action=immediate
19145 # We cannot hardcode anything, or else we can only hardcode existing
19147 hardcode_action=unsupported
19149 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19150 echo "${ECHO_T}$hardcode_action" >&6
19152 if test "$hardcode_action" = relink; then
19153 # Fast installation is not supported
19154 enable_fast_install=no
19155 elif test "$shlibpath_overrides_runpath" = yes ||
19156 test "$enable_shared" = no; then
19157 # Fast installation is not necessary
19158 enable_fast_install=needless
19163 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19164 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19165 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19166 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19167 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19168 echo "$as_me:$LINENO: result: yes" >&5
19169 echo "${ECHO_T}yes" >&6
19171 # FIXME - insert some real tests, host_os isn't really good enough
19174 if test -n "$STRIP" ; then
19175 striplib="$STRIP -x"
19176 echo "$as_me:$LINENO: result: yes" >&5
19177 echo "${ECHO_T}yes" >&6
19179 echo "$as_me:$LINENO: result: no" >&5
19180 echo "${ECHO_T}no" >&6
19184 echo "$as_me:$LINENO: result: no" >&5
19185 echo "${ECHO_T}no" >&6
19190 if test "x$enable_dlopen" != xyes; then
19191 enable_dlopen=unknown
19192 enable_dlopen_self=unknown
19193 enable_dlopen_self_static=unknown
19200 lt_cv_dlopen="load_add_on"
19202 lt_cv_dlopen_self=yes
19206 lt_cv_dlopen="LoadLibrary"
19211 lt_cv_dlopen="dlopen"
19216 # if libdl is installed we need to link against it
19217 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19218 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 ac_check_lib_save_LIBS=$LIBS
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19231 /* Override any gcc2 internal prototype to avoid an error. */
19235 /* We use char because int might match the return type of a gcc2
19236 builtin and then its argument prototype would still apply. */
19246 rm -f conftest.$ac_objext conftest$ac_exeext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19248 (eval $ac_link) 2>conftest.er1
19250 grep -v '^ *+' conftest.er1 >conftest.err
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag"
19256 || test ! -s conftest.err'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest$ac_exeext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ac_cv_lib_dl_dlopen=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ac_cv_lib_dl_dlopen=no
19275 rm -f conftest.err conftest.$ac_objext \
19276 conftest$ac_exeext conftest.$ac_ext
19277 LIBS=$ac_check_lib_save_LIBS
19279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19281 if test $ac_cv_lib_dl_dlopen = yes; then
19282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19285 lt_cv_dlopen="dyld"
19287 lt_cv_dlopen_self=yes
19294 echo "$as_me:$LINENO: checking for shl_load" >&5
19295 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19296 if test "${ac_cv_func_shl_load+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19307 #define shl_load innocuous_shl_load
19309 /* System header to define __stub macros and hopefully few prototypes,
19310 which can conflict with char shl_load (); below.
19311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19312 <limits.h> exists even on freestanding compilers. */
19315 # include <limits.h>
19317 # include <assert.h>
19322 /* Override any gcc2 internal prototype to avoid an error. */
19327 /* We use char because int might match the return type of a gcc2
19328 builtin and then its argument prototype would still apply. */
19330 /* The GNU C library defines this for functions which it implements
19331 to always fail with ENOSYS. Some functions are actually named
19332 something starting with __ and the normal name is an alias. */
19333 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19336 char (*f) () = shl_load;
19345 return f != shl_load;
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352 (eval $ac_link) 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag"
19360 || test ! -s conftest.err'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_cv_func_shl_load=yes
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_func_shl_load=no
19379 rm -f conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19382 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19383 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19384 if test $ac_cv_func_shl_load = yes; then
19385 lt_cv_dlopen="shl_load"
19387 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19388 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19389 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 ac_check_lib_save_LIBS=$LIBS
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19401 /* Override any gcc2 internal prototype to avoid an error. */
19405 /* We use char because int might match the return type of a gcc2
19406 builtin and then its argument prototype would still apply. */
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_lib_dld_shl_load=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_lib_dld_shl_load=no
19445 rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19450 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19451 if test $ac_cv_lib_dld_shl_load = yes; then
19452 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19454 echo "$as_me:$LINENO: checking for dlopen" >&5
19455 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19456 if test "${ac_cv_func_dlopen+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19467 #define dlopen innocuous_dlopen
19469 /* System header to define __stub macros and hopefully few prototypes,
19470 which can conflict with char dlopen (); below.
19471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19472 <limits.h> exists even on freestanding compilers. */
19475 # include <limits.h>
19477 # include <assert.h>
19482 /* Override any gcc2 internal prototype to avoid an error. */
19487 /* We use char because int might match the return type of a gcc2
19488 builtin and then its argument prototype would still apply. */
19490 /* The GNU C library defines this for functions which it implements
19491 to always fail with ENOSYS. Some functions are actually named
19492 something starting with __ and the normal name is an alias. */
19493 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19496 char (*f) () = dlopen;
19505 return f != dlopen;
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512 (eval $ac_link) 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest$ac_exeext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_cv_func_dlopen=yes
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_cv_func_dlopen=no
19539 rm -f conftest.err conftest.$ac_objext \
19540 conftest$ac_exeext conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19543 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19544 if test $ac_cv_func_dlopen = yes; then
19545 lt_cv_dlopen="dlopen"
19547 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19548 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 ac_check_lib_save_LIBS=$LIBS
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19561 /* Override any gcc2 internal prototype to avoid an error. */
19565 /* We use char because int might match the return type of a gcc2
19566 builtin and then its argument prototype would still apply. */
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } &&
19585 { ac_try='test -z "$ac_c_werror_flag"
19586 || test ! -s conftest.err'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; } &&
19592 { ac_try='test -s conftest$ac_exeext'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 ac_cv_lib_dl_dlopen=yes
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_cv_lib_dl_dlopen=no
19605 rm -f conftest.err conftest.$ac_objext \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19609 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19610 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19611 if test $ac_cv_lib_dl_dlopen = yes; then
19612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19614 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19615 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19616 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 ac_check_lib_save_LIBS=$LIBS
19620 LIBS="-lsvld $LIBS"
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19628 /* Override any gcc2 internal prototype to avoid an error. */
19632 /* We use char because int might match the return type of a gcc2
19633 builtin and then its argument prototype would still apply. */
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19645 (eval $ac_link) 2>conftest.er1
19647 grep -v '^ *+' conftest.er1 >conftest.err
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest$ac_exeext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_cv_lib_svld_dlopen=yes
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_cv_lib_svld_dlopen=no
19672 rm -f conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19676 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19677 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19678 if test $ac_cv_lib_svld_dlopen = yes; then
19679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19681 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19682 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19683 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 ac_check_lib_save_LIBS=$LIBS
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 /* Override any gcc2 internal prototype to avoid an error. */
19699 /* We use char because int might match the return type of a gcc2
19700 builtin and then its argument prototype would still apply. */
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag"
19720 || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_lib_dld_dld_link=yes
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_lib_dld_dld_link=no
19739 rm -f conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19744 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19745 if test $ac_cv_lib_dld_dld_link = yes; then
19746 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19767 if test "x$lt_cv_dlopen" != xno; then
19773 case $lt_cv_dlopen in
19775 save_CPPFLAGS="$CPPFLAGS"
19776 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19778 save_LDFLAGS="$LDFLAGS"
19779 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19782 LIBS="$lt_cv_dlopen_libs $LIBS"
19784 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19785 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19786 if test "${lt_cv_dlopen_self+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 if test "$cross_compiling" = yes; then :
19790 lt_cv_dlopen_self=cross
19792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19793 lt_status=$lt_dlunknown
19794 cat > conftest.$ac_ext <<EOF
19795 #line 19795 "configure"
19796 #include "confdefs.h"
19805 # define LT_DLGLOBAL RTLD_GLOBAL
19808 # define LT_DLGLOBAL DL_GLOBAL
19810 # define LT_DLGLOBAL 0
19814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19815 find out it does not work in some platform. */
19816 #ifndef LT_DLLAZY_OR_NOW
19818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19821 # define LT_DLLAZY_OR_NOW DL_LAZY
19824 # define LT_DLLAZY_OR_NOW RTLD_NOW
19827 # define LT_DLLAZY_OR_NOW DL_NOW
19829 # define LT_DLLAZY_OR_NOW 0
19837 extern "C" void exit (int);
19840 void fnord() { int i=42;}
19843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19844 int status = $lt_dlunknown;
19848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19849 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19850 /* dlclose (self); */
19856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19857 (eval $ac_link) 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19861 (./conftest; exit; ) >&5 2>/dev/null
19863 case x$lt_status in
19864 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19865 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19866 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19869 # compilation failed
19870 lt_cv_dlopen_self=no
19877 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19878 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19880 if test "x$lt_cv_dlopen_self" = xyes; then
19881 LDFLAGS="$LDFLAGS $link_static_flag"
19882 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19883 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19884 if test "${lt_cv_dlopen_self_static+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 if test "$cross_compiling" = yes; then :
19888 lt_cv_dlopen_self_static=cross
19890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19891 lt_status=$lt_dlunknown
19892 cat > conftest.$ac_ext <<EOF
19893 #line 19893 "configure"
19894 #include "confdefs.h"
19903 # define LT_DLGLOBAL RTLD_GLOBAL
19906 # define LT_DLGLOBAL DL_GLOBAL
19908 # define LT_DLGLOBAL 0
19912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19913 find out it does not work in some platform. */
19914 #ifndef LT_DLLAZY_OR_NOW
19916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19919 # define LT_DLLAZY_OR_NOW DL_LAZY
19922 # define LT_DLLAZY_OR_NOW RTLD_NOW
19925 # define LT_DLLAZY_OR_NOW DL_NOW
19927 # define LT_DLLAZY_OR_NOW 0
19935 extern "C" void exit (int);
19938 void fnord() { int i=42;}
19941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19942 int status = $lt_dlunknown;
19946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19948 /* dlclose (self); */
19954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19955 (eval $ac_link) 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19959 (./conftest; exit; ) >&5 2>/dev/null
19961 case x$lt_status in
19962 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19963 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19964 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19967 # compilation failed
19968 lt_cv_dlopen_self_static=no
19975 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19976 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19979 CPPFLAGS="$save_CPPFLAGS"
19980 LDFLAGS="$save_LDFLAGS"
19985 case $lt_cv_dlopen_self in
19986 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19987 *) enable_dlopen_self=unknown ;;
19990 case $lt_cv_dlopen_self_static in
19991 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19992 *) enable_dlopen_self_static=unknown ;;
19997 # Report which librarie types wil actually be built
19998 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19999 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20000 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20001 echo "${ECHO_T}$can_build_shared" >&6
20003 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20004 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20005 test "$can_build_shared" = "no" && enable_shared=no
20007 # On AIX, shared libraries and static libraries use the same namespace, and
20008 # are all built from PIC.
20011 test "$enable_shared" = yes && enable_static=no
20012 if test -n "$RANLIB"; then
20013 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20014 postinstall_cmds='$RANLIB $lib'
20019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20020 test "$enable_shared" = yes && enable_static=no
20024 echo "$as_me:$LINENO: result: $enable_shared" >&5
20025 echo "${ECHO_T}$enable_shared" >&6
20027 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20028 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20029 # Make sure either enable_shared or enable_static is yes.
20030 test "$enable_shared" = yes || enable_static=yes
20031 echo "$as_me:$LINENO: result: $enable_static" >&5
20032 echo "${ECHO_T}$enable_static" >&6
20034 # The else clause should only fire when bootstrapping the
20035 # libtool distribution, otherwise you forgot to ship ltmain.sh
20036 # with your package, and you will get complaints that there are
20037 # no rules to generate ltmain.sh.
20038 if test -f "$ltmain"; then
20039 # See if we are running on zsh, and set the options which allow our commands through
20040 # without removal of \ escapes.
20041 if test -n "${ZSH_VERSION+set}" ; then
20042 setopt NO_GLOB_SUBST
20044 # Now quote all the things that may contain metacharacters while being
20045 # careful not to overquote the AC_SUBSTed values. We take copies of the
20046 # variables and quote the copies for generation of the libtool script.
20047 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20051 deplibs_check_method reload_flag reload_cmds need_locks \
20052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20053 lt_cv_sys_global_symbol_to_c_name_address \
20054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20055 old_postinstall_cmds old_postuninstall_cmds \
20059 lt_prog_compiler_wl \
20060 lt_prog_compiler_pic \
20061 lt_prog_compiler_static \
20062 lt_prog_compiler_no_builtin_flag \
20063 export_dynamic_flag_spec \
20064 thread_safe_flag_spec \
20065 whole_archive_flag_spec \
20066 enable_shared_with_static_runtimes \
20068 old_archive_from_new_cmds \
20073 compiler_lib_search_path \
20075 archive_expsym_cmds \
20077 postuninstall_cmds \
20078 old_archive_from_expsyms_cmds \
20079 allow_undefined_flag \
20080 no_undefined_flag \
20081 export_symbols_cmds \
20082 hardcode_libdir_flag_spec \
20083 hardcode_libdir_flag_spec_ld \
20084 hardcode_libdir_separator \
20085 hardcode_automatic \
20087 module_expsym_cmds \
20088 lt_cv_prog_compiler_c_o \
20090 include_expsyms; do
20093 old_archive_cmds | \
20094 old_archive_from_new_cmds | \
20096 archive_expsym_cmds | \
20098 module_expsym_cmds | \
20099 old_archive_from_expsyms_cmds | \
20100 export_symbols_cmds | \
20101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20102 postinstall_cmds | postuninstall_cmds | \
20103 old_postinstall_cmds | old_postuninstall_cmds | \
20104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20105 # Double-quote double-evaled strings.
20106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20115 *'\$0 --fallback-echo"')
20116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20120 cfgfile="${ofile}T"
20121 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20123 { echo "$as_me:$LINENO: creating $ofile" >&5
20124 echo "$as_me: creating $ofile" >&6;}
20126 cat <<__EOF__ >> "$cfgfile"
20129 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20130 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20131 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20133 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20134 # Free Software Foundation, Inc.
20136 # This file is part of GNU Libtool:
20137 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20139 # This program is free software; you can redistribute it and/or modify
20140 # it under the terms of the GNU General Public License as published by
20141 # the Free Software Foundation; either version 2 of the License, or
20142 # (at your option) any later version.
20144 # This program is distributed in the hope that it will be useful, but
20145 # WITHOUT ANY WARRANTY; without even the implied warranty of
20146 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20147 # General Public License for more details.
20149 # You should have received a copy of the GNU General Public License
20150 # along with this program; if not, write to the Free Software
20151 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20153 # As a special exception to the GNU General Public License, if you
20154 # distribute this file as part of a program that contains a
20155 # configuration script generated by Autoconf, you may include it under
20156 # the same distribution terms that you use for the rest of that program.
20158 # A sed program that does not truncate output.
20161 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20162 Xsed="$SED -e 1s/^X//"
20164 # The HP-UX ksh and POSIX shell print the target directory to stdout
20165 # if CDPATH is set.
20166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20168 # The names of the tagged configurations supported by this script.
20171 # ### BEGIN LIBTOOL CONFIG
20173 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20175 # Shell to use when invoking shell scripts.
20178 # Whether or not to build shared libraries.
20179 build_libtool_libs=$enable_shared
20181 # Whether or not to build static libraries.
20182 build_old_libs=$enable_static
20184 # Whether or not to add -lc for building shared libraries.
20185 build_libtool_need_lc=$archive_cmds_need_lc
20187 # Whether or not to disallow shared libs when runtime libs are static
20188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20190 # Whether or not to optimize for fast installation.
20191 fast_install=$enable_fast_install
20194 host_alias=$host_alias
20198 # The build system.
20199 build_alias=$build_alias
20203 # An echo program that does not interpret backslashes.
20208 AR_FLAGS=$lt_AR_FLAGS
20213 # A language-specific compiler.
20216 # Is the compiler the GNU C compiler?
20222 # The linker used to build libraries.
20225 # Whether we need hard or soft links.
20228 # A BSD-compatible nm program.
20231 # A symbol stripping program
20234 # Used to examine libraries when file_magic_cmd begins "file"
20235 MAGIC_CMD=$MAGIC_CMD
20237 # Used on cygwin: DLL creation program.
20240 # Used on cygwin: object dumper.
20243 # Used on cygwin: assembler.
20246 # The name of the directory that contains temporary libtool files.
20249 # How to create reloadable object files.
20250 reload_flag=$lt_reload_flag
20251 reload_cmds=$lt_reload_cmds
20253 # How to pass a linker flag through the compiler.
20254 wl=$lt_lt_prog_compiler_wl
20256 # Object file suffix (normally "o").
20257 objext="$ac_objext"
20259 # Old archive suffix (normally "a").
20262 # Shared library suffix (normally ".so").
20263 shrext_cmds='$shrext_cmds'
20265 # Executable file suffix (normally "").
20268 # Additional compiler flags for building library objects.
20269 pic_flag=$lt_lt_prog_compiler_pic
20272 # What is the maximum length of a command?
20273 max_cmd_len=$lt_cv_sys_max_cmd_len
20275 # Does compiler simultaneously support -c and -o options?
20276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20278 # Must we lock files when doing compilation?
20279 need_locks=$lt_need_locks
20281 # Do we need the lib prefix for modules?
20282 need_lib_prefix=$need_lib_prefix
20284 # Do we need a version for libraries?
20285 need_version=$need_version
20287 # Whether dlopen is supported.
20288 dlopen_support=$enable_dlopen
20290 # Whether dlopen of programs is supported.
20291 dlopen_self=$enable_dlopen_self
20293 # Whether dlopen of statically linked programs is supported.
20294 dlopen_self_static=$enable_dlopen_self_static
20296 # Compiler flag to prevent dynamic linking.
20297 link_static_flag=$lt_lt_prog_compiler_static
20299 # Compiler flag to turn off builtin functions.
20300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20302 # Compiler flag to allow reflexive dlopens.
20303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20305 # Compiler flag to generate shared objects directly from archives.
20306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20308 # Compiler flag to generate thread-safe objects.
20309 thread_safe_flag_spec=$lt_thread_safe_flag_spec
20311 # Library versioning type.
20312 version_type=$version_type
20314 # Format of library name prefix.
20315 libname_spec=$lt_libname_spec
20317 # List of archive names. First name is the real one, the rest are links.
20318 # The last name is the one that the linker finds with -lNAME.
20319 library_names_spec=$lt_library_names_spec
20321 # The coded name of the library, if different from the real name.
20322 soname_spec=$lt_soname_spec
20324 # Commands used to build and install an old-style archive.
20326 old_archive_cmds=$lt_old_archive_cmds
20327 old_postinstall_cmds=$lt_old_postinstall_cmds
20328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20330 # Create an old-style archive from a shared archive.
20331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20333 # Create a temporary old-style archive to link instead of a shared archive.
20334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20336 # Commands used to build and install a shared archive.
20337 archive_cmds=$lt_archive_cmds
20338 archive_expsym_cmds=$lt_archive_expsym_cmds
20339 postinstall_cmds=$lt_postinstall_cmds
20340 postuninstall_cmds=$lt_postuninstall_cmds
20342 # Commands used to build a loadable module (assumed same as above if empty)
20343 module_cmds=$lt_module_cmds
20344 module_expsym_cmds=$lt_module_expsym_cmds
20346 # Commands to strip libraries.
20347 old_striplib=$lt_old_striplib
20348 striplib=$lt_striplib
20350 # Dependencies to place before the objects being linked to create a
20352 predep_objects=$lt_predep_objects
20354 # Dependencies to place after the objects being linked to create a
20356 postdep_objects=$lt_postdep_objects
20358 # Dependencies to place before the objects being linked to create a
20360 predeps=$lt_predeps
20362 # Dependencies to place after the objects being linked to create a
20364 postdeps=$lt_postdeps
20366 # The library search path used internally by the compiler when linking
20367 # a shared library.
20368 compiler_lib_search_path=$lt_compiler_lib_search_path
20370 # Method to check whether dependent libraries are shared objects.
20371 deplibs_check_method=$lt_deplibs_check_method
20373 # Command to use when deplibs_check_method == file_magic.
20374 file_magic_cmd=$lt_file_magic_cmd
20376 # Flag that allows shared libraries with undefined symbols to be built.
20377 allow_undefined_flag=$lt_allow_undefined_flag
20379 # Flag that forces no undefined symbols.
20380 no_undefined_flag=$lt_no_undefined_flag
20382 # Commands used to finish a libtool library installation in a directory.
20383 finish_cmds=$lt_finish_cmds
20385 # Same as above, but a single script fragment to be evaled but not shown.
20386 finish_eval=$lt_finish_eval
20388 # Take the output of nm and produce a listing of raw symbols and C names.
20389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20391 # Transform the output of nm in a proper C declaration
20392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20394 # Transform the output of nm in a C name address pair
20395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20397 # This is the shared library runtime path variable.
20398 runpath_var=$runpath_var
20400 # This is the shared library path variable.
20401 shlibpath_var=$shlibpath_var
20403 # Is shlibpath searched before the hard-coded library search path?
20404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20406 # How to hardcode a shared library path into an executable.
20407 hardcode_action=$hardcode_action
20409 # Whether we should hardcode library paths into libraries.
20410 hardcode_into_libs=$hardcode_into_libs
20412 # Flag to hardcode \$libdir into a binary during linking.
20413 # This must work even if \$libdir does not exist.
20414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20416 # If ld is used when linking, flag to hardcode \$libdir into
20417 # a binary during linking. This must work even if \$libdir does
20419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20421 # Whether we need a single -rpath flag with a separated argument.
20422 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20425 # resulting binary.
20426 hardcode_direct=$hardcode_direct
20428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20429 # resulting binary.
20430 hardcode_minus_L=$hardcode_minus_L
20432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20433 # the resulting binary.
20434 hardcode_shlibpath_var=$hardcode_shlibpath_var
20436 # Set to yes if building a shared library automatically hardcodes DIR into the library
20437 # and all subsequent libraries and executables linked against it.
20438 hardcode_automatic=$hardcode_automatic
20440 # Variables whose values should be saved in libtool wrapper scripts and
20441 # restored at relink time.
20442 variables_saved_for_relink="$variables_saved_for_relink"
20444 # Whether libtool must link a program against all its dependency libraries.
20445 link_all_deplibs=$link_all_deplibs
20447 # Compile-time system search path for libraries
20448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20450 # Run-time system search path for libraries
20451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20453 # Fix the shell variable \$srcfile for the compiler.
20454 fix_srcfile_path="$fix_srcfile_path"
20456 # Set to yes if exported symbols are required.
20457 always_export_symbols=$always_export_symbols
20459 # The commands to list exported symbols.
20460 export_symbols_cmds=$lt_export_symbols_cmds
20462 # The commands to extract the exported symbol list from a shared archive.
20463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20465 # Symbols that should not be listed in the preloaded symbols.
20466 exclude_expsyms=$lt_exclude_expsyms
20468 # Symbols that must always be exported.
20469 include_expsyms=$lt_include_expsyms
20471 # ### END LIBTOOL CONFIG
20478 cat <<\EOF >> "$cfgfile"
20480 # AIX sometimes has problems with the GCC collect2 program. For some
20481 # reason, if we set the COLLECT_NAMES environment variable, the problems
20482 # vanish in a puff of smoke.
20483 if test "X${COLLECT_NAMES+set}" != Xset; then
20485 export COLLECT_NAMES
20491 # We use sed instead of cat because bash on DJGPP gets confused if
20492 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20493 # text mode, it properly converts lines to CR/LF. This bash problem
20494 # is reportedly fixed, but why not run on old versions too?
20495 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
20497 mv -f "$cfgfile" "$ofile" || \
20498 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20502 # If there is no Makefile yet, we rely on a make rule to execute
20503 # `config.status --recheck' to rerun these tests and create the
20504 # libtool script then.
20505 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20506 if test -f "$ltmain_in"; then
20507 test -f Makefile && make "$ltmain"
20513 ac_cpp='$CPP $CPPFLAGS'
20514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20521 # Check whether --with-tags or --without-tags was given.
20522 if test "${with_tags+set}" = set; then
20523 withval="$with_tags"
20524 tagnames="$withval"
20527 if test -f "$ltmain" && test -n "$tagnames"; then
20528 if test ! -f "${ofile}"; then
20529 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20530 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20533 if test -z "$LTCC"; then
20534 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20535 if test -z "$LTCC"; then
20536 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20537 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20540 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20544 # Extract list of available tagged configurations in $ofile.
20545 # Note that this assumes the entire list is on one line.
20546 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
20548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20549 for tagname in $tagnames; do
20551 # Check whether tagname contains only valid characters
20552 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20554 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20555 echo "$as_me: error: invalid tag name: $tagname" >&2;}
20556 { (exit 1); exit 1; }; }
20560 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20562 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20563 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20564 { (exit 1); exit 1; }; }
20567 # Update the list of available tags.
20568 if test -n "$tagname"; then
20569 echo appending configuration tag \"$tagname\" to $ofile
20573 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20574 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20575 (test "X$CXX" != "Xg++"))) ; then
20577 ac_cpp='$CXXCPP $CPPFLAGS'
20578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20585 archive_cmds_need_lc_CXX=no
20586 allow_undefined_flag_CXX=
20587 always_export_symbols_CXX=no
20588 archive_expsym_cmds_CXX=
20589 export_dynamic_flag_spec_CXX=
20590 hardcode_direct_CXX=no
20591 hardcode_libdir_flag_spec_CXX=
20592 hardcode_libdir_flag_spec_ld_CXX=
20593 hardcode_libdir_separator_CXX=
20594 hardcode_minus_L_CXX=no
20595 hardcode_automatic_CXX=no
20597 module_expsym_cmds_CXX=
20598 link_all_deplibs_CXX=unknown
20599 old_archive_cmds_CXX=$old_archive_cmds
20600 no_undefined_flag_CXX=
20601 whole_archive_flag_spec_CXX=
20602 enable_shared_with_static_runtimes_CXX=no
20604 # Dependencies to place before and after the object being linked:
20605 predep_objects_CXX=
20606 postdep_objects_CXX=
20609 compiler_lib_search_path_CXX=
20611 # Source file extension for C++ test sources.
20614 # Object file extension for compiled C++ test sources.
20618 # Code to be used in simple compile tests
20619 lt_simple_compile_test_code="int some_variable = 0;\n"
20621 # Code to be used in simple link tests
20622 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20626 # If no C compiler was specified, use CC.
20629 # Allow CC to be a program name with arguments.
20633 # save warnings/boilerplate of simple test code
20634 ac_outfile=conftest.$ac_objext
20635 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20637 _lt_compiler_boilerplate=`cat conftest.err`
20640 ac_outfile=conftest.$ac_objext
20641 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20643 _lt_linker_boilerplate=`cat conftest.err`
20647 # Allow CC to be a program name with arguments.
20652 lt_save_with_gnu_ld=$with_gnu_ld
20653 lt_save_path_LD=$lt_cv_path_LD
20654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20655 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20657 unset lt_cv_prog_gnu_ld
20659 if test -n "${lt_cv_path_LDCXX+set}"; then
20660 lt_cv_path_LD=$lt_cv_path_LDCXX
20662 unset lt_cv_path_LD
20664 test -z "${LDCXX+set}" || LD=$LDCXX
20668 for cc_temp in $compiler""; do
20670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20679 # We don't want -fno-exception wen compiling C++ code, so set the
20680 # no_builtin_flag separately
20681 if test "$GXX" = yes; then
20682 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20684 lt_prog_compiler_no_builtin_flag_CXX=
20687 if test "$GXX" = yes; then
20688 # Set up default GNU C++ configuration
20691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
20692 if test "${with_gnu_ld+set}" = set; then
20693 withval="$with_gnu_ld"
20694 test "$withval" = no || with_gnu_ld=yes
20699 if test "$GCC" = yes; then
20700 # Check if gcc -print-prog-name=ld gives a path.
20701 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20705 # gcc leaves a trailing carriage return which upsets mingw
20706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20711 # Accept absolute paths.
20713 re_direlt='/[^/][^/]*/\.\./'
20714 # Canonicalize the pathname of ld
20715 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
20716 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20717 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
20719 test -z "$LD" && LD="$ac_prog"
20722 # If it fails, then pretend we aren't using GCC.
20726 # If it is relative, then search for the first ld in PATH.
20727 with_gnu_ld=unknown
20730 elif test "$with_gnu_ld" = yes; then
20731 echo "$as_me:$LINENO: checking for GNU ld" >&5
20732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20734 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20737 if test "${lt_cv_path_LD+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 if test -z "$LD"; then
20741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20742 for ac_dir in $PATH; do
20744 test -z "$ac_dir" && ac_dir=.
20745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20746 lt_cv_path_LD="$ac_dir/$ac_prog"
20747 # Check to see if the program is GNU ld. I'd rather use --version,
20748 # but apparently some variants of GNU ld only accept -v.
20749 # Break only if it was the GNU/non-GNU ld that we prefer.
20750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20751 *GNU* | *'with BFD'*)
20752 test "$with_gnu_ld" != no && break
20755 test "$with_gnu_ld" != yes && break
20762 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20766 LD="$lt_cv_path_LD"
20767 if test -n "$LD"; then
20768 echo "$as_me:$LINENO: result: $LD" >&5
20769 echo "${ECHO_T}$LD" >&6
20771 echo "$as_me:$LINENO: result: no" >&5
20772 echo "${ECHO_T}no" >&6
20774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20776 { (exit 1); exit 1; }; }
20777 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20783 case `$LD -v 2>&1 </dev/null` in
20784 *GNU* | *'with BFD'*)
20785 lt_cv_prog_gnu_ld=yes
20788 lt_cv_prog_gnu_ld=no
20792 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20794 with_gnu_ld=$lt_cv_prog_gnu_ld
20798 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20799 # archiving commands below assume that GNU ld is being used.
20800 if test "$with_gnu_ld" = yes; then
20801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20802 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'
20804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20807 # If archive_cmds runs LD, not CC, wlarc should be empty
20808 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20809 # investigate it a little bit more. (MM)
20812 # ancient GNU ld didn't support --whole-archive et. al.
20813 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
20814 grep 'no-whole-archive' > /dev/null; then
20815 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20817 whole_archive_flag_spec_CXX=
20823 # A generic and very simple default shared library creation
20824 # command for GNU C++ for the case where it uses the native
20825 # linker, instead of GNU ld. If possible, this setting should
20826 # overridden to take advantage of the native linker features on
20827 # the platform it is being used on.
20828 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20831 # Commands to make compiler produce verbose output that lists
20832 # what "hidden" libraries, object files and flags are used when
20833 # linking a shared library.
20834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20842 # PORTME: fill in a description of your system's C++ link characteristics
20843 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20848 # FIXME: insert proper C++ library support
20852 if test "$host_cpu" = ia64; then
20853 # On IA64, the linker does run time linking by default, so we don't
20854 # have to do anything special.
20855 aix_use_runtimelinking=no
20856 exp_sym_flag='-Bexport'
20859 aix_use_runtimelinking=no
20861 # Test if we are trying to use run time linking or normal
20862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20863 # need to do runtime linking.
20864 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20865 for ld_flag in $LDFLAGS; do
20868 aix_use_runtimelinking=yes
20875 exp_sym_flag='-bexport'
20876 no_entry_flag='-bnoentry'
20879 # When large executables or shared objects are built, AIX ld can
20880 # have problems creating the table of contents. If linking a library
20881 # or program results in "error TOC overflow" add -mminimal-toc to
20882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20885 archive_cmds_CXX=''
20886 hardcode_direct_CXX=yes
20887 hardcode_libdir_separator_CXX=':'
20888 link_all_deplibs_CXX=yes
20890 if test "$GXX" = yes; then
20891 case $host_os in aix4.[012]|aix4.[012].*)
20892 # We only want to do this on AIX 4.2 and lower, the check
20893 # below for broken collect2 doesn't work under 4.3+
20894 collect2name=`${CC} -print-prog-name=collect2`
20895 if test -f "$collect2name" && \
20896 strings "$collect2name" | grep resolve_lib_name >/dev/null
20898 # We have reworked collect2
20899 hardcode_direct_CXX=yes
20901 # We have old collect2
20902 hardcode_direct_CXX=unsupported
20903 # It fails to find uninstalled libraries when the uninstalled
20904 # path is not listed in the libpath. Setting hardcode_minus_L
20905 # to unsupported forces relinking
20906 hardcode_minus_L_CXX=yes
20907 hardcode_libdir_flag_spec_CXX='-L$libdir'
20908 hardcode_libdir_separator_CXX=
20911 shared_flag='-shared'
20912 if test "$aix_use_runtimelinking" = yes; then
20913 shared_flag="$shared_flag "'${wl}-G'
20917 if test "$host_cpu" = ia64; then
20918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20919 # chokes on -Wl,-G. The following line is correct:
20922 if test "$aix_use_runtimelinking" = yes; then
20923 shared_flag='${wl}-G'
20925 shared_flag='${wl}-bM:SRE'
20930 # It seems that -bexpall does not export symbols beginning with
20931 # underscore (_), so it is better to generate a list of symbols to export.
20932 always_export_symbols_CXX=yes
20933 if test "$aix_use_runtimelinking" = yes; then
20934 # Warning - without using the other runtime loading flags (-brtl),
20935 # -berok will link without error, but may produce a broken library.
20936 allow_undefined_flag_CXX='-berok'
20937 # Determine the default libpath from the value encoded in an empty executable.
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20953 rm -f conftest.$ac_objext conftest$ac_exeext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955 (eval $ac_link) 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
20962 { ac_try='test -z "$ac_cxx_werror_flag"
20963 || test ! -s conftest.err'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest$ac_exeext'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; }; then
20976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20978 # Check for a 64-bit object if we didn't find anything.
20979 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; }
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20986 rm -f conftest.err conftest.$ac_objext \
20987 conftest$ac_exeext conftest.$ac_ext
20988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20990 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20992 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"
20994 if test "$host_cpu" = ia64; then
20995 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20996 allow_undefined_flag_CXX="-z nodefs"
20997 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"
20999 # Determine the default libpath from the value encoded in an empty executable.
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017 (eval $ac_link) 2>conftest.er1
21019 grep -v '^ *+' conftest.er1 >conftest.err
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } &&
21024 { ac_try='test -z "$ac_cxx_werror_flag"
21025 || test ! -s conftest.err'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; } &&
21031 { ac_try='test -s conftest$ac_exeext'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; }; then
21038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21040 # Check for a 64-bit object if we didn't find anything.
21041 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; }
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21048 rm -f conftest.err conftest.$ac_objext \
21049 conftest$ac_exeext conftest.$ac_ext
21050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21052 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21053 # Warning - without using the other run time loading flags,
21054 # -berok will link without error, but may produce a broken library.
21055 no_undefined_flag_CXX=' ${wl}-bernotok'
21056 allow_undefined_flag_CXX=' ${wl}-berok'
21057 # -bexpall does not export symbols beginning with underscore (_)
21058 always_export_symbols_CXX=yes
21059 # Exported symbols can be pulled into shared objects from archives
21060 whole_archive_flag_spec_CXX=' '
21061 archive_cmds_need_lc_CXX=yes
21062 # This is similar to how AIX traditionally builds its shared libraries.
21063 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'
21068 case $cc_basename in
21070 # FIXME: insert proper C++ library support
21077 cygwin* | mingw* | pw32*)
21078 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21079 # as there is no search path for DLLs.
21080 hardcode_libdir_flag_spec_CXX='-L$libdir'
21081 allow_undefined_flag_CXX=unsupported
21082 always_export_symbols_CXX=no
21083 enable_shared_with_static_runtimes_CXX=yes
21085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21086 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'
21087 # If the export-symbols file already is a .def file (1st line
21088 # is EXPORTS), use it as is; otherwise, prepend...
21089 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21090 cp $export_symbols $output_objdir/$soname.def;
21092 echo EXPORTS > $output_objdir/$soname.def;
21093 cat $export_symbols >> $output_objdir/$soname.def;
21095 $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'
21100 darwin* | rhapsody*)
21102 rhapsody* | darwin1.[012])
21103 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
21106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21109 case ${MACOSX_DEPLOYMENT_TARGET} in
21111 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21114 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
21120 archive_cmds_need_lc_CXX=no
21121 hardcode_direct_CXX=no
21122 hardcode_automatic_CXX=yes
21123 hardcode_shlibpath_var_CXX=unsupported
21124 whole_archive_flag_spec_CXX=''
21125 link_all_deplibs_CXX=yes
21127 if test "$GXX" = yes ; then
21128 lt_int_apple_cc_single_mod=no
21129 output_verbose_link_cmd='echo'
21130 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
21131 lt_int_apple_cc_single_mod=yes
21133 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21134 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21136 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'
21138 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21141 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}'
21143 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}'
21145 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}'
21147 case $cc_basename in
21149 output_verbose_link_cmd='echo'
21150 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'
21151 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21153 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}'
21154 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}'
21164 case $cc_basename in
21166 # FIXME: insert proper C++ library support
21170 # Green Hills C++ Compiler
21171 # FIXME: insert proper C++ library support
21175 # FIXME: insert proper C++ library support
21181 # C++ shared libraries reported to be fairly broken before switch to ELF
21185 archive_cmds_need_lc_CXX=no
21187 freebsd* | kfreebsd*-gnu | dragonfly*)
21188 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21195 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21196 hardcode_libdir_separator_CXX=:
21197 export_dynamic_flag_spec_CXX='${wl}-E'
21198 hardcode_direct_CXX=yes
21199 hardcode_minus_L_CXX=yes # Not in the search PATH,
21200 # but as the default
21201 # location of the library.
21203 case $cc_basename in
21205 # FIXME: insert proper C++ library support
21209 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'
21210 # Commands to make compiler produce verbose output that lists
21211 # what "hidden" libraries, object files and flags are used when
21212 # linking a shared library.
21214 # There doesn't appear to be a way to prevent this compiler from
21215 # explicitly linking system object files so we need to strip them
21216 # from the output so that they don't get included in the library
21218 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'
21221 if test "$GXX" = yes; then
21222 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'
21224 # FIXME: insert proper C++ library support
21231 if test $with_gnu_ld = no; then
21234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21235 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
21236 hardcode_libdir_separator_CXX=:
21239 hardcode_libdir_flag_spec_CXX='-L$libdir'
21242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21243 hardcode_libdir_separator_CXX=:
21244 export_dynamic_flag_spec_CXX='${wl}-E'
21250 hardcode_direct_CXX=no
21251 hardcode_shlibpath_var_CXX=no
21254 hardcode_direct_CXX=no
21255 hardcode_shlibpath_var_CXX=no
21256 hardcode_minus_L_CXX=yes # Not in the search PATH,
21257 # but as the default
21258 # location of the library.
21261 hardcode_direct_CXX=yes
21262 hardcode_minus_L_CXX=yes # Not in the search PATH,
21263 # but as the default
21264 # location of the library.
21268 case $cc_basename in
21270 # FIXME: insert proper C++ library support
21276 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21279 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21282 # Commands to make compiler produce verbose output that lists
21283 # what "hidden" libraries, object files and flags are used when
21284 # linking a shared library.
21286 # There doesn't appear to be a way to prevent this compiler from
21287 # explicitly linking system object files so we need to strip them
21288 # from the output so that they don't get included in the library
21290 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'
21293 if test "$GXX" = yes; then
21294 if test $with_gnu_ld = no; then
21297 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21300 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'
21305 # FIXME: insert proper C++ library support
21312 case $cc_basename in
21315 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'
21317 # Archives containing C++ object files must be created using
21318 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21319 # necessary to make sure instantiated templates are included
21321 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21324 if test "$GXX" = yes; then
21325 if test "$with_gnu_ld" = no; then
21326 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'
21328 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'
21331 link_all_deplibs_CXX=yes
21334 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21335 hardcode_libdir_separator_CXX=:
21338 case $cc_basename in
21340 # Kuck and Associates, Inc. (KAI) C++ Compiler
21342 # KCC will only create a shared library if the output file
21343 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21344 # to its proper name (with version) after linking.
21345 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'
21346 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'
21347 # Commands to make compiler produce verbose output that lists
21348 # what "hidden" libraries, object files and flags are used when
21349 # linking a shared library.
21351 # There doesn't appear to be a way to prevent this compiler from
21352 # explicitly linking system object files so we need to strip them
21353 # from the output so that they don't get included in the library
21355 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'
21357 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
21358 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21360 # Archives containing C++ object files must be created using
21361 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21362 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21367 # version 8.0 and above of icpc choke on multiply defined symbols
21368 # if we add $predep_objects and $postdep_objects, however 7.1 and
21369 # earlier do not add the objects themselves.
21370 case `$CC -V 2>&1` in
21372 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21373 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'
21375 *) # Version 8.0 or newer
21378 ia64*) tmp_idyn=' -i_dynamic';;
21380 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21381 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'
21384 archive_cmds_need_lc_CXX=no
21385 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21386 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21387 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21390 # Portland Group C++ compiler
21391 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21392 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'
21394 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21396 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'
21400 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21401 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'
21403 runpath_var=LD_RUN_PATH
21404 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21405 hardcode_libdir_separator_CXX=:
21407 # Commands to make compiler produce verbose output that lists
21408 # what "hidden" libraries, object files and flags are used when
21409 # linking a shared library.
21411 # There doesn't appear to be a way to prevent this compiler from
21412 # explicitly linking system object files so we need to strip them
21413 # from the output so that they don't get included in the library
21415 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'
21420 # FIXME: insert proper C++ library support
21424 # FIXME: insert proper C++ library support
21428 case $cc_basename in
21430 # FIXME: insert proper C++ library support
21434 # FIXME: insert proper C++ library support
21440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21441 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21443 hardcode_libdir_flag_spec_CXX='-R$libdir'
21444 hardcode_direct_CXX=yes
21445 hardcode_shlibpath_var_CXX=no
21447 # Workaround some broken pre-1.5 toolchains
21448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21451 # C++ shared libraries are fairly broken
21455 hardcode_direct_CXX=yes
21456 hardcode_shlibpath_var_CXX=no
21457 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21458 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21460 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21461 export_dynamic_flag_spec_CXX='${wl}-E'
21462 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21464 output_verbose_link_cmd='echo'
21467 case $cc_basename in
21469 # Kuck and Associates, Inc. (KAI) C++ Compiler
21471 # KCC will only create a shared library if the output file
21472 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21473 # to its proper name (with version) after linking.
21474 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'
21476 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21477 hardcode_libdir_separator_CXX=:
21479 # Archives containing C++ object files must be created using
21480 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21481 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21485 # Rational C++ 2.4.1
21486 # FIXME: insert proper C++ library support
21490 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21491 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'
21493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21494 hardcode_libdir_separator_CXX=:
21496 # Commands to make compiler produce verbose output that lists
21497 # what "hidden" libraries, object files and flags are used when
21498 # linking a shared library.
21500 # There doesn't appear to be a way to prevent this compiler from
21501 # explicitly linking system object files so we need to strip them
21502 # from the output so that they don't get included in the library
21504 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'
21507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21508 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21509 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'
21511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21512 hardcode_libdir_separator_CXX=:
21514 # Commands to make compiler produce verbose output that lists
21515 # what "hidden" libraries, object files and flags are used when
21516 # linking a shared library.
21517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21520 # FIXME: insert proper C++ library support
21527 case $cc_basename in
21529 # Kuck and Associates, Inc. (KAI) C++ Compiler
21531 # KCC will only create a shared library if the output file
21532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21533 # to its proper name (with version) after linking.
21534 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'
21536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21537 hardcode_libdir_separator_CXX=:
21539 # Archives containing C++ object files must be created using
21540 # the KAI C++ compiler.
21541 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21544 # Rational C++ 2.4.1
21545 # FIXME: insert proper C++ library support
21549 allow_undefined_flag_CXX=' -expect_unresolved \*'
21550 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'
21551 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21552 echo "-hidden">> $lib.exp~
21553 $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~
21556 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21557 hardcode_libdir_separator_CXX=:
21559 # Commands to make compiler produce verbose output that lists
21560 # what "hidden" libraries, object files and flags are used when
21561 # linking a shared library.
21563 # There doesn't appear to be a way to prevent this compiler from
21564 # explicitly linking system object files so we need to strip them
21565 # from the output so that they don't get included in the library
21567 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'
21570 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21571 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21572 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'
21574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21575 hardcode_libdir_separator_CXX=:
21577 # Commands to make compiler produce verbose output that lists
21578 # what "hidden" libraries, object files and flags are used when
21579 # linking a shared library.
21580 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21583 # FIXME: insert proper C++ library support
21590 # FIXME: insert proper C++ library support
21594 archive_cmds_need_lc_CXX=no
21595 case $cc_basename in
21597 # FIXME: insert proper C++ library support
21601 # FIXME: insert proper C++ library support
21607 case $cc_basename in
21610 # FIXME: insert proper C++ library support
21615 # FIXME: insert proper C++ library support
21619 # FIXME: insert proper C++ library support
21625 case $cc_basename in
21627 # Sun C++ 4.2, 5.x and Centerline C++
21628 archive_cmds_need_lc_CXX=yes
21629 no_undefined_flag_CXX=' -zdefs'
21630 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21631 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21632 $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'
21634 hardcode_libdir_flag_spec_CXX='-R$libdir'
21635 hardcode_shlibpath_var_CXX=no
21637 solaris2.[0-5] | solaris2.[0-5].*) ;;
21639 # The C++ compiler is used as linker so we must use $wl
21640 # flag to pass the commands to the underlying system
21641 # linker. We must also pass each convience library through
21642 # to the system linker between allextract/defaultextract.
21643 # The C++ compiler will combine linker options so we
21644 # cannot just pass the convience library names through
21646 # Supported since Solaris 2.6 (maybe 2.5.1?)
21647 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'
21650 link_all_deplibs_CXX=yes
21652 output_verbose_link_cmd='echo'
21654 # Archives containing C++ object files must be created using
21655 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21656 # necessary to make sure instantiated templates are included
21658 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21661 # Green Hills C++ Compiler
21662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21664 # The C++ compiler must be used to create the archive.
21665 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21668 # GNU C++ compiler with Solaris linker
21669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21670 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21671 if $CC --version | grep -v '^2\.7' > /dev/null; then
21672 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21673 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21674 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21676 # Commands to make compiler produce verbose output that lists
21677 # what "hidden" libraries, object files and flags are used when
21678 # linking a shared library.
21679 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21681 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21683 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
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 -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21687 # Commands to make compiler produce verbose output that lists
21688 # what "hidden" libraries, object files and flags are used when
21689 # linking a shared library.
21690 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21693 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21698 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21699 archive_cmds_need_lc_CXX=no
21702 case $cc_basename in
21704 # NonStop-UX NCC 3.20
21705 # FIXME: insert proper C++ library support
21709 # FIXME: insert proper C++ library support
21715 # FIXME: insert proper C++ library support
21719 # FIXME: insert proper C++ library support
21723 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21724 echo "${ECHO_T}$ld_shlibs_CXX" >&6
21725 test "$ld_shlibs_CXX" = no && can_build_shared=no
21731 ## There is no encapsulation within the following macros, do not change
21732 ## the running order or otherwise move them around unless you know exactly
21733 ## what you are doing...
21735 cat > conftest.$ac_ext <<EOF
21739 Foo (void) { a = 0; }
21745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21746 (eval $ac_compile) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; then
21750 # Parse the compiler output and extract the necessary
21751 # objects, libraries and library flags.
21753 # Sentinel used to keep track of whether or not we are before
21754 # the conftest object file.
21755 pre_test_object_deps_done=no
21757 # The `*' in the case matches for architectures that use `case' in
21758 # $output_verbose_cmd can trigger glob expansion during the loop
21759 # eval without this substitution.
21760 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21762 for p in `eval $output_verbose_link_cmd`; do
21766 # Some compilers place space between "-{L,R}" and the path.
21767 # Remove the space.
21768 if test $p = "-L" \
21769 || test $p = "-R"; then
21776 if test "$pre_test_object_deps_done" = no; then
21779 # Internal compiler library paths should come after those
21780 # provided the user. The postdeps already come after the
21781 # user supplied libs so there is no need to process them.
21782 if test -z "$compiler_lib_search_path_CXX"; then
21783 compiler_lib_search_path_CXX="${prev}${p}"
21785 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21788 # The "-l" case would never come before the object being
21789 # linked, so don't bother handling this case.
21792 if test -z "$postdeps_CXX"; then
21793 postdeps_CXX="${prev}${p}"
21795 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21801 # This assumes that the test object file only shows up
21802 # once in the compiler output.
21803 if test "$p" = "conftest.$objext"; then
21804 pre_test_object_deps_done=yes
21808 if test "$pre_test_object_deps_done" = no; then
21809 if test -z "$predep_objects_CXX"; then
21810 predep_objects_CXX="$p"
21812 predep_objects_CXX="$predep_objects_CXX $p"
21815 if test -z "$postdep_objects_CXX"; then
21816 postdep_objects_CXX="$p"
21818 postdep_objects_CXX="$postdep_objects_CXX $p"
21823 *) ;; # Ignore the rest.
21831 echo "libtool.m4: error: problem compiling CXX test program"
21834 $rm -f confest.$objext
21836 # PORTME: override above test on systems where it is broken
21839 case $cc_basename in
21841 # Adding this requires a known-good setup of shared libraries for
21842 # Sun compiler versions before 5.6, else PIC objects from an old
21843 # archive will be linked into the output, leading to subtle bugs.
21844 postdeps_CXX='-lCstd -lCrun'
21850 case " $postdeps_CXX " in
21851 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21854 lt_prog_compiler_wl_CXX=
21855 lt_prog_compiler_pic_CXX=
21856 lt_prog_compiler_static_CXX=
21858 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21859 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21861 # C++ specific cases for pic, static, wl, etc.
21862 if test "$GXX" = yes; then
21863 lt_prog_compiler_wl_CXX='-Wl,'
21864 lt_prog_compiler_static_CXX='-static'
21868 # All AIX code is PIC.
21869 if test "$host_cpu" = ia64; then
21870 # AIX 5 now supports IA64 processor
21871 lt_prog_compiler_static_CXX='-Bstatic'
21875 # FIXME: we need at least 68020 code to build shared libraries, but
21876 # adding the `-m68020' flag to GCC prevents building anything better,
21878 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21880 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21881 # PIC is the default for these OSes.
21883 mingw* | os2* | pw32*)
21884 # This hack is so that the source file can tell whether it is being
21885 # built for inclusion in a dll (and should export symbols for example).
21886 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21888 darwin* | rhapsody*)
21889 # PIC is the default on this platform
21890 # Common symbols not allowed in MH_DYLIB files
21891 lt_prog_compiler_pic_CXX='-fno-common'
21894 # DJGPP does not support shared libraries at all
21895 lt_prog_compiler_pic_CXX=
21898 if test -d /usr/nec; then
21899 lt_prog_compiler_pic_CXX=-Kconform_pic
21903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21904 # not for PA HP-UX.
21909 lt_prog_compiler_pic_CXX='-fPIC'
21914 lt_prog_compiler_pic_CXX='-fPIC'
21920 # All AIX code is PIC.
21921 if test "$host_cpu" = ia64; then
21922 # AIX 5 now supports IA64 processor
21923 lt_prog_compiler_static_CXX='-Bstatic'
21925 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21929 case $cc_basename in
21931 # Green Hills C++ Compiler
21932 # _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"
21937 # PIC is the default on this platform
21938 # Common symbols not allowed in MH_DYLIB files
21939 case $cc_basename in
21941 lt_prog_compiler_pic_CXX='-qnocommon'
21942 lt_prog_compiler_wl_CXX='-Wl,'
21947 case $cc_basename in
21949 lt_prog_compiler_pic_CXX='-KPIC'
21952 # Green Hills C++ Compiler
21953 lt_prog_compiler_pic_CXX='-pic'
21959 freebsd* | kfreebsd*-gnu | dragonfly*)
21960 # FreeBSD uses GNU C++
21962 hpux9* | hpux10* | hpux11*)
21963 case $cc_basename in
21965 lt_prog_compiler_wl_CXX='-Wl,'
21966 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21967 if test "$host_cpu" != ia64; then
21968 lt_prog_compiler_pic_CXX='+Z'
21972 lt_prog_compiler_wl_CXX='-Wl,'
21973 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21979 lt_prog_compiler_pic_CXX='+Z'
21987 irix5* | irix6* | nonstopux*)
21988 case $cc_basename in
21990 lt_prog_compiler_wl_CXX='-Wl,'
21991 lt_prog_compiler_static_CXX='-non_shared'
21992 # CC pic flag -KPIC is the default.
21999 case $cc_basename in
22002 lt_prog_compiler_wl_CXX='--backend -Wl,'
22003 lt_prog_compiler_pic_CXX='-fPIC'
22007 lt_prog_compiler_wl_CXX='-Wl,'
22008 lt_prog_compiler_pic_CXX='-KPIC'
22009 lt_prog_compiler_static_CXX='-static'
22012 # Portland Group C++ compiler.
22013 lt_prog_compiler_wl_CXX='-Wl,'
22014 lt_prog_compiler_pic_CXX='-fpic'
22015 lt_prog_compiler_static_CXX='-Bstatic'
22019 # Make sure the PIC flag is empty. It appears that all Alpha
22020 # Linux and Compaq Tru64 Unix objects are PIC.
22021 lt_prog_compiler_pic_CXX=
22022 lt_prog_compiler_static_CXX='-non_shared'
22033 case $cc_basename in
22035 lt_prog_compiler_pic_CXX='-W c,exportall'
22043 osf3* | osf4* | osf5*)
22044 case $cc_basename in
22046 lt_prog_compiler_wl_CXX='--backend -Wl,'
22049 # Rational C++ 2.4.1
22050 lt_prog_compiler_pic_CXX='-pic'
22053 # Digital/Compaq C++
22054 lt_prog_compiler_wl_CXX='-Wl,'
22055 # Make sure the PIC flag is empty. It appears that all Alpha
22056 # Linux and Compaq Tru64 Unix objects are PIC.
22057 lt_prog_compiler_pic_CXX=
22058 lt_prog_compiler_static_CXX='-non_shared'
22067 case $cc_basename in
22069 lt_prog_compiler_pic_CXX='-fPIC'
22076 case $cc_basename in
22078 # Sun C++ 4.2, 5.x and Centerline C++
22079 lt_prog_compiler_pic_CXX='-KPIC'
22080 lt_prog_compiler_static_CXX='-Bstatic'
22081 lt_prog_compiler_wl_CXX='-Qoption ld '
22084 # Green Hills C++ Compiler
22085 lt_prog_compiler_pic_CXX='-PIC'
22092 case $cc_basename in
22095 lt_prog_compiler_pic_CXX='-pic'
22096 lt_prog_compiler_static_CXX='-Bstatic'
22100 lt_prog_compiler_pic_CXX='-pic'
22107 case $cc_basename in
22109 # NonStop-UX NCC 3.20
22110 lt_prog_compiler_pic_CXX='-KPIC'
22121 lt_prog_compiler_can_build_shared_CXX=no
22126 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
22127 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
22130 # Check to make sure the PIC flag actually works.
22132 if test -n "$lt_prog_compiler_pic_CXX"; then
22134 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22135 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
22136 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 lt_prog_compiler_pic_works_CXX=no
22140 ac_outfile=conftest.$ac_objext
22141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22142 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22143 # Insert the option either (1) after the last *FLAGS variable, or
22144 # (2) before a word containing "conftest.", or (3) at the end.
22145 # Note that $ac_compile itself does not contain backslashes and begins
22146 # with a dollar sign (not a hyphen), so the echo should work correctly.
22147 # The option is referenced via a variable to avoid confusing sed.
22148 lt_compile=`echo "$ac_compile" | $SED \
22149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22151 -e 's:$: $lt_compiler_flag:'`
22152 (eval echo "\"\$as_me:22152: $lt_compile\"" >&5)
22153 (eval "$lt_compile" 2>conftest.err)
22155 cat conftest.err >&5
22156 echo "$as_me:22156: \$? = $ac_status" >&5
22157 if (exit $ac_status) && test -s "$ac_outfile"; then
22158 # The compiler can only warn and ignore the option if not recognized
22159 # So say no if there are warnings other than the usual output.
22160 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22161 $SED '/^$/d' conftest.err >conftest.er2
22162 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22163 lt_prog_compiler_pic_works_CXX=yes
22169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
22170 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
22172 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
22173 case $lt_prog_compiler_pic_CXX in
22175 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22178 lt_prog_compiler_pic_CXX=
22179 lt_prog_compiler_can_build_shared_CXX=no
22184 # For platforms which do not support PIC, -DPIC is meaningless:
22186 lt_prog_compiler_pic_CXX=
22189 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22193 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22194 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22195 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 lt_cv_prog_compiler_c_o_CXX=no
22199 $rm -r conftest 2>/dev/null
22203 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22205 lt_compiler_flag="-o out/conftest2.$ac_objext"
22206 # Insert the option either (1) after the last *FLAGS variable, or
22207 # (2) before a word containing "conftest.", or (3) at the end.
22208 # Note that $ac_compile itself does not contain backslashes and begins
22209 # with a dollar sign (not a hyphen), so the echo should work correctly.
22210 lt_compile=`echo "$ac_compile" | $SED \
22211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22213 -e 's:$: $lt_compiler_flag:'`
22214 (eval echo "\"\$as_me:22214: $lt_compile\"" >&5)
22215 (eval "$lt_compile" 2>out/conftest.err)
22217 cat out/conftest.err >&5
22218 echo "$as_me:22218: \$? = $ac_status" >&5
22219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22221 # The compiler can only warn and ignore the option if not recognized
22222 # So say no if there are warnings
22223 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22224 $SED '/^$/d' out/conftest.err >out/conftest.er2
22225 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22226 lt_cv_prog_compiler_c_o_CXX=yes
22231 # SGI C++ compiler will create directory out/ii_files/ for
22232 # template instantiation
22233 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22234 $rm out/* && rmdir out
22240 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22241 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
22244 hard_links="nottested"
22245 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22246 # do not overwrite the value of need_locks provided by the user
22247 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22248 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22253 ln conftest.a conftest.b 2>&5 || hard_links=no
22254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22255 echo "$as_me:$LINENO: result: $hard_links" >&5
22256 echo "${ECHO_T}$hard_links" >&6
22257 if test "$hard_links" = no; then
22258 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22259 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22269 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22272 # If we're using GNU nm, then we don't want the "-C" option.
22273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22274 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22275 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'
22277 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'
22281 export_symbols_cmds_CXX="$ltdll_cmds"
22284 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'
22287 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22291 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22292 echo "${ECHO_T}$ld_shlibs_CXX" >&6
22293 test "$ld_shlibs_CXX" = no && can_build_shared=no
22295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22296 if test "$GCC" = yes; then
22297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22301 # Do we need to explicitly link libc?
22303 case "x$archive_cmds_need_lc_CXX" in
22305 # Assume -lc should be added
22306 archive_cmds_need_lc_CXX=yes
22308 if test "$enable_shared" = yes && test "$GCC" = yes; then
22309 case $archive_cmds_CXX in
22311 # FIXME: we may have to deal with multi-command sequences.
22314 # Test whether the compiler implicitly links with -lc since on some
22315 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22316 # to ld, don't add -lc before -lgcc.
22317 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22318 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323 (eval $ac_compile) 2>&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } 2>conftest.err; then
22329 libobjs=conftest.$ac_objext
22331 wl=$lt_prog_compiler_wl_CXX
22337 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22338 allow_undefined_flag_CXX=
22339 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22340 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); }
22345 archive_cmds_need_lc_CXX=no
22347 archive_cmds_need_lc_CXX=yes
22349 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22351 cat conftest.err 1>&5
22354 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22355 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22362 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22363 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22364 library_names_spec=
22365 libname_spec='lib$name'
22369 postuninstall_cmds=
22373 shlibpath_overrides_runpath=unknown
22375 dynamic_linker="$host_os ld.so"
22376 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22377 if test "$GCC" = yes; then
22378 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22379 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22380 # if the path contains ";" then we assume it to be the separator
22381 # otherwise default to the standard path separator (i.e. ":") - it is
22382 # assumed that no part of a normal pathname contains ";" but that should
22383 # okay in the real world where ";" in dirpaths is itself problematic.
22384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22389 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22391 need_lib_prefix=unknown
22392 hardcode_into_libs=no
22394 # when you set need_version to no, make sure it does not cause -set_version
22395 # flags to be left without arguments
22396 need_version=unknown
22401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22402 shlibpath_var=LIBPATH
22404 # AIX 3 has no versioning support, so we append a major version to the name.
22405 soname_spec='${libname}${release}${shared_ext}$major'
22412 hardcode_into_libs=yes
22413 if test "$host_cpu" = ia64; then
22414 # AIX 5 supports IA64
22415 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22416 shlibpath_var=LD_LIBRARY_PATH
22418 # With GCC up to 2.95.x, collect2 would create an import file
22419 # for dependence libraries. The import file would start with
22420 # the line `#! .'. This would cause the generated library to
22421 # depend on `.', always an invalid library. This was fixed in
22422 # development snapshots of GCC prior to 3.0.
22424 aix4 | aix4.[01] | aix4.[01].*)
22425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22427 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22430 can_build_shared=no
22434 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22435 # soname into executable. Probably we can add versioning support to
22436 # collect2, so additional links can be useful in future.
22437 if test "$aix_use_runtimelinking" = yes; then
22438 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22439 # instead of lib<name>.a to let people know that these are not
22440 # typical AIX shared libraries.
22441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22443 # We preserve .a as extension for shared libraries through AIX4.2
22444 # and later when we are not doing run time linking.
22445 library_names_spec='${libname}${release}.a $libname.a'
22446 soname_spec='${libname}${release}${shared_ext}$major'
22448 shlibpath_var=LIBPATH
22453 library_names_spec='$libname.ixlibrary $libname.a'
22454 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22455 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'
22459 library_names_spec='${libname}${shared_ext}'
22460 dynamic_linker="$host_os ld.so"
22461 shlibpath_var=LIBRARY_PATH
22467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22468 soname_spec='${libname}${release}${shared_ext}$major'
22469 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22470 shlibpath_var=LD_LIBRARY_PATH
22471 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22472 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22473 # the default ld.so.conf also contains /usr/contrib/lib and
22474 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22475 # libtool to hard-code these into programs
22478 cygwin* | mingw* | pw32*)
22479 version_type=windows
22484 case $GCC,$host_os in
22485 yes,cygwin* | yes,mingw* | yes,pw32*)
22486 library_names_spec='$libname.dll.a'
22487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22488 postinstall_cmds='base_file=`basename \${file}`~
22489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22490 dldir=$destdir/`dirname \$dlpath`~
22491 test -d \$dldir || mkdir -p \$dldir~
22492 $install_prog $dir/$dlname \$dldir/$dlname~
22493 chmod a+x \$dldir/$dlname'
22494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22495 dlpath=$dir/\$dldll~
22497 shlibpath_overrides_runpath=yes
22501 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22502 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22503 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22506 # MinGW DLLs use traditional 'lib' prefix
22507 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22508 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22509 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22510 # It is most probably a Windows format PATH printed by
22511 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22512 # path with ; separators, and with drive letters. We can handle the
22513 # drive letters (cygwin fileutils understands them), so leave them,
22514 # especially as we might pass files found there to a mingw objdump,
22515 # which wouldn't understand a cygwinified path. Ahh.
22516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22522 # pw32 DLLs use 'pw' prefix rather than 'lib'
22523 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22529 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22532 dynamic_linker='Win32 ld.exe'
22533 # FIXME: first we should search . and the directory the executable is in
22537 darwin* | rhapsody*)
22538 dynamic_linker="$host_os dyld"
22539 version_type=darwin
22542 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22543 soname_spec='${libname}${release}${major}$shared_ext'
22544 shlibpath_overrides_runpath=yes
22545 shlibpath_var=DYLD_LIBRARY_PATH
22546 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22547 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22548 if test "$GCC" = yes; then
22549 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"`
22551 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22553 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22561 soname_spec='${libname}${release}${shared_ext}$major'
22562 shlibpath_var=LD_LIBRARY_PATH
22573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22574 soname_spec='${libname}${release}${shared_ext}$major'
22575 shlibpath_var=LD_LIBRARY_PATH
22576 shlibpath_overrides_runpath=no
22577 hardcode_into_libs=yes
22578 dynamic_linker='GNU ld.so'
22581 freebsd* | dragonfly*)
22582 # DragonFly does not have aout. When/if they implement a new
22583 # versioning mechanism, adjust this.
22584 if test -x /usr/bin/objformat; then
22585 objformat=`/usr/bin/objformat`
22588 freebsd[123]*) objformat=aout ;;
22589 *) objformat=elf ;;
22592 version_type=freebsd-$objformat
22593 case $version_type in
22595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22604 shlibpath_var=LD_LIBRARY_PATH
22607 shlibpath_overrides_runpath=yes
22609 freebsd3.[01]* | freebsdelf3.[01]*)
22610 shlibpath_overrides_runpath=yes
22611 hardcode_into_libs=yes
22614 shlibpath_overrides_runpath=no
22615 hardcode_into_libs=yes
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22625 soname_spec='${libname}${release}${shared_ext}$major'
22626 shlibpath_var=LD_LIBRARY_PATH
22627 hardcode_into_libs=yes
22630 hpux9* | hpux10* | hpux11*)
22631 # Give a soname corresponding to the major version so that dld.sl refuses to
22632 # link against other versions.
22639 hardcode_into_libs=yes
22640 dynamic_linker="$host_os dld.so"
22641 shlibpath_var=LD_LIBRARY_PATH
22642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22644 soname_spec='${libname}${release}${shared_ext}$major'
22645 if test "X$HPUX_IA64_MODE" = X32; then
22646 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22648 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22654 hardcode_into_libs=yes
22655 dynamic_linker="$host_os dld.sl"
22656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659 soname_spec='${libname}${release}${shared_ext}$major'
22660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22665 dynamic_linker="$host_os dld.sl"
22666 shlibpath_var=SHLIB_PATH
22667 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669 soname_spec='${libname}${release}${shared_ext}$major'
22672 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22673 postinstall_cmds='chmod 555 $lib'
22676 irix5* | irix6* | nonstopux*)
22678 nonstopux*) version_type=nonstopux ;;
22680 if test "$lt_cv_prog_gnu_ld" = yes; then
22688 soname_spec='${libname}${release}${shared_ext}$major'
22689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22691 irix5* | nonstopux*)
22692 libsuff= shlibsuff=
22695 case $LD in # libtool.m4 will add one of these switches to LD
22696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22697 libsuff= shlibsuff= libmagic=32-bit;;
22698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22699 libsuff=32 shlibsuff=N32 libmagic=N32;;
22700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22701 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22702 *) libsuff= shlibsuff= libmagic=never-match;;
22706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22707 shlibpath_overrides_runpath=no
22708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22710 hardcode_into_libs=yes
22713 # No shared lib support for Linux oldld, aout, or coff.
22714 linux*oldld* | linux*aout* | linux*coff*)
22718 # This must be Linux ELF.
22723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22724 soname_spec='${libname}${release}${shared_ext}$major'
22725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22726 shlibpath_var=LD_LIBRARY_PATH
22727 shlibpath_overrides_runpath=no
22728 # This implies no fast_install, which is unacceptable.
22729 # Some rework will be needed to allow for fast_install
22730 # before this can be enabled.
22731 hardcode_into_libs=yes
22733 # Append ld.so.conf contents to the search path
22734 if test -f /etc/ld.so.conf; then
22735 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' ' '`
22736 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22739 # We used to test for /lib/ld.so.1 and disable shared libraries on
22740 # powerpc, because MkLinux only supported shared libraries with the
22741 # GNU dynamic linker. Since this was broken with cross compilers,
22742 # most powerpc-linux boxes support dynamic linking these days and
22743 # people can always --disable-shared, the test was removed, and we
22744 # assume the GNU/Linux dynamic linker is in use.
22745 dynamic_linker='GNU/Linux ld.so'
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22753 soname_spec='${libname}${release}${shared_ext}$major'
22754 shlibpath_var=LD_LIBRARY_PATH
22755 shlibpath_overrides_runpath=no
22756 hardcode_into_libs=yes
22757 dynamic_linker='GNU ld.so'
22764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22767 dynamic_linker='NetBSD (a.out) ld.so'
22769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22770 soname_spec='${libname}${release}${shared_ext}$major'
22771 dynamic_linker='NetBSD ld.elf_so'
22773 shlibpath_var=LD_LIBRARY_PATH
22774 shlibpath_overrides_runpath=yes
22775 hardcode_into_libs=yes
22780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22781 shlibpath_var=LD_LIBRARY_PATH
22782 shlibpath_overrides_runpath=yes
22789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790 soname_spec='${libname}${release}${shared_ext}$major'
22791 shlibpath_var=LD_LIBRARY_PATH
22792 shlibpath_overrides_runpath=yes
22798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22801 *) need_version=no ;;
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22808 openbsd2.[89] | openbsd2.[89].*)
22809 shlibpath_overrides_runpath=no
22812 shlibpath_overrides_runpath=yes
22816 shlibpath_overrides_runpath=yes
22821 libname_spec='$name'
22824 library_names_spec='$libname${shared_ext} $libname.a'
22825 dynamic_linker='OS/2 ld.exe'
22826 shlibpath_var=LIBPATH
22829 osf3* | osf4* | osf5*)
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22835 shlibpath_var=LD_LIBRARY_PATH
22836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22842 soname_spec='${libname}${release}${shared_ext}$major'
22843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22844 shlibpath_var=LD_LIBRARY_PATH
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 shlibpath_var=LD_LIBRARY_PATH
22854 shlibpath_overrides_runpath=yes
22855 hardcode_into_libs=yes
22856 # ldd complains unless libraries are executable
22857 postinstall_cmds='chmod +x $lib'
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=yes
22866 if test "$with_gnu_ld" = yes; then
22872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875 soname_spec='${libname}${release}${shared_ext}$major'
22876 shlibpath_var=LD_LIBRARY_PATH
22877 case $host_vendor in
22879 shlibpath_overrides_runpath=no
22881 export_dynamic_flag_spec='${wl}-Blargedynsym'
22882 runpath_var=LD_RUN_PATH
22890 shlibpath_overrides_runpath=no
22891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22897 if test -d /usr/nec ;then
22899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22900 soname_spec='$libname${shared_ext}.$major'
22901 shlibpath_var=LD_LIBRARY_PATH
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 shlibpath_var=LD_LIBRARY_PATH
22916 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22917 echo "${ECHO_T}$dynamic_linker" >&6
22918 test "$dynamic_linker" = no && can_build_shared=no
22920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22922 hardcode_action_CXX=
22923 if test -n "$hardcode_libdir_flag_spec_CXX" || \
22924 test -n "$runpath_var_CXX" || \
22925 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22927 # We can hardcode non-existant directories.
22928 if test "$hardcode_direct_CXX" != no &&
22929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22930 # have to relink, otherwise we might link with an installed library
22931 # when we should be linking with a yet-to-be-installed one
22932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22933 test "$hardcode_minus_L_CXX" != no; then
22934 # Linking always hardcodes the temporary library directory.
22935 hardcode_action_CXX=relink
22937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22938 hardcode_action_CXX=immediate
22941 # We cannot hardcode anything, or else we can only hardcode existing
22943 hardcode_action_CXX=unsupported
22945 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22946 echo "${ECHO_T}$hardcode_action_CXX" >&6
22948 if test "$hardcode_action_CXX" = relink; then
22949 # Fast installation is not supported
22950 enable_fast_install=no
22951 elif test "$shlibpath_overrides_runpath" = yes ||
22952 test "$enable_shared" = no; then
22953 # Fast installation is not necessary
22954 enable_fast_install=needless
22959 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22960 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22961 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22963 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22964 echo "$as_me:$LINENO: result: yes" >&5
22965 echo "${ECHO_T}yes" >&6
22967 # FIXME - insert some real tests, host_os isn't really good enough
22970 if test -n "$STRIP" ; then
22971 striplib="$STRIP -x"
22972 echo "$as_me:$LINENO: result: yes" >&5
22973 echo "${ECHO_T}yes" >&6
22975 echo "$as_me:$LINENO: result: no" >&5
22976 echo "${ECHO_T}no" >&6
22980 echo "$as_me:$LINENO: result: no" >&5
22981 echo "${ECHO_T}no" >&6
22986 if test "x$enable_dlopen" != xyes; then
22987 enable_dlopen=unknown
22988 enable_dlopen_self=unknown
22989 enable_dlopen_self_static=unknown
22996 lt_cv_dlopen="load_add_on"
22998 lt_cv_dlopen_self=yes
23002 lt_cv_dlopen="LoadLibrary"
23007 lt_cv_dlopen="dlopen"
23012 # if libdl is installed we need to link against it
23013 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 ac_check_lib_save_LIBS=$LIBS
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23027 /* Override any gcc2 internal prototype to avoid an error. */
23031 /* We use char because int might match the return type of a gcc2
23032 builtin and then its argument prototype would still apply. */
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044 (eval $ac_link) 2>conftest.er1
23046 grep -v '^ *+' conftest.er1 >conftest.err
23048 cat conftest.err >&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } &&
23051 { ac_try='test -z "$ac_cxx_werror_flag"
23052 || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest$ac_exeext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_lib_dl_dlopen=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_cv_lib_dl_dlopen=no
23071 rm -f conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
23073 LIBS=$ac_check_lib_save_LIBS
23075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23077 if test $ac_cv_lib_dl_dlopen = yes; then
23078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23081 lt_cv_dlopen="dyld"
23083 lt_cv_dlopen_self=yes
23090 echo "$as_me:$LINENO: checking for shl_load" >&5
23091 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23092 if test "${ac_cv_func_shl_load+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23103 #define shl_load innocuous_shl_load
23105 /* System header to define __stub macros and hopefully few prototypes,
23106 which can conflict with char shl_load (); below.
23107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23108 <limits.h> exists even on freestanding compilers. */
23111 # include <limits.h>
23113 # include <assert.h>
23118 /* Override any gcc2 internal prototype to avoid an error. */
23123 /* We use char because int might match the return type of a gcc2
23124 builtin and then its argument prototype would still apply. */
23126 /* The GNU C library defines this for functions which it implements
23127 to always fail with ENOSYS. Some functions are actually named
23128 something starting with __ and the normal name is an alias. */
23129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23132 char (*f) () = shl_load;
23141 return f != shl_load;
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23148 (eval $ac_link) 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
23155 { ac_try='test -z "$ac_cxx_werror_flag"
23156 || test ! -s conftest.err'
23157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158 (eval $ac_try) 2>&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; } &&
23162 { ac_try='test -s conftest$ac_exeext'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 ac_cv_func_shl_load=yes
23170 echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23173 ac_cv_func_shl_load=no
23175 rm -f conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
23178 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23179 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23180 if test $ac_cv_func_shl_load = yes; then
23181 lt_cv_dlopen="shl_load"
23183 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23184 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 ac_check_lib_save_LIBS=$LIBS
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23197 /* Override any gcc2 internal prototype to avoid an error. */
23201 /* We use char because int might match the return type of a gcc2
23202 builtin and then its argument prototype would still apply. */
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23214 (eval $ac_link) 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -z "$ac_cxx_werror_flag"
23222 || test ! -s conftest.err'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest$ac_exeext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_lib_dld_shl_load=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_cv_lib_dld_shl_load=no
23241 rm -f conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23245 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23246 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23247 if test $ac_cv_lib_dld_shl_load = yes; then
23248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23250 echo "$as_me:$LINENO: checking for dlopen" >&5
23251 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23252 if test "${ac_cv_func_dlopen+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 cat >conftest.$ac_ext <<_ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23261 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23263 #define dlopen innocuous_dlopen
23265 /* System header to define __stub macros and hopefully few prototypes,
23266 which can conflict with char dlopen (); below.
23267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268 <limits.h> exists even on freestanding compilers. */
23271 # include <limits.h>
23273 # include <assert.h>
23278 /* Override any gcc2 internal prototype to avoid an error. */
23283 /* We use char because int might match the return type of a gcc2
23284 builtin and then its argument prototype would still apply. */
23286 /* The GNU C library defines this for functions which it implements
23287 to always fail with ENOSYS. Some functions are actually named
23288 something starting with __ and the normal name is an alias. */
23289 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23292 char (*f) () = dlopen;
23301 return f != dlopen;
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308 (eval $ac_link) 2>conftest.er1
23310 grep -v '^ *+' conftest.er1 >conftest.err
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try='test -z "$ac_cxx_werror_flag"
23316 || test ! -s conftest.err'
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest$ac_exeext'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328 ac_cv_func_dlopen=yes
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ac_cv_func_dlopen=no
23335 rm -f conftest.err conftest.$ac_objext \
23336 conftest$ac_exeext conftest.$ac_ext
23338 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23340 if test $ac_cv_func_dlopen = yes; then
23341 lt_cv_dlopen="dlopen"
23343 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 ac_check_lib_save_LIBS=$LIBS
23350 cat >conftest.$ac_ext <<_ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23357 /* Override any gcc2 internal prototype to avoid an error. */
23361 /* We use char because int might match the return type of a gcc2
23362 builtin and then its argument prototype would still apply. */
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374 (eval $ac_link) 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
23381 { ac_try='test -z "$ac_cxx_werror_flag"
23382 || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest$ac_exeext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_cv_lib_dl_dlopen=yes
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_cv_lib_dl_dlopen=no
23401 rm -f conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23405 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23407 if test $ac_cv_lib_dl_dlopen = yes; then
23408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23410 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
23415 ac_check_lib_save_LIBS=$LIBS
23416 LIBS="-lsvld $LIBS"
23417 cat >conftest.$ac_ext <<_ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23424 /* Override any gcc2 internal prototype to avoid an error. */
23428 /* We use char because int might match the return type of a gcc2
23429 builtin and then its argument prototype would still apply. */
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441 (eval $ac_link) 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -z "$ac_cxx_werror_flag"
23449 || test ! -s conftest.err'
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; } &&
23455 { ac_try='test -s conftest$ac_exeext'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 ac_cv_lib_svld_dlopen=yes
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ac_cv_lib_svld_dlopen=no
23468 rm -f conftest.err conftest.$ac_objext \
23469 conftest$ac_exeext conftest.$ac_ext
23470 LIBS=$ac_check_lib_save_LIBS
23472 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23473 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23474 if test $ac_cv_lib_svld_dlopen = yes; then
23475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23477 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23478 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23479 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 ac_check_lib_save_LIBS=$LIBS
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23491 /* Override any gcc2 internal prototype to avoid an error. */
23495 /* We use char because int might match the return type of a gcc2
23496 builtin and then its argument prototype would still apply. */
23506 rm -f conftest.$ac_objext conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508 (eval $ac_link) 2>conftest.er1
23510 grep -v '^ *+' conftest.er1 >conftest.err
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
23515 { ac_try='test -z "$ac_cxx_werror_flag"
23516 || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest$ac_exeext'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_lib_dld_dld_link=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ac_cv_lib_dld_dld_link=no
23535 rm -f conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23539 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23541 if test $ac_cv_lib_dld_dld_link = yes; then
23542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23563 if test "x$lt_cv_dlopen" != xno; then
23569 case $lt_cv_dlopen in
23571 save_CPPFLAGS="$CPPFLAGS"
23572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23574 save_LDFLAGS="$LDFLAGS"
23575 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23578 LIBS="$lt_cv_dlopen_libs $LIBS"
23580 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23582 if test "${lt_cv_dlopen_self+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23585 if test "$cross_compiling" = yes; then :
23586 lt_cv_dlopen_self=cross
23588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589 lt_status=$lt_dlunknown
23590 cat > conftest.$ac_ext <<EOF
23591 #line 23591 "configure"
23592 #include "confdefs.h"
23601 # define LT_DLGLOBAL RTLD_GLOBAL
23604 # define LT_DLGLOBAL DL_GLOBAL
23606 # define LT_DLGLOBAL 0
23610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611 find out it does not work in some platform. */
23612 #ifndef LT_DLLAZY_OR_NOW
23614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23617 # define LT_DLLAZY_OR_NOW DL_LAZY
23620 # define LT_DLLAZY_OR_NOW RTLD_NOW
23623 # define LT_DLLAZY_OR_NOW DL_NOW
23625 # define LT_DLLAZY_OR_NOW 0
23633 extern "C" void exit (int);
23636 void fnord() { int i=42;}
23639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640 int status = $lt_dlunknown;
23644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646 /* dlclose (self); */
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657 (./conftest; exit; ) >&5 2>/dev/null
23659 case x$lt_status in
23660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23662 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23665 # compilation failed
23666 lt_cv_dlopen_self=no
23673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23674 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23676 if test "x$lt_cv_dlopen_self" = xyes; then
23677 LDFLAGS="$LDFLAGS $link_static_flag"
23678 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23679 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23680 if test "${lt_cv_dlopen_self_static+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23683 if test "$cross_compiling" = yes; then :
23684 lt_cv_dlopen_self_static=cross
23686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23687 lt_status=$lt_dlunknown
23688 cat > conftest.$ac_ext <<EOF
23689 #line 23689 "configure"
23690 #include "confdefs.h"
23699 # define LT_DLGLOBAL RTLD_GLOBAL
23702 # define LT_DLGLOBAL DL_GLOBAL
23704 # define LT_DLGLOBAL 0
23708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23709 find out it does not work in some platform. */
23710 #ifndef LT_DLLAZY_OR_NOW
23712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23715 # define LT_DLLAZY_OR_NOW DL_LAZY
23718 # define LT_DLLAZY_OR_NOW RTLD_NOW
23721 # define LT_DLLAZY_OR_NOW DL_NOW
23723 # define LT_DLLAZY_OR_NOW 0
23731 extern "C" void exit (int);
23734 void fnord() { int i=42;}
23737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23738 int status = $lt_dlunknown;
23742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23744 /* dlclose (self); */
23750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751 (eval $ac_link) 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23755 (./conftest; exit; ) >&5 2>/dev/null
23757 case x$lt_status in
23758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23760 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23763 # compilation failed
23764 lt_cv_dlopen_self_static=no
23771 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23772 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23775 CPPFLAGS="$save_CPPFLAGS"
23776 LDFLAGS="$save_LDFLAGS"
23781 case $lt_cv_dlopen_self in
23782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23783 *) enable_dlopen_self=unknown ;;
23786 case $lt_cv_dlopen_self_static in
23787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23788 *) enable_dlopen_self_static=unknown ;;
23793 # The else clause should only fire when bootstrapping the
23794 # libtool distribution, otherwise you forgot to ship ltmain.sh
23795 # with your package, and you will get complaints that there are
23796 # no rules to generate ltmain.sh.
23797 if test -f "$ltmain"; then
23798 # See if we are running on zsh, and set the options which allow our commands through
23799 # without removal of \ escapes.
23800 if test -n "${ZSH_VERSION+set}" ; then
23801 setopt NO_GLOB_SUBST
23803 # Now quote all the things that may contain metacharacters while being
23804 # careful not to overquote the AC_SUBSTed values. We take copies of the
23805 # variables and quote the copies for generation of the libtool script.
23806 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23808 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23809 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23810 deplibs_check_method reload_flag reload_cmds need_locks \
23811 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23812 lt_cv_sys_global_symbol_to_c_name_address \
23813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23814 old_postinstall_cmds old_postuninstall_cmds \
23818 lt_prog_compiler_wl_CXX \
23819 lt_prog_compiler_pic_CXX \
23820 lt_prog_compiler_static_CXX \
23821 lt_prog_compiler_no_builtin_flag_CXX \
23822 export_dynamic_flag_spec_CXX \
23823 thread_safe_flag_spec_CXX \
23824 whole_archive_flag_spec_CXX \
23825 enable_shared_with_static_runtimes_CXX \
23826 old_archive_cmds_CXX \
23827 old_archive_from_new_cmds_CXX \
23828 predep_objects_CXX \
23829 postdep_objects_CXX \
23832 compiler_lib_search_path_CXX \
23834 archive_expsym_cmds_CXX \
23835 postinstall_cmds_CXX \
23836 postuninstall_cmds_CXX \
23837 old_archive_from_expsyms_cmds_CXX \
23838 allow_undefined_flag_CXX \
23839 no_undefined_flag_CXX \
23840 export_symbols_cmds_CXX \
23841 hardcode_libdir_flag_spec_CXX \
23842 hardcode_libdir_flag_spec_ld_CXX \
23843 hardcode_libdir_separator_CXX \
23844 hardcode_automatic_CXX \
23846 module_expsym_cmds_CXX \
23847 lt_cv_prog_compiler_c_o_CXX \
23848 exclude_expsyms_CXX \
23849 include_expsyms_CXX; do
23852 old_archive_cmds_CXX | \
23853 old_archive_from_new_cmds_CXX | \
23854 archive_cmds_CXX | \
23855 archive_expsym_cmds_CXX | \
23856 module_cmds_CXX | \
23857 module_expsym_cmds_CXX | \
23858 old_archive_from_expsyms_cmds_CXX | \
23859 export_symbols_cmds_CXX | \
23860 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23861 postinstall_cmds | postuninstall_cmds | \
23862 old_postinstall_cmds | old_postuninstall_cmds | \
23863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23864 # Double-quote double-evaled strings.
23865 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23874 *'\$0 --fallback-echo"')
23875 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23881 cat <<__EOF__ >> "$cfgfile"
23882 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23886 # Shell to use when invoking shell scripts.
23889 # Whether or not to build shared libraries.
23890 build_libtool_libs=$enable_shared
23892 # Whether or not to build static libraries.
23893 build_old_libs=$enable_static
23895 # Whether or not to add -lc for building shared libraries.
23896 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23898 # Whether or not to disallow shared libs when runtime libs are static
23899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23901 # Whether or not to optimize for fast installation.
23902 fast_install=$enable_fast_install
23905 host_alias=$host_alias
23909 # The build system.
23910 build_alias=$build_alias
23914 # An echo program that does not interpret backslashes.
23919 AR_FLAGS=$lt_AR_FLAGS
23924 # A language-specific compiler.
23925 CC=$lt_compiler_CXX
23927 # Is the compiler the GNU C compiler?
23933 # The linker used to build libraries.
23936 # Whether we need hard or soft links.
23939 # A BSD-compatible nm program.
23942 # A symbol stripping program
23945 # Used to examine libraries when file_magic_cmd begins "file"
23946 MAGIC_CMD=$MAGIC_CMD
23948 # Used on cygwin: DLL creation program.
23951 # Used on cygwin: object dumper.
23954 # Used on cygwin: assembler.
23957 # The name of the directory that contains temporary libtool files.
23960 # How to create reloadable object files.
23961 reload_flag=$lt_reload_flag
23962 reload_cmds=$lt_reload_cmds
23964 # How to pass a linker flag through the compiler.
23965 wl=$lt_lt_prog_compiler_wl_CXX
23967 # Object file suffix (normally "o").
23968 objext="$ac_objext"
23970 # Old archive suffix (normally "a").
23973 # Shared library suffix (normally ".so").
23974 shrext_cmds='$shrext_cmds'
23976 # Executable file suffix (normally "").
23979 # Additional compiler flags for building library objects.
23980 pic_flag=$lt_lt_prog_compiler_pic_CXX
23983 # What is the maximum length of a command?
23984 max_cmd_len=$lt_cv_sys_max_cmd_len
23986 # Does compiler simultaneously support -c and -o options?
23987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23989 # Must we lock files when doing compilation?
23990 need_locks=$lt_need_locks
23992 # Do we need the lib prefix for modules?
23993 need_lib_prefix=$need_lib_prefix
23995 # Do we need a version for libraries?
23996 need_version=$need_version
23998 # Whether dlopen is supported.
23999 dlopen_support=$enable_dlopen
24001 # Whether dlopen of programs is supported.
24002 dlopen_self=$enable_dlopen_self
24004 # Whether dlopen of statically linked programs is supported.
24005 dlopen_self_static=$enable_dlopen_self_static
24007 # Compiler flag to prevent dynamic linking.
24008 link_static_flag=$lt_lt_prog_compiler_static_CXX
24010 # Compiler flag to turn off builtin functions.
24011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24013 # Compiler flag to allow reflexive dlopens.
24014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24016 # Compiler flag to generate shared objects directly from archives.
24017 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24019 # Compiler flag to generate thread-safe objects.
24020 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
24022 # Library versioning type.
24023 version_type=$version_type
24025 # Format of library name prefix.
24026 libname_spec=$lt_libname_spec
24028 # List of archive names. First name is the real one, the rest are links.
24029 # The last name is the one that the linker finds with -lNAME.
24030 library_names_spec=$lt_library_names_spec
24032 # The coded name of the library, if different from the real name.
24033 soname_spec=$lt_soname_spec
24035 # Commands used to build and install an old-style archive.
24037 old_archive_cmds=$lt_old_archive_cmds_CXX
24038 old_postinstall_cmds=$lt_old_postinstall_cmds
24039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24041 # Create an old-style archive from a shared archive.
24042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24044 # Create a temporary old-style archive to link instead of a shared archive.
24045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24047 # Commands used to build and install a shared archive.
24048 archive_cmds=$lt_archive_cmds_CXX
24049 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24050 postinstall_cmds=$lt_postinstall_cmds
24051 postuninstall_cmds=$lt_postuninstall_cmds
24053 # Commands used to build a loadable module (assumed same as above if empty)
24054 module_cmds=$lt_module_cmds_CXX
24055 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24057 # Commands to strip libraries.
24058 old_striplib=$lt_old_striplib
24059 striplib=$lt_striplib
24061 # Dependencies to place before the objects being linked to create a
24063 predep_objects=$lt_predep_objects_CXX
24065 # Dependencies to place after the objects being linked to create a
24067 postdep_objects=$lt_postdep_objects_CXX
24069 # Dependencies to place before the objects being linked to create a
24071 predeps=$lt_predeps_CXX
24073 # Dependencies to place after the objects being linked to create a
24075 postdeps=$lt_postdeps_CXX
24077 # The library search path used internally by the compiler when linking
24078 # a shared library.
24079 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24081 # Method to check whether dependent libraries are shared objects.
24082 deplibs_check_method=$lt_deplibs_check_method
24084 # Command to use when deplibs_check_method == file_magic.
24085 file_magic_cmd=$lt_file_magic_cmd
24087 # Flag that allows shared libraries with undefined symbols to be built.
24088 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24090 # Flag that forces no undefined symbols.
24091 no_undefined_flag=$lt_no_undefined_flag_CXX
24093 # Commands used to finish a libtool library installation in a directory.
24094 finish_cmds=$lt_finish_cmds
24096 # Same as above, but a single script fragment to be evaled but not shown.
24097 finish_eval=$lt_finish_eval
24099 # Take the output of nm and produce a listing of raw symbols and C names.
24100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24102 # Transform the output of nm in a proper C declaration
24103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24105 # Transform the output of nm in a C name address pair
24106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24108 # This is the shared library runtime path variable.
24109 runpath_var=$runpath_var
24111 # This is the shared library path variable.
24112 shlibpath_var=$shlibpath_var
24114 # Is shlibpath searched before the hard-coded library search path?
24115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24117 # How to hardcode a shared library path into an executable.
24118 hardcode_action=$hardcode_action_CXX
24120 # Whether we should hardcode library paths into libraries.
24121 hardcode_into_libs=$hardcode_into_libs
24123 # Flag to hardcode \$libdir into a binary during linking.
24124 # This must work even if \$libdir does not exist.
24125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24127 # If ld is used when linking, flag to hardcode \$libdir into
24128 # a binary during linking. This must work even if \$libdir does
24130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24132 # Whether we need a single -rpath flag with a separated argument.
24133 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24135 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24136 # resulting binary.
24137 hardcode_direct=$hardcode_direct_CXX
24139 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24140 # resulting binary.
24141 hardcode_minus_L=$hardcode_minus_L_CXX
24143 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24144 # the resulting binary.
24145 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24147 # Set to yes if building a shared library automatically hardcodes DIR into the library
24148 # and all subsequent libraries and executables linked against it.
24149 hardcode_automatic=$hardcode_automatic_CXX
24151 # Variables whose values should be saved in libtool wrapper scripts and
24152 # restored at relink time.
24153 variables_saved_for_relink="$variables_saved_for_relink"
24155 # Whether libtool must link a program against all its dependency libraries.
24156 link_all_deplibs=$link_all_deplibs_CXX
24158 # Compile-time system search path for libraries
24159 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24161 # Run-time system search path for libraries
24162 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24164 # Fix the shell variable \$srcfile for the compiler.
24165 fix_srcfile_path="$fix_srcfile_path_CXX"
24167 # Set to yes if exported symbols are required.
24168 always_export_symbols=$always_export_symbols_CXX
24170 # The commands to list exported symbols.
24171 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24173 # The commands to extract the exported symbol list from a shared archive.
24174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24176 # Symbols that should not be listed in the preloaded symbols.
24177 exclude_expsyms=$lt_exclude_expsyms_CXX
24179 # Symbols that must always be exported.
24180 include_expsyms=$lt_include_expsyms_CXX
24182 # ### END LIBTOOL TAG CONFIG: $tagname
24188 # If there is no Makefile yet, we rely on a make rule to execute
24189 # `config.status --recheck' to rerun these tests and create the
24190 # libtool script then.
24191 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24192 if test -f "$ltmain_in"; then
24193 test -f Makefile && make "$ltmain"
24199 ac_cpp='$CPP $CPPFLAGS'
24200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24208 with_gnu_ldcxx=$with_gnu_ld
24209 with_gnu_ld=$lt_save_with_gnu_ld
24210 lt_cv_path_LDCXX=$lt_cv_path_LD
24211 lt_cv_path_LD=$lt_save_path_LD
24212 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24213 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24221 if test -n "$F77" && test "X$F77" != "Xno"; then
24224 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24225 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24226 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24229 archive_cmds_need_lc_F77=no
24230 allow_undefined_flag_F77=
24231 always_export_symbols_F77=no
24232 archive_expsym_cmds_F77=
24233 export_dynamic_flag_spec_F77=
24234 hardcode_direct_F77=no
24235 hardcode_libdir_flag_spec_F77=
24236 hardcode_libdir_flag_spec_ld_F77=
24237 hardcode_libdir_separator_F77=
24238 hardcode_minus_L_F77=no
24239 hardcode_automatic_F77=no
24241 module_expsym_cmds_F77=
24242 link_all_deplibs_F77=unknown
24243 old_archive_cmds_F77=$old_archive_cmds
24244 no_undefined_flag_F77=
24245 whole_archive_flag_spec_F77=
24246 enable_shared_with_static_runtimes_F77=no
24248 # Source file extension for f77 test sources.
24251 # Object file extension for compiled f77 test sources.
24255 # Code to be used in simple compile tests
24256 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
24258 # Code to be used in simple link tests
24259 lt_simple_link_test_code=" program t\n end\n"
24261 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24263 # If no C compiler was specified, use CC.
24266 # Allow CC to be a program name with arguments.
24270 # save warnings/boilerplate of simple test code
24271 ac_outfile=conftest.$ac_objext
24272 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24274 _lt_compiler_boilerplate=`cat conftest.err`
24277 ac_outfile=conftest.$ac_objext
24278 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24279 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24280 _lt_linker_boilerplate=`cat conftest.err`
24284 # Allow CC to be a program name with arguments.
24289 for cc_temp in $compiler""; do
24291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24297 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24300 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
24301 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
24302 echo "$as_me:$LINENO: result: $can_build_shared" >&5
24303 echo "${ECHO_T}$can_build_shared" >&6
24305 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
24306 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
24307 test "$can_build_shared" = "no" && enable_shared=no
24309 # On AIX, shared libraries and static libraries use the same namespace, and
24310 # are all built from PIC.
24313 test "$enable_shared" = yes && enable_static=no
24314 if test -n "$RANLIB"; then
24315 archive_cmds="$archive_cmds~\$RANLIB \$lib"
24316 postinstall_cmds='$RANLIB $lib'
24320 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24321 test "$enable_shared" = yes && enable_static=no
24325 echo "$as_me:$LINENO: result: $enable_shared" >&5
24326 echo "${ECHO_T}$enable_shared" >&6
24328 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24329 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
24330 # Make sure either enable_shared or enable_static is yes.
24331 test "$enable_shared" = yes || enable_static=yes
24332 echo "$as_me:$LINENO: result: $enable_static" >&5
24333 echo "${ECHO_T}$enable_static" >&6
24335 test "$ld_shlibs_F77" = no && can_build_shared=no
24340 lt_prog_compiler_wl_F77=
24341 lt_prog_compiler_pic_F77=
24342 lt_prog_compiler_static_F77=
24344 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24345 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24347 if test "$GCC" = yes; then
24348 lt_prog_compiler_wl_F77='-Wl,'
24349 lt_prog_compiler_static_F77='-static'
24353 # All AIX code is PIC.
24354 if test "$host_cpu" = ia64; then
24355 # AIX 5 now supports IA64 processor
24356 lt_prog_compiler_static_F77='-Bstatic'
24361 # FIXME: we need at least 68020 code to build shared libraries, but
24362 # adding the `-m68020' flag to GCC prevents building anything better,
24364 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
24367 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24368 # PIC is the default for these OSes.
24371 mingw* | pw32* | os2*)
24372 # This hack is so that the source file can tell whether it is being
24373 # built for inclusion in a dll (and should export symbols for example).
24374 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24377 darwin* | rhapsody*)
24378 # PIC is the default on this platform
24379 # Common symbols not allowed in MH_DYLIB files
24380 lt_prog_compiler_pic_F77='-fno-common'
24384 # Just because we use GCC doesn't mean we suddenly get shared libraries
24385 # on systems that don't support them.
24386 lt_prog_compiler_can_build_shared_F77=no
24391 if test -d /usr/nec; then
24392 lt_prog_compiler_pic_F77=-Kconform_pic
24397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24398 # not for PA HP-UX.
24404 lt_prog_compiler_pic_F77='-fPIC'
24410 lt_prog_compiler_pic_F77='-fPIC'
24414 # PORTME Check for flag to pass linker flags through the system compiler.
24417 lt_prog_compiler_wl_F77='-Wl,'
24418 if test "$host_cpu" = ia64; then
24419 # AIX 5 now supports IA64 processor
24420 lt_prog_compiler_static_F77='-Bstatic'
24422 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
24426 # PIC is the default on this platform
24427 # Common symbols not allowed in MH_DYLIB files
24428 case $cc_basename in
24430 lt_prog_compiler_pic_F77='-qnocommon'
24431 lt_prog_compiler_wl_F77='-Wl,'
24436 mingw* | pw32* | os2*)
24437 # This hack is so that the source file can tell whether it is being
24438 # built for inclusion in a dll (and should export symbols for example).
24439 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24442 hpux9* | hpux10* | hpux11*)
24443 lt_prog_compiler_wl_F77='-Wl,'
24444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24445 # not for PA HP-UX.
24451 lt_prog_compiler_pic_F77='+Z'
24454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24455 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
24458 irix5* | irix6* | nonstopux*)
24459 lt_prog_compiler_wl_F77='-Wl,'
24460 # PIC (with -KPIC) is the default.
24461 lt_prog_compiler_static_F77='-non_shared'
24465 lt_prog_compiler_pic_F77='-KPIC'
24466 lt_prog_compiler_static_F77='-Bstatic'
24470 case $cc_basename in
24472 lt_prog_compiler_wl_F77='-Wl,'
24473 lt_prog_compiler_pic_F77='-KPIC'
24474 lt_prog_compiler_static_F77='-static'
24476 pgcc* | pgf77* | pgf90* | pgf95*)
24477 # Portland Group compilers (*not* the Pentium gcc compiler,
24478 # which looks to be a dead project)
24479 lt_prog_compiler_wl_F77='-Wl,'
24480 lt_prog_compiler_pic_F77='-fpic'
24481 lt_prog_compiler_static_F77='-Bstatic'
24484 lt_prog_compiler_wl_F77='-Wl,'
24485 # All Alpha code is PIC.
24486 lt_prog_compiler_static_F77='-non_shared'
24491 osf3* | osf4* | osf5*)
24492 lt_prog_compiler_wl_F77='-Wl,'
24493 # All OSF/1 code is PIC.
24494 lt_prog_compiler_static_F77='-non_shared'
24498 lt_prog_compiler_pic_F77='-Kpic'
24499 lt_prog_compiler_static_F77='-dn'
24503 lt_prog_compiler_pic_F77='-KPIC'
24504 lt_prog_compiler_static_F77='-Bstatic'
24505 case $cc_basename in
24506 f77* | f90* | f95*)
24507 lt_prog_compiler_wl_F77='-Qoption ld ';;
24509 lt_prog_compiler_wl_F77='-Wl,';;
24514 lt_prog_compiler_wl_F77='-Qoption ld '
24515 lt_prog_compiler_pic_F77='-PIC'
24516 lt_prog_compiler_static_F77='-Bstatic'
24519 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24520 lt_prog_compiler_wl_F77='-Wl,'
24521 lt_prog_compiler_pic_F77='-KPIC'
24522 lt_prog_compiler_static_F77='-Bstatic'
24526 if test -d /usr/nec ;then
24527 lt_prog_compiler_pic_F77='-Kconform_pic'
24528 lt_prog_compiler_static_F77='-Bstatic'
24533 lt_prog_compiler_wl_F77='-Wl,'
24534 lt_prog_compiler_can_build_shared_F77=no
24538 lt_prog_compiler_pic_F77='-pic'
24539 lt_prog_compiler_static_F77='-Bstatic'
24543 lt_prog_compiler_can_build_shared_F77=no
24548 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
24549 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
24552 # Check to make sure the PIC flag actually works.
24554 if test -n "$lt_prog_compiler_pic_F77"; then
24556 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
24557 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
24558 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
24559 echo $ECHO_N "(cached) $ECHO_C" >&6
24561 lt_prog_compiler_pic_works_F77=no
24562 ac_outfile=conftest.$ac_objext
24563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24564 lt_compiler_flag="$lt_prog_compiler_pic_F77"
24565 # Insert the option either (1) after the last *FLAGS variable, or
24566 # (2) before a word containing "conftest.", or (3) at the end.
24567 # Note that $ac_compile itself does not contain backslashes and begins
24568 # with a dollar sign (not a hyphen), so the echo should work correctly.
24569 # The option is referenced via a variable to avoid confusing sed.
24570 lt_compile=`echo "$ac_compile" | $SED \
24571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24573 -e 's:$: $lt_compiler_flag:'`
24574 (eval echo "\"\$as_me:24574: $lt_compile\"" >&5)
24575 (eval "$lt_compile" 2>conftest.err)
24577 cat conftest.err >&5
24578 echo "$as_me:24578: \$? = $ac_status" >&5
24579 if (exit $ac_status) && test -s "$ac_outfile"; then
24580 # The compiler can only warn and ignore the option if not recognized
24581 # So say no if there are warnings other than the usual output.
24582 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
24583 $SED '/^$/d' conftest.err >conftest.er2
24584 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
24585 lt_prog_compiler_pic_works_F77=yes
24591 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
24592 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
24594 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
24595 case $lt_prog_compiler_pic_F77 in
24597 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
24600 lt_prog_compiler_pic_F77=
24601 lt_prog_compiler_can_build_shared_F77=no
24606 # For platforms which do not support PIC, -DPIC is meaningless:
24608 lt_prog_compiler_pic_F77=
24611 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
24615 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24616 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
24617 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
24618 echo $ECHO_N "(cached) $ECHO_C" >&6
24620 lt_cv_prog_compiler_c_o_F77=no
24621 $rm -r conftest 2>/dev/null
24625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24627 lt_compiler_flag="-o out/conftest2.$ac_objext"
24628 # Insert the option either (1) after the last *FLAGS variable, or
24629 # (2) before a word containing "conftest.", or (3) at the end.
24630 # Note that $ac_compile itself does not contain backslashes and begins
24631 # with a dollar sign (not a hyphen), so the echo should work correctly.
24632 lt_compile=`echo "$ac_compile" | $SED \
24633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24635 -e 's:$: $lt_compiler_flag:'`
24636 (eval echo "\"\$as_me:24636: $lt_compile\"" >&5)
24637 (eval "$lt_compile" 2>out/conftest.err)
24639 cat out/conftest.err >&5
24640 echo "$as_me:24640: \$? = $ac_status" >&5
24641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24643 # The compiler can only warn and ignore the option if not recognized
24644 # So say no if there are warnings
24645 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
24646 $SED '/^$/d' out/conftest.err >out/conftest.er2
24647 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24648 lt_cv_prog_compiler_c_o_F77=yes
24653 # SGI C++ compiler will create directory out/ii_files/ for
24654 # template instantiation
24655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24656 $rm out/* && rmdir out
24662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
24663 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
24666 hard_links="nottested"
24667 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
24668 # do not overwrite the value of need_locks provided by the user
24669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24670 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
24673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24675 ln conftest.a conftest.b 2>&5 || hard_links=no
24676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24677 echo "$as_me:$LINENO: result: $hard_links" >&5
24678 echo "${ECHO_T}$hard_links" >&6
24679 if test "$hard_links" = no; then
24680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24681 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24688 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24689 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24692 allow_undefined_flag_F77=
24693 enable_shared_with_static_runtimes_F77=no
24695 archive_expsym_cmds_F77=
24696 old_archive_From_new_cmds_F77=
24697 old_archive_from_expsyms_cmds_F77=
24698 export_dynamic_flag_spec_F77=
24699 whole_archive_flag_spec_F77=
24700 thread_safe_flag_spec_F77=
24701 hardcode_libdir_flag_spec_F77=
24702 hardcode_libdir_flag_spec_ld_F77=
24703 hardcode_libdir_separator_F77=
24704 hardcode_direct_F77=no
24705 hardcode_minus_L_F77=no
24706 hardcode_shlibpath_var_F77=unsupported
24707 link_all_deplibs_F77=unknown
24708 hardcode_automatic_F77=no
24710 module_expsym_cmds_F77=
24711 always_export_symbols_F77=no
24712 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24713 # include_expsyms should be a list of space-separated symbols to be *always*
24714 # included in the symbol list
24715 include_expsyms_F77=
24716 # exclude_expsyms can be an extended regexp of symbols to exclude
24717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24719 # as well as any symbol that contains `d'.
24720 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24722 # platforms (ab)use it in PIC code, but their linkers get confused if
24723 # the symbol is explicitly referenced. Since portable code cannot
24724 # rely on this symbol name, it's probably fine to never include it in
24725 # preloaded symbol tables.
24726 extract_expsyms_cmds=
24727 # Just being paranoid about ensuring that cc_basename is set.
24728 for cc_temp in $compiler""; do
24730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24739 cygwin* | mingw* | pw32*)
24740 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24741 # When not using gcc, we currently assume that we are using
24742 # Microsoft Visual C++.
24743 if test "$GCC" != yes; then
24753 if test "$with_gnu_ld" = yes; then
24754 # If archive_cmds runs LD, not CC, wlarc should be empty
24757 # Set some defaults for GNU ld with shared library support. These
24758 # are reset later if shared libraries are not supported. Putting them
24759 # here allows them to be overridden if necessary.
24760 runpath_var=LD_RUN_PATH
24761 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24762 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24763 # ancient GNU ld didn't support --whole-archive et. al.
24764 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24765 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24767 whole_archive_flag_spec_F77=
24769 supports_anon_versioning=no
24770 case `$LD -v 2>/dev/null` in
24771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24774 *\ 2.11.*) ;; # other 2.11 versions
24775 *) supports_anon_versioning=yes ;;
24778 # See if GNU ld supports shared libraries.
24780 aix3* | aix4* | aix5*)
24781 # On AIX/PPC, the GNU linker is very broken
24782 if test "$host_cpu" != ia64; then
24786 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24787 *** to be unable to reliably create shared libraries on AIX.
24788 *** Therefore, libtool is disabling shared libraries support. If you
24789 *** really care for shared libraries, you may want to modify your PATH
24790 *** so that a non-GNU linker is found, and then restart.
24797 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)'
24798 hardcode_libdir_flag_spec_F77='-L$libdir'
24799 hardcode_minus_L_F77=yes
24801 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24802 # that the semantics of dynamic libraries on AmigaOS, at least up
24803 # to version 4, is to share data among multiple programs linked
24804 # with the same dynamic library. Since this doesn't match the
24805 # behavior of shared libraries on other platforms, we can't use
24811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24812 allow_undefined_flag_F77=unsupported
24813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24814 # support --undefined. This deserves some investigation. FIXME
24815 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24821 cygwin* | mingw* | pw32*)
24822 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24823 # as there is no search path for DLLs.
24824 hardcode_libdir_flag_spec_F77='-L$libdir'
24825 allow_undefined_flag_F77=unsupported
24826 always_export_symbols_F77=no
24827 enable_shared_with_static_runtimes_F77=yes
24828 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24830 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24832 # If the export-symbols file already is a .def file (1st line
24833 # is EXPORTS), use it as is; otherwise, prepend...
24834 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24835 cp $export_symbols $output_objdir/$soname.def;
24837 echo EXPORTS > $output_objdir/$soname.def;
24838 cat $export_symbols >> $output_objdir/$soname.def;
24840 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24849 case $cc_basename,$host_cpu in
24850 pgcc*) # Portland Group C compiler
24851 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'
24852 tmp_addflag=' $pic_flag'
24854 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24855 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'
24856 tmp_addflag=' $pic_flag -Mnomain' ;;
24857 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24858 tmp_addflag=' -i_dynamic' ;;
24859 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24860 tmp_addflag=' -i_dynamic -nofor_main' ;;
24861 ifc* | ifort*) # Intel Fortran compiler
24862 tmp_addflag=' -nofor_main' ;;
24864 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24866 if test $supports_anon_versioning = yes; then
24867 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24869 $echo "local: *; };" >> $output_objdir/$libname.ver~
24870 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24879 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24883 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24888 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24892 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24893 *** create shared libraries on Solaris systems. Therefore, libtool
24894 *** is disabling shared libraries support. We urge you to upgrade GNU
24895 *** binutils to release 2.9.1 or newer. Another option is to modify
24896 *** your PATH or compiler configuration so that the native linker is
24897 *** used, and then restart.
24900 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24909 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24911 hardcode_direct_F77=yes
24912 hardcode_shlibpath_var_F77=no
24916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24917 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24918 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24925 if test "$ld_shlibs_F77" = no; then
24927 hardcode_libdir_flag_spec_F77=
24928 export_dynamic_flag_spec_F77=
24929 whole_archive_flag_spec_F77=
24932 # PORTME fill in a description of your system's linker (not GNU ld)
24935 allow_undefined_flag_F77=unsupported
24936 always_export_symbols_F77=yes
24937 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'
24938 # Note: this linker hardcodes the directories in LIBPATH if there
24939 # are no directories specified by -L.
24940 hardcode_minus_L_F77=yes
24941 if test "$GCC" = yes && test -z "$link_static_flag"; then
24942 # Neither direct hardcoding nor static linking is supported with a
24944 hardcode_direct_F77=unsupported
24949 if test "$host_cpu" = ia64; then
24950 # On IA64, the linker does run time linking by default, so we don't
24951 # have to do anything special.
24952 aix_use_runtimelinking=no
24953 exp_sym_flag='-Bexport'
24956 # If we're using GNU nm, then we don't want the "-C" option.
24957 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24958 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24959 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'
24961 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'
24963 aix_use_runtimelinking=no
24965 # Test if we are trying to use run time linking or normal
24966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24967 # need to do runtime linking.
24968 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24969 for ld_flag in $LDFLAGS; do
24970 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24971 aix_use_runtimelinking=yes
24977 exp_sym_flag='-bexport'
24978 no_entry_flag='-bnoentry'
24981 # When large executables or shared objects are built, AIX ld can
24982 # have problems creating the table of contents. If linking a library
24983 # or program results in "error TOC overflow" add -mminimal-toc to
24984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24987 archive_cmds_F77=''
24988 hardcode_direct_F77=yes
24989 hardcode_libdir_separator_F77=':'
24990 link_all_deplibs_F77=yes
24992 if test "$GCC" = yes; then
24993 case $host_os in aix4.[012]|aix4.[012].*)
24994 # We only want to do this on AIX 4.2 and lower, the check
24995 # below for broken collect2 doesn't work under 4.3+
24996 collect2name=`${CC} -print-prog-name=collect2`
24997 if test -f "$collect2name" && \
24998 strings "$collect2name" | grep resolve_lib_name >/dev/null
25000 # We have reworked collect2
25001 hardcode_direct_F77=yes
25003 # We have old collect2
25004 hardcode_direct_F77=unsupported
25005 # It fails to find uninstalled libraries when the uninstalled
25006 # path is not listed in the libpath. Setting hardcode_minus_L
25007 # to unsupported forces relinking
25008 hardcode_minus_L_F77=yes
25009 hardcode_libdir_flag_spec_F77='-L$libdir'
25010 hardcode_libdir_separator_F77=
25013 shared_flag='-shared'
25014 if test "$aix_use_runtimelinking" = yes; then
25015 shared_flag="$shared_flag "'${wl}-G'
25019 if test "$host_cpu" = ia64; then
25020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25021 # chokes on -Wl,-G. The following line is correct:
25024 if test "$aix_use_runtimelinking" = yes; then
25025 shared_flag='${wl}-G'
25027 shared_flag='${wl}-bM:SRE'
25032 # It seems that -bexpall does not export symbols beginning with
25033 # underscore (_), so it is better to generate a list of symbols to export.
25034 always_export_symbols_F77=yes
25035 if test "$aix_use_runtimelinking" = yes; then
25036 # Warning - without using the other runtime loading flags (-brtl),
25037 # -berok will link without error, but may produce a broken library.
25038 allow_undefined_flag_F77='-berok'
25039 # Determine the default libpath from the value encoded in an empty executable.
25040 cat >conftest.$ac_ext <<_ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25047 (eval $ac_link) 2>conftest.er1
25049 grep -v '^ *+' conftest.er1 >conftest.err
25051 cat conftest.err >&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } &&
25054 { ac_try='test -z "$ac_f77_werror_flag"
25055 || test ! -s conftest.err'
25056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25057 (eval $ac_try) 2>&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); }; } &&
25061 { ac_try='test -s conftest$ac_exeext'
25062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25063 (eval $ac_try) 2>&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); }; }; then
25068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25070 # Check for a 64-bit object if we didn't find anything.
25071 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; }
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25078 rm -f conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
25080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25082 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25083 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"
25085 if test "$host_cpu" = ia64; then
25086 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
25087 allow_undefined_flag_F77="-z nodefs"
25088 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"
25090 # Determine the default libpath from the value encoded in an empty executable.
25091 cat >conftest.$ac_ext <<_ACEOF
25096 rm -f conftest.$ac_objext conftest$ac_exeext
25097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25098 (eval $ac_link) 2>conftest.er1
25100 grep -v '^ *+' conftest.er1 >conftest.err
25102 cat conftest.err >&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } &&
25105 { ac_try='test -z "$ac_f77_werror_flag"
25106 || test ! -s conftest.err'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; } &&
25112 { ac_try='test -s conftest$ac_exeext'
25113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114 (eval $ac_try) 2>&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; }; then
25119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25121 # Check for a 64-bit object if we didn't find anything.
25122 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; }
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25129 rm -f conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
25131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25133 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25134 # Warning - without using the other run time loading flags,
25135 # -berok will link without error, but may produce a broken library.
25136 no_undefined_flag_F77=' ${wl}-bernotok'
25137 allow_undefined_flag_F77=' ${wl}-berok'
25138 # -bexpall does not export symbols beginning with underscore (_)
25139 always_export_symbols_F77=yes
25140 # Exported symbols can be pulled into shared objects from archives
25141 whole_archive_flag_spec_F77=' '
25142 archive_cmds_need_lc_F77=yes
25143 # This is similar to how AIX traditionally builds its shared libraries.
25144 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'
25150 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)'
25151 hardcode_libdir_flag_spec_F77='-L$libdir'
25152 hardcode_minus_L_F77=yes
25153 # see comment about different semantics on the GNU ld section
25158 export_dynamic_flag_spec_F77=-rdynamic
25161 cygwin* | mingw* | pw32*)
25162 # When not using gcc, we currently assume that we are using
25163 # Microsoft Visual C++.
25164 # hardcode_libdir_flag_spec is actually meaningless, as there is
25165 # no search path for DLLs.
25166 hardcode_libdir_flag_spec_F77=' '
25167 allow_undefined_flag_F77=unsupported
25168 # Tell ltmain to make .lib files, not .a files.
25170 # Tell ltmain to make .dll files, not .so files.
25172 # FIXME: Setting linknames here is a bad hack.
25173 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25174 # The linker will automatically build a .lib file if we build a DLL.
25175 old_archive_From_new_cmds_F77='true'
25176 # FIXME: Should let the user specify the lib program.
25177 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
25178 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
25179 enable_shared_with_static_runtimes_F77=yes
25182 darwin* | rhapsody*)
25184 rhapsody* | darwin1.[012])
25185 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
25188 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25189 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25191 case ${MACOSX_DEPLOYMENT_TARGET} in
25193 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25196 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
25202 archive_cmds_need_lc_F77=no
25203 hardcode_direct_F77=no
25204 hardcode_automatic_F77=yes
25205 hardcode_shlibpath_var_F77=unsupported
25206 whole_archive_flag_spec_F77=''
25207 link_all_deplibs_F77=yes
25208 if test "$GCC" = yes ; then
25209 output_verbose_link_cmd='echo'
25210 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25211 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25213 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}'
25214 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}'
25216 case $cc_basename in
25218 output_verbose_link_cmd='echo'
25219 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25220 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25222 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}'
25223 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}'
25233 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25234 hardcode_libdir_flag_spec_F77='-L$libdir'
25235 hardcode_shlibpath_var_F77=no
25242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25243 # support. Future versions do this automatically, but an explicit c++rt0.o
25244 # does not break anything, and helps significantly (at the cost of a little
25247 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25248 hardcode_libdir_flag_spec_F77='-R$libdir'
25249 hardcode_direct_F77=yes
25250 hardcode_shlibpath_var_F77=no
25253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25255 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25256 hardcode_direct_F77=yes
25257 hardcode_minus_L_F77=yes
25258 hardcode_shlibpath_var_F77=no
25261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25262 freebsd* | kfreebsd*-gnu | dragonfly*)
25263 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25264 hardcode_libdir_flag_spec_F77='-R$libdir'
25265 hardcode_direct_F77=yes
25266 hardcode_shlibpath_var_F77=no
25270 if test "$GCC" = yes; then
25271 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'
25273 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'
25275 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25276 hardcode_libdir_separator_F77=:
25277 hardcode_direct_F77=yes
25279 # hardcode_minus_L: Not really in the search PATH,
25280 # but as the default location of the library.
25281 hardcode_minus_L_F77=yes
25282 export_dynamic_flag_spec_F77='${wl}-E'
25286 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25289 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25292 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25298 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
25301 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25305 if test "$with_gnu_ld" = no; then
25308 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25309 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
25310 hardcode_libdir_separator_F77=:
25311 hardcode_direct_F77=no
25312 hardcode_shlibpath_var_F77=no
25315 hardcode_libdir_flag_spec_F77='-L$libdir'
25316 hardcode_direct_F77=no
25317 hardcode_shlibpath_var_F77=no
25319 # hardcode_minus_L: Not really in the search PATH,
25320 # but as the default location of the library.
25321 hardcode_minus_L_F77=yes
25324 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25325 hardcode_libdir_separator_F77=:
25326 hardcode_direct_F77=yes
25327 export_dynamic_flag_spec_F77='${wl}-E'
25329 # hardcode_minus_L: Not really in the search PATH,
25330 # but as the default location of the library.
25331 hardcode_minus_L_F77=yes
25337 irix5* | irix6* | nonstopux*)
25338 if test "$GCC" = yes; then
25339 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'
25341 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'
25342 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
25344 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25345 hardcode_libdir_separator_F77=:
25346 link_all_deplibs_F77=yes
25350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25351 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25353 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25355 hardcode_libdir_flag_spec_F77='-R$libdir'
25356 hardcode_direct_F77=yes
25357 hardcode_shlibpath_var_F77=no
25361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25362 hardcode_direct_F77=yes
25363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25364 hardcode_libdir_separator_F77=:
25365 hardcode_shlibpath_var_F77=no
25369 hardcode_direct_F77=yes
25370 hardcode_shlibpath_var_F77=no
25371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25372 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25373 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25374 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25375 export_dynamic_flag_spec_F77='${wl}-E'
25378 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25379 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25380 hardcode_libdir_flag_spec_F77='-R$libdir'
25383 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25384 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25391 hardcode_libdir_flag_spec_F77='-L$libdir'
25392 hardcode_minus_L_F77=yes
25393 allow_undefined_flag_F77=unsupported
25394 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'
25395 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25399 if test "$GCC" = yes; then
25400 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25401 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'
25403 allow_undefined_flag_F77=' -expect_unresolved \*'
25404 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'
25406 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25407 hardcode_libdir_separator_F77=:
25410 osf4* | osf5*) # as osf3* with the addition of -msym flag
25411 if test "$GCC" = yes; then
25412 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25413 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'
25414 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25416 allow_undefined_flag_F77=' -expect_unresolved \*'
25417 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'
25418 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~
25419 $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'
25421 # Both c and cxx compiler support -rpath directly
25422 hardcode_libdir_flag_spec_F77='-rpath $libdir'
25424 hardcode_libdir_separator_F77=:
25428 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25429 hardcode_shlibpath_var_F77=no
25430 export_dynamic_flag_spec_F77='${wl}-Bexport'
25431 runpath_var=LD_RUN_PATH
25432 hardcode_runpath_var=yes
25436 no_undefined_flag_F77=' -z text'
25437 if test "$GCC" = yes; then
25439 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25440 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25444 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25445 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25448 hardcode_libdir_flag_spec_F77='-R$libdir'
25449 hardcode_shlibpath_var_F77=no
25451 solaris2.[0-5] | solaris2.[0-5].*) ;;
25453 # The compiler driver will combine linker options so we
25454 # cannot just pass the convience library names through
25455 # without $wl, iff we do not link with $LD.
25456 # Luckily, gcc supports the same syntax we need for Sun Studio.
25457 # Supported since Solaris 2.6 (maybe 2.5.1?)
25460 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
25462 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' ;;
25465 link_all_deplibs_F77=yes
25469 if test "x$host_vendor" = xsequent; then
25470 # Use $CC to link under sequent, because it throws in some extra .o
25471 # files that make .init and .fini sections work.
25472 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25474 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25476 hardcode_libdir_flag_spec_F77='-L$libdir'
25477 hardcode_direct_F77=yes
25478 hardcode_minus_L_F77=yes
25479 hardcode_shlibpath_var_F77=no
25483 case $host_vendor in
25485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25486 hardcode_direct_F77=yes # is this really true???
25489 ## LD is ld it makes a PLAMLIB
25490 ## CC just makes a GrossModule.
25491 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25492 reload_cmds_F77='$CC -r -o $output$reload_objs'
25493 hardcode_direct_F77=no
25496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25497 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
25500 runpath_var='LD_RUN_PATH'
25501 hardcode_shlibpath_var_F77=no
25505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25506 hardcode_shlibpath_var_F77=no
25507 export_dynamic_flag_spec_F77='-Bexport'
25511 if test -d /usr/nec; then
25512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25513 hardcode_shlibpath_var_F77=no
25514 runpath_var=LD_RUN_PATH
25515 hardcode_runpath_var=yes
25521 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25522 hardcode_direct_F77=yes
25523 hardcode_minus_L_F77=no
25524 hardcode_shlibpath_var_F77=no
25525 hardcode_runpath_var=yes
25526 runpath_var=LD_RUN_PATH
25529 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
25530 no_undefined_flag_F77='${wl}-z ${wl}text'
25531 if test "$GCC" = yes; then
25532 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25534 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25536 runpath_var='LD_RUN_PATH'
25537 hardcode_shlibpath_var_F77=no
25541 no_undefined_flag_F77=' -z text'
25542 # $CC -shared without GNU ld will not create a library from C++
25543 # object files and a static libstdc++, better avoid it by now
25544 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25545 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25546 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25547 hardcode_libdir_flag_spec_F77=
25548 hardcode_shlibpath_var_F77=no
25549 runpath_var='LD_RUN_PATH'
25553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25554 hardcode_libdir_flag_spec_F77='-L$libdir'
25555 hardcode_shlibpath_var_F77=no
25564 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
25565 echo "${ECHO_T}$ld_shlibs_F77" >&6
25566 test "$ld_shlibs_F77" = no && can_build_shared=no
25568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25569 if test "$GCC" = yes; then
25570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25574 # Do we need to explicitly link libc?
25576 case "x$archive_cmds_need_lc_F77" in
25578 # Assume -lc should be added
25579 archive_cmds_need_lc_F77=yes
25581 if test "$enable_shared" = yes && test "$GCC" = yes; then
25582 case $archive_cmds_F77 in
25584 # FIXME: we may have to deal with multi-command sequences.
25587 # Test whether the compiler implicitly links with -lc since on some
25588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25589 # to ld, don't add -lc before -lgcc.
25590 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
25593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25596 (eval $ac_compile) 2>&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } 2>conftest.err; then
25602 libobjs=conftest.$ac_objext
25604 wl=$lt_prog_compiler_wl_F77
25610 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
25611 allow_undefined_flag_F77=
25612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25613 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }
25618 archive_cmds_need_lc_F77=no
25620 archive_cmds_need_lc_F77=yes
25622 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
25624 cat conftest.err 1>&5
25627 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25628 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25635 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25636 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25637 library_names_spec=
25638 libname_spec='lib$name'
25642 postuninstall_cmds=
25646 shlibpath_overrides_runpath=unknown
25648 dynamic_linker="$host_os ld.so"
25649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25650 if test "$GCC" = yes; then
25651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25652 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25653 # if the path contains ";" then we assume it to be the separator
25654 # otherwise default to the standard path separator (i.e. ":") - it is
25655 # assumed that no part of a normal pathname contains ";" but that should
25656 # okay in the real world where ";" in dirpaths is itself problematic.
25657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25664 need_lib_prefix=unknown
25665 hardcode_into_libs=no
25667 # when you set need_version to no, make sure it does not cause -set_version
25668 # flags to be left without arguments
25669 need_version=unknown
25674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25675 shlibpath_var=LIBPATH
25677 # AIX 3 has no versioning support, so we append a major version to the name.
25678 soname_spec='${libname}${release}${shared_ext}$major'
25685 hardcode_into_libs=yes
25686 if test "$host_cpu" = ia64; then
25687 # AIX 5 supports IA64
25688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25689 shlibpath_var=LD_LIBRARY_PATH
25691 # With GCC up to 2.95.x, collect2 would create an import file
25692 # for dependence libraries. The import file would start with
25693 # the line `#! .'. This would cause the generated library to
25694 # depend on `.', always an invalid library. This was fixed in
25695 # development snapshots of GCC prior to 3.0.
25697 aix4 | aix4.[01] | aix4.[01].*)
25698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25703 can_build_shared=no
25707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25708 # soname into executable. Probably we can add versioning support to
25709 # collect2, so additional links can be useful in future.
25710 if test "$aix_use_runtimelinking" = yes; then
25711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25712 # instead of lib<name>.a to let people know that these are not
25713 # typical AIX shared libraries.
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 # We preserve .a as extension for shared libraries through AIX4.2
25717 # and later when we are not doing run time linking.
25718 library_names_spec='${libname}${release}.a $libname.a'
25719 soname_spec='${libname}${release}${shared_ext}$major'
25721 shlibpath_var=LIBPATH
25726 library_names_spec='$libname.ixlibrary $libname.a'
25727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25728 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'
25732 library_names_spec='${libname}${shared_ext}'
25733 dynamic_linker="$host_os ld.so"
25734 shlibpath_var=LIBRARY_PATH
25740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741 soname_spec='${libname}${release}${shared_ext}$major'
25742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25743 shlibpath_var=LD_LIBRARY_PATH
25744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25746 # the default ld.so.conf also contains /usr/contrib/lib and
25747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25748 # libtool to hard-code these into programs
25751 cygwin* | mingw* | pw32*)
25752 version_type=windows
25757 case $GCC,$host_os in
25758 yes,cygwin* | yes,mingw* | yes,pw32*)
25759 library_names_spec='$libname.dll.a'
25760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25761 postinstall_cmds='base_file=`basename \${file}`~
25762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25763 dldir=$destdir/`dirname \$dlpath`~
25764 test -d \$dldir || mkdir -p \$dldir~
25765 $install_prog $dir/$dlname \$dldir/$dlname~
25766 chmod a+x \$dldir/$dlname'
25767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25768 dlpath=$dir/\$dldll~
25770 shlibpath_overrides_runpath=yes
25774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25779 # MinGW DLLs use traditional 'lib' prefix
25780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25783 # It is most probably a Windows format PATH printed by
25784 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25785 # path with ; separators, and with drive letters. We can handle the
25786 # drive letters (cygwin fileutils understands them), so leave them,
25787 # especially as we might pass files found there to a mingw objdump,
25788 # which wouldn't understand a cygwinified path. Ahh.
25789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25795 # pw32 DLLs use 'pw' prefix rather than 'lib'
25796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25805 dynamic_linker='Win32 ld.exe'
25806 # FIXME: first we should search . and the directory the executable is in
25810 darwin* | rhapsody*)
25811 dynamic_linker="$host_os dyld"
25812 version_type=darwin
25815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25816 soname_spec='${libname}${release}${major}$shared_ext'
25817 shlibpath_overrides_runpath=yes
25818 shlibpath_var=DYLD_LIBRARY_PATH
25819 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25820 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25821 if test "$GCC" = yes; then
25822 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"`
25824 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25834 soname_spec='${libname}${release}${shared_ext}$major'
25835 shlibpath_var=LD_LIBRARY_PATH
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 shlibpath_var=LD_LIBRARY_PATH
25849 shlibpath_overrides_runpath=no
25850 hardcode_into_libs=yes
25851 dynamic_linker='GNU ld.so'
25854 freebsd* | dragonfly*)
25855 # DragonFly does not have aout. When/if they implement a new
25856 # versioning mechanism, adjust this.
25857 if test -x /usr/bin/objformat; then
25858 objformat=`/usr/bin/objformat`
25861 freebsd[123]*) objformat=aout ;;
25862 *) objformat=elf ;;
25865 version_type=freebsd-$objformat
25866 case $version_type in
25868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25877 shlibpath_var=LD_LIBRARY_PATH
25880 shlibpath_overrides_runpath=yes
25882 freebsd3.[01]* | freebsdelf3.[01]*)
25883 shlibpath_overrides_runpath=yes
25884 hardcode_into_libs=yes
25887 shlibpath_overrides_runpath=no
25888 hardcode_into_libs=yes
25897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25898 soname_spec='${libname}${release}${shared_ext}$major'
25899 shlibpath_var=LD_LIBRARY_PATH
25900 hardcode_into_libs=yes
25903 hpux9* | hpux10* | hpux11*)
25904 # Give a soname corresponding to the major version so that dld.sl refuses to
25905 # link against other versions.
25912 hardcode_into_libs=yes
25913 dynamic_linker="$host_os dld.so"
25914 shlibpath_var=LD_LIBRARY_PATH
25915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25917 soname_spec='${libname}${release}${shared_ext}$major'
25918 if test "X$HPUX_IA64_MODE" = X32; then
25919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25927 hardcode_into_libs=yes
25928 dynamic_linker="$host_os dld.sl"
25929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25932 soname_spec='${libname}${release}${shared_ext}$major'
25933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25938 dynamic_linker="$host_os dld.sl"
25939 shlibpath_var=SHLIB_PATH
25940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25942 soname_spec='${libname}${release}${shared_ext}$major'
25945 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25946 postinstall_cmds='chmod 555 $lib'
25949 irix5* | irix6* | nonstopux*)
25951 nonstopux*) version_type=nonstopux ;;
25953 if test "$lt_cv_prog_gnu_ld" = yes; then
25961 soname_spec='${libname}${release}${shared_ext}$major'
25962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25964 irix5* | nonstopux*)
25965 libsuff= shlibsuff=
25968 case $LD in # libtool.m4 will add one of these switches to LD
25969 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25970 libsuff= shlibsuff= libmagic=32-bit;;
25971 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25972 libsuff=32 shlibsuff=N32 libmagic=N32;;
25973 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25974 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25975 *) libsuff= shlibsuff= libmagic=never-match;;
25979 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25980 shlibpath_overrides_runpath=no
25981 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25982 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25983 hardcode_into_libs=yes
25986 # No shared lib support for Linux oldld, aout, or coff.
25987 linux*oldld* | linux*aout* | linux*coff*)
25991 # This must be Linux ELF.
25996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25997 soname_spec='${libname}${release}${shared_ext}$major'
25998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25999 shlibpath_var=LD_LIBRARY_PATH
26000 shlibpath_overrides_runpath=no
26001 # This implies no fast_install, which is unacceptable.
26002 # Some rework will be needed to allow for fast_install
26003 # before this can be enabled.
26004 hardcode_into_libs=yes
26006 # Append ld.so.conf contents to the search path
26007 if test -f /etc/ld.so.conf; then
26008 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' ' '`
26009 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26012 # We used to test for /lib/ld.so.1 and disable shared libraries on
26013 # powerpc, because MkLinux only supported shared libraries with the
26014 # GNU dynamic linker. Since this was broken with cross compilers,
26015 # most powerpc-linux boxes support dynamic linking these days and
26016 # people can always --disable-shared, the test was removed, and we
26017 # assume the GNU/Linux dynamic linker is in use.
26018 dynamic_linker='GNU/Linux ld.so'
26025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26026 soname_spec='${libname}${release}${shared_ext}$major'
26027 shlibpath_var=LD_LIBRARY_PATH
26028 shlibpath_overrides_runpath=no
26029 hardcode_into_libs=yes
26030 dynamic_linker='GNU ld.so'
26037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26040 dynamic_linker='NetBSD (a.out) ld.so'
26042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26043 soname_spec='${libname}${release}${shared_ext}$major'
26044 dynamic_linker='NetBSD ld.elf_so'
26046 shlibpath_var=LD_LIBRARY_PATH
26047 shlibpath_overrides_runpath=yes
26048 hardcode_into_libs=yes
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054 shlibpath_var=LD_LIBRARY_PATH
26055 shlibpath_overrides_runpath=yes
26062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26063 soname_spec='${libname}${release}${shared_ext}$major'
26064 shlibpath_var=LD_LIBRARY_PATH
26065 shlibpath_overrides_runpath=yes
26071 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26073 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26074 *) need_version=no ;;
26076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26078 shlibpath_var=LD_LIBRARY_PATH
26079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26081 openbsd2.[89] | openbsd2.[89].*)
26082 shlibpath_overrides_runpath=no
26085 shlibpath_overrides_runpath=yes
26089 shlibpath_overrides_runpath=yes
26094 libname_spec='$name'
26097 library_names_spec='$libname${shared_ext} $libname.a'
26098 dynamic_linker='OS/2 ld.exe'
26099 shlibpath_var=LIBPATH
26102 osf3* | osf4* | osf5*)
26106 soname_spec='${libname}${release}${shared_ext}$major'
26107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26108 shlibpath_var=LD_LIBRARY_PATH
26109 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26110 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26115 soname_spec='${libname}${release}${shared_ext}$major'
26116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26117 shlibpath_var=LD_LIBRARY_PATH
26124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26125 soname_spec='${libname}${release}${shared_ext}$major'
26126 shlibpath_var=LD_LIBRARY_PATH
26127 shlibpath_overrides_runpath=yes
26128 hardcode_into_libs=yes
26129 # ldd complains unless libraries are executable
26130 postinstall_cmds='chmod +x $lib'
26135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26137 shlibpath_var=LD_LIBRARY_PATH
26138 shlibpath_overrides_runpath=yes
26139 if test "$with_gnu_ld" = yes; then
26145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26148 soname_spec='${libname}${release}${shared_ext}$major'
26149 shlibpath_var=LD_LIBRARY_PATH
26150 case $host_vendor in
26152 shlibpath_overrides_runpath=no
26154 export_dynamic_flag_spec='${wl}-Blargedynsym'
26155 runpath_var=LD_RUN_PATH
26163 shlibpath_overrides_runpath=no
26164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26170 if test -d /usr/nec ;then
26172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26173 soname_spec='$libname${shared_ext}.$major'
26174 shlibpath_var=LD_LIBRARY_PATH
26180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26181 soname_spec='${libname}${release}${shared_ext}$major'
26182 shlibpath_var=LD_LIBRARY_PATH
26189 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26190 echo "${ECHO_T}$dynamic_linker" >&6
26191 test "$dynamic_linker" = no && can_build_shared=no
26193 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26194 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26195 hardcode_action_F77=
26196 if test -n "$hardcode_libdir_flag_spec_F77" || \
26197 test -n "$runpath_var_F77" || \
26198 test "X$hardcode_automatic_F77" = "Xyes" ; then
26200 # We can hardcode non-existant directories.
26201 if test "$hardcode_direct_F77" != no &&
26202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26203 # have to relink, otherwise we might link with an installed library
26204 # when we should be linking with a yet-to-be-installed one
26205 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
26206 test "$hardcode_minus_L_F77" != no; then
26207 # Linking always hardcodes the temporary library directory.
26208 hardcode_action_F77=relink
26210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26211 hardcode_action_F77=immediate
26214 # We cannot hardcode anything, or else we can only hardcode existing
26216 hardcode_action_F77=unsupported
26218 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
26219 echo "${ECHO_T}$hardcode_action_F77" >&6
26221 if test "$hardcode_action_F77" = relink; then
26222 # Fast installation is not supported
26223 enable_fast_install=no
26224 elif test "$shlibpath_overrides_runpath" = yes ||
26225 test "$enable_shared" = no; then
26226 # Fast installation is not necessary
26227 enable_fast_install=needless
26232 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26233 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26234 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26235 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26236 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26237 echo "$as_me:$LINENO: result: yes" >&5
26238 echo "${ECHO_T}yes" >&6
26240 # FIXME - insert some real tests, host_os isn't really good enough
26243 if test -n "$STRIP" ; then
26244 striplib="$STRIP -x"
26245 echo "$as_me:$LINENO: result: yes" >&5
26246 echo "${ECHO_T}yes" >&6
26248 echo "$as_me:$LINENO: result: no" >&5
26249 echo "${ECHO_T}no" >&6
26253 echo "$as_me:$LINENO: result: no" >&5
26254 echo "${ECHO_T}no" >&6
26261 # The else clause should only fire when bootstrapping the
26262 # libtool distribution, otherwise you forgot to ship ltmain.sh
26263 # with your package, and you will get complaints that there are
26264 # no rules to generate ltmain.sh.
26265 if test -f "$ltmain"; then
26266 # See if we are running on zsh, and set the options which allow our commands through
26267 # without removal of \ escapes.
26268 if test -n "${ZSH_VERSION+set}" ; then
26269 setopt NO_GLOB_SUBST
26271 # Now quote all the things that may contain metacharacters while being
26272 # careful not to overquote the AC_SUBSTed values. We take copies of the
26273 # variables and quote the copies for generation of the libtool script.
26274 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
26276 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26277 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26278 deplibs_check_method reload_flag reload_cmds need_locks \
26279 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26280 lt_cv_sys_global_symbol_to_c_name_address \
26281 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26282 old_postinstall_cmds old_postuninstall_cmds \
26286 lt_prog_compiler_wl_F77 \
26287 lt_prog_compiler_pic_F77 \
26288 lt_prog_compiler_static_F77 \
26289 lt_prog_compiler_no_builtin_flag_F77 \
26290 export_dynamic_flag_spec_F77 \
26291 thread_safe_flag_spec_F77 \
26292 whole_archive_flag_spec_F77 \
26293 enable_shared_with_static_runtimes_F77 \
26294 old_archive_cmds_F77 \
26295 old_archive_from_new_cmds_F77 \
26296 predep_objects_F77 \
26297 postdep_objects_F77 \
26300 compiler_lib_search_path_F77 \
26302 archive_expsym_cmds_F77 \
26303 postinstall_cmds_F77 \
26304 postuninstall_cmds_F77 \
26305 old_archive_from_expsyms_cmds_F77 \
26306 allow_undefined_flag_F77 \
26307 no_undefined_flag_F77 \
26308 export_symbols_cmds_F77 \
26309 hardcode_libdir_flag_spec_F77 \
26310 hardcode_libdir_flag_spec_ld_F77 \
26311 hardcode_libdir_separator_F77 \
26312 hardcode_automatic_F77 \
26314 module_expsym_cmds_F77 \
26315 lt_cv_prog_compiler_c_o_F77 \
26316 exclude_expsyms_F77 \
26317 include_expsyms_F77; do
26320 old_archive_cmds_F77 | \
26321 old_archive_from_new_cmds_F77 | \
26322 archive_cmds_F77 | \
26323 archive_expsym_cmds_F77 | \
26324 module_cmds_F77 | \
26325 module_expsym_cmds_F77 | \
26326 old_archive_from_expsyms_cmds_F77 | \
26327 export_symbols_cmds_F77 | \
26328 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26329 postinstall_cmds | postuninstall_cmds | \
26330 old_postinstall_cmds | old_postuninstall_cmds | \
26331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26332 # Double-quote double-evaled strings.
26333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26342 *'\$0 --fallback-echo"')
26343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26349 cat <<__EOF__ >> "$cfgfile"
26350 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26354 # Shell to use when invoking shell scripts.
26357 # Whether or not to build shared libraries.
26358 build_libtool_libs=$enable_shared
26360 # Whether or not to build static libraries.
26361 build_old_libs=$enable_static
26363 # Whether or not to add -lc for building shared libraries.
26364 build_libtool_need_lc=$archive_cmds_need_lc_F77
26366 # Whether or not to disallow shared libs when runtime libs are static
26367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
26369 # Whether or not to optimize for fast installation.
26370 fast_install=$enable_fast_install
26373 host_alias=$host_alias
26377 # The build system.
26378 build_alias=$build_alias
26382 # An echo program that does not interpret backslashes.
26387 AR_FLAGS=$lt_AR_FLAGS
26392 # A language-specific compiler.
26393 CC=$lt_compiler_F77
26395 # Is the compiler the GNU C compiler?
26401 # The linker used to build libraries.
26404 # Whether we need hard or soft links.
26407 # A BSD-compatible nm program.
26410 # A symbol stripping program
26413 # Used to examine libraries when file_magic_cmd begins "file"
26414 MAGIC_CMD=$MAGIC_CMD
26416 # Used on cygwin: DLL creation program.
26419 # Used on cygwin: object dumper.
26422 # Used on cygwin: assembler.
26425 # The name of the directory that contains temporary libtool files.
26428 # How to create reloadable object files.
26429 reload_flag=$lt_reload_flag
26430 reload_cmds=$lt_reload_cmds
26432 # How to pass a linker flag through the compiler.
26433 wl=$lt_lt_prog_compiler_wl_F77
26435 # Object file suffix (normally "o").
26436 objext="$ac_objext"
26438 # Old archive suffix (normally "a").
26441 # Shared library suffix (normally ".so").
26442 shrext_cmds='$shrext_cmds'
26444 # Executable file suffix (normally "").
26447 # Additional compiler flags for building library objects.
26448 pic_flag=$lt_lt_prog_compiler_pic_F77
26451 # What is the maximum length of a command?
26452 max_cmd_len=$lt_cv_sys_max_cmd_len
26454 # Does compiler simultaneously support -c and -o options?
26455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
26457 # Must we lock files when doing compilation?
26458 need_locks=$lt_need_locks
26460 # Do we need the lib prefix for modules?
26461 need_lib_prefix=$need_lib_prefix
26463 # Do we need a version for libraries?
26464 need_version=$need_version
26466 # Whether dlopen is supported.
26467 dlopen_support=$enable_dlopen
26469 # Whether dlopen of programs is supported.
26470 dlopen_self=$enable_dlopen_self
26472 # Whether dlopen of statically linked programs is supported.
26473 dlopen_self_static=$enable_dlopen_self_static
26475 # Compiler flag to prevent dynamic linking.
26476 link_static_flag=$lt_lt_prog_compiler_static_F77
26478 # Compiler flag to turn off builtin functions.
26479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
26481 # Compiler flag to allow reflexive dlopens.
26482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
26484 # Compiler flag to generate shared objects directly from archives.
26485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
26487 # Compiler flag to generate thread-safe objects.
26488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
26490 # Library versioning type.
26491 version_type=$version_type
26493 # Format of library name prefix.
26494 libname_spec=$lt_libname_spec
26496 # List of archive names. First name is the real one, the rest are links.
26497 # The last name is the one that the linker finds with -lNAME.
26498 library_names_spec=$lt_library_names_spec
26500 # The coded name of the library, if different from the real name.
26501 soname_spec=$lt_soname_spec
26503 # Commands used to build and install an old-style archive.
26505 old_archive_cmds=$lt_old_archive_cmds_F77
26506 old_postinstall_cmds=$lt_old_postinstall_cmds
26507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26509 # Create an old-style archive from a shared archive.
26510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
26512 # Create a temporary old-style archive to link instead of a shared archive.
26513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
26515 # Commands used to build and install a shared archive.
26516 archive_cmds=$lt_archive_cmds_F77
26517 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
26518 postinstall_cmds=$lt_postinstall_cmds
26519 postuninstall_cmds=$lt_postuninstall_cmds
26521 # Commands used to build a loadable module (assumed same as above if empty)
26522 module_cmds=$lt_module_cmds_F77
26523 module_expsym_cmds=$lt_module_expsym_cmds_F77
26525 # Commands to strip libraries.
26526 old_striplib=$lt_old_striplib
26527 striplib=$lt_striplib
26529 # Dependencies to place before the objects being linked to create a
26531 predep_objects=$lt_predep_objects_F77
26533 # Dependencies to place after the objects being linked to create a
26535 postdep_objects=$lt_postdep_objects_F77
26537 # Dependencies to place before the objects being linked to create a
26539 predeps=$lt_predeps_F77
26541 # Dependencies to place after the objects being linked to create a
26543 postdeps=$lt_postdeps_F77
26545 # The library search path used internally by the compiler when linking
26546 # a shared library.
26547 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
26549 # Method to check whether dependent libraries are shared objects.
26550 deplibs_check_method=$lt_deplibs_check_method
26552 # Command to use when deplibs_check_method == file_magic.
26553 file_magic_cmd=$lt_file_magic_cmd
26555 # Flag that allows shared libraries with undefined symbols to be built.
26556 allow_undefined_flag=$lt_allow_undefined_flag_F77
26558 # Flag that forces no undefined symbols.
26559 no_undefined_flag=$lt_no_undefined_flag_F77
26561 # Commands used to finish a libtool library installation in a directory.
26562 finish_cmds=$lt_finish_cmds
26564 # Same as above, but a single script fragment to be evaled but not shown.
26565 finish_eval=$lt_finish_eval
26567 # Take the output of nm and produce a listing of raw symbols and C names.
26568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26570 # Transform the output of nm in a proper C declaration
26571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26573 # Transform the output of nm in a C name address pair
26574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26576 # This is the shared library runtime path variable.
26577 runpath_var=$runpath_var
26579 # This is the shared library path variable.
26580 shlibpath_var=$shlibpath_var
26582 # Is shlibpath searched before the hard-coded library search path?
26583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26585 # How to hardcode a shared library path into an executable.
26586 hardcode_action=$hardcode_action_F77
26588 # Whether we should hardcode library paths into libraries.
26589 hardcode_into_libs=$hardcode_into_libs
26591 # Flag to hardcode \$libdir into a binary during linking.
26592 # This must work even if \$libdir does not exist.
26593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26595 # If ld is used when linking, flag to hardcode \$libdir into
26596 # a binary during linking. This must work even if \$libdir does
26598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26600 # Whether we need a single -rpath flag with a separated argument.
26601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26604 # resulting binary.
26605 hardcode_direct=$hardcode_direct_F77
26607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26608 # resulting binary.
26609 hardcode_minus_L=$hardcode_minus_L_F77
26611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26612 # the resulting binary.
26613 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26615 # Set to yes if building a shared library automatically hardcodes DIR into the library
26616 # and all subsequent libraries and executables linked against it.
26617 hardcode_automatic=$hardcode_automatic_F77
26619 # Variables whose values should be saved in libtool wrapper scripts and
26620 # restored at relink time.
26621 variables_saved_for_relink="$variables_saved_for_relink"
26623 # Whether libtool must link a program against all its dependency libraries.
26624 link_all_deplibs=$link_all_deplibs_F77
26626 # Compile-time system search path for libraries
26627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26629 # Run-time system search path for libraries
26630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26632 # Fix the shell variable \$srcfile for the compiler.
26633 fix_srcfile_path="$fix_srcfile_path_F77"
26635 # Set to yes if exported symbols are required.
26636 always_export_symbols=$always_export_symbols_F77
26638 # The commands to list exported symbols.
26639 export_symbols_cmds=$lt_export_symbols_cmds_F77
26641 # The commands to extract the exported symbol list from a shared archive.
26642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26644 # Symbols that should not be listed in the preloaded symbols.
26645 exclude_expsyms=$lt_exclude_expsyms_F77
26647 # Symbols that must always be exported.
26648 include_expsyms=$lt_include_expsyms_F77
26650 # ### END LIBTOOL TAG CONFIG: $tagname
26656 # If there is no Makefile yet, we rely on a make rule to execute
26657 # `config.status --recheck' to rerun these tests and create the
26658 # libtool script then.
26659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26660 if test -f "$ltmain_in"; then
26661 test -f Makefile && make "$ltmain"
26667 ac_cpp='$CPP $CPPFLAGS'
26668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26680 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
26684 # Source file extension for Java test sources.
26687 # Object file extension for compiled Java test sources.
26691 # Code to be used in simple compile tests
26692 lt_simple_compile_test_code="class foo {}\n"
26694 # Code to be used in simple link tests
26695 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
26697 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26699 # If no C compiler was specified, use CC.
26702 # Allow CC to be a program name with arguments.
26706 # save warnings/boilerplate of simple test code
26707 ac_outfile=conftest.$ac_objext
26708 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26709 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26710 _lt_compiler_boilerplate=`cat conftest.err`
26713 ac_outfile=conftest.$ac_objext
26714 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26715 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26716 _lt_linker_boilerplate=`cat conftest.err`
26720 # Allow CC to be a program name with arguments.
26725 for cc_temp in $compiler""; do
26727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26733 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26736 # GCJ did not exist at the time GCC didn't implicitly link libc in.
26737 archive_cmds_need_lc_GCJ=no
26739 old_archive_cmds_GCJ=$old_archive_cmds
26742 ## There is no encapsulation within the following macros, do not change
26743 ## the running order or otherwise move them around unless you know exactly
26744 ## what you are doing...
26746 lt_prog_compiler_no_builtin_flag_GCJ=
26748 if test "$GCC" = yes; then
26749 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
26752 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26753 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
26754 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
26755 echo $ECHO_N "(cached) $ECHO_C" >&6
26757 lt_cv_prog_compiler_rtti_exceptions=no
26758 ac_outfile=conftest.$ac_objext
26759 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26760 lt_compiler_flag="-fno-rtti -fno-exceptions"
26761 # Insert the option either (1) after the last *FLAGS variable, or
26762 # (2) before a word containing "conftest.", or (3) at the end.
26763 # Note that $ac_compile itself does not contain backslashes and begins
26764 # with a dollar sign (not a hyphen), so the echo should work correctly.
26765 # The option is referenced via a variable to avoid confusing sed.
26766 lt_compile=`echo "$ac_compile" | $SED \
26767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26769 -e 's:$: $lt_compiler_flag:'`
26770 (eval echo "\"\$as_me:26770: $lt_compile\"" >&5)
26771 (eval "$lt_compile" 2>conftest.err)
26773 cat conftest.err >&5
26774 echo "$as_me:26774: \$? = $ac_status" >&5
26775 if (exit $ac_status) && test -s "$ac_outfile"; then
26776 # The compiler can only warn and ignore the option if not recognized
26777 # So say no if there are warnings other than the usual output.
26778 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
26779 $SED '/^$/d' conftest.err >conftest.er2
26780 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
26781 lt_cv_prog_compiler_rtti_exceptions=yes
26787 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
26788 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
26790 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
26791 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
26798 lt_prog_compiler_wl_GCJ=
26799 lt_prog_compiler_pic_GCJ=
26800 lt_prog_compiler_static_GCJ=
26802 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
26803 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
26805 if test "$GCC" = yes; then
26806 lt_prog_compiler_wl_GCJ='-Wl,'
26807 lt_prog_compiler_static_GCJ='-static'
26811 # All AIX code is PIC.
26812 if test "$host_cpu" = ia64; then
26813 # AIX 5 now supports IA64 processor
26814 lt_prog_compiler_static_GCJ='-Bstatic'
26819 # FIXME: we need at least 68020 code to build shared libraries, but
26820 # adding the `-m68020' flag to GCC prevents building anything better,
26822 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
26825 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
26826 # PIC is the default for these OSes.
26829 mingw* | pw32* | os2*)
26830 # This hack is so that the source file can tell whether it is being
26831 # built for inclusion in a dll (and should export symbols for example).
26832 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26835 darwin* | rhapsody*)
26836 # PIC is the default on this platform
26837 # Common symbols not allowed in MH_DYLIB files
26838 lt_prog_compiler_pic_GCJ='-fno-common'
26842 # Just because we use GCC doesn't mean we suddenly get shared libraries
26843 # on systems that don't support them.
26844 lt_prog_compiler_can_build_shared_GCJ=no
26849 if test -d /usr/nec; then
26850 lt_prog_compiler_pic_GCJ=-Kconform_pic
26855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26856 # not for PA HP-UX.
26862 lt_prog_compiler_pic_GCJ='-fPIC'
26868 lt_prog_compiler_pic_GCJ='-fPIC'
26872 # PORTME Check for flag to pass linker flags through the system compiler.
26875 lt_prog_compiler_wl_GCJ='-Wl,'
26876 if test "$host_cpu" = ia64; then
26877 # AIX 5 now supports IA64 processor
26878 lt_prog_compiler_static_GCJ='-Bstatic'
26880 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
26884 # PIC is the default on this platform
26885 # Common symbols not allowed in MH_DYLIB files
26886 case $cc_basename in
26888 lt_prog_compiler_pic_GCJ='-qnocommon'
26889 lt_prog_compiler_wl_GCJ='-Wl,'
26894 mingw* | pw32* | os2*)
26895 # This hack is so that the source file can tell whether it is being
26896 # built for inclusion in a dll (and should export symbols for example).
26897 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26900 hpux9* | hpux10* | hpux11*)
26901 lt_prog_compiler_wl_GCJ='-Wl,'
26902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26903 # not for PA HP-UX.
26909 lt_prog_compiler_pic_GCJ='+Z'
26912 # Is there a better lt_prog_compiler_static that works with the bundled CC?
26913 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
26916 irix5* | irix6* | nonstopux*)
26917 lt_prog_compiler_wl_GCJ='-Wl,'
26918 # PIC (with -KPIC) is the default.
26919 lt_prog_compiler_static_GCJ='-non_shared'
26923 lt_prog_compiler_pic_GCJ='-KPIC'
26924 lt_prog_compiler_static_GCJ='-Bstatic'
26928 case $cc_basename in
26930 lt_prog_compiler_wl_GCJ='-Wl,'
26931 lt_prog_compiler_pic_GCJ='-KPIC'
26932 lt_prog_compiler_static_GCJ='-static'
26934 pgcc* | pgf77* | pgf90* | pgf95*)
26935 # Portland Group compilers (*not* the Pentium gcc compiler,
26936 # which looks to be a dead project)
26937 lt_prog_compiler_wl_GCJ='-Wl,'
26938 lt_prog_compiler_pic_GCJ='-fpic'
26939 lt_prog_compiler_static_GCJ='-Bstatic'
26942 lt_prog_compiler_wl_GCJ='-Wl,'
26943 # All Alpha code is PIC.
26944 lt_prog_compiler_static_GCJ='-non_shared'
26949 osf3* | osf4* | osf5*)
26950 lt_prog_compiler_wl_GCJ='-Wl,'
26951 # All OSF/1 code is PIC.
26952 lt_prog_compiler_static_GCJ='-non_shared'
26956 lt_prog_compiler_pic_GCJ='-Kpic'
26957 lt_prog_compiler_static_GCJ='-dn'
26961 lt_prog_compiler_pic_GCJ='-KPIC'
26962 lt_prog_compiler_static_GCJ='-Bstatic'
26963 case $cc_basename in
26964 f77* | f90* | f95*)
26965 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
26967 lt_prog_compiler_wl_GCJ='-Wl,';;
26972 lt_prog_compiler_wl_GCJ='-Qoption ld '
26973 lt_prog_compiler_pic_GCJ='-PIC'
26974 lt_prog_compiler_static_GCJ='-Bstatic'
26977 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26978 lt_prog_compiler_wl_GCJ='-Wl,'
26979 lt_prog_compiler_pic_GCJ='-KPIC'
26980 lt_prog_compiler_static_GCJ='-Bstatic'
26984 if test -d /usr/nec ;then
26985 lt_prog_compiler_pic_GCJ='-Kconform_pic'
26986 lt_prog_compiler_static_GCJ='-Bstatic'
26991 lt_prog_compiler_wl_GCJ='-Wl,'
26992 lt_prog_compiler_can_build_shared_GCJ=no
26996 lt_prog_compiler_pic_GCJ='-pic'
26997 lt_prog_compiler_static_GCJ='-Bstatic'
27001 lt_prog_compiler_can_build_shared_GCJ=no
27006 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
27007 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
27010 # Check to make sure the PIC flag actually works.
27012 if test -n "$lt_prog_compiler_pic_GCJ"; then
27014 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
27015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
27016 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27019 lt_prog_compiler_pic_works_GCJ=no
27020 ac_outfile=conftest.$ac_objext
27021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27022 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
27023 # Insert the option either (1) after the last *FLAGS variable, or
27024 # (2) before a word containing "conftest.", or (3) at the end.
27025 # Note that $ac_compile itself does not contain backslashes and begins
27026 # with a dollar sign (not a hyphen), so the echo should work correctly.
27027 # The option is referenced via a variable to avoid confusing sed.
27028 lt_compile=`echo "$ac_compile" | $SED \
27029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27031 -e 's:$: $lt_compiler_flag:'`
27032 (eval echo "\"\$as_me:27032: $lt_compile\"" >&5)
27033 (eval "$lt_compile" 2>conftest.err)
27035 cat conftest.err >&5
27036 echo "$as_me:27036: \$? = $ac_status" >&5
27037 if (exit $ac_status) && test -s "$ac_outfile"; then
27038 # The compiler can only warn and ignore the option if not recognized
27039 # So say no if there are warnings other than the usual output.
27040 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
27041 $SED '/^$/d' conftest.err >conftest.er2
27042 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
27043 lt_prog_compiler_pic_works_GCJ=yes
27049 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
27050 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
27052 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
27053 case $lt_prog_compiler_pic_GCJ in
27055 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
27058 lt_prog_compiler_pic_GCJ=
27059 lt_prog_compiler_can_build_shared_GCJ=no
27064 # For platforms which do not support PIC, -DPIC is meaningless:
27066 lt_prog_compiler_pic_GCJ=
27069 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
27073 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
27074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
27075 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
27076 echo $ECHO_N "(cached) $ECHO_C" >&6
27078 lt_cv_prog_compiler_c_o_GCJ=no
27079 $rm -r conftest 2>/dev/null
27083 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27085 lt_compiler_flag="-o out/conftest2.$ac_objext"
27086 # Insert the option either (1) after the last *FLAGS variable, or
27087 # (2) before a word containing "conftest.", or (3) at the end.
27088 # Note that $ac_compile itself does not contain backslashes and begins
27089 # with a dollar sign (not a hyphen), so the echo should work correctly.
27090 lt_compile=`echo "$ac_compile" | $SED \
27091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27093 -e 's:$: $lt_compiler_flag:'`
27094 (eval echo "\"\$as_me:27094: $lt_compile\"" >&5)
27095 (eval "$lt_compile" 2>out/conftest.err)
27097 cat out/conftest.err >&5
27098 echo "$as_me:27098: \$? = $ac_status" >&5
27099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
27101 # The compiler can only warn and ignore the option if not recognized
27102 # So say no if there are warnings
27103 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
27104 $SED '/^$/d' out/conftest.err >out/conftest.er2
27105 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27106 lt_cv_prog_compiler_c_o_GCJ=yes
27111 # SGI C++ compiler will create directory out/ii_files/ for
27112 # template instantiation
27113 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
27114 $rm out/* && rmdir out
27120 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
27121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
27124 hard_links="nottested"
27125 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
27126 # do not overwrite the value of need_locks provided by the user
27127 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
27128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
27131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
27133 ln conftest.a conftest.b 2>&5 || hard_links=no
27134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
27135 echo "$as_me:$LINENO: result: $hard_links" >&5
27136 echo "${ECHO_T}$hard_links" >&6
27137 if test "$hard_links" = no; then
27138 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
27139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
27146 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
27150 allow_undefined_flag_GCJ=
27151 enable_shared_with_static_runtimes_GCJ=no
27153 archive_expsym_cmds_GCJ=
27154 old_archive_From_new_cmds_GCJ=
27155 old_archive_from_expsyms_cmds_GCJ=
27156 export_dynamic_flag_spec_GCJ=
27157 whole_archive_flag_spec_GCJ=
27158 thread_safe_flag_spec_GCJ=
27159 hardcode_libdir_flag_spec_GCJ=
27160 hardcode_libdir_flag_spec_ld_GCJ=
27161 hardcode_libdir_separator_GCJ=
27162 hardcode_direct_GCJ=no
27163 hardcode_minus_L_GCJ=no
27164 hardcode_shlibpath_var_GCJ=unsupported
27165 link_all_deplibs_GCJ=unknown
27166 hardcode_automatic_GCJ=no
27168 module_expsym_cmds_GCJ=
27169 always_export_symbols_GCJ=no
27170 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
27171 # include_expsyms should be a list of space-separated symbols to be *always*
27172 # included in the symbol list
27173 include_expsyms_GCJ=
27174 # exclude_expsyms can be an extended regexp of symbols to exclude
27175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
27176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
27177 # as well as any symbol that contains `d'.
27178 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
27179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
27180 # platforms (ab)use it in PIC code, but their linkers get confused if
27181 # the symbol is explicitly referenced. Since portable code cannot
27182 # rely on this symbol name, it's probably fine to never include it in
27183 # preloaded symbol tables.
27184 extract_expsyms_cmds=
27185 # Just being paranoid about ensuring that cc_basename is set.
27186 for cc_temp in $compiler""; do
27188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27197 cygwin* | mingw* | pw32*)
27198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
27199 # When not using gcc, we currently assume that we are using
27200 # Microsoft Visual C++.
27201 if test "$GCC" != yes; then
27211 if test "$with_gnu_ld" = yes; then
27212 # If archive_cmds runs LD, not CC, wlarc should be empty
27215 # Set some defaults for GNU ld with shared library support. These
27216 # are reset later if shared libraries are not supported. Putting them
27217 # here allows them to be overridden if necessary.
27218 runpath_var=LD_RUN_PATH
27219 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
27220 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
27221 # ancient GNU ld didn't support --whole-archive et. al.
27222 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
27223 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27225 whole_archive_flag_spec_GCJ=
27227 supports_anon_versioning=no
27228 case `$LD -v 2>/dev/null` in
27229 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27230 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27231 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27232 *\ 2.11.*) ;; # other 2.11 versions
27233 *) supports_anon_versioning=yes ;;
27236 # See if GNU ld supports shared libraries.
27238 aix3* | aix4* | aix5*)
27239 # On AIX/PPC, the GNU linker is very broken
27240 if test "$host_cpu" != ia64; then
27244 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
27245 *** to be unable to reliably create shared libraries on AIX.
27246 *** Therefore, libtool is disabling shared libraries support. If you
27247 *** really care for shared libraries, you may want to modify your PATH
27248 *** so that a non-GNU linker is found, and then restart.
27255 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)'
27256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27257 hardcode_minus_L_GCJ=yes
27259 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
27260 # that the semantics of dynamic libraries on AmigaOS, at least up
27261 # to version 4, is to share data among multiple programs linked
27262 # with the same dynamic library. Since this doesn't match the
27263 # behavior of shared libraries on other platforms, we can't use
27269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27270 allow_undefined_flag_GCJ=unsupported
27271 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27272 # support --undefined. This deserves some investigation. FIXME
27273 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27279 cygwin* | mingw* | pw32*)
27280 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
27281 # as there is no search path for DLLs.
27282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27283 allow_undefined_flag_GCJ=unsupported
27284 always_export_symbols_GCJ=no
27285 enable_shared_with_static_runtimes_GCJ=yes
27286 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
27288 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
27289 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
27290 # If the export-symbols file already is a .def file (1st line
27291 # is EXPORTS), use it as is; otherwise, prepend...
27292 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27293 cp $export_symbols $output_objdir/$soname.def;
27295 echo EXPORTS > $output_objdir/$soname.def;
27296 cat $export_symbols >> $output_objdir/$soname.def;
27298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
27305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27307 case $cc_basename,$host_cpu in
27308 pgcc*) # Portland Group C compiler
27309 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'
27310 tmp_addflag=' $pic_flag'
27312 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
27313 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'
27314 tmp_addflag=' $pic_flag -Mnomain' ;;
27315 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
27316 tmp_addflag=' -i_dynamic' ;;
27317 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
27318 tmp_addflag=' -i_dynamic -nofor_main' ;;
27319 ifc* | ifort*) # Intel Fortran compiler
27320 tmp_addflag=' -nofor_main' ;;
27322 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27324 if test $supports_anon_versioning = yes; then
27325 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
27326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27327 $echo "local: *; };" >> $output_objdir/$libname.ver~
27328 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
27336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27337 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
27340 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27341 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27346 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
27350 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
27351 *** create shared libraries on Solaris systems. Therefore, libtool
27352 *** is disabling shared libraries support. We urge you to upgrade GNU
27353 *** binutils to release 2.9.1 or newer. Another option is to modify
27354 *** your PATH or compiler configuration so that the native linker is
27355 *** used, and then restart.
27358 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27359 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27360 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27367 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27369 hardcode_direct_GCJ=yes
27370 hardcode_shlibpath_var_GCJ=no
27374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27376 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27383 if test "$ld_shlibs_GCJ" = no; then
27385 hardcode_libdir_flag_spec_GCJ=
27386 export_dynamic_flag_spec_GCJ=
27387 whole_archive_flag_spec_GCJ=
27390 # PORTME fill in a description of your system's linker (not GNU ld)
27393 allow_undefined_flag_GCJ=unsupported
27394 always_export_symbols_GCJ=yes
27395 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'
27396 # Note: this linker hardcodes the directories in LIBPATH if there
27397 # are no directories specified by -L.
27398 hardcode_minus_L_GCJ=yes
27399 if test "$GCC" = yes && test -z "$link_static_flag"; then
27400 # Neither direct hardcoding nor static linking is supported with a
27402 hardcode_direct_GCJ=unsupported
27407 if test "$host_cpu" = ia64; then
27408 # On IA64, the linker does run time linking by default, so we don't
27409 # have to do anything special.
27410 aix_use_runtimelinking=no
27411 exp_sym_flag='-Bexport'
27414 # If we're using GNU nm, then we don't want the "-C" option.
27415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
27416 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
27417 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'
27419 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'
27421 aix_use_runtimelinking=no
27423 # Test if we are trying to use run time linking or normal
27424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27425 # need to do runtime linking.
27426 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
27427 for ld_flag in $LDFLAGS; do
27428 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
27429 aix_use_runtimelinking=yes
27435 exp_sym_flag='-bexport'
27436 no_entry_flag='-bnoentry'
27439 # When large executables or shared objects are built, AIX ld can
27440 # have problems creating the table of contents. If linking a library
27441 # or program results in "error TOC overflow" add -mminimal-toc to
27442 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
27443 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27445 archive_cmds_GCJ=''
27446 hardcode_direct_GCJ=yes
27447 hardcode_libdir_separator_GCJ=':'
27448 link_all_deplibs_GCJ=yes
27450 if test "$GCC" = yes; then
27451 case $host_os in aix4.[012]|aix4.[012].*)
27452 # We only want to do this on AIX 4.2 and lower, the check
27453 # below for broken collect2 doesn't work under 4.3+
27454 collect2name=`${CC} -print-prog-name=collect2`
27455 if test -f "$collect2name" && \
27456 strings "$collect2name" | grep resolve_lib_name >/dev/null
27458 # We have reworked collect2
27459 hardcode_direct_GCJ=yes
27461 # We have old collect2
27462 hardcode_direct_GCJ=unsupported
27463 # It fails to find uninstalled libraries when the uninstalled
27464 # path is not listed in the libpath. Setting hardcode_minus_L
27465 # to unsupported forces relinking
27466 hardcode_minus_L_GCJ=yes
27467 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27468 hardcode_libdir_separator_GCJ=
27471 shared_flag='-shared'
27472 if test "$aix_use_runtimelinking" = yes; then
27473 shared_flag="$shared_flag "'${wl}-G'
27477 if test "$host_cpu" = ia64; then
27478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27479 # chokes on -Wl,-G. The following line is correct:
27482 if test "$aix_use_runtimelinking" = yes; then
27483 shared_flag='${wl}-G'
27485 shared_flag='${wl}-bM:SRE'
27490 # It seems that -bexpall does not export symbols beginning with
27491 # underscore (_), so it is better to generate a list of symbols to export.
27492 always_export_symbols_GCJ=yes
27493 if test "$aix_use_runtimelinking" = yes; then
27494 # Warning - without using the other runtime loading flags (-brtl),
27495 # -berok will link without error, but may produce a broken library.
27496 allow_undefined_flag_GCJ='-berok'
27497 # Determine the default libpath from the value encoded in an empty executable.
27498 cat >conftest.$ac_ext <<_ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h. */
27513 rm -f conftest.$ac_objext conftest$ac_exeext
27514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27515 (eval $ac_link) 2>conftest.er1
27517 grep -v '^ *+' conftest.er1 >conftest.err
27519 cat conftest.err >&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } &&
27522 { ac_try='test -z "$ac_c_werror_flag"
27523 || test ! -s conftest.err'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; } &&
27529 { ac_try='test -s conftest$ac_exeext'
27530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 (eval $ac_try) 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
27536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27538 # Check for a 64-bit object if we didn't find anything.
27539 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; }
27542 echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27546 rm -f conftest.err conftest.$ac_objext \
27547 conftest$ac_exeext conftest.$ac_ext
27548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27550 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27551 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"
27553 if test "$host_cpu" = ia64; then
27554 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
27555 allow_undefined_flag_GCJ="-z nodefs"
27556 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"
27558 # Determine the default libpath from the value encoded in an empty executable.
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27574 rm -f conftest.$ac_objext conftest$ac_exeext
27575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27576 (eval $ac_link) 2>conftest.er1
27578 grep -v '^ *+' conftest.er1 >conftest.err
27580 cat conftest.err >&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); } &&
27583 { ac_try='test -z "$ac_c_werror_flag"
27584 || test ! -s conftest.err'
27585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586 (eval $ac_try) 2>&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } &&
27590 { ac_try='test -s conftest$ac_exeext'
27591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592 (eval $ac_try) 2>&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; }; then
27597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27599 # Check for a 64-bit object if we didn't find anything.
27600 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; }
27603 echo "$as_me: failed program was:" >&5
27604 sed 's/^/| /' conftest.$ac_ext >&5
27607 rm -f conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
27609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27611 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27612 # Warning - without using the other run time loading flags,
27613 # -berok will link without error, but may produce a broken library.
27614 no_undefined_flag_GCJ=' ${wl}-bernotok'
27615 allow_undefined_flag_GCJ=' ${wl}-berok'
27616 # -bexpall does not export symbols beginning with underscore (_)
27617 always_export_symbols_GCJ=yes
27618 # Exported symbols can be pulled into shared objects from archives
27619 whole_archive_flag_spec_GCJ=' '
27620 archive_cmds_need_lc_GCJ=yes
27621 # This is similar to how AIX traditionally builds its shared libraries.
27622 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'
27628 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)'
27629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27630 hardcode_minus_L_GCJ=yes
27631 # see comment about different semantics on the GNU ld section
27636 export_dynamic_flag_spec_GCJ=-rdynamic
27639 cygwin* | mingw* | pw32*)
27640 # When not using gcc, we currently assume that we are using
27641 # Microsoft Visual C++.
27642 # hardcode_libdir_flag_spec is actually meaningless, as there is
27643 # no search path for DLLs.
27644 hardcode_libdir_flag_spec_GCJ=' '
27645 allow_undefined_flag_GCJ=unsupported
27646 # Tell ltmain to make .lib files, not .a files.
27648 # Tell ltmain to make .dll files, not .so files.
27650 # FIXME: Setting linknames here is a bad hack.
27651 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
27652 # The linker will automatically build a .lib file if we build a DLL.
27653 old_archive_From_new_cmds_GCJ='true'
27654 # FIXME: Should let the user specify the lib program.
27655 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
27656 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
27657 enable_shared_with_static_runtimes_GCJ=yes
27660 darwin* | rhapsody*)
27662 rhapsody* | darwin1.[012])
27663 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
27666 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
27667 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27669 case ${MACOSX_DEPLOYMENT_TARGET} in
27671 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27674 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
27680 archive_cmds_need_lc_GCJ=no
27681 hardcode_direct_GCJ=no
27682 hardcode_automatic_GCJ=yes
27683 hardcode_shlibpath_var_GCJ=unsupported
27684 whole_archive_flag_spec_GCJ=''
27685 link_all_deplibs_GCJ=yes
27686 if test "$GCC" = yes ; then
27687 output_verbose_link_cmd='echo'
27688 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
27689 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27691 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}'
27692 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}'
27694 case $cc_basename in
27696 output_verbose_link_cmd='echo'
27697 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
27698 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27699 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27700 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}'
27701 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}'
27711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27712 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27713 hardcode_shlibpath_var_GCJ=no
27720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
27721 # support. Future versions do this automatically, but an explicit c++rt0.o
27722 # does not break anything, and helps significantly (at the cost of a little
27725 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
27726 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27727 hardcode_direct_GCJ=yes
27728 hardcode_shlibpath_var_GCJ=no
27731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
27733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27734 hardcode_direct_GCJ=yes
27735 hardcode_minus_L_GCJ=yes
27736 hardcode_shlibpath_var_GCJ=no
27739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
27740 freebsd* | kfreebsd*-gnu | dragonfly*)
27741 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
27742 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27743 hardcode_direct_GCJ=yes
27744 hardcode_shlibpath_var_GCJ=no
27748 if test "$GCC" = yes; then
27749 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'
27751 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'
27753 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27754 hardcode_libdir_separator_GCJ=:
27755 hardcode_direct_GCJ=yes
27757 # hardcode_minus_L: Not really in the search PATH,
27758 # but as the default location of the library.
27759 hardcode_minus_L_GCJ=yes
27760 export_dynamic_flag_spec_GCJ='${wl}-E'
27764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27767 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27770 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27776 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
27779 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
27783 if test "$with_gnu_ld" = no; then
27786 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27787 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
27788 hardcode_libdir_separator_GCJ=:
27789 hardcode_direct_GCJ=no
27790 hardcode_shlibpath_var_GCJ=no
27793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27794 hardcode_direct_GCJ=no
27795 hardcode_shlibpath_var_GCJ=no
27797 # hardcode_minus_L: Not really in the search PATH,
27798 # but as the default location of the library.
27799 hardcode_minus_L_GCJ=yes
27802 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27803 hardcode_libdir_separator_GCJ=:
27804 hardcode_direct_GCJ=yes
27805 export_dynamic_flag_spec_GCJ='${wl}-E'
27807 # hardcode_minus_L: Not really in the search PATH,
27808 # but as the default location of the library.
27809 hardcode_minus_L_GCJ=yes
27815 irix5* | irix6* | nonstopux*)
27816 if test "$GCC" = yes; then
27817 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'
27819 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'
27820 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
27822 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27823 hardcode_libdir_separator_GCJ=:
27824 link_all_deplibs_GCJ=yes
27828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
27831 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
27833 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27834 hardcode_direct_GCJ=yes
27835 hardcode_shlibpath_var_GCJ=no
27839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27840 hardcode_direct_GCJ=yes
27841 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27842 hardcode_libdir_separator_GCJ=:
27843 hardcode_shlibpath_var_GCJ=no
27847 hardcode_direct_GCJ=yes
27848 hardcode_shlibpath_var_GCJ=no
27849 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27850 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27851 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
27852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27853 export_dynamic_flag_spec_GCJ='${wl}-E'
27856 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
27857 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27858 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27861 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27862 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27870 hardcode_minus_L_GCJ=yes
27871 allow_undefined_flag_GCJ=unsupported
27872 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'
27873 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
27877 if test "$GCC" = yes; then
27878 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27879 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'
27881 allow_undefined_flag_GCJ=' -expect_unresolved \*'
27882 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'
27884 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27885 hardcode_libdir_separator_GCJ=:
27888 osf4* | osf5*) # as osf3* with the addition of -msym flag
27889 if test "$GCC" = yes; then
27890 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27891 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'
27892 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27894 allow_undefined_flag_GCJ=' -expect_unresolved \*'
27895 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'
27896 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~
27897 $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'
27899 # Both c and cxx compiler support -rpath directly
27900 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
27902 hardcode_libdir_separator_GCJ=:
27906 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27907 hardcode_shlibpath_var_GCJ=no
27908 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
27909 runpath_var=LD_RUN_PATH
27910 hardcode_runpath_var=yes
27914 no_undefined_flag_GCJ=' -z text'
27915 if test "$GCC" = yes; then
27917 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27918 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27919 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
27922 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
27923 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27924 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
27926 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27927 hardcode_shlibpath_var_GCJ=no
27929 solaris2.[0-5] | solaris2.[0-5].*) ;;
27931 # The compiler driver will combine linker options so we
27932 # cannot just pass the convience library names through
27933 # without $wl, iff we do not link with $LD.
27934 # Luckily, gcc supports the same syntax we need for Sun Studio.
27935 # Supported since Solaris 2.6 (maybe 2.5.1?)
27938 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
27940 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' ;;
27943 link_all_deplibs_GCJ=yes
27947 if test "x$host_vendor" = xsequent; then
27948 # Use $CC to link under sequent, because it throws in some extra .o
27949 # files that make .init and .fini sections work.
27950 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
27952 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
27954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27955 hardcode_direct_GCJ=yes
27956 hardcode_minus_L_GCJ=yes
27957 hardcode_shlibpath_var_GCJ=no
27961 case $host_vendor in
27963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27964 hardcode_direct_GCJ=yes # is this really true???
27967 ## LD is ld it makes a PLAMLIB
27968 ## CC just makes a GrossModule.
27969 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
27970 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
27971 hardcode_direct_GCJ=no
27974 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27975 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
27978 runpath_var='LD_RUN_PATH'
27979 hardcode_shlibpath_var_GCJ=no
27983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27984 hardcode_shlibpath_var_GCJ=no
27985 export_dynamic_flag_spec_GCJ='-Bexport'
27989 if test -d /usr/nec; then
27990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27991 hardcode_shlibpath_var_GCJ=no
27992 runpath_var=LD_RUN_PATH
27993 hardcode_runpath_var=yes
27999 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28000 hardcode_direct_GCJ=yes
28001 hardcode_minus_L_GCJ=no
28002 hardcode_shlibpath_var_GCJ=no
28003 hardcode_runpath_var=yes
28004 runpath_var=LD_RUN_PATH
28007 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
28008 no_undefined_flag_GCJ='${wl}-z ${wl}text'
28009 if test "$GCC" = yes; then
28010 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28012 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28014 runpath_var='LD_RUN_PATH'
28015 hardcode_shlibpath_var_GCJ=no
28019 no_undefined_flag_GCJ=' -z text'
28020 # $CC -shared without GNU ld will not create a library from C++
28021 # object files and a static libstdc++, better avoid it by now
28022 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
28023 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28024 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
28025 hardcode_libdir_flag_spec_GCJ=
28026 hardcode_shlibpath_var_GCJ=no
28027 runpath_var='LD_RUN_PATH'
28031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28032 hardcode_libdir_flag_spec_GCJ='-L$libdir'
28033 hardcode_shlibpath_var_GCJ=no
28042 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
28043 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
28044 test "$ld_shlibs_GCJ" = no && can_build_shared=no
28046 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
28047 if test "$GCC" = yes; then
28048 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28052 # Do we need to explicitly link libc?
28054 case "x$archive_cmds_need_lc_GCJ" in
28056 # Assume -lc should be added
28057 archive_cmds_need_lc_GCJ=yes
28059 if test "$enable_shared" = yes && test "$GCC" = yes; then
28060 case $archive_cmds_GCJ in
28062 # FIXME: we may have to deal with multi-command sequences.
28065 # Test whether the compiler implicitly links with -lc since on some
28066 # systems, -lgcc has to come before -lc. If gcc already passes -lc
28067 # to ld, don't add -lc before -lgcc.
28068 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
28069 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
28071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28074 (eval $ac_compile) 2>&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } 2>conftest.err; then
28080 libobjs=conftest.$ac_objext
28082 wl=$lt_prog_compiler_wl_GCJ
28088 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
28089 allow_undefined_flag_GCJ=
28090 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
28091 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }
28096 archive_cmds_need_lc_GCJ=no
28098 archive_cmds_need_lc_GCJ=yes
28100 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
28102 cat conftest.err 1>&5
28105 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
28106 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
28113 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
28114 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
28115 library_names_spec=
28116 libname_spec='lib$name'
28120 postuninstall_cmds=
28124 shlibpath_overrides_runpath=unknown
28126 dynamic_linker="$host_os ld.so"
28127 sys_lib_dlsearch_path_spec="/lib /usr/lib"
28128 if test "$GCC" = yes; then
28129 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28130 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
28131 # if the path contains ";" then we assume it to be the separator
28132 # otherwise default to the standard path separator (i.e. ":") - it is
28133 # assumed that no part of a normal pathname contains ";" but that should
28134 # okay in the real world where ";" in dirpaths is itself problematic.
28135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
28142 need_lib_prefix=unknown
28143 hardcode_into_libs=no
28145 # when you set need_version to no, make sure it does not cause -set_version
28146 # flags to be left without arguments
28147 need_version=unknown
28152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
28153 shlibpath_var=LIBPATH
28155 # AIX 3 has no versioning support, so we append a major version to the name.
28156 soname_spec='${libname}${release}${shared_ext}$major'
28163 hardcode_into_libs=yes
28164 if test "$host_cpu" = ia64; then
28165 # AIX 5 supports IA64
28166 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
28167 shlibpath_var=LD_LIBRARY_PATH
28169 # With GCC up to 2.95.x, collect2 would create an import file
28170 # for dependence libraries. The import file would start with
28171 # the line `#! .'. This would cause the generated library to
28172 # depend on `.', always an invalid library. This was fixed in
28173 # development snapshots of GCC prior to 3.0.
28175 aix4 | aix4.[01] | aix4.[01].*)
28176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
28178 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
28181 can_build_shared=no
28185 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
28186 # soname into executable. Probably we can add versioning support to
28187 # collect2, so additional links can be useful in future.
28188 if test "$aix_use_runtimelinking" = yes; then
28189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
28190 # instead of lib<name>.a to let people know that these are not
28191 # typical AIX shared libraries.
28192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28194 # We preserve .a as extension for shared libraries through AIX4.2
28195 # and later when we are not doing run time linking.
28196 library_names_spec='${libname}${release}.a $libname.a'
28197 soname_spec='${libname}${release}${shared_ext}$major'
28199 shlibpath_var=LIBPATH
28204 library_names_spec='$libname.ixlibrary $libname.a'
28205 # Create ${libname}_ixlibrary.a entries in /sys/libs.
28206 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'
28210 library_names_spec='${libname}${shared_ext}'
28211 dynamic_linker="$host_os ld.so"
28212 shlibpath_var=LIBRARY_PATH
28218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28219 soname_spec='${libname}${release}${shared_ext}$major'
28220 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
28221 shlibpath_var=LD_LIBRARY_PATH
28222 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
28223 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
28224 # the default ld.so.conf also contains /usr/contrib/lib and
28225 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
28226 # libtool to hard-code these into programs
28229 cygwin* | mingw* | pw32*)
28230 version_type=windows
28235 case $GCC,$host_os in
28236 yes,cygwin* | yes,mingw* | yes,pw32*)
28237 library_names_spec='$libname.dll.a'
28238 # DLL is installed to $(libdir)/../bin by postinstall_cmds
28239 postinstall_cmds='base_file=`basename \${file}`~
28240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
28241 dldir=$destdir/`dirname \$dlpath`~
28242 test -d \$dldir || mkdir -p \$dldir~
28243 $install_prog $dir/$dlname \$dldir/$dlname~
28244 chmod a+x \$dldir/$dlname'
28245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28246 dlpath=$dir/\$dldll~
28248 shlibpath_overrides_runpath=yes
28252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
28253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28254 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
28257 # MinGW DLLs use traditional 'lib' prefix
28258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28259 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28260 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
28261 # It is most probably a Windows format PATH printed by
28262 # mingw gcc, but we are running on Cygwin. Gcc prints its search
28263 # path with ; separators, and with drive letters. We can handle the
28264 # drive letters (cygwin fileutils understands them), so leave them,
28265 # especially as we might pass files found there to a mingw objdump,
28266 # which wouldn't understand a cygwinified path. Ahh.
28267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28273 # pw32 DLLs use 'pw' prefix rather than 'lib'
28274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28280 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
28283 dynamic_linker='Win32 ld.exe'
28284 # FIXME: first we should search . and the directory the executable is in
28288 darwin* | rhapsody*)
28289 dynamic_linker="$host_os dyld"
28290 version_type=darwin
28293 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
28294 soname_spec='${libname}${release}${major}$shared_ext'
28295 shlibpath_overrides_runpath=yes
28296 shlibpath_var=DYLD_LIBRARY_PATH
28297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
28298 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
28299 if test "$GCC" = yes; then
28300 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"`
28302 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
28304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
28311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
28312 soname_spec='${libname}${release}${shared_ext}$major'
28313 shlibpath_var=LD_LIBRARY_PATH
28324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28325 soname_spec='${libname}${release}${shared_ext}$major'
28326 shlibpath_var=LD_LIBRARY_PATH
28327 shlibpath_overrides_runpath=no
28328 hardcode_into_libs=yes
28329 dynamic_linker='GNU ld.so'
28332 freebsd* | dragonfly*)
28333 # DragonFly does not have aout. When/if they implement a new
28334 # versioning mechanism, adjust this.
28335 if test -x /usr/bin/objformat; then
28336 objformat=`/usr/bin/objformat`
28339 freebsd[123]*) objformat=aout ;;
28340 *) objformat=elf ;;
28343 version_type=freebsd-$objformat
28344 case $version_type in
28346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
28355 shlibpath_var=LD_LIBRARY_PATH
28358 shlibpath_overrides_runpath=yes
28360 freebsd3.[01]* | freebsdelf3.[01]*)
28361 shlibpath_overrides_runpath=yes
28362 hardcode_into_libs=yes
28365 shlibpath_overrides_runpath=no
28366 hardcode_into_libs=yes
28375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
28376 soname_spec='${libname}${release}${shared_ext}$major'
28377 shlibpath_var=LD_LIBRARY_PATH
28378 hardcode_into_libs=yes
28381 hpux9* | hpux10* | hpux11*)
28382 # Give a soname corresponding to the major version so that dld.sl refuses to
28383 # link against other versions.
28390 hardcode_into_libs=yes
28391 dynamic_linker="$host_os dld.so"
28392 shlibpath_var=LD_LIBRARY_PATH
28393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28395 soname_spec='${libname}${release}${shared_ext}$major'
28396 if test "X$HPUX_IA64_MODE" = X32; then
28397 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
28399 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
28401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28405 hardcode_into_libs=yes
28406 dynamic_linker="$host_os dld.sl"
28407 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
28408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28410 soname_spec='${libname}${release}${shared_ext}$major'
28411 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
28412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28416 dynamic_linker="$host_os dld.sl"
28417 shlibpath_var=SHLIB_PATH
28418 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
28419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28420 soname_spec='${libname}${release}${shared_ext}$major'
28423 # HP-UX runs *really* slowly unless shared libraries are mode 555.
28424 postinstall_cmds='chmod 555 $lib'
28427 irix5* | irix6* | nonstopux*)
28429 nonstopux*) version_type=nonstopux ;;
28431 if test "$lt_cv_prog_gnu_ld" = yes; then
28439 soname_spec='${libname}${release}${shared_ext}$major'
28440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28442 irix5* | nonstopux*)
28443 libsuff= shlibsuff=
28446 case $LD in # libtool.m4 will add one of these switches to LD
28447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28448 libsuff= shlibsuff= libmagic=32-bit;;
28449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28450 libsuff=32 shlibsuff=N32 libmagic=N32;;
28451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
28453 *) libsuff= shlibsuff= libmagic=never-match;;
28457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28458 shlibpath_overrides_runpath=no
28459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28461 hardcode_into_libs=yes
28464 # No shared lib support for Linux oldld, aout, or coff.
28465 linux*oldld* | linux*aout* | linux*coff*)
28469 # This must be Linux ELF.
28474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28475 soname_spec='${libname}${release}${shared_ext}$major'
28476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28477 shlibpath_var=LD_LIBRARY_PATH
28478 shlibpath_overrides_runpath=no
28479 # This implies no fast_install, which is unacceptable.
28480 # Some rework will be needed to allow for fast_install
28481 # before this can be enabled.
28482 hardcode_into_libs=yes
28484 # Append ld.so.conf contents to the search path
28485 if test -f /etc/ld.so.conf; then
28486 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' ' '`
28487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28490 # We used to test for /lib/ld.so.1 and disable shared libraries on
28491 # powerpc, because MkLinux only supported shared libraries with the
28492 # GNU dynamic linker. Since this was broken with cross compilers,
28493 # most powerpc-linux boxes support dynamic linking these days and
28494 # people can always --disable-shared, the test was removed, and we
28495 # assume the GNU/Linux dynamic linker is in use.
28496 dynamic_linker='GNU/Linux ld.so'
28503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28504 soname_spec='${libname}${release}${shared_ext}$major'
28505 shlibpath_var=LD_LIBRARY_PATH
28506 shlibpath_overrides_runpath=no
28507 hardcode_into_libs=yes
28508 dynamic_linker='GNU ld.so'
28515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28518 dynamic_linker='NetBSD (a.out) ld.so'
28520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28521 soname_spec='${libname}${release}${shared_ext}$major'
28522 dynamic_linker='NetBSD ld.elf_so'
28524 shlibpath_var=LD_LIBRARY_PATH
28525 shlibpath_overrides_runpath=yes
28526 hardcode_into_libs=yes
28531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28532 shlibpath_var=LD_LIBRARY_PATH
28533 shlibpath_overrides_runpath=yes
28540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28541 soname_spec='${libname}${release}${shared_ext}$major'
28542 shlibpath_var=LD_LIBRARY_PATH
28543 shlibpath_overrides_runpath=yes
28549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28551 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28552 *) need_version=no ;;
28554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28556 shlibpath_var=LD_LIBRARY_PATH
28557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28559 openbsd2.[89] | openbsd2.[89].*)
28560 shlibpath_overrides_runpath=no
28563 shlibpath_overrides_runpath=yes
28567 shlibpath_overrides_runpath=yes
28572 libname_spec='$name'
28575 library_names_spec='$libname${shared_ext} $libname.a'
28576 dynamic_linker='OS/2 ld.exe'
28577 shlibpath_var=LIBPATH
28580 osf3* | osf4* | osf5*)
28584 soname_spec='${libname}${release}${shared_ext}$major'
28585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28586 shlibpath_var=LD_LIBRARY_PATH
28587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28593 soname_spec='${libname}${release}${shared_ext}$major'
28594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28595 shlibpath_var=LD_LIBRARY_PATH
28602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28603 soname_spec='${libname}${release}${shared_ext}$major'
28604 shlibpath_var=LD_LIBRARY_PATH
28605 shlibpath_overrides_runpath=yes
28606 hardcode_into_libs=yes
28607 # ldd complains unless libraries are executable
28608 postinstall_cmds='chmod +x $lib'
28613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28615 shlibpath_var=LD_LIBRARY_PATH
28616 shlibpath_overrides_runpath=yes
28617 if test "$with_gnu_ld" = yes; then
28623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28626 soname_spec='${libname}${release}${shared_ext}$major'
28627 shlibpath_var=LD_LIBRARY_PATH
28628 case $host_vendor in
28630 shlibpath_overrides_runpath=no
28632 export_dynamic_flag_spec='${wl}-Blargedynsym'
28633 runpath_var=LD_RUN_PATH
28641 shlibpath_overrides_runpath=no
28642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28648 if test -d /usr/nec ;then
28650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28651 soname_spec='$libname${shared_ext}.$major'
28652 shlibpath_var=LD_LIBRARY_PATH
28658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28659 soname_spec='${libname}${release}${shared_ext}$major'
28660 shlibpath_var=LD_LIBRARY_PATH
28667 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
28668 echo "${ECHO_T}$dynamic_linker" >&6
28669 test "$dynamic_linker" = no && can_build_shared=no
28671 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
28672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
28673 hardcode_action_GCJ=
28674 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
28675 test -n "$runpath_var_GCJ" || \
28676 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
28678 # We can hardcode non-existant directories.
28679 if test "$hardcode_direct_GCJ" != no &&
28680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
28681 # have to relink, otherwise we might link with an installed library
28682 # when we should be linking with a yet-to-be-installed one
28683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
28684 test "$hardcode_minus_L_GCJ" != no; then
28685 # Linking always hardcodes the temporary library directory.
28686 hardcode_action_GCJ=relink
28688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
28689 hardcode_action_GCJ=immediate
28692 # We cannot hardcode anything, or else we can only hardcode existing
28694 hardcode_action_GCJ=unsupported
28696 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
28697 echo "${ECHO_T}$hardcode_action_GCJ" >&6
28699 if test "$hardcode_action_GCJ" = relink; then
28700 # Fast installation is not supported
28701 enable_fast_install=no
28702 elif test "$shlibpath_overrides_runpath" = yes ||
28703 test "$enable_shared" = no; then
28704 # Fast installation is not necessary
28705 enable_fast_install=needless
28710 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
28711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
28712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
28713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
28714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
28715 echo "$as_me:$LINENO: result: yes" >&5
28716 echo "${ECHO_T}yes" >&6
28718 # FIXME - insert some real tests, host_os isn't really good enough
28721 if test -n "$STRIP" ; then
28722 striplib="$STRIP -x"
28723 echo "$as_me:$LINENO: result: yes" >&5
28724 echo "${ECHO_T}yes" >&6
28726 echo "$as_me:$LINENO: result: no" >&5
28727 echo "${ECHO_T}no" >&6
28731 echo "$as_me:$LINENO: result: no" >&5
28732 echo "${ECHO_T}no" >&6
28737 if test "x$enable_dlopen" != xyes; then
28738 enable_dlopen=unknown
28739 enable_dlopen_self=unknown
28740 enable_dlopen_self_static=unknown
28747 lt_cv_dlopen="load_add_on"
28749 lt_cv_dlopen_self=yes
28753 lt_cv_dlopen="LoadLibrary"
28758 lt_cv_dlopen="dlopen"
28763 # if libdl is installed we need to link against it
28764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
28766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28767 echo $ECHO_N "(cached) $ECHO_C" >&6
28769 ac_check_lib_save_LIBS=$LIBS
28771 cat >conftest.$ac_ext <<_ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h. */
28778 /* Override any gcc2 internal prototype to avoid an error. */
28782 /* We use char because int might match the return type of a gcc2
28783 builtin and then its argument prototype would still apply. */
28793 rm -f conftest.$ac_objext conftest$ac_exeext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28795 (eval $ac_link) 2>conftest.er1
28797 grep -v '^ *+' conftest.er1 >conftest.err
28799 cat conftest.err >&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try='test -z "$ac_c_werror_flag"
28803 || test ! -s conftest.err'
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; } &&
28809 { ac_try='test -s conftest$ac_exeext'
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
28815 ac_cv_lib_dl_dlopen=yes
28817 echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28820 ac_cv_lib_dl_dlopen=no
28822 rm -f conftest.err conftest.$ac_objext \
28823 conftest$ac_exeext conftest.$ac_ext
28824 LIBS=$ac_check_lib_save_LIBS
28826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
28828 if test $ac_cv_lib_dl_dlopen = yes; then
28829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
28832 lt_cv_dlopen="dyld"
28834 lt_cv_dlopen_self=yes
28841 echo "$as_me:$LINENO: checking for shl_load" >&5
28842 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
28843 if test "${ac_cv_func_shl_load+set}" = set; then
28844 echo $ECHO_N "(cached) $ECHO_C" >&6
28846 cat >conftest.$ac_ext <<_ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28854 #define shl_load innocuous_shl_load
28856 /* System header to define __stub macros and hopefully few prototypes,
28857 which can conflict with char shl_load (); below.
28858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28859 <limits.h> exists even on freestanding compilers. */
28862 # include <limits.h>
28864 # include <assert.h>
28869 /* Override any gcc2 internal prototype to avoid an error. */
28874 /* We use char because int might match the return type of a gcc2
28875 builtin and then its argument prototype would still apply. */
28877 /* The GNU C library defines this for functions which it implements
28878 to always fail with ENOSYS. Some functions are actually named
28879 something starting with __ and the normal name is an alias. */
28880 #if defined (__stub_shl_load) || defined (__stub___shl_load)
28883 char (*f) () = shl_load;
28892 return f != shl_load;
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899 (eval $ac_link) 2>conftest.er1
28901 grep -v '^ *+' conftest.er1 >conftest.err
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
28906 { ac_try='test -z "$ac_c_werror_flag"
28907 || test ! -s conftest.err'
28908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 (eval $ac_try) 2>&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; } &&
28913 { ac_try='test -s conftest$ac_exeext'
28914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915 (eval $ac_try) 2>&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; }; then
28919 ac_cv_func_shl_load=yes
28921 echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28924 ac_cv_func_shl_load=no
28926 rm -f conftest.err conftest.$ac_objext \
28927 conftest$ac_exeext conftest.$ac_ext
28929 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28930 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
28931 if test $ac_cv_func_shl_load = yes; then
28932 lt_cv_dlopen="shl_load"
28934 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28935 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
28936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28937 echo $ECHO_N "(cached) $ECHO_C" >&6
28939 ac_check_lib_save_LIBS=$LIBS
28941 cat >conftest.$ac_ext <<_ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28948 /* Override any gcc2 internal prototype to avoid an error. */
28952 /* We use char because int might match the return type of a gcc2
28953 builtin and then its argument prototype would still apply. */
28963 rm -f conftest.$ac_objext conftest$ac_exeext
28964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28965 (eval $ac_link) 2>conftest.er1
28967 grep -v '^ *+' conftest.er1 >conftest.err
28969 cat conftest.err >&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); } &&
28972 { ac_try='test -z "$ac_c_werror_flag"
28973 || test ! -s conftest.err'
28974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975 (eval $ac_try) 2>&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); }; } &&
28979 { ac_try='test -s conftest$ac_exeext'
28980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28981 (eval $ac_try) 2>&5
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); }; }; then
28985 ac_cv_lib_dld_shl_load=yes
28987 echo "$as_me: failed program was:" >&5
28988 sed 's/^/| /' conftest.$ac_ext >&5
28990 ac_cv_lib_dld_shl_load=no
28992 rm -f conftest.err conftest.$ac_objext \
28993 conftest$ac_exeext conftest.$ac_ext
28994 LIBS=$ac_check_lib_save_LIBS
28996 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
28997 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
28998 if test $ac_cv_lib_dld_shl_load = yes; then
28999 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
29001 echo "$as_me:$LINENO: checking for dlopen" >&5
29002 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
29003 if test "${ac_cv_func_dlopen+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29006 cat >conftest.$ac_ext <<_ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h. */
29012 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
29013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29014 #define dlopen innocuous_dlopen
29016 /* System header to define __stub macros and hopefully few prototypes,
29017 which can conflict with char dlopen (); below.
29018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29019 <limits.h> exists even on freestanding compilers. */
29022 # include <limits.h>
29024 # include <assert.h>
29029 /* Override any gcc2 internal prototype to avoid an error. */
29034 /* We use char because int might match the return type of a gcc2
29035 builtin and then its argument prototype would still apply. */
29037 /* The GNU C library defines this for functions which it implements
29038 to always fail with ENOSYS. Some functions are actually named
29039 something starting with __ and the normal name is an alias. */
29040 #if defined (__stub_dlopen) || defined (__stub___dlopen)
29043 char (*f) () = dlopen;
29052 return f != dlopen;
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29059 (eval $ac_link) 2>conftest.er1
29061 grep -v '^ *+' conftest.er1 >conftest.err
29063 cat conftest.err >&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); } &&
29066 { ac_try='test -z "$ac_c_werror_flag"
29067 || test ! -s conftest.err'
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; } &&
29073 { ac_try='test -s conftest$ac_exeext'
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29079 ac_cv_func_dlopen=yes
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29084 ac_cv_func_dlopen=no
29086 rm -f conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
29089 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
29090 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
29091 if test $ac_cv_func_dlopen = yes; then
29092 lt_cv_dlopen="dlopen"
29094 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29095 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
29096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29097 echo $ECHO_N "(cached) $ECHO_C" >&6
29099 ac_check_lib_save_LIBS=$LIBS
29101 cat >conftest.$ac_ext <<_ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h. */
29108 /* Override any gcc2 internal prototype to avoid an error. */
29112 /* We use char because int might match the return type of a gcc2
29113 builtin and then its argument prototype would still apply. */
29123 rm -f conftest.$ac_objext conftest$ac_exeext
29124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29125 (eval $ac_link) 2>conftest.er1
29127 grep -v '^ *+' conftest.er1 >conftest.err
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } &&
29132 { ac_try='test -z "$ac_c_werror_flag"
29133 || test ! -s conftest.err'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest$ac_exeext'
29140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 ac_cv_lib_dl_dlopen=yes
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 ac_cv_lib_dl_dlopen=no
29152 rm -f conftest.err conftest.$ac_objext \
29153 conftest$ac_exeext conftest.$ac_ext
29154 LIBS=$ac_check_lib_save_LIBS
29156 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
29158 if test $ac_cv_lib_dl_dlopen = yes; then
29159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29161 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
29162 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
29163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29166 ac_check_lib_save_LIBS=$LIBS
29167 LIBS="-lsvld $LIBS"
29168 cat >conftest.$ac_ext <<_ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h. */
29175 /* Override any gcc2 internal prototype to avoid an error. */
29179 /* We use char because int might match the return type of a gcc2
29180 builtin and then its argument prototype would still apply. */
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192 (eval $ac_link) 2>conftest.er1
29194 grep -v '^ *+' conftest.er1 >conftest.err
29196 cat conftest.err >&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } &&
29199 { ac_try='test -z "$ac_c_werror_flag"
29200 || test ! -s conftest.err'
29201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202 (eval $ac_try) 2>&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; } &&
29206 { ac_try='test -s conftest$ac_exeext'
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; }; then
29212 ac_cv_lib_svld_dlopen=yes
29214 echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29217 ac_cv_lib_svld_dlopen=no
29219 rm -f conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29223 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
29224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
29225 if test $ac_cv_lib_svld_dlopen = yes; then
29226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29228 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
29229 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
29230 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
29231 echo $ECHO_N "(cached) $ECHO_C" >&6
29233 ac_check_lib_save_LIBS=$LIBS
29235 cat >conftest.$ac_ext <<_ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h. */
29242 /* Override any gcc2 internal prototype to avoid an error. */
29246 /* We use char because int might match the return type of a gcc2
29247 builtin and then its argument prototype would still apply. */
29257 rm -f conftest.$ac_objext conftest$ac_exeext
29258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29259 (eval $ac_link) 2>conftest.er1
29261 grep -v '^ *+' conftest.er1 >conftest.err
29263 cat conftest.err >&5
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); } &&
29266 { ac_try='test -z "$ac_c_werror_flag"
29267 || test ! -s conftest.err'
29268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269 (eval $ac_try) 2>&5
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); }; } &&
29273 { ac_try='test -s conftest$ac_exeext'
29274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275 (eval $ac_try) 2>&5
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; }; then
29279 ac_cv_lib_dld_dld_link=yes
29281 echo "$as_me: failed program was:" >&5
29282 sed 's/^/| /' conftest.$ac_ext >&5
29284 ac_cv_lib_dld_dld_link=no
29286 rm -f conftest.err conftest.$ac_objext \
29287 conftest$ac_exeext conftest.$ac_ext
29288 LIBS=$ac_check_lib_save_LIBS
29290 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
29291 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
29292 if test $ac_cv_lib_dld_dld_link = yes; then
29293 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
29314 if test "x$lt_cv_dlopen" != xno; then
29320 case $lt_cv_dlopen in
29322 save_CPPFLAGS="$CPPFLAGS"
29323 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
29325 save_LDFLAGS="$LDFLAGS"
29326 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
29329 LIBS="$lt_cv_dlopen_libs $LIBS"
29331 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
29332 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
29333 if test "${lt_cv_dlopen_self+set}" = set; then
29334 echo $ECHO_N "(cached) $ECHO_C" >&6
29336 if test "$cross_compiling" = yes; then :
29337 lt_cv_dlopen_self=cross
29339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29340 lt_status=$lt_dlunknown
29341 cat > conftest.$ac_ext <<EOF
29342 #line 29342 "configure"
29343 #include "confdefs.h"
29352 # define LT_DLGLOBAL RTLD_GLOBAL
29355 # define LT_DLGLOBAL DL_GLOBAL
29357 # define LT_DLGLOBAL 0
29361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29362 find out it does not work in some platform. */
29363 #ifndef LT_DLLAZY_OR_NOW
29365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
29368 # define LT_DLLAZY_OR_NOW DL_LAZY
29371 # define LT_DLLAZY_OR_NOW RTLD_NOW
29374 # define LT_DLLAZY_OR_NOW DL_NOW
29376 # define LT_DLLAZY_OR_NOW 0
29384 extern "C" void exit (int);
29387 void fnord() { int i=42;}
29390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29391 int status = $lt_dlunknown;
29395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
29396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29397 /* dlclose (self); */
29403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29404 (eval $ac_link) 2>&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29408 (./conftest; exit; ) >&5 2>/dev/null
29410 case x$lt_status in
29411 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
29412 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
29413 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
29416 # compilation failed
29417 lt_cv_dlopen_self=no
29424 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
29425 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
29427 if test "x$lt_cv_dlopen_self" = xyes; then
29428 LDFLAGS="$LDFLAGS $link_static_flag"
29429 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
29430 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
29431 if test "${lt_cv_dlopen_self_static+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29434 if test "$cross_compiling" = yes; then :
29435 lt_cv_dlopen_self_static=cross
29437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29438 lt_status=$lt_dlunknown
29439 cat > conftest.$ac_ext <<EOF
29440 #line 29440 "configure"
29441 #include "confdefs.h"
29450 # define LT_DLGLOBAL RTLD_GLOBAL
29453 # define LT_DLGLOBAL DL_GLOBAL
29455 # define LT_DLGLOBAL 0
29459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29460 find out it does not work in some platform. */
29461 #ifndef LT_DLLAZY_OR_NOW
29463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
29466 # define LT_DLLAZY_OR_NOW DL_LAZY
29469 # define LT_DLLAZY_OR_NOW RTLD_NOW
29472 # define LT_DLLAZY_OR_NOW DL_NOW
29474 # define LT_DLLAZY_OR_NOW 0
29482 extern "C" void exit (int);
29485 void fnord() { int i=42;}
29488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29489 int status = $lt_dlunknown;
29493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
29494 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29495 /* dlclose (self); */
29501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29502 (eval $ac_link) 2>&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29506 (./conftest; exit; ) >&5 2>/dev/null
29508 case x$lt_status in
29509 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
29510 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
29511 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
29514 # compilation failed
29515 lt_cv_dlopen_self_static=no
29522 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
29523 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
29526 CPPFLAGS="$save_CPPFLAGS"
29527 LDFLAGS="$save_LDFLAGS"
29532 case $lt_cv_dlopen_self in
29533 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
29534 *) enable_dlopen_self=unknown ;;
29537 case $lt_cv_dlopen_self_static in
29538 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
29539 *) enable_dlopen_self_static=unknown ;;
29544 # The else clause should only fire when bootstrapping the
29545 # libtool distribution, otherwise you forgot to ship ltmain.sh
29546 # with your package, and you will get complaints that there are
29547 # no rules to generate ltmain.sh.
29548 if test -f "$ltmain"; then
29549 # See if we are running on zsh, and set the options which allow our commands through
29550 # without removal of \ escapes.
29551 if test -n "${ZSH_VERSION+set}" ; then
29552 setopt NO_GLOB_SUBST
29554 # Now quote all the things that may contain metacharacters while being
29555 # careful not to overquote the AC_SUBSTed values. We take copies of the
29556 # variables and quote the copies for generation of the libtool script.
29557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
29559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29561 deplibs_check_method reload_flag reload_cmds need_locks \
29562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29563 lt_cv_sys_global_symbol_to_c_name_address \
29564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29565 old_postinstall_cmds old_postuninstall_cmds \
29569 lt_prog_compiler_wl_GCJ \
29570 lt_prog_compiler_pic_GCJ \
29571 lt_prog_compiler_static_GCJ \
29572 lt_prog_compiler_no_builtin_flag_GCJ \
29573 export_dynamic_flag_spec_GCJ \
29574 thread_safe_flag_spec_GCJ \
29575 whole_archive_flag_spec_GCJ \
29576 enable_shared_with_static_runtimes_GCJ \
29577 old_archive_cmds_GCJ \
29578 old_archive_from_new_cmds_GCJ \
29579 predep_objects_GCJ \
29580 postdep_objects_GCJ \
29583 compiler_lib_search_path_GCJ \
29585 archive_expsym_cmds_GCJ \
29586 postinstall_cmds_GCJ \
29587 postuninstall_cmds_GCJ \
29588 old_archive_from_expsyms_cmds_GCJ \
29589 allow_undefined_flag_GCJ \
29590 no_undefined_flag_GCJ \
29591 export_symbols_cmds_GCJ \
29592 hardcode_libdir_flag_spec_GCJ \
29593 hardcode_libdir_flag_spec_ld_GCJ \
29594 hardcode_libdir_separator_GCJ \
29595 hardcode_automatic_GCJ \
29597 module_expsym_cmds_GCJ \
29598 lt_cv_prog_compiler_c_o_GCJ \
29599 exclude_expsyms_GCJ \
29600 include_expsyms_GCJ; do
29603 old_archive_cmds_GCJ | \
29604 old_archive_from_new_cmds_GCJ | \
29605 archive_cmds_GCJ | \
29606 archive_expsym_cmds_GCJ | \
29607 module_cmds_GCJ | \
29608 module_expsym_cmds_GCJ | \
29609 old_archive_from_expsyms_cmds_GCJ | \
29610 export_symbols_cmds_GCJ | \
29611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
29612 postinstall_cmds | postuninstall_cmds | \
29613 old_postinstall_cmds | old_postuninstall_cmds | \
29614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29615 # Double-quote double-evaled strings.
29616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29625 *'\$0 --fallback-echo"')
29626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29632 cat <<__EOF__ >> "$cfgfile"
29633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
29635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29637 # Shell to use when invoking shell scripts.
29640 # Whether or not to build shared libraries.
29641 build_libtool_libs=$enable_shared
29643 # Whether or not to build static libraries.
29644 build_old_libs=$enable_static
29646 # Whether or not to add -lc for building shared libraries.
29647 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
29649 # Whether or not to disallow shared libs when runtime libs are static
29650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
29652 # Whether or not to optimize for fast installation.
29653 fast_install=$enable_fast_install
29656 host_alias=$host_alias
29660 # The build system.
29661 build_alias=$build_alias
29665 # An echo program that does not interpret backslashes.
29670 AR_FLAGS=$lt_AR_FLAGS
29675 # A language-specific compiler.
29676 CC=$lt_compiler_GCJ
29678 # Is the compiler the GNU C compiler?
29684 # The linker used to build libraries.
29687 # Whether we need hard or soft links.
29690 # A BSD-compatible nm program.
29693 # A symbol stripping program
29696 # Used to examine libraries when file_magic_cmd begins "file"
29697 MAGIC_CMD=$MAGIC_CMD
29699 # Used on cygwin: DLL creation program.
29702 # Used on cygwin: object dumper.
29705 # Used on cygwin: assembler.
29708 # The name of the directory that contains temporary libtool files.
29711 # How to create reloadable object files.
29712 reload_flag=$lt_reload_flag
29713 reload_cmds=$lt_reload_cmds
29715 # How to pass a linker flag through the compiler.
29716 wl=$lt_lt_prog_compiler_wl_GCJ
29718 # Object file suffix (normally "o").
29719 objext="$ac_objext"
29721 # Old archive suffix (normally "a").
29724 # Shared library suffix (normally ".so").
29725 shrext_cmds='$shrext_cmds'
29727 # Executable file suffix (normally "").
29730 # Additional compiler flags for building library objects.
29731 pic_flag=$lt_lt_prog_compiler_pic_GCJ
29734 # What is the maximum length of a command?
29735 max_cmd_len=$lt_cv_sys_max_cmd_len
29737 # Does compiler simultaneously support -c and -o options?
29738 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
29740 # Must we lock files when doing compilation?
29741 need_locks=$lt_need_locks
29743 # Do we need the lib prefix for modules?
29744 need_lib_prefix=$need_lib_prefix
29746 # Do we need a version for libraries?
29747 need_version=$need_version
29749 # Whether dlopen is supported.
29750 dlopen_support=$enable_dlopen
29752 # Whether dlopen of programs is supported.
29753 dlopen_self=$enable_dlopen_self
29755 # Whether dlopen of statically linked programs is supported.
29756 dlopen_self_static=$enable_dlopen_self_static
29758 # Compiler flag to prevent dynamic linking.
29759 link_static_flag=$lt_lt_prog_compiler_static_GCJ
29761 # Compiler flag to turn off builtin functions.
29762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
29764 # Compiler flag to allow reflexive dlopens.
29765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
29767 # Compiler flag to generate shared objects directly from archives.
29768 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
29770 # Compiler flag to generate thread-safe objects.
29771 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
29773 # Library versioning type.
29774 version_type=$version_type
29776 # Format of library name prefix.
29777 libname_spec=$lt_libname_spec
29779 # List of archive names. First name is the real one, the rest are links.
29780 # The last name is the one that the linker finds with -lNAME.
29781 library_names_spec=$lt_library_names_spec
29783 # The coded name of the library, if different from the real name.
29784 soname_spec=$lt_soname_spec
29786 # Commands used to build and install an old-style archive.
29788 old_archive_cmds=$lt_old_archive_cmds_GCJ
29789 old_postinstall_cmds=$lt_old_postinstall_cmds
29790 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29792 # Create an old-style archive from a shared archive.
29793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
29795 # Create a temporary old-style archive to link instead of a shared archive.
29796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
29798 # Commands used to build and install a shared archive.
29799 archive_cmds=$lt_archive_cmds_GCJ
29800 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
29801 postinstall_cmds=$lt_postinstall_cmds
29802 postuninstall_cmds=$lt_postuninstall_cmds
29804 # Commands used to build a loadable module (assumed same as above if empty)
29805 module_cmds=$lt_module_cmds_GCJ
29806 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
29808 # Commands to strip libraries.
29809 old_striplib=$lt_old_striplib
29810 striplib=$lt_striplib
29812 # Dependencies to place before the objects being linked to create a
29814 predep_objects=$lt_predep_objects_GCJ
29816 # Dependencies to place after the objects being linked to create a
29818 postdep_objects=$lt_postdep_objects_GCJ
29820 # Dependencies to place before the objects being linked to create a
29822 predeps=$lt_predeps_GCJ
29824 # Dependencies to place after the objects being linked to create a
29826 postdeps=$lt_postdeps_GCJ
29828 # The library search path used internally by the compiler when linking
29829 # a shared library.
29830 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
29832 # Method to check whether dependent libraries are shared objects.
29833 deplibs_check_method=$lt_deplibs_check_method
29835 # Command to use when deplibs_check_method == file_magic.
29836 file_magic_cmd=$lt_file_magic_cmd
29838 # Flag that allows shared libraries with undefined symbols to be built.
29839 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
29841 # Flag that forces no undefined symbols.
29842 no_undefined_flag=$lt_no_undefined_flag_GCJ
29844 # Commands used to finish a libtool library installation in a directory.
29845 finish_cmds=$lt_finish_cmds
29847 # Same as above, but a single script fragment to be evaled but not shown.
29848 finish_eval=$lt_finish_eval
29850 # Take the output of nm and produce a listing of raw symbols and C names.
29851 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29853 # Transform the output of nm in a proper C declaration
29854 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29856 # Transform the output of nm in a C name address pair
29857 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29859 # This is the shared library runtime path variable.
29860 runpath_var=$runpath_var
29862 # This is the shared library path variable.
29863 shlibpath_var=$shlibpath_var
29865 # Is shlibpath searched before the hard-coded library search path?
29866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29868 # How to hardcode a shared library path into an executable.
29869 hardcode_action=$hardcode_action_GCJ
29871 # Whether we should hardcode library paths into libraries.
29872 hardcode_into_libs=$hardcode_into_libs
29874 # Flag to hardcode \$libdir into a binary during linking.
29875 # This must work even if \$libdir does not exist.
29876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
29878 # If ld is used when linking, flag to hardcode \$libdir into
29879 # a binary during linking. This must work even if \$libdir does
29881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
29883 # Whether we need a single -rpath flag with a separated argument.
29884 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
29886 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
29887 # resulting binary.
29888 hardcode_direct=$hardcode_direct_GCJ
29890 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
29891 # resulting binary.
29892 hardcode_minus_L=$hardcode_minus_L_GCJ
29894 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
29895 # the resulting binary.
29896 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
29898 # Set to yes if building a shared library automatically hardcodes DIR into the library
29899 # and all subsequent libraries and executables linked against it.
29900 hardcode_automatic=$hardcode_automatic_GCJ
29902 # Variables whose values should be saved in libtool wrapper scripts and
29903 # restored at relink time.
29904 variables_saved_for_relink="$variables_saved_for_relink"
29906 # Whether libtool must link a program against all its dependency libraries.
29907 link_all_deplibs=$link_all_deplibs_GCJ
29909 # Compile-time system search path for libraries
29910 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29912 # Run-time system search path for libraries
29913 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29915 # Fix the shell variable \$srcfile for the compiler.
29916 fix_srcfile_path="$fix_srcfile_path_GCJ"
29918 # Set to yes if exported symbols are required.
29919 always_export_symbols=$always_export_symbols_GCJ
29921 # The commands to list exported symbols.
29922 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
29924 # The commands to extract the exported symbol list from a shared archive.
29925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29927 # Symbols that should not be listed in the preloaded symbols.
29928 exclude_expsyms=$lt_exclude_expsyms_GCJ
29930 # Symbols that must always be exported.
29931 include_expsyms=$lt_include_expsyms_GCJ
29933 # ### END LIBTOOL TAG CONFIG: $tagname
29939 # If there is no Makefile yet, we rely on a make rule to execute
29940 # `config.status --recheck' to rerun these tests and create the
29941 # libtool script then.
29942 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
29943 if test -f "$ltmain_in"; then
29944 test -f Makefile && make "$ltmain"
29950 ac_cpp='$CPP $CPPFLAGS'
29951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29966 # Source file extension for RC test sources.
29969 # Object file extension for compiled RC test sources.
29973 # Code to be used in simple compile tests
29974 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
29976 # Code to be used in simple link tests
29977 lt_simple_link_test_code="$lt_simple_compile_test_code"
29979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
29981 # If no C compiler was specified, use CC.
29984 # Allow CC to be a program name with arguments.
29988 # save warnings/boilerplate of simple test code
29989 ac_outfile=conftest.$ac_objext
29990 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
29991 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
29992 _lt_compiler_boilerplate=`cat conftest.err`
29995 ac_outfile=conftest.$ac_objext
29996 printf "$lt_simple_link_test_code" >conftest.$ac_ext
29997 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
29998 _lt_linker_boilerplate=`cat conftest.err`
30002 # Allow CC to be a program name with arguments.
30007 for cc_temp in $compiler""; do
30009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30015 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30017 lt_cv_prog_compiler_c_o_RC=yes
30019 # The else clause should only fire when bootstrapping the
30020 # libtool distribution, otherwise you forgot to ship ltmain.sh
30021 # with your package, and you will get complaints that there are
30022 # no rules to generate ltmain.sh.
30023 if test -f "$ltmain"; then
30024 # See if we are running on zsh, and set the options which allow our commands through
30025 # without removal of \ escapes.
30026 if test -n "${ZSH_VERSION+set}" ; then
30027 setopt NO_GLOB_SUBST
30029 # Now quote all the things that may contain metacharacters while being
30030 # careful not to overquote the AC_SUBSTed values. We take copies of the
30031 # variables and quote the copies for generation of the libtool script.
30032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
30034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
30035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
30036 deplibs_check_method reload_flag reload_cmds need_locks \
30037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
30038 lt_cv_sys_global_symbol_to_c_name_address \
30039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
30040 old_postinstall_cmds old_postuninstall_cmds \
30044 lt_prog_compiler_wl_RC \
30045 lt_prog_compiler_pic_RC \
30046 lt_prog_compiler_static_RC \
30047 lt_prog_compiler_no_builtin_flag_RC \
30048 export_dynamic_flag_spec_RC \
30049 thread_safe_flag_spec_RC \
30050 whole_archive_flag_spec_RC \
30051 enable_shared_with_static_runtimes_RC \
30052 old_archive_cmds_RC \
30053 old_archive_from_new_cmds_RC \
30054 predep_objects_RC \
30055 postdep_objects_RC \
30058 compiler_lib_search_path_RC \
30060 archive_expsym_cmds_RC \
30061 postinstall_cmds_RC \
30062 postuninstall_cmds_RC \
30063 old_archive_from_expsyms_cmds_RC \
30064 allow_undefined_flag_RC \
30065 no_undefined_flag_RC \
30066 export_symbols_cmds_RC \
30067 hardcode_libdir_flag_spec_RC \
30068 hardcode_libdir_flag_spec_ld_RC \
30069 hardcode_libdir_separator_RC \
30070 hardcode_automatic_RC \
30072 module_expsym_cmds_RC \
30073 lt_cv_prog_compiler_c_o_RC \
30074 exclude_expsyms_RC \
30075 include_expsyms_RC; do
30078 old_archive_cmds_RC | \
30079 old_archive_from_new_cmds_RC | \
30080 archive_cmds_RC | \
30081 archive_expsym_cmds_RC | \
30083 module_expsym_cmds_RC | \
30084 old_archive_from_expsyms_cmds_RC | \
30085 export_symbols_cmds_RC | \
30086 extract_expsyms_cmds | reload_cmds | finish_cmds | \
30087 postinstall_cmds | postuninstall_cmds | \
30088 old_postinstall_cmds | old_postuninstall_cmds | \
30089 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
30090 # Double-quote double-evaled strings.
30091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
30094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
30100 *'\$0 --fallback-echo"')
30101 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
30107 cat <<__EOF__ >> "$cfgfile"
30108 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
30110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30112 # Shell to use when invoking shell scripts.
30115 # Whether or not to build shared libraries.
30116 build_libtool_libs=$enable_shared
30118 # Whether or not to build static libraries.
30119 build_old_libs=$enable_static
30121 # Whether or not to add -lc for building shared libraries.
30122 build_libtool_need_lc=$archive_cmds_need_lc_RC
30124 # Whether or not to disallow shared libs when runtime libs are static
30125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
30127 # Whether or not to optimize for fast installation.
30128 fast_install=$enable_fast_install
30131 host_alias=$host_alias
30135 # The build system.
30136 build_alias=$build_alias
30140 # An echo program that does not interpret backslashes.
30145 AR_FLAGS=$lt_AR_FLAGS
30150 # A language-specific compiler.
30153 # Is the compiler the GNU C compiler?
30159 # The linker used to build libraries.
30162 # Whether we need hard or soft links.
30165 # A BSD-compatible nm program.
30168 # A symbol stripping program
30171 # Used to examine libraries when file_magic_cmd begins "file"
30172 MAGIC_CMD=$MAGIC_CMD
30174 # Used on cygwin: DLL creation program.
30177 # Used on cygwin: object dumper.
30180 # Used on cygwin: assembler.
30183 # The name of the directory that contains temporary libtool files.
30186 # How to create reloadable object files.
30187 reload_flag=$lt_reload_flag
30188 reload_cmds=$lt_reload_cmds
30190 # How to pass a linker flag through the compiler.
30191 wl=$lt_lt_prog_compiler_wl_RC
30193 # Object file suffix (normally "o").
30194 objext="$ac_objext"
30196 # Old archive suffix (normally "a").
30199 # Shared library suffix (normally ".so").
30200 shrext_cmds='$shrext_cmds'
30202 # Executable file suffix (normally "").
30205 # Additional compiler flags for building library objects.
30206 pic_flag=$lt_lt_prog_compiler_pic_RC
30209 # What is the maximum length of a command?
30210 max_cmd_len=$lt_cv_sys_max_cmd_len
30212 # Does compiler simultaneously support -c and -o options?
30213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
30215 # Must we lock files when doing compilation?
30216 need_locks=$lt_need_locks
30218 # Do we need the lib prefix for modules?
30219 need_lib_prefix=$need_lib_prefix
30221 # Do we need a version for libraries?
30222 need_version=$need_version
30224 # Whether dlopen is supported.
30225 dlopen_support=$enable_dlopen
30227 # Whether dlopen of programs is supported.
30228 dlopen_self=$enable_dlopen_self
30230 # Whether dlopen of statically linked programs is supported.
30231 dlopen_self_static=$enable_dlopen_self_static
30233 # Compiler flag to prevent dynamic linking.
30234 link_static_flag=$lt_lt_prog_compiler_static_RC
30236 # Compiler flag to turn off builtin functions.
30237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
30239 # Compiler flag to allow reflexive dlopens.
30240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
30242 # Compiler flag to generate shared objects directly from archives.
30243 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
30245 # Compiler flag to generate thread-safe objects.
30246 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
30248 # Library versioning type.
30249 version_type=$version_type
30251 # Format of library name prefix.
30252 libname_spec=$lt_libname_spec
30254 # List of archive names. First name is the real one, the rest are links.
30255 # The last name is the one that the linker finds with -lNAME.
30256 library_names_spec=$lt_library_names_spec
30258 # The coded name of the library, if different from the real name.
30259 soname_spec=$lt_soname_spec
30261 # Commands used to build and install an old-style archive.
30263 old_archive_cmds=$lt_old_archive_cmds_RC
30264 old_postinstall_cmds=$lt_old_postinstall_cmds
30265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30267 # Create an old-style archive from a shared archive.
30268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
30270 # Create a temporary old-style archive to link instead of a shared archive.
30271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
30273 # Commands used to build and install a shared archive.
30274 archive_cmds=$lt_archive_cmds_RC
30275 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
30276 postinstall_cmds=$lt_postinstall_cmds
30277 postuninstall_cmds=$lt_postuninstall_cmds
30279 # Commands used to build a loadable module (assumed same as above if empty)
30280 module_cmds=$lt_module_cmds_RC
30281 module_expsym_cmds=$lt_module_expsym_cmds_RC
30283 # Commands to strip libraries.
30284 old_striplib=$lt_old_striplib
30285 striplib=$lt_striplib
30287 # Dependencies to place before the objects being linked to create a
30289 predep_objects=$lt_predep_objects_RC
30291 # Dependencies to place after the objects being linked to create a
30293 postdep_objects=$lt_postdep_objects_RC
30295 # Dependencies to place before the objects being linked to create a
30297 predeps=$lt_predeps_RC
30299 # Dependencies to place after the objects being linked to create a
30301 postdeps=$lt_postdeps_RC
30303 # The library search path used internally by the compiler when linking
30304 # a shared library.
30305 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
30307 # Method to check whether dependent libraries are shared objects.
30308 deplibs_check_method=$lt_deplibs_check_method
30310 # Command to use when deplibs_check_method == file_magic.
30311 file_magic_cmd=$lt_file_magic_cmd
30313 # Flag that allows shared libraries with undefined symbols to be built.
30314 allow_undefined_flag=$lt_allow_undefined_flag_RC
30316 # Flag that forces no undefined symbols.
30317 no_undefined_flag=$lt_no_undefined_flag_RC
30319 # Commands used to finish a libtool library installation in a directory.
30320 finish_cmds=$lt_finish_cmds
30322 # Same as above, but a single script fragment to be evaled but not shown.
30323 finish_eval=$lt_finish_eval
30325 # Take the output of nm and produce a listing of raw symbols and C names.
30326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30328 # Transform the output of nm in a proper C declaration
30329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30331 # Transform the output of nm in a C name address pair
30332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30334 # This is the shared library runtime path variable.
30335 runpath_var=$runpath_var
30337 # This is the shared library path variable.
30338 shlibpath_var=$shlibpath_var
30340 # Is shlibpath searched before the hard-coded library search path?
30341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30343 # How to hardcode a shared library path into an executable.
30344 hardcode_action=$hardcode_action_RC
30346 # Whether we should hardcode library paths into libraries.
30347 hardcode_into_libs=$hardcode_into_libs
30349 # Flag to hardcode \$libdir into a binary during linking.
30350 # This must work even if \$libdir does not exist.
30351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
30353 # If ld is used when linking, flag to hardcode \$libdir into
30354 # a binary during linking. This must work even if \$libdir does
30356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
30358 # Whether we need a single -rpath flag with a separated argument.
30359 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
30361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30362 # resulting binary.
30363 hardcode_direct=$hardcode_direct_RC
30365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30366 # resulting binary.
30367 hardcode_minus_L=$hardcode_minus_L_RC
30369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30370 # the resulting binary.
30371 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
30373 # Set to yes if building a shared library automatically hardcodes DIR into the library
30374 # and all subsequent libraries and executables linked against it.
30375 hardcode_automatic=$hardcode_automatic_RC
30377 # Variables whose values should be saved in libtool wrapper scripts and
30378 # restored at relink time.
30379 variables_saved_for_relink="$variables_saved_for_relink"
30381 # Whether libtool must link a program against all its dependency libraries.
30382 link_all_deplibs=$link_all_deplibs_RC
30384 # Compile-time system search path for libraries
30385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30387 # Run-time system search path for libraries
30388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30390 # Fix the shell variable \$srcfile for the compiler.
30391 fix_srcfile_path="$fix_srcfile_path_RC"
30393 # Set to yes if exported symbols are required.
30394 always_export_symbols=$always_export_symbols_RC
30396 # The commands to list exported symbols.
30397 export_symbols_cmds=$lt_export_symbols_cmds_RC
30399 # The commands to extract the exported symbol list from a shared archive.
30400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30402 # Symbols that should not be listed in the preloaded symbols.
30403 exclude_expsyms=$lt_exclude_expsyms_RC
30405 # Symbols that must always be exported.
30406 include_expsyms=$lt_include_expsyms_RC
30408 # ### END LIBTOOL TAG CONFIG: $tagname
30414 # If there is no Makefile yet, we rely on a make rule to execute
30415 # `config.status --recheck' to rerun these tests and create the
30416 # libtool script then.
30417 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30418 if test -f "$ltmain_in"; then
30419 test -f Makefile && make "$ltmain"
30425 ac_cpp='$CPP $CPPFLAGS'
30426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30435 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
30436 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
30437 { (exit 1); exit 1; }; }
30441 # Append the new tag name to the list of available tags.
30442 if test -n "$tagname" ; then
30443 available_tags="$available_tags $tagname"
30449 # Now substitute the updated list of available tags.
30450 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
30451 mv "${ofile}T" "$ofile"
30455 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
30456 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
30457 { (exit 1); exit 1; }; }
30463 # This can be used to rebuild libtool when needed
30464 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
30466 # Always use our own libtool.
30467 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
30469 # Prevent multiple expansion
30492 if test $ac_cv_c_compiler_gnu = yes; then
30493 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
30494 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
30495 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30498 ac_pattern="Autoconf.*'x'"
30499 cat >conftest.$ac_ext <<_ACEOF
30502 cat confdefs.h >>conftest.$ac_ext
30503 cat >>conftest.$ac_ext <<_ACEOF
30504 /* end confdefs.h. */
30508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30509 $EGREP "$ac_pattern" >/dev/null 2>&1; then
30510 ac_cv_prog_gcc_traditional=yes
30512 ac_cv_prog_gcc_traditional=no
30517 if test $ac_cv_prog_gcc_traditional = no; then
30518 cat >conftest.$ac_ext <<_ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h. */
30524 #include <termio.h>
30527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30528 $EGREP "$ac_pattern" >/dev/null 2>&1; then
30529 ac_cv_prog_gcc_traditional=yes
30535 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
30536 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
30537 if test $ac_cv_prog_gcc_traditional = yes; then
30538 CC="$CC -traditional"
30542 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
30543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
30544 if test "${ac_cv_c_const+set}" = set; then
30545 echo $ECHO_N "(cached) $ECHO_C" >&6
30547 cat >conftest.$ac_ext <<_ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h. */
30557 /* FIXME: Include the comments suggested by Paul. */
30558 #ifndef __cplusplus
30559 /* Ultrix mips cc rejects this. */
30560 typedef int charset[2];
30562 /* SunOS 4.1.1 cc rejects this. */
30563 char const *const *ccp;
30565 /* NEC SVR4.0.2 mips cc rejects this. */
30566 struct point {int x, y;};
30567 static struct point const zero = {0,0};
30568 /* AIX XL C 1.02.0.0 rejects this.
30569 It does not let you subtract one const X* pointer from another in
30570 an arm of an if-expression whose if-part is not a constant
30572 const char *g = "string";
30573 ccp = &g + (g ? g-g : 0);
30574 /* HPUX 7.0 cc rejects these. */
30577 ccp = (char const *const *) p;
30578 { /* SCO 3.2v4 cc rejects this. */
30580 char const *s = 0 ? (char *) 0 : (char const *) 0;
30584 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
30585 int x[] = {25, 17};
30586 const int *foo = &x[0];
30589 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
30590 typedef const int *iptr;
30594 { /* AIX XL C 1.02.0.0 rejects this saying
30595 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
30596 struct s { int j; const int *ap[3]; };
30597 struct s *b; b->j = 5;
30599 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
30600 const int foo = 10;
30608 rm -f conftest.$ac_objext
30609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30610 (eval $ac_compile) 2>conftest.er1
30612 grep -v '^ *+' conftest.er1 >conftest.err
30614 cat conftest.err >&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
30617 { ac_try='test -z "$ac_c_werror_flag"
30618 || test ! -s conftest.err'
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; } &&
30624 { ac_try='test -s conftest.$ac_objext'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; }; then
30632 echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30639 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
30640 echo "${ECHO_T}$ac_cv_c_const" >&6
30641 if test $ac_cv_c_const = no; then
30643 cat >>confdefs.h <<\_ACEOF
30650 echo "$as_me:$LINENO: checking for working volatile" >&5
30651 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
30652 if test "${amanda_cv_c_volatile+set}" = set; then
30653 echo $ECHO_N "(cached) $ECHO_C" >&6
30656 cat >conftest.$ac_ext <<_ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30667 volatile int aaa = 0;
30673 rm -f conftest.$ac_objext
30674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30675 (eval $ac_compile) 2>conftest.er1
30677 grep -v '^ *+' conftest.er1 >conftest.err
30679 cat conftest.err >&5
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); } &&
30682 { ac_try='test -z "$ac_c_werror_flag"
30683 || test ! -s conftest.err'
30684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30685 (eval $ac_try) 2>&5
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); }; } &&
30689 { ac_try='test -s conftest.$ac_objext'
30690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30691 (eval $ac_try) 2>&5
30693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694 (exit $ac_status); }; }; then
30695 amanda_cv_c_volatile=yes
30697 echo "$as_me: failed program was:" >&5
30698 sed 's/^/| /' conftest.$ac_ext >&5
30700 amanda_cv_c_volatile=no
30703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30707 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
30708 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
30709 if test $amanda_cv_c_volatile = no; then
30711 cat >>confdefs.h <<\_ACEOF
30719 echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
30720 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
30721 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30725 cat >conftest.$ac_ext <<_ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h. */
30743 rm -f conftest.$ac_objext
30744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30745 (eval $ac_compile) 2>conftest.er1
30747 grep -v '^ *+' conftest.er1 >conftest.err
30749 cat conftest.err >&5
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } &&
30752 { ac_try='test -z "$ac_c_werror_flag"
30753 || test ! -s conftest.err'
30754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755 (eval $ac_try) 2>&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); }; } &&
30759 { ac_try='test -s conftest.$ac_objext'
30760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761 (eval $ac_try) 2>&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; }; then
30765 amanda_cv_c_unsigned_long_constants=yes
30767 echo "$as_me: failed program was:" >&5
30768 sed 's/^/| /' conftest.$ac_ext >&5
30770 amanda_cv_c_unsigned_long_constants=no
30773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30777 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
30778 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
30779 if test "$amanda_cv_c_unsigned_long_constants" = yes; then
30781 cat >>confdefs.h <<\_ACEOF
30782 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
30788 echo "$as_me:$LINENO: checking for off_t" >&5
30789 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30790 if test "${ac_cv_type_off_t+set}" = set; then
30791 echo $ECHO_N "(cached) $ECHO_C" >&6
30793 cat >conftest.$ac_ext <<_ACEOF
30796 cat confdefs.h >>conftest.$ac_ext
30797 cat >>conftest.$ac_ext <<_ACEOF
30798 /* end confdefs.h. */
30799 $ac_includes_default
30805 if (sizeof (off_t))
30811 rm -f conftest.$ac_objext
30812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30813 (eval $ac_compile) 2>conftest.er1
30815 grep -v '^ *+' conftest.er1 >conftest.err
30817 cat conftest.err >&5
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); } &&
30820 { ac_try='test -z "$ac_c_werror_flag"
30821 || test ! -s conftest.err'
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest.$ac_objext'
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
30833 ac_cv_type_off_t=yes
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30838 ac_cv_type_off_t=no
30840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30842 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30843 echo "${ECHO_T}$ac_cv_type_off_t" >&6
30844 if test $ac_cv_type_off_t = yes; then
30848 cat >>confdefs.h <<_ACEOF
30854 echo "$as_me:$LINENO: checking for pid_t" >&5
30855 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30856 if test "${ac_cv_type_pid_t+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30859 cat >conftest.$ac_ext <<_ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30865 $ac_includes_default
30871 if (sizeof (pid_t))
30877 rm -f conftest.$ac_objext
30878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30879 (eval $ac_compile) 2>conftest.er1
30881 grep -v '^ *+' conftest.er1 >conftest.err
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } &&
30886 { ac_try='test -z "$ac_c_werror_flag"
30887 || test ! -s conftest.err'
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest.$ac_objext'
30894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895 (eval $ac_try) 2>&5
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; }; then
30899 ac_cv_type_pid_t=yes
30901 echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30904 ac_cv_type_pid_t=no
30906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30908 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30909 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30910 if test $ac_cv_type_pid_t = yes; then
30914 cat >>confdefs.h <<_ACEOF
30920 echo "$as_me:$LINENO: checking for size_t" >&5
30921 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30922 if test "${ac_cv_type_size_t+set}" = set; then
30923 echo $ECHO_N "(cached) $ECHO_C" >&6
30925 cat >conftest.$ac_ext <<_ACEOF
30928 cat confdefs.h >>conftest.$ac_ext
30929 cat >>conftest.$ac_ext <<_ACEOF
30930 /* end confdefs.h. */
30931 $ac_includes_default
30937 if (sizeof (size_t))
30943 rm -f conftest.$ac_objext
30944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30945 (eval $ac_compile) 2>conftest.er1
30947 grep -v '^ *+' conftest.er1 >conftest.err
30949 cat conftest.err >&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); } &&
30952 { ac_try='test -z "$ac_c_werror_flag"
30953 || test ! -s conftest.err'
30954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955 (eval $ac_try) 2>&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); }; } &&
30959 { ac_try='test -s conftest.$ac_objext'
30960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961 (eval $ac_try) 2>&5
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); }; }; then
30965 ac_cv_type_size_t=yes
30967 echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30970 ac_cv_type_size_t=no
30972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30974 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30975 echo "${ECHO_T}$ac_cv_type_size_t" >&6
30976 if test $ac_cv_type_size_t = yes; then
30980 cat >>confdefs.h <<_ACEOF
30981 #define size_t unsigned
30987 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30988 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30989 if test "${ac_cv_type_uid_t+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30992 cat >conftest.$ac_ext <<_ACEOF
30995 cat confdefs.h >>conftest.$ac_ext
30996 cat >>conftest.$ac_ext <<_ACEOF
30997 /* end confdefs.h. */
30998 #include <sys/types.h>
31001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31002 $EGREP "uid_t" >/dev/null 2>&1; then
31003 ac_cv_type_uid_t=yes
31005 ac_cv_type_uid_t=no
31010 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31011 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31012 if test $ac_cv_type_uid_t = no; then
31014 cat >>confdefs.h <<\_ACEOF
31019 cat >>confdefs.h <<\_ACEOF
31025 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31026 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
31027 if test "${ac_cv_type_signal+set}" = set; then
31028 echo $ECHO_N "(cached) $ECHO_C" >&6
31030 cat >conftest.$ac_ext <<_ACEOF
31033 cat confdefs.h >>conftest.$ac_ext
31034 cat >>conftest.$ac_ext <<_ACEOF
31035 /* end confdefs.h. */
31036 #include <sys/types.h>
31037 #include <signal.h>
31042 extern "C" void (*signal (int, void (*)(int)))(int);
31044 void (*signal ()) ();
31055 rm -f conftest.$ac_objext
31056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31057 (eval $ac_compile) 2>conftest.er1
31059 grep -v '^ *+' conftest.er1 >conftest.err
31061 cat conftest.err >&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); } &&
31064 { ac_try='test -z "$ac_c_werror_flag"
31065 || test ! -s conftest.err'
31066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067 (eval $ac_try) 2>&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; } &&
31071 { ac_try='test -s conftest.$ac_objext'
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
31077 ac_cv_type_signal=void
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31082 ac_cv_type_signal=int
31084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31086 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31087 echo "${ECHO_T}$ac_cv_type_signal" >&6
31089 cat >>confdefs.h <<_ACEOF
31090 #define RETSIGTYPE $ac_cv_type_signal
31094 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31095 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31096 if test "${ac_cv_struct_tm+set}" = set; then
31097 echo $ECHO_N "(cached) $ECHO_C" >&6
31099 cat >conftest.$ac_ext <<_ACEOF
31102 cat confdefs.h >>conftest.$ac_ext
31103 cat >>conftest.$ac_ext <<_ACEOF
31104 /* end confdefs.h. */
31105 #include <sys/types.h>
31111 struct tm *tp; tp->tm_sec;
31116 rm -f conftest.$ac_objext
31117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31118 (eval $ac_compile) 2>conftest.er1
31120 grep -v '^ *+' conftest.er1 >conftest.err
31122 cat conftest.err >&5
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); } &&
31125 { ac_try='test -z "$ac_c_werror_flag"
31126 || test ! -s conftest.err'
31127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31128 (eval $ac_try) 2>&5
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); }; } &&
31132 { ac_try='test -s conftest.$ac_objext'
31133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31134 (eval $ac_try) 2>&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; }; then
31138 ac_cv_struct_tm=time.h
31140 echo "$as_me: failed program was:" >&5
31141 sed 's/^/| /' conftest.$ac_ext >&5
31143 ac_cv_struct_tm=sys/time.h
31145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31147 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31148 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31149 if test $ac_cv_struct_tm = sys/time.h; then
31151 cat >>confdefs.h <<\_ACEOF
31152 #define TM_IN_SYS_TIME 1
31157 for ac_prog in flex lex
31159 # Extract the first word of "$ac_prog", so it can be a program name with args.
31160 set dummy $ac_prog; ac_word=$2
31161 echo "$as_me:$LINENO: checking for $ac_word" >&5
31162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31163 if test "${ac_cv_prog_LEX+set}" = set; then
31164 echo $ECHO_N "(cached) $ECHO_C" >&6
31166 if test -n "$LEX"; then
31167 ac_cv_prog_LEX="$LEX" # Let the user override the test.
31169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31170 for as_dir in $PATH
31173 test -z "$as_dir" && as_dir=.
31174 for ac_exec_ext in '' $ac_executable_extensions; do
31175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31176 ac_cv_prog_LEX="$ac_prog"
31177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31185 LEX=$ac_cv_prog_LEX
31186 if test -n "$LEX"; then
31187 echo "$as_me:$LINENO: result: $LEX" >&5
31188 echo "${ECHO_T}$LEX" >&6
31190 echo "$as_me:$LINENO: result: no" >&5
31191 echo "${ECHO_T}no" >&6
31194 test -n "$LEX" && break
31196 test -n "$LEX" || LEX=":"
31198 if test -z "$LEXLIB"
31200 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
31201 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
31202 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31205 ac_check_lib_save_LIBS=$LIBS
31207 cat >conftest.$ac_ext <<_ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h. */
31214 /* Override any gcc2 internal prototype to avoid an error. */
31218 /* We use char because int might match the return type of a gcc2
31219 builtin and then its argument prototype would still apply. */
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31231 (eval $ac_link) 2>conftest.er1
31233 grep -v '^ *+' conftest.er1 >conftest.err
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
31238 { ac_try='test -z "$ac_c_werror_flag"
31239 || test ! -s conftest.err'
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try='test -s conftest$ac_exeext'
31246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247 (eval $ac_try) 2>&5
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); }; }; then
31251 ac_cv_lib_fl_yywrap=yes
31253 echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31256 ac_cv_lib_fl_yywrap=no
31258 rm -f conftest.err conftest.$ac_objext \
31259 conftest$ac_exeext conftest.$ac_ext
31260 LIBS=$ac_check_lib_save_LIBS
31262 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
31263 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
31264 if test $ac_cv_lib_fl_yywrap = yes; then
31267 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
31268 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
31269 if test "${ac_cv_lib_l_yywrap+set}" = set; then
31270 echo $ECHO_N "(cached) $ECHO_C" >&6
31272 ac_check_lib_save_LIBS=$LIBS
31274 cat >conftest.$ac_ext <<_ACEOF
31277 cat confdefs.h >>conftest.$ac_ext
31278 cat >>conftest.$ac_ext <<_ACEOF
31279 /* end confdefs.h. */
31281 /* Override any gcc2 internal prototype to avoid an error. */
31285 /* We use char because int might match the return type of a gcc2
31286 builtin and then its argument prototype would still apply. */
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31298 (eval $ac_link) 2>conftest.er1
31300 grep -v '^ *+' conftest.er1 >conftest.err
31302 cat conftest.err >&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); } &&
31305 { ac_try='test -z "$ac_c_werror_flag"
31306 || test ! -s conftest.err'
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest$ac_exeext'
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 ac_cv_lib_l_yywrap=yes
31320 echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31323 ac_cv_lib_l_yywrap=no
31325 rm -f conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
31327 LIBS=$ac_check_lib_save_LIBS
31329 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
31330 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
31331 if test $ac_cv_lib_l_yywrap = yes; then
31339 if test "x$LEX" != "x:"; then
31340 echo "$as_me:$LINENO: checking lex output file root" >&5
31341 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
31342 if test "${ac_cv_prog_lex_root+set}" = set; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31345 # The minimal lex program is just a single line: %%. But some broken lexes
31346 # (Solaris, I think it was) want two %% lines, so accommodate them.
31347 cat >conftest.l <<_ACEOF
31351 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
31352 (eval $LEX conftest.l) 2>&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }
31356 if test -f lex.yy.c; then
31357 ac_cv_prog_lex_root=lex.yy
31358 elif test -f lexyy.c; then
31359 ac_cv_prog_lex_root=lexyy
31361 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31362 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31363 { (exit 1); exit 1; }; }
31366 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31367 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
31369 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31371 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31372 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
31373 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
31374 echo $ECHO_N "(cached) $ECHO_C" >&6
31376 # POSIX says lex can declare yytext either as a pointer or an array; the
31377 # default is implementation-dependent. Figure out which it is, since
31378 # not all implementations provide the %pointer and %array declarations.
31379 ac_cv_prog_lex_yytext_pointer=no
31380 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
31382 LIBS="$LIBS $LEXLIB"
31383 cat >conftest.$ac_ext <<_ACEOF
31384 `cat $LEX_OUTPUT_ROOT.c`
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31388 (eval $ac_link) 2>conftest.er1
31390 grep -v '^ *+' conftest.er1 >conftest.err
31392 cat conftest.err >&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
31395 { ac_try='test -z "$ac_c_werror_flag"
31396 || test ! -s conftest.err'
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; } &&
31402 { ac_try='test -s conftest$ac_exeext'
31403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31404 (eval $ac_try) 2>&5
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); }; }; then
31408 ac_cv_prog_lex_yytext_pointer=yes
31410 echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31414 rm -f conftest.err conftest.$ac_objext \
31415 conftest$ac_exeext conftest.$ac_ext
31417 rm -f "${LEX_OUTPUT_ROOT}.c"
31420 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31421 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
31422 if test $ac_cv_prog_lex_yytext_pointer = yes; then
31424 cat >>confdefs.h <<\_ACEOF
31425 #define YYTEXT_POINTER 1
31431 if test "$LEX" = :; then
31432 LEX=${am_missing_run}flex
31435 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31437 if test "${ac_cv_header_stdc+set}" = set; then
31438 echo $ECHO_N "(cached) $ECHO_C" >&6
31440 cat >conftest.$ac_ext <<_ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h. */
31446 #include <stdlib.h>
31447 #include <stdarg.h>
31448 #include <string.h>
31459 rm -f conftest.$ac_objext
31460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31461 (eval $ac_compile) 2>conftest.er1
31463 grep -v '^ *+' conftest.er1 >conftest.err
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } &&
31468 { ac_try='test -z "$ac_c_werror_flag"
31469 || test ! -s conftest.err'
31470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31471 (eval $ac_try) 2>&5
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); }; } &&
31475 { ac_try='test -s conftest.$ac_objext'
31476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31477 (eval $ac_try) 2>&5
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; }; then
31481 ac_cv_header_stdc=yes
31483 echo "$as_me: failed program was:" >&5
31484 sed 's/^/| /' conftest.$ac_ext >&5
31486 ac_cv_header_stdc=no
31488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31490 if test $ac_cv_header_stdc = yes; then
31491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31492 cat >conftest.$ac_ext <<_ACEOF
31495 cat confdefs.h >>conftest.$ac_ext
31496 cat >>conftest.$ac_ext <<_ACEOF
31497 /* end confdefs.h. */
31498 #include <string.h>
31501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31502 $EGREP "memchr" >/dev/null 2>&1; then
31505 ac_cv_header_stdc=no
31511 if test $ac_cv_header_stdc = yes; then
31512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31513 cat >conftest.$ac_ext <<_ACEOF
31516 cat confdefs.h >>conftest.$ac_ext
31517 cat >>conftest.$ac_ext <<_ACEOF
31518 /* end confdefs.h. */
31519 #include <stdlib.h>
31522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31523 $EGREP "free" >/dev/null 2>&1; then
31526 ac_cv_header_stdc=no
31532 if test $ac_cv_header_stdc = yes; then
31533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31534 if test "$cross_compiling" = yes; then
31537 cat >conftest.$ac_ext <<_ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31544 #if ((' ' & 0x0FF) == 0x020)
31545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31548 # define ISLOWER(c) \
31549 (('a' <= (c) && (c) <= 'i') \
31550 || ('j' <= (c) && (c) <= 'r') \
31551 || ('s' <= (c) && (c) <= 'z'))
31552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31560 for (i = 0; i < 256; i++)
31561 if (XOR (islower (i), ISLOWER (i))
31562 || toupper (i) != TOUPPER (i))
31567 rm -f conftest$ac_exeext
31568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31569 (eval $ac_link) 2>&5
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574 (eval $ac_try) 2>&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
31580 echo "$as_me: program exited with status $ac_status" >&5
31581 echo "$as_me: failed program was:" >&5
31582 sed 's/^/| /' conftest.$ac_ext >&5
31584 ( exit $ac_status )
31585 ac_cv_header_stdc=no
31587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31591 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31592 echo "${ECHO_T}$ac_cv_header_stdc" >&6
31593 if test $ac_cv_header_stdc = yes; then
31595 cat >>confdefs.h <<\_ACEOF
31596 #define STDC_HEADERS 1
31603 echo "$as_me:$LINENO: checking for socklen_t" >&5
31604 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
31605 if test "${ac_cv_type_socklen_t+set}" = set; then
31606 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 cat >conftest.$ac_ext <<_ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h. */
31614 #include <sys/types.h>
31616 #include <stdlib.h>
31617 #include <stddef.h>
31619 #include <sys/socket.h>
31621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31622 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31623 ac_cv_type_socklen_t=yes
31625 ac_cv_type_socklen_t=no
31630 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
31631 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
31632 if test "x$ac_cv_type_socklen_t" = xno; then
31634 cat >>confdefs.h <<\_ACEOF
31635 #define socklen_t int
31640 echo "$as_me:$LINENO: checking for sa_family_t" >&5
31641 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
31642 if test "${ac_cv_type_sa_family_t+set}" = set; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31645 cat >conftest.$ac_ext <<_ACEOF
31648 cat confdefs.h >>conftest.$ac_ext
31649 cat >>conftest.$ac_ext <<_ACEOF
31650 /* end confdefs.h. */
31651 #include <sys/types.h>
31653 #include <stdlib.h>
31654 #include <stddef.h>
31656 #include <sys/socket.h>
31658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31659 $EGREP "(^|[^a-zA-Z_0-9])sa_family_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31660 ac_cv_type_sa_family_t=yes
31662 ac_cv_type_sa_family_t=no
31667 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31668 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
31669 if test "x$ac_cv_type_sa_family_t" = xno; then
31671 cat >>confdefs.h <<\_ACEOF
31672 #define sa_family_t unsigned short
31683 ac_header_dirent=no
31684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31685 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31686 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31687 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
31688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31691 cat >conftest.$ac_ext <<_ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h. */
31697 #include <sys/types.h>
31709 rm -f conftest.$ac_objext
31710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31711 (eval $ac_compile) 2>conftest.er1
31713 grep -v '^ *+' conftest.er1 >conftest.err
31715 cat conftest.err >&5
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); } &&
31718 { ac_try='test -z "$ac_c_werror_flag"
31719 || test ! -s conftest.err'
31720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721 (eval $ac_try) 2>&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; } &&
31725 { ac_try='test -s conftest.$ac_objext'
31726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727 (eval $ac_try) 2>&5
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); }; }; then
31731 eval "$as_ac_Header=yes"
31733 echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31736 eval "$as_ac_Header=no"
31738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31743 cat >>confdefs.h <<_ACEOF
31744 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31747 ac_header_dirent=$ac_hdr; break
31751 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31752 if test $ac_header_dirent = dirent.h; then
31753 echo "$as_me:$LINENO: checking for library containing opendir" >&5
31754 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31755 if test "${ac_cv_search_opendir+set}" = set; then
31756 echo $ECHO_N "(cached) $ECHO_C" >&6
31758 ac_func_search_save_LIBS=$LIBS
31759 ac_cv_search_opendir=no
31760 cat >conftest.$ac_ext <<_ACEOF
31763 cat confdefs.h >>conftest.$ac_ext
31764 cat >>conftest.$ac_ext <<_ACEOF
31765 /* end confdefs.h. */
31767 /* Override any gcc2 internal prototype to avoid an error. */
31771 /* We use char because int might match the return type of a gcc2
31772 builtin and then its argument prototype would still apply. */
31782 rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31784 (eval $ac_link) 2>conftest.er1
31786 grep -v '^ *+' conftest.er1 >conftest.err
31788 cat conftest.err >&5
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790 (exit $ac_status); } &&
31791 { ac_try='test -z "$ac_c_werror_flag"
31792 || test ! -s conftest.err'
31793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794 (eval $ac_try) 2>&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); }; } &&
31798 { ac_try='test -s conftest$ac_exeext'
31799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800 (eval $ac_try) 2>&5
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; }; then
31804 ac_cv_search_opendir="none required"
31806 echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31810 rm -f conftest.err conftest.$ac_objext \
31811 conftest$ac_exeext conftest.$ac_ext
31812 if test "$ac_cv_search_opendir" = no; then
31813 for ac_lib in dir; do
31814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31815 cat >conftest.$ac_ext <<_ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h. */
31822 /* Override any gcc2 internal prototype to avoid an error. */
31826 /* We use char because int might match the return type of a gcc2
31827 builtin and then its argument prototype would still apply. */
31837 rm -f conftest.$ac_objext conftest$ac_exeext
31838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31839 (eval $ac_link) 2>conftest.er1
31841 grep -v '^ *+' conftest.er1 >conftest.err
31843 cat conftest.err >&5
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); } &&
31846 { ac_try='test -z "$ac_c_werror_flag"
31847 || test ! -s conftest.err'
31848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31849 (eval $ac_try) 2>&5
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; } &&
31853 { ac_try='test -s conftest$ac_exeext'
31854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31855 (eval $ac_try) 2>&5
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); }; }; then
31859 ac_cv_search_opendir="-l$ac_lib"
31862 echo "$as_me: failed program was:" >&5
31863 sed 's/^/| /' conftest.$ac_ext >&5
31866 rm -f conftest.err conftest.$ac_objext \
31867 conftest$ac_exeext conftest.$ac_ext
31870 LIBS=$ac_func_search_save_LIBS
31872 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31873 echo "${ECHO_T}$ac_cv_search_opendir" >&6
31874 if test "$ac_cv_search_opendir" != no; then
31875 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
31880 echo "$as_me:$LINENO: checking for library containing opendir" >&5
31881 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31882 if test "${ac_cv_search_opendir+set}" = set; then
31883 echo $ECHO_N "(cached) $ECHO_C" >&6
31885 ac_func_search_save_LIBS=$LIBS
31886 ac_cv_search_opendir=no
31887 cat >conftest.$ac_ext <<_ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31894 /* Override any gcc2 internal prototype to avoid an error. */
31898 /* We use char because int might match the return type of a gcc2
31899 builtin and then its argument prototype would still apply. */
31909 rm -f conftest.$ac_objext conftest$ac_exeext
31910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31911 (eval $ac_link) 2>conftest.er1
31913 grep -v '^ *+' conftest.er1 >conftest.err
31915 cat conftest.err >&5
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); } &&
31918 { ac_try='test -z "$ac_c_werror_flag"
31919 || test ! -s conftest.err'
31920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921 (eval $ac_try) 2>&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); }; } &&
31925 { ac_try='test -s conftest$ac_exeext'
31926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31927 (eval $ac_try) 2>&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; }; then
31931 ac_cv_search_opendir="none required"
31933 echo "$as_me: failed program was:" >&5
31934 sed 's/^/| /' conftest.$ac_ext >&5
31937 rm -f conftest.err conftest.$ac_objext \
31938 conftest$ac_exeext conftest.$ac_ext
31939 if test "$ac_cv_search_opendir" = no; then
31940 for ac_lib in x; do
31941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31942 cat >conftest.$ac_ext <<_ACEOF
31945 cat confdefs.h >>conftest.$ac_ext
31946 cat >>conftest.$ac_ext <<_ACEOF
31947 /* end confdefs.h. */
31949 /* Override any gcc2 internal prototype to avoid an error. */
31953 /* We use char because int might match the return type of a gcc2
31954 builtin and then its argument prototype would still apply. */
31964 rm -f conftest.$ac_objext conftest$ac_exeext
31965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31966 (eval $ac_link) 2>conftest.er1
31968 grep -v '^ *+' conftest.er1 >conftest.err
31970 cat conftest.err >&5
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); } &&
31973 { ac_try='test -z "$ac_c_werror_flag"
31974 || test ! -s conftest.err'
31975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31976 (eval $ac_try) 2>&5
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); }; } &&
31980 { ac_try='test -s conftest$ac_exeext'
31981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982 (eval $ac_try) 2>&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); }; }; then
31986 ac_cv_search_opendir="-l$ac_lib"
31989 echo "$as_me: failed program was:" >&5
31990 sed 's/^/| /' conftest.$ac_ext >&5
31993 rm -f conftest.err conftest.$ac_objext \
31994 conftest$ac_exeext conftest.$ac_ext
31997 LIBS=$ac_func_search_save_LIBS
31999 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32000 echo "${ECHO_T}$ac_cv_search_opendir" >&6
32001 if test "$ac_cv_search_opendir" != no; then
32002 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
32012 for ac_header in sys/wait.h wait.h
32014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32016 echo "$as_me:$LINENO: checking for $ac_header" >&5
32017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32024 # Is the header compilable?
32025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32027 cat >conftest.$ac_ext <<_ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h. */
32033 $ac_includes_default
32034 #include <$ac_header>
32036 rm -f conftest.$ac_objext
32037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32038 (eval $ac_compile) 2>conftest.er1
32040 grep -v '^ *+' conftest.er1 >conftest.err
32042 cat conftest.err >&5
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); } &&
32045 { ac_try='test -z "$ac_c_werror_flag"
32046 || test ! -s conftest.err'
32047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048 (eval $ac_try) 2>&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); }; } &&
32052 { ac_try='test -s conftest.$ac_objext'
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; }; then
32058 ac_header_compiler=yes
32060 echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.$ac_ext >&5
32063 ac_header_compiler=no
32065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32067 echo "${ECHO_T}$ac_header_compiler" >&6
32069 # Is the header present?
32070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32072 cat >conftest.$ac_ext <<_ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h. */
32078 #include <$ac_header>
32080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32083 grep -v '^ *+' conftest.er1 >conftest.err
32085 cat conftest.err >&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); } >/dev/null; then
32088 if test -s conftest.err; then
32089 ac_cpp_err=$ac_c_preproc_warn_flag
32090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32097 if test -z "$ac_cpp_err"; then
32098 ac_header_preproc=yes
32100 echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32103 ac_header_preproc=no
32105 rm -f conftest.err conftest.$ac_ext
32106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32107 echo "${ECHO_T}$ac_header_preproc" >&6
32109 # So? What about this header?
32110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32116 ac_header_preproc=yes
32119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32133 ## ------------------------------------------ ##
32134 ## Report this to the AC_PACKAGE_NAME lists. ##
32135 ## ------------------------------------------ ##
32138 sed "s/^/$as_me: WARNING: /" >&2
32141 echo "$as_me:$LINENO: checking for $ac_header" >&5
32142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32144 echo $ECHO_N "(cached) $ECHO_C" >&6
32146 eval "$as_ac_Header=\$ac_header_preproc"
32148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32153 cat >>confdefs.h <<_ACEOF
32154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32161 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
32162 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
32163 if test "${cf_cv_arg_union_wait+set}" = set; then
32164 echo $ECHO_N "(cached) $ECHO_C" >&6
32166 cat >conftest.$ac_ext <<_ACEOF
32169 cat confdefs.h >>conftest.$ac_ext
32170 cat >>conftest.$ac_ext <<_ACEOF
32171 /* end confdefs.h. */
32173 #include <sys/types.h>
32175 #if HAVE_SYS_WAIT_H
32176 # include <sys/wait.h>
32184 pid_t wait(union wait *);
32191 union wait x; int i;
32192 wait(&x); i = WIFEXITED(x)
32198 rm -f conftest.$ac_objext
32199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32200 (eval $ac_compile) 2>conftest.er1
32202 grep -v '^ *+' conftest.er1 >conftest.err
32204 cat conftest.err >&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_c_werror_flag"
32208 || test ! -s conftest.err'
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; } &&
32214 { ac_try='test -s conftest.$ac_objext'
32215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216 (eval $ac_try) 2>&5
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; }; then
32220 cf_cv_arg_union_wait=yes
32222 echo "$as_me: failed program was:" >&5
32223 sed 's/^/| /' conftest.$ac_ext >&5
32225 cf_cv_arg_union_wait=no
32227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32229 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
32230 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
32231 if test $cf_cv_arg_union_wait = yes; then
32233 cat >>confdefs.h <<\_ACEOF
32234 #define WAIT_USES_UNION 1
32243 for ac_header in sys/wait.h wait.h
32245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32247 echo "$as_me:$LINENO: checking for $ac_header" >&5
32248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32250 echo $ECHO_N "(cached) $ECHO_C" >&6
32252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32255 # Is the header compilable?
32256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32258 cat >conftest.$ac_ext <<_ACEOF
32261 cat confdefs.h >>conftest.$ac_ext
32262 cat >>conftest.$ac_ext <<_ACEOF
32263 /* end confdefs.h. */
32264 $ac_includes_default
32265 #include <$ac_header>
32267 rm -f conftest.$ac_objext
32268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32269 (eval $ac_compile) 2>conftest.er1
32271 grep -v '^ *+' conftest.er1 >conftest.err
32273 cat conftest.err >&5
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); } &&
32276 { ac_try='test -z "$ac_c_werror_flag"
32277 || test ! -s conftest.err'
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; } &&
32283 { ac_try='test -s conftest.$ac_objext'
32284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285 (eval $ac_try) 2>&5
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32289 ac_header_compiler=yes
32291 echo "$as_me: failed program was:" >&5
32292 sed 's/^/| /' conftest.$ac_ext >&5
32294 ac_header_compiler=no
32296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32298 echo "${ECHO_T}$ac_header_compiler" >&6
32300 # Is the header present?
32301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32303 cat >conftest.$ac_ext <<_ACEOF
32306 cat confdefs.h >>conftest.$ac_ext
32307 cat >>conftest.$ac_ext <<_ACEOF
32308 /* end confdefs.h. */
32309 #include <$ac_header>
32311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32314 grep -v '^ *+' conftest.er1 >conftest.err
32316 cat conftest.err >&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } >/dev/null; then
32319 if test -s conftest.err; then
32320 ac_cpp_err=$ac_c_preproc_warn_flag
32321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32328 if test -z "$ac_cpp_err"; then
32329 ac_header_preproc=yes
32331 echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32334 ac_header_preproc=no
32336 rm -f conftest.err conftest.$ac_ext
32337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32338 echo "${ECHO_T}$ac_header_preproc" >&6
32340 # So? What about this header?
32341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32347 ac_header_preproc=yes
32350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32364 ## ------------------------------------------ ##
32365 ## Report this to the AC_PACKAGE_NAME lists. ##
32366 ## ------------------------------------------ ##
32369 sed "s/^/$as_me: WARNING: /" >&2
32372 echo "$as_me:$LINENO: checking for $ac_header" >&5
32373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32375 echo $ECHO_N "(cached) $ECHO_C" >&6
32377 eval "$as_ac_Header=\$ac_header_preproc"
32379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32384 cat >>confdefs.h <<_ACEOF
32385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32392 echo "$as_me:$LINENO: checking whether wait uses int" >&5
32393 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
32394 if test "${cf_cv_arg_int+set}" = set; then
32395 echo $ECHO_N "(cached) $ECHO_C" >&6
32397 cat >conftest.$ac_ext <<_ACEOF
32400 cat confdefs.h >>conftest.$ac_ext
32401 cat >>conftest.$ac_ext <<_ACEOF
32402 /* end confdefs.h. */
32404 #include <sys/types.h>
32406 #if HAVE_SYS_WAIT_H
32407 # include <sys/wait.h>
32423 wait(&x); i = WIFEXITED(x)
32429 rm -f conftest.$ac_objext
32430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32431 (eval $ac_compile) 2>conftest.er1
32433 grep -v '^ *+' conftest.er1 >conftest.err
32435 cat conftest.err >&5
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); } &&
32438 { ac_try='test -z "$ac_c_werror_flag"
32439 || test ! -s conftest.err'
32440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441 (eval $ac_try) 2>&5
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); }; } &&
32445 { ac_try='test -s conftest.$ac_objext'
32446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32447 (eval $ac_try) 2>&5
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); }; }; then
32453 echo "$as_me: failed program was:" >&5
32454 sed 's/^/| /' conftest.$ac_ext >&5
32458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32460 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
32461 echo "${ECHO_T}$cf_cv_arg_int" >&6
32462 if test $cf_cv_arg_int = yes; then
32464 cat >>confdefs.h <<\_ACEOF
32465 #define WAIT_USES_INT 1
32470 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32471 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32472 if test "${ac_cv_header_time+set}" = set; then
32473 echo $ECHO_N "(cached) $ECHO_C" >&6
32475 cat >conftest.$ac_ext <<_ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h. */
32481 #include <sys/types.h>
32482 #include <sys/time.h>
32488 if ((struct tm *) 0)
32494 rm -f conftest.$ac_objext
32495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32496 (eval $ac_compile) 2>conftest.er1
32498 grep -v '^ *+' conftest.er1 >conftest.err
32500 cat conftest.err >&5
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); } &&
32503 { ac_try='test -z "$ac_c_werror_flag"
32504 || test ! -s conftest.err'
32505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506 (eval $ac_try) 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; }; then
32516 ac_cv_header_time=yes
32518 echo "$as_me: failed program was:" >&5
32519 sed 's/^/| /' conftest.$ac_ext >&5
32521 ac_cv_header_time=no
32523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32525 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32526 echo "${ECHO_T}$ac_cv_header_time" >&6
32527 if test $ac_cv_header_time = yes; then
32529 cat >>confdefs.h <<\_ACEOF
32530 #define TIME_WITH_SYS_TIME 1
32600 cam/scsi/scsi_message.h \
32618 netinet/in_systm.h \
32620 readline/history.h \
32621 readline/readline.h \
32623 scsi/scsi_ioctl.h \
32642 sys/scsi/impl/uscsi.h \
32643 sys/scsi/scsi/ioctl.h \
32660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32662 echo "$as_me:$LINENO: checking for $ac_header" >&5
32663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32670 # Is the header compilable?
32671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32673 cat >conftest.$ac_ext <<_ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h. */
32679 $ac_includes_default
32680 #include <$ac_header>
32682 rm -f conftest.$ac_objext
32683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32684 (eval $ac_compile) 2>conftest.er1
32686 grep -v '^ *+' conftest.er1 >conftest.err
32688 cat conftest.err >&5
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); } &&
32691 { ac_try='test -z "$ac_c_werror_flag"
32692 || test ! -s conftest.err'
32693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694 (eval $ac_try) 2>&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); }; } &&
32698 { ac_try='test -s conftest.$ac_objext'
32699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700 (eval $ac_try) 2>&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; }; then
32704 ac_header_compiler=yes
32706 echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32709 ac_header_compiler=no
32711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32713 echo "${ECHO_T}$ac_header_compiler" >&6
32715 # Is the header present?
32716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32718 cat >conftest.$ac_ext <<_ACEOF
32721 cat confdefs.h >>conftest.$ac_ext
32722 cat >>conftest.$ac_ext <<_ACEOF
32723 /* end confdefs.h. */
32724 #include <$ac_header>
32726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32729 grep -v '^ *+' conftest.er1 >conftest.err
32731 cat conftest.err >&5
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); } >/dev/null; then
32734 if test -s conftest.err; then
32735 ac_cpp_err=$ac_c_preproc_warn_flag
32736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32743 if test -z "$ac_cpp_err"; then
32744 ac_header_preproc=yes
32746 echo "$as_me: failed program was:" >&5
32747 sed 's/^/| /' conftest.$ac_ext >&5
32749 ac_header_preproc=no
32751 rm -f conftest.err conftest.$ac_ext
32752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32753 echo "${ECHO_T}$ac_header_preproc" >&6
32755 # So? What about this header?
32756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32762 ac_header_preproc=yes
32765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32779 ## ------------------------------------------ ##
32780 ## Report this to the AC_PACKAGE_NAME lists. ##
32781 ## ------------------------------------------ ##
32784 sed "s/^/$as_me: WARNING: /" >&2
32787 echo "$as_me:$LINENO: checking for $ac_header" >&5
32788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32790 echo $ECHO_N "(cached) $ECHO_C" >&6
32792 eval "$as_ac_Header=\$ac_header_preproc"
32794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32799 cat >>confdefs.h <<_ACEOF
32800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32809 for ac_header in netinet/ip.h
32811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32812 echo "$as_me:$LINENO: checking for $ac_header" >&5
32813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32815 echo $ECHO_N "(cached) $ECHO_C" >&6
32817 cat >conftest.$ac_ext <<_ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h. */
32823 #include <sys/socket.h>
32824 #if HAVE_SYS_TYPES_H
32825 #include <sys/types.h>
32827 #ifdef HAVE_NETINET_IN_SYSTM_H
32828 #include <netinet/in_systm.h>
32830 #include <netinet/in.h>
32833 #include <$ac_header>
32835 rm -f conftest.$ac_objext
32836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32837 (eval $ac_compile) 2>conftest.er1
32839 grep -v '^ *+' conftest.er1 >conftest.err
32841 cat conftest.err >&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } &&
32844 { ac_try='test -z "$ac_c_werror_flag"
32845 || test ! -s conftest.err'
32846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32847 (eval $ac_try) 2>&5
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; } &&
32851 { ac_try='test -s conftest.$ac_objext'
32852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32853 (eval $ac_try) 2>&5
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); }; }; then
32857 eval "$as_ac_Header=yes"
32859 echo "$as_me: failed program was:" >&5
32860 sed 's/^/| /' conftest.$ac_ext >&5
32862 eval "$as_ac_Header=no"
32864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32869 cat >>confdefs.h <<_ACEOF
32870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32879 for ac_header in sys/mount.h
32881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32882 echo "$as_me:$LINENO: checking for $ac_header" >&5
32883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32885 echo $ECHO_N "(cached) $ECHO_C" >&6
32887 cat >conftest.$ac_ext <<_ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h. */
32893 #ifdef HAVE_SYS_PARAM_H
32894 #include <sys/param.h>
32898 #include <$ac_header>
32900 rm -f conftest.$ac_objext
32901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32902 (eval $ac_compile) 2>conftest.er1
32904 grep -v '^ *+' conftest.er1 >conftest.err
32906 cat conftest.err >&5
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); } &&
32909 { ac_try='test -z "$ac_c_werror_flag"
32910 || test ! -s conftest.err'
32911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 (eval $ac_try) 2>&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; } &&
32916 { ac_try='test -s conftest.$ac_objext'
32917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918 (eval $ac_try) 2>&5
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; }; then
32922 eval "$as_ac_Header=yes"
32924 echo "$as_me: failed program was:" >&5
32925 sed 's/^/| /' conftest.$ac_ext >&5
32927 eval "$as_ac_Header=no"
32929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32934 cat >>confdefs.h <<_ACEOF
32935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32943 NO_SCSI_CHANGER_MODE=true
32944 NO_CHIO_CHANGER_MODE=true
32946 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32947 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
32948 if test "${ac_cv_c_bigendian+set}" = set; then
32949 echo $ECHO_N "(cached) $ECHO_C" >&6
32951 # See if sys/param.h defines the BYTE_ORDER macro.
32952 cat >conftest.$ac_ext <<_ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h. */
32958 #include <sys/types.h>
32959 #include <sys/param.h>
32964 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
32965 bogus endian macros
32972 rm -f conftest.$ac_objext
32973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32974 (eval $ac_compile) 2>conftest.er1
32976 grep -v '^ *+' conftest.er1 >conftest.err
32978 cat conftest.err >&5
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); } &&
32981 { ac_try='test -z "$ac_c_werror_flag"
32982 || test ! -s conftest.err'
32983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32984 (eval $ac_try) 2>&5
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); }; } &&
32988 { ac_try='test -s conftest.$ac_objext'
32989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32990 (eval $ac_try) 2>&5
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); }; }; then
32994 # It does; now see whether it defined to BIG_ENDIAN or not.
32995 cat >conftest.$ac_ext <<_ACEOF
32998 cat confdefs.h >>conftest.$ac_ext
32999 cat >>conftest.$ac_ext <<_ACEOF
33000 /* end confdefs.h. */
33001 #include <sys/types.h>
33002 #include <sys/param.h>
33007 #if BYTE_ORDER != BIG_ENDIAN
33015 rm -f conftest.$ac_objext
33016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33017 (eval $ac_compile) 2>conftest.er1
33019 grep -v '^ *+' conftest.er1 >conftest.err
33021 cat conftest.err >&5
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); } &&
33024 { ac_try='test -z "$ac_c_werror_flag"
33025 || test ! -s conftest.err'
33026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33027 (eval $ac_try) 2>&5
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); }; } &&
33031 { ac_try='test -s conftest.$ac_objext'
33032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33033 (eval $ac_try) 2>&5
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; }; then
33037 ac_cv_c_bigendian=yes
33039 echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.$ac_ext >&5
33042 ac_cv_c_bigendian=no
33044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33046 echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33049 # It does not; compile a test program.
33050 if test "$cross_compiling" = yes; then
33051 # try to guess the endianness by grepping values into an object file
33052 ac_cv_c_bigendian=unknown
33053 cat >conftest.$ac_ext <<_ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h. */
33059 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33060 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33061 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33062 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33063 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33064 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33068 _ascii (); _ebcdic ();
33073 rm -f conftest.$ac_objext
33074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33075 (eval $ac_compile) 2>conftest.er1
33077 grep -v '^ *+' conftest.er1 >conftest.err
33079 cat conftest.err >&5
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); } &&
33082 { ac_try='test -z "$ac_c_werror_flag"
33083 || test ! -s conftest.err'
33084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085 (eval $ac_try) 2>&5
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; } &&
33089 { ac_try='test -s conftest.$ac_objext'
33090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33091 (eval $ac_try) 2>&5
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); }; }; then
33095 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33096 ac_cv_c_bigendian=yes
33098 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33099 if test "$ac_cv_c_bigendian" = unknown; then
33100 ac_cv_c_bigendian=no
33102 # finding both strings is unlikely to happen, but who knows?
33103 ac_cv_c_bigendian=unknown
33107 echo "$as_me: failed program was:" >&5
33108 sed 's/^/| /' conftest.$ac_ext >&5
33111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33113 cat >conftest.$ac_ext <<_ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33122 /* Are we little or big endian? From Harbison&Steele. */
33126 char c[sizeof (long)];
33129 exit (u.c[sizeof (long) - 1] == 1);
33132 rm -f conftest$ac_exeext
33133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33134 (eval $ac_link) 2>&5
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139 (eval $ac_try) 2>&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
33143 ac_cv_c_bigendian=no
33145 echo "$as_me: program exited with status $ac_status" >&5
33146 echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33149 ( exit $ac_status )
33150 ac_cv_c_bigendian=yes
33152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33157 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33158 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33159 case $ac_cv_c_bigendian in
33162 cat >>confdefs.h <<\_ACEOF
33163 #define WORDS_BIGENDIAN 1
33169 { { echo "$as_me:$LINENO: error: unknown endianness
33170 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33171 echo "$as_me: error: unknown endianness
33172 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33173 { (exit 1); exit 1; }; } ;;
33177 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33178 echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
33179 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
33180 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
33181 echo $ECHO_N "(cached) $ECHO_C" >&6
33183 cat >conftest.$ac_ext <<_ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h. */
33190 #include <sys/scsi.h>
33196 static struct element_addresses changer_info;
33197 int i = SIOC_ELEMENT_ADDRESSES;
33198 int j = SIOC_ELEMENT_STATUS;
33199 int k = SIOC_MOVE_MEDIUM;
33205 rm -f conftest.$ac_objext
33206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33207 (eval $ac_compile) 2>conftest.er1
33209 grep -v '^ *+' conftest.er1 >conftest.err
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } &&
33214 { ac_try='test -z "$ac_c_werror_flag"
33215 || test ! -s conftest.err'
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; } &&
33221 { ac_try='test -s conftest.$ac_objext'
33222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 (eval $ac_try) 2>&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
33227 amanda_cv_hpux_scsi_chio=yes
33229 echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33232 amanda_cv_hpux_scsi_chio=no
33234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33236 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
33237 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
33238 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
33240 cat >>confdefs.h <<\_ACEOF
33241 #define HAVE_HPUX_SCSI_CHIO 1
33244 NO_SCSI_CHANGER_MODE=false
33248 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33249 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
33250 echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
33251 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
33252 if test "${amanda_cv_linux_scsi+set}" = set; then
33253 echo $ECHO_N "(cached) $ECHO_C" >&6
33255 cat >conftest.$ac_ext <<_ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h. */
33262 #include <scsi/scsi_ioctl.h>
33263 #include <sys/mtio.h>
33271 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
33277 rm -f conftest.$ac_objext
33278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33279 (eval $ac_compile) 2>conftest.er1
33281 grep -v '^ *+' conftest.er1 >conftest.err
33283 cat conftest.err >&5
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); } &&
33286 { ac_try='test -z "$ac_c_werror_flag"
33287 || test ! -s conftest.err'
33288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33289 (eval $ac_try) 2>&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); }; } &&
33293 { ac_try='test -s conftest.$ac_objext'
33294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295 (eval $ac_try) 2>&5
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; }; then
33299 amanda_cv_linux_scsi=yes
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33304 amanda_cv_linux_scsi=no
33306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33308 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
33309 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
33312 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33313 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
33314 echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
33315 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
33316 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
33317 echo $ECHO_N "(cached) $ECHO_C" >&6
33319 cat >conftest.$ac_ext <<_ACEOF
33322 cat confdefs.h >>conftest.$ac_ext
33323 cat >>conftest.$ac_ext <<_ACEOF
33324 /* end confdefs.h. */
33326 #include <sys/types.h>
33327 #include <scsi/sg.h>
33328 #include <sys/mtio.h>
33335 struct sg_header *psg_header;
33337 write(device, buffer, 1);
33343 rm -f conftest.$ac_objext
33344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33345 (eval $ac_compile) 2>conftest.er1
33347 grep -v '^ *+' conftest.er1 >conftest.err
33349 cat conftest.err >&5
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } &&
33352 { ac_try='test -z "$ac_c_werror_flag"
33353 || test ! -s conftest.err'
33354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33355 (eval $ac_try) 2>&5
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; } &&
33359 { ac_try='test -s conftest.$ac_objext'
33360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33361 (eval $ac_try) 2>&5
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); }; }; then
33365 amanda_cv_linux_sg_scsi=yes
33367 echo "$as_me: failed program was:" >&5
33368 sed 's/^/| /' conftest.$ac_ext >&5
33370 amanda_cv_linux_sg_scsi=no
33372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33374 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
33375 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
33378 if test x"$amanda_cv_linux_scsi" = x"yes" ||
33379 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
33381 cat >>confdefs.h <<\_ACEOF
33382 #define HAVE_LINUX_LIKE_SCSI 1
33385 NO_SCSI_CHANGER_MODE=false
33388 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33389 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33390 echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
33391 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
33392 if test "${amanda_cv_hpux_scsi+set}" = set; then
33393 echo $ECHO_N "(cached) $ECHO_C" >&6
33395 cat >conftest.$ac_ext <<_ACEOF
33398 cat confdefs.h >>conftest.$ac_ext
33399 cat >>conftest.$ac_ext <<_ACEOF
33400 /* end confdefs.h. */
33403 #include <sys/ioctl.h>
33404 #include <sys/scsi.h>
33405 #include <sys/mtio.h>
33413 ioctl(device, SIOC_IO, Command);
33419 rm -f conftest.$ac_objext
33420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33421 (eval $ac_compile) 2>conftest.er1
33423 grep -v '^ *+' conftest.er1 >conftest.err
33425 cat conftest.err >&5
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); } &&
33428 { ac_try='test -z "$ac_c_werror_flag"
33429 || test ! -s conftest.err'
33430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33431 (eval $ac_try) 2>&5
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); }; } &&
33435 { ac_try='test -s conftest.$ac_objext'
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; }; then
33441 amanda_cv_hpux_scsi=yes
33443 echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33446 amanda_cv_hpux_scsi=no
33448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33450 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
33451 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
33452 if test x"$amanda_cv_hpux_scsi" = x"yes";then
33454 cat >>confdefs.h <<\_ACEOF
33455 #define HAVE_HPUX_LIKE_SCSI 1
33458 NO_SCSI_CHANGER_MODE=false
33459 NO_CHIO_CHANGER_MODE=false
33463 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33464 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
33465 echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
33466 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
33467 if test "${amanda_cv_irix_scsi+set}" = set; then
33468 echo $ECHO_N "(cached) $ECHO_C" >&6
33470 cat >conftest.$ac_ext <<_ACEOF
33473 cat confdefs.h >>conftest.$ac_ext
33474 cat >>conftest.$ac_ext <<_ACEOF
33475 /* end confdefs.h. */
33477 #include <sys/types.h>
33478 #include <sys/dsreq.h>
33479 #include <sys/mtio.h>
33487 ioctl(device, DS_ENTER, &Command);
33493 rm -f conftest.$ac_objext
33494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33495 (eval $ac_compile) 2>conftest.er1
33497 grep -v '^ *+' conftest.er1 >conftest.err
33499 cat conftest.err >&5
33500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501 (exit $ac_status); } &&
33502 { ac_try='test -z "$ac_c_werror_flag"
33503 || test ! -s conftest.err'
33504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33505 (eval $ac_try) 2>&5
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); }; } &&
33509 { ac_try='test -s conftest.$ac_objext'
33510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33511 (eval $ac_try) 2>&5
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); }; }; then
33515 amanda_cv_irix_scsi=yes
33517 echo "$as_me: failed program was:" >&5
33518 sed 's/^/| /' conftest.$ac_ext >&5
33520 amanda_cv_irix_scsi=no
33522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33524 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
33525 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
33526 if test x"$amanda_cv_irix_scsi" = x"yes";then
33528 cat >>confdefs.h <<\_ACEOF
33529 #define HAVE_IRIX_LIKE_SCSI 1
33532 NO_SCSI_CHANGER_MODE=false
33536 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33537 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
33538 echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
33539 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
33540 if test "${amanda_cv_solaris_scsi+set}" = set; then
33541 echo $ECHO_N "(cached) $ECHO_C" >&6
33543 cat >conftest.$ac_ext <<_ACEOF
33546 cat confdefs.h >>conftest.$ac_ext
33547 cat >>conftest.$ac_ext <<_ACEOF
33548 /* end confdefs.h. */
33550 #include <sys/types.h>
33551 #include <sys/scsi/impl/uscsi.h>
33552 #include <sys/mtio.h>
33560 ioctl(device, USCSICMD, Command);
33566 rm -f conftest.$ac_objext
33567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33568 (eval $ac_compile) 2>conftest.er1
33570 grep -v '^ *+' conftest.er1 >conftest.err
33572 cat conftest.err >&5
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); } &&
33575 { ac_try='test -z "$ac_c_werror_flag"
33576 || test ! -s conftest.err'
33577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33578 (eval $ac_try) 2>&5
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); }; } &&
33582 { ac_try='test -s conftest.$ac_objext'
33583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33584 (eval $ac_try) 2>&5
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; }; then
33588 amanda_cv_solaris_scsi=yes
33590 echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33593 amanda_cv_solaris_scsi=no
33595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33597 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
33598 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
33599 if test x"$amanda_cv_solaris_scsi" = x"yes";then
33601 cat >>confdefs.h <<\_ACEOF
33602 #define HAVE_SOLARIS_LIKE_SCSI 1
33605 NO_SCSI_CHANGER_MODE=false
33609 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
33610 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
33611 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
33612 echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
33613 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
33614 if test "${amanda_cv_aix_scsi+set}" = set; then
33615 echo $ECHO_N "(cached) $ECHO_C" >&6
33617 cat >conftest.$ac_ext <<_ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33624 #include <sys/types.h>
33625 #include <sys/scarray.h>
33626 #include <sys/tape.h>
33634 ioctl(device, STIOCMD, Command);
33640 rm -f conftest.$ac_objext
33641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33642 (eval $ac_compile) 2>conftest.er1
33644 grep -v '^ *+' conftest.er1 >conftest.err
33646 cat conftest.err >&5
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); } &&
33649 { ac_try='test -z "$ac_c_werror_flag"
33650 || test ! -s conftest.err'
33651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652 (eval $ac_try) 2>&5
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; } &&
33656 { ac_try='test -s conftest.$ac_objext'
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; }; then
33662 amanda_cv_aix_scsi=yes
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33667 amanda_cv_aix_scsi=no
33669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33671 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
33672 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
33673 if test x"$amanda_cv_aix_scsi" = x"yes";then
33675 cat >>confdefs.h <<\_ACEOF
33676 #define HAVE_AIX_LIKE_SCSI 1
33679 NO_SCSI_CHANGER_MODE=false
33682 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
33683 echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
33684 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
33685 if test "${amanda_cv_cam_scsi+set}" = set; then
33686 echo $ECHO_N "(cached) $ECHO_C" >&6
33688 cat >conftest.$ac_ext <<_ACEOF
33691 cat confdefs.h >>conftest.$ac_ext
33692 cat >>conftest.$ac_ext <<_ACEOF
33693 /* end confdefs.h. */
33696 # include <fcntl.h>
33697 # include <cam/cam.h>
33698 # include <cam/cam_ccb.h>
33699 # include <cam/scsi/scsi_message.h>
33700 # include <cam/scsi/scsi_pass.h>
33701 # include <camlib.h>
33707 struct cam_device *curdev;
33709 curdev = cam_open_pass("", O_RDWR, NULL);
33715 rm -f conftest.$ac_objext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33717 (eval $ac_compile) 2>conftest.er1
33719 grep -v '^ *+' conftest.er1 >conftest.err
33721 cat conftest.err >&5
33722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723 (exit $ac_status); } &&
33724 { ac_try='test -z "$ac_c_werror_flag"
33725 || test ! -s conftest.err'
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; } &&
33731 { ac_try='test -s conftest.$ac_objext'
33732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33733 (eval $ac_try) 2>&5
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); }; }; then
33737 amanda_cv_cam_scsi=yes
33739 echo "$as_me: failed program was:" >&5
33740 sed 's/^/| /' conftest.$ac_ext >&5
33742 amanda_cv_cam_scsi=no
33744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33746 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
33747 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
33748 if test x"$amanda_cv_cam_scsi" = x"yes";then
33750 cat >>confdefs.h <<\_ACEOF
33751 #define HAVE_CAM_LIKE_SCSI 1
33754 NO_SCSI_CHANGER_MODE=false
33756 echo "$as_me:$LINENO: checking for main in -lcam" >&5
33757 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
33758 if test "${ac_cv_lib_cam_main+set}" = set; then
33759 echo $ECHO_N "(cached) $ECHO_C" >&6
33761 ac_check_lib_save_LIBS=$LIBS
33763 cat >conftest.$ac_ext <<_ACEOF
33766 cat confdefs.h >>conftest.$ac_ext
33767 cat >>conftest.$ac_ext <<_ACEOF
33768 /* end confdefs.h. */
33779 rm -f conftest.$ac_objext conftest$ac_exeext
33780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33781 (eval $ac_link) 2>conftest.er1
33783 grep -v '^ *+' conftest.er1 >conftest.err
33785 cat conftest.err >&5
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); } &&
33788 { ac_try='test -z "$ac_c_werror_flag"
33789 || test ! -s conftest.err'
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; } &&
33795 { ac_try='test -s conftest$ac_exeext'
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 ac_cv_lib_cam_main=yes
33803 echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33806 ac_cv_lib_cam_main=no
33808 rm -f conftest.err conftest.$ac_objext \
33809 conftest$ac_exeext conftest.$ac_ext
33810 LIBS=$ac_check_lib_save_LIBS
33812 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
33813 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
33814 if test $ac_cv_lib_cam_main = yes; then
33815 cat >>confdefs.h <<_ACEOF
33816 #define HAVE_LIBCAM 1
33827 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33828 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
33829 echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
33830 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
33831 if test "${amanda_cv_bsd_scsi+set}" = set; then
33832 echo $ECHO_N "(cached) $ECHO_C" >&6
33834 cat >conftest.$ac_ext <<_ACEOF
33837 cat confdefs.h >>conftest.$ac_ext
33838 cat >>conftest.$ac_ext <<_ACEOF
33839 /* end confdefs.h. */
33841 #include <sys/types.h>
33842 #include <sys/scsiio.h>
33843 #include <sys/mtio.h>
33851 ioctl(device, SCIOCCOMMAND, &Command);
33857 rm -f conftest.$ac_objext
33858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33859 (eval $ac_compile) 2>conftest.er1
33861 grep -v '^ *+' conftest.er1 >conftest.err
33863 cat conftest.err >&5
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); } &&
33866 { ac_try='test -z "$ac_c_werror_flag"
33867 || test ! -s conftest.err'
33868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869 (eval $ac_try) 2>&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); }; } &&
33873 { ac_try='test -s conftest.$ac_objext'
33874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33875 (eval $ac_try) 2>&5
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); }; }; then
33879 amanda_cv_bsd_scsi=yes
33881 echo "$as_me: failed program was:" >&5
33882 sed 's/^/| /' conftest.$ac_ext >&5
33884 amanda_cv_bsd_scsi=no
33886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33888 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
33889 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
33890 if test x"$amanda_cv_bsd_scsi" = x"yes";then
33892 cat >>confdefs.h <<\_ACEOF
33893 #define HAVE_BSD_LIKE_SCSI 1
33896 NO_SCSI_CHANGER_MODE=false
33900 if test x"$ac_cv_header_chio_h" = x"yes" ||
33901 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
33902 if test x"$ac_cv_header_camlib_h" != x"yes"; then
33903 if $NO_SCSI_CHANGER_MODE; then
33904 NO_SCSI_CHANGER_MODE=false
33906 NO_CHIO_CHANGER_MODE=false
33912 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
33913 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
33914 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
33915 echo $ECHO_N "(cached) $ECHO_C" >&6
33917 ac_check_lib_save_LIBS=$LIBS
33918 LIBS="-lcur_colr $LIBS"
33919 cat >conftest.$ac_ext <<_ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h. */
33935 rm -f conftest.$ac_objext conftest$ac_exeext
33936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33937 (eval $ac_link) 2>conftest.er1
33939 grep -v '^ *+' conftest.er1 >conftest.err
33941 cat conftest.err >&5
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); } &&
33944 { ac_try='test -z "$ac_c_werror_flag"
33945 || test ! -s conftest.err'
33946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947 (eval $ac_try) 2>&5
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); }; } &&
33951 { ac_try='test -s conftest$ac_exeext'
33952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953 (eval $ac_try) 2>&5
33955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); }; }; then
33957 ac_cv_lib_cur_colr_main=yes
33959 echo "$as_me: failed program was:" >&5
33960 sed 's/^/| /' conftest.$ac_ext >&5
33962 ac_cv_lib_cur_colr_main=no
33964 rm -f conftest.err conftest.$ac_objext \
33965 conftest$ac_exeext conftest.$ac_ext
33966 LIBS=$ac_check_lib_save_LIBS
33968 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
33969 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
33970 if test $ac_cv_lib_cur_colr_main = yes; then
33971 cat >>confdefs.h <<_ACEOF
33972 #define HAVE_LIBCUR_COLR 1
33975 LIBS="-lcur_colr $LIBS"
33981 echo "$as_me:$LINENO: checking for main in -lintl" >&5
33982 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
33983 if test "${ac_cv_lib_intl_main+set}" = set; then
33984 echo $ECHO_N "(cached) $ECHO_C" >&6
33986 ac_check_lib_save_LIBS=$LIBS
33987 LIBS="-lintl $LIBS"
33988 cat >conftest.$ac_ext <<_ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h. */
34004 rm -f conftest.$ac_objext conftest$ac_exeext
34005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34006 (eval $ac_link) 2>conftest.er1
34008 grep -v '^ *+' conftest.er1 >conftest.err
34010 cat conftest.err >&5
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); } &&
34013 { ac_try='test -z "$ac_c_werror_flag"
34014 || test ! -s conftest.err'
34015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016 (eval $ac_try) 2>&5
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; } &&
34020 { ac_try='test -s conftest$ac_exeext'
34021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34022 (eval $ac_try) 2>&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; }; then
34026 ac_cv_lib_intl_main=yes
34028 echo "$as_me: failed program was:" >&5
34029 sed 's/^/| /' conftest.$ac_ext >&5
34031 ac_cv_lib_intl_main=no
34033 rm -f conftest.err conftest.$ac_objext \
34034 conftest$ac_exeext conftest.$ac_ext
34035 LIBS=$ac_check_lib_save_LIBS
34037 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
34038 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
34039 if test $ac_cv_lib_intl_main = yes; then
34040 cat >>confdefs.h <<_ACEOF
34041 #define HAVE_LIBINTL 1
34044 LIBS="-lintl $LIBS"
34052 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34053 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34054 if test "${ac_cv_lib_socket_main+set}" = set; then
34055 echo $ECHO_N "(cached) $ECHO_C" >&6
34057 ac_check_lib_save_LIBS=$LIBS
34058 LIBS="-lsocket $LIBS"
34059 cat >conftest.$ac_ext <<_ACEOF
34062 cat confdefs.h >>conftest.$ac_ext
34063 cat >>conftest.$ac_ext <<_ACEOF
34064 /* end confdefs.h. */
34075 rm -f conftest.$ac_objext conftest$ac_exeext
34076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34077 (eval $ac_link) 2>conftest.er1
34079 grep -v '^ *+' conftest.er1 >conftest.err
34081 cat conftest.err >&5
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); } &&
34084 { ac_try='test -z "$ac_c_werror_flag"
34085 || test ! -s conftest.err'
34086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34087 (eval $ac_try) 2>&5
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); }; } &&
34091 { ac_try='test -s conftest$ac_exeext'
34092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34093 (eval $ac_try) 2>&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); }; }; then
34097 ac_cv_lib_socket_main=yes
34099 echo "$as_me: failed program was:" >&5
34100 sed 's/^/| /' conftest.$ac_ext >&5
34102 ac_cv_lib_socket_main=no
34104 rm -f conftest.err conftest.$ac_objext \
34105 conftest$ac_exeext conftest.$ac_ext
34106 LIBS=$ac_check_lib_save_LIBS
34108 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34109 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34110 if test $ac_cv_lib_socket_main = yes; then
34111 cat >>confdefs.h <<_ACEOF
34112 #define HAVE_LIBSOCKET 1
34115 LIBS="-lsocket $LIBS"
34122 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
34123 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
34124 if test "${ac_cv_lib_resolv_main+set}" = set; then
34125 echo $ECHO_N "(cached) $ECHO_C" >&6
34127 ac_check_lib_save_LIBS=$LIBS
34128 LIBS="-lresolv $LIBS"
34129 cat >conftest.$ac_ext <<_ACEOF
34132 cat confdefs.h >>conftest.$ac_ext
34133 cat >>conftest.$ac_ext <<_ACEOF
34134 /* end confdefs.h. */
34145 rm -f conftest.$ac_objext conftest$ac_exeext
34146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34147 (eval $ac_link) 2>conftest.er1
34149 grep -v '^ *+' conftest.er1 >conftest.err
34151 cat conftest.err >&5
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } &&
34154 { ac_try='test -z "$ac_c_werror_flag"
34155 || test ! -s conftest.err'
34156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34157 (eval $ac_try) 2>&5
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); }; } &&
34161 { ac_try='test -s conftest$ac_exeext'
34162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163 (eval $ac_try) 2>&5
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); }; }; then
34167 ac_cv_lib_resolv_main=yes
34169 echo "$as_me: failed program was:" >&5
34170 sed 's/^/| /' conftest.$ac_ext >&5
34172 ac_cv_lib_resolv_main=no
34174 rm -f conftest.err conftest.$ac_objext \
34175 conftest$ac_exeext conftest.$ac_ext
34176 LIBS=$ac_check_lib_save_LIBS
34178 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
34179 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
34180 if test $ac_cv_lib_resolv_main = yes; then
34181 cat >>confdefs.h <<_ACEOF
34182 #define HAVE_LIBRESOLV 1
34185 LIBS="-lresolv $LIBS"
34190 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
34191 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
34192 if test "${ac_cv_lib_nsl_main+set}" = set; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34195 ac_check_lib_save_LIBS=$LIBS
34197 cat >conftest.$ac_ext <<_ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h. */
34213 rm -f conftest.$ac_objext conftest$ac_exeext
34214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34215 (eval $ac_link) 2>conftest.er1
34217 grep -v '^ *+' conftest.er1 >conftest.err
34219 cat conftest.err >&5
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); } &&
34222 { ac_try='test -z "$ac_c_werror_flag"
34223 || test ! -s conftest.err'
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; } &&
34229 { ac_try='test -s conftest$ac_exeext'
34230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231 (eval $ac_try) 2>&5
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); }; }; then
34235 ac_cv_lib_nsl_main=yes
34237 echo "$as_me: failed program was:" >&5
34238 sed 's/^/| /' conftest.$ac_ext >&5
34240 ac_cv_lib_nsl_main=no
34242 rm -f conftest.err conftest.$ac_objext \
34243 conftest$ac_exeext conftest.$ac_ext
34244 LIBS=$ac_check_lib_save_LIBS
34246 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
34247 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
34248 if test $ac_cv_lib_nsl_main = yes; then
34249 cat >>confdefs.h <<_ACEOF
34250 #define HAVE_LIBNSL 1
34258 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34259 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34260 if test "${ac_cv_lib_socket_main+set}" = set; then
34261 echo $ECHO_N "(cached) $ECHO_C" >&6
34263 ac_check_lib_save_LIBS=$LIBS
34264 LIBS="-lsocket $LIBS"
34265 cat >conftest.$ac_ext <<_ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h. */
34281 rm -f conftest.$ac_objext conftest$ac_exeext
34282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34283 (eval $ac_link) 2>conftest.er1
34285 grep -v '^ *+' conftest.er1 >conftest.err
34287 cat conftest.err >&5
34288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34289 (exit $ac_status); } &&
34290 { ac_try='test -z "$ac_c_werror_flag"
34291 || test ! -s conftest.err'
34292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34293 (eval $ac_try) 2>&5
34295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296 (exit $ac_status); }; } &&
34297 { ac_try='test -s conftest$ac_exeext'
34298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299 (eval $ac_try) 2>&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); }; }; then
34303 ac_cv_lib_socket_main=yes
34305 echo "$as_me: failed program was:" >&5
34306 sed 's/^/| /' conftest.$ac_ext >&5
34308 ac_cv_lib_socket_main=no
34310 rm -f conftest.err conftest.$ac_objext \
34311 conftest$ac_exeext conftest.$ac_ext
34312 LIBS=$ac_check_lib_save_LIBS
34314 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34315 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34316 if test $ac_cv_lib_socket_main = yes; then
34317 cat >>confdefs.h <<_ACEOF
34318 #define HAVE_LIBSOCKET 1
34321 LIBS="-lsocket $LIBS"
34326 echo "$as_me:$LINENO: checking for main in -lsun" >&5
34327 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
34328 if test "${ac_cv_lib_sun_main+set}" = set; then
34329 echo $ECHO_N "(cached) $ECHO_C" >&6
34331 ac_check_lib_save_LIBS=$LIBS
34333 cat >conftest.$ac_ext <<_ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h. */
34349 rm -f conftest.$ac_objext conftest$ac_exeext
34350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34351 (eval $ac_link) 2>conftest.er1
34353 grep -v '^ *+' conftest.er1 >conftest.err
34355 cat conftest.err >&5
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); } &&
34358 { ac_try='test -z "$ac_c_werror_flag"
34359 || test ! -s conftest.err'
34360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361 (eval $ac_try) 2>&5
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); }; } &&
34365 { ac_try='test -s conftest$ac_exeext'
34366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34367 (eval $ac_try) 2>&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); }; }; then
34371 ac_cv_lib_sun_main=yes
34373 echo "$as_me: failed program was:" >&5
34374 sed 's/^/| /' conftest.$ac_ext >&5
34376 ac_cv_lib_sun_main=no
34378 rm -f conftest.err conftest.$ac_objext \
34379 conftest$ac_exeext conftest.$ac_ext
34380 LIBS=$ac_check_lib_save_LIBS
34382 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
34383 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
34384 if test $ac_cv_lib_sun_main = yes; then
34385 cat >>confdefs.h <<_ACEOF
34386 #define HAVE_LIBSUN 1
34397 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
34398 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
34399 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
34400 echo $ECHO_N "(cached) $ECHO_C" >&6
34402 ac_check_lib_save_LIBS=$LIBS
34403 LIBS="-ltermcap $LIBS"
34404 cat >conftest.$ac_ext <<_ACEOF
34407 cat confdefs.h >>conftest.$ac_ext
34408 cat >>conftest.$ac_ext <<_ACEOF
34409 /* end confdefs.h. */
34411 /* Override any gcc2 internal prototype to avoid an error. */
34415 /* We use char because int might match the return type of a gcc2
34416 builtin and then its argument prototype would still apply. */
34426 rm -f conftest.$ac_objext conftest$ac_exeext
34427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34428 (eval $ac_link) 2>conftest.er1
34430 grep -v '^ *+' conftest.er1 >conftest.err
34432 cat conftest.err >&5
34433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434 (exit $ac_status); } &&
34435 { ac_try='test -z "$ac_c_werror_flag"
34436 || test ! -s conftest.err'
34437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34438 (eval $ac_try) 2>&5
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); }; } &&
34442 { ac_try='test -s conftest$ac_exeext'
34443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444 (eval $ac_try) 2>&5
34446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447 (exit $ac_status); }; }; then
34448 ac_cv_lib_termcap_tgetent=yes
34450 echo "$as_me: failed program was:" >&5
34451 sed 's/^/| /' conftest.$ac_ext >&5
34453 ac_cv_lib_termcap_tgetent=no
34455 rm -f conftest.err conftest.$ac_objext \
34456 conftest$ac_exeext conftest.$ac_ext
34457 LIBS=$ac_check_lib_save_LIBS
34459 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
34460 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
34461 if test $ac_cv_lib_termcap_tgetent = yes; then
34462 cat >>confdefs.h <<_ACEOF
34463 #define HAVE_LIBTERMCAP 1
34466 LIBS="-ltermcap $LIBS"
34470 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
34472 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
34473 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
34474 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
34475 echo $ECHO_N "(cached) $ECHO_C" >&6
34477 ac_check_lib_save_LIBS=$LIBS
34478 LIBS="-lcurses $LIBS"
34479 cat >conftest.$ac_ext <<_ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h. */
34486 /* Override any gcc2 internal prototype to avoid an error. */
34490 /* We use char because int might match the return type of a gcc2
34491 builtin and then its argument prototype would still apply. */
34501 rm -f conftest.$ac_objext conftest$ac_exeext
34502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34503 (eval $ac_link) 2>conftest.er1
34505 grep -v '^ *+' conftest.er1 >conftest.err
34507 cat conftest.err >&5
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); } &&
34510 { ac_try='test -z "$ac_c_werror_flag"
34511 || test ! -s conftest.err'
34512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513 (eval $ac_try) 2>&5
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); }; } &&
34517 { ac_try='test -s conftest$ac_exeext'
34518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519 (eval $ac_try) 2>&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; }; then
34523 ac_cv_lib_curses_tgetent=yes
34525 echo "$as_me: failed program was:" >&5
34526 sed 's/^/| /' conftest.$ac_ext >&5
34528 ac_cv_lib_curses_tgetent=no
34530 rm -f conftest.err conftest.$ac_objext \
34531 conftest$ac_exeext conftest.$ac_ext
34532 LIBS=$ac_check_lib_save_LIBS
34534 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
34535 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
34536 if test $ac_cv_lib_curses_tgetent = yes; then
34537 cat >>confdefs.h <<_ACEOF
34538 #define HAVE_LIBCURSES 1
34541 LIBS="-lcurses $LIBS"
34545 if test "x$ac_cv_lib_curses_tgetent" != xyes; then
34547 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
34548 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
34549 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
34550 echo $ECHO_N "(cached) $ECHO_C" >&6
34552 ac_check_lib_save_LIBS=$LIBS
34553 LIBS="-lncurses $LIBS"
34554 cat >conftest.$ac_ext <<_ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h. */
34561 /* Override any gcc2 internal prototype to avoid an error. */
34565 /* We use char because int might match the return type of a gcc2
34566 builtin and then its argument prototype would still apply. */
34576 rm -f conftest.$ac_objext conftest$ac_exeext
34577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34578 (eval $ac_link) 2>conftest.er1
34580 grep -v '^ *+' conftest.er1 >conftest.err
34582 cat conftest.err >&5
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); } &&
34585 { ac_try='test -z "$ac_c_werror_flag"
34586 || test ! -s conftest.err'
34587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34588 (eval $ac_try) 2>&5
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); }; } &&
34592 { ac_try='test -s conftest$ac_exeext'
34593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34594 (eval $ac_try) 2>&5
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); }; }; then
34598 ac_cv_lib_ncurses_tgetent=yes
34600 echo "$as_me: failed program was:" >&5
34601 sed 's/^/| /' conftest.$ac_ext >&5
34603 ac_cv_lib_ncurses_tgetent=no
34605 rm -f conftest.err conftest.$ac_objext \
34606 conftest$ac_exeext conftest.$ac_ext
34607 LIBS=$ac_check_lib_save_LIBS
34609 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
34610 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
34611 if test $ac_cv_lib_ncurses_tgetent = yes; then
34612 cat >>confdefs.h <<_ACEOF
34613 #define HAVE_LIBNCURSES 1
34616 LIBS="-lncurses $LIBS"
34622 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
34623 test "x$ac_cv_lib_curses_tgetent" = xyes ||
34624 test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
34626 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
34627 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
34628 if test "${ac_cv_lib_readline_readline+set}" = set; then
34629 echo $ECHO_N "(cached) $ECHO_C" >&6
34631 ac_check_lib_save_LIBS=$LIBS
34632 LIBS="-lreadline $LIBS"
34633 cat >conftest.$ac_ext <<_ACEOF
34636 cat confdefs.h >>conftest.$ac_ext
34637 cat >>conftest.$ac_ext <<_ACEOF
34638 /* end confdefs.h. */
34640 /* Override any gcc2 internal prototype to avoid an error. */
34644 /* We use char because int might match the return type of a gcc2
34645 builtin and then its argument prototype would still apply. */
34655 rm -f conftest.$ac_objext conftest$ac_exeext
34656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34657 (eval $ac_link) 2>conftest.er1
34659 grep -v '^ *+' conftest.er1 >conftest.err
34661 cat conftest.err >&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); } &&
34664 { ac_try='test -z "$ac_c_werror_flag"
34665 || test ! -s conftest.err'
34666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667 (eval $ac_try) 2>&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; } &&
34671 { ac_try='test -s conftest$ac_exeext'
34672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34673 (eval $ac_try) 2>&5
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; }; then
34677 ac_cv_lib_readline_readline=yes
34679 echo "$as_me: failed program was:" >&5
34680 sed 's/^/| /' conftest.$ac_ext >&5
34682 ac_cv_lib_readline_readline=no
34684 rm -f conftest.err conftest.$ac_objext \
34685 conftest$ac_exeext conftest.$ac_ext
34686 LIBS=$ac_check_lib_save_LIBS
34688 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
34689 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
34690 if test $ac_cv_lib_readline_readline = yes; then
34691 cat >>confdefs.h <<_ACEOF
34692 #define HAVE_LIBREADLINE 1
34695 LIBS="-lreadline $LIBS"
34699 if test "x$ac_cv_lib_readline_readline" = xyes; then
34700 READLINE_LIBS="-lreadline"
34703 { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
34704 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
34707 { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
34708 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
34711 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
34712 if test "x$ac_cv_header_vtblc_h" = xyes; then
34714 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
34715 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
34716 if test "${ac_cv_lib_vtblc_main+set}" = set; then
34717 echo $ECHO_N "(cached) $ECHO_C" >&6
34719 ac_check_lib_save_LIBS=$LIBS
34720 LIBS="-lvtblc $LIBS"
34721 cat >conftest.$ac_ext <<_ACEOF
34724 cat confdefs.h >>conftest.$ac_ext
34725 cat >>conftest.$ac_ext <<_ACEOF
34726 /* end confdefs.h. */
34737 rm -f conftest.$ac_objext conftest$ac_exeext
34738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34739 (eval $ac_link) 2>conftest.er1
34741 grep -v '^ *+' conftest.er1 >conftest.err
34743 cat conftest.err >&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); } &&
34746 { ac_try='test -z "$ac_c_werror_flag"
34747 || test ! -s conftest.err'
34748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749 (eval $ac_try) 2>&5
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; } &&
34753 { ac_try='test -s conftest$ac_exeext'
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 ac_cv_lib_vtblc_main=yes
34761 echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34764 ac_cv_lib_vtblc_main=no
34766 rm -f conftest.err conftest.$ac_objext \
34767 conftest$ac_exeext conftest.$ac_ext
34768 LIBS=$ac_check_lib_save_LIBS
34770 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
34771 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
34772 if test $ac_cv_lib_vtblc_main = yes; then
34773 cat >>confdefs.h <<_ACEOF
34774 #define HAVE_LIBVTBLC 1
34777 LIBS="-lvtblc $LIBS"
34781 if test "x$ac_cv_lib_vtblc_main" != xyes; then
34782 { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
34783 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
34786 { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
34787 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
34792 echo "$as_me:$LINENO: checking for modf in -lm" >&5
34793 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
34794 if test "${ac_cv_lib_m_modf+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34797 ac_check_lib_save_LIBS=$LIBS
34799 cat >conftest.$ac_ext <<_ACEOF
34802 cat confdefs.h >>conftest.$ac_ext
34803 cat >>conftest.$ac_ext <<_ACEOF
34804 /* end confdefs.h. */
34806 /* Override any gcc2 internal prototype to avoid an error. */
34810 /* We use char because int might match the return type of a gcc2
34811 builtin and then its argument prototype would still apply. */
34821 rm -f conftest.$ac_objext conftest$ac_exeext
34822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34823 (eval $ac_link) 2>conftest.er1
34825 grep -v '^ *+' conftest.er1 >conftest.err
34827 cat conftest.err >&5
34828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829 (exit $ac_status); } &&
34830 { ac_try='test -z "$ac_c_werror_flag"
34831 || test ! -s conftest.err'
34832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833 (eval $ac_try) 2>&5
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); }; } &&
34837 { ac_try='test -s conftest$ac_exeext'
34838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34839 (eval $ac_try) 2>&5
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); }; }; then
34843 ac_cv_lib_m_modf=yes
34845 echo "$as_me: failed program was:" >&5
34846 sed 's/^/| /' conftest.$ac_ext >&5
34848 ac_cv_lib_m_modf=no
34850 rm -f conftest.err conftest.$ac_objext \
34851 conftest$ac_exeext conftest.$ac_ext
34852 LIBS=$ac_check_lib_save_LIBS
34854 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
34855 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
34856 if test $ac_cv_lib_m_modf = yes; then
34857 cat >>confdefs.h <<_ACEOF
34858 #define HAVE_LIBM 1
34867 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
34868 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
34869 mt_flags_result="found"
34870 cat >conftest.$ac_ext <<_ACEOF
34873 cat confdefs.h >>conftest.$ac_ext
34874 cat >>conftest.$ac_ext <<_ACEOF
34875 /* end confdefs.h. */
34878 #include <sys/types.h>
34879 #include <sys/mtio.h>
34894 rm -f conftest.$ac_objext
34895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34896 (eval $ac_compile) 2>conftest.er1
34898 grep -v '^ *+' conftest.er1 >conftest.err
34900 cat conftest.err >&5
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); } &&
34903 { ac_try='test -z "$ac_c_werror_flag"
34904 || test ! -s conftest.err'
34905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906 (eval $ac_try) 2>&5
34908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909 (exit $ac_status); }; } &&
34910 { ac_try='test -s conftest.$ac_objext'
34911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34912 (eval $ac_try) 2>&5
34914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915 (exit $ac_status); }; }; then
34917 cat >>confdefs.h <<\_ACEOF
34918 #define HAVE_MT_FLAGS 1
34922 echo "$as_me: failed program was:" >&5
34923 sed 's/^/| /' conftest.$ac_ext >&5
34925 mt_flags_result="not found"
34927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34928 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
34929 echo "${ECHO_T}$mt_flags_result" >&6
34931 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
34932 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
34933 mt_fileno_result="found"
34934 cat >conftest.$ac_ext <<_ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h. */
34942 #include <sys/types.h>
34943 #include <sys/mtio.h>
34952 ds = buf.mt_fileno;
34958 rm -f conftest.$ac_objext
34959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34960 (eval $ac_compile) 2>conftest.er1
34962 grep -v '^ *+' conftest.er1 >conftest.err
34964 cat conftest.err >&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } &&
34967 { ac_try='test -z "$ac_c_werror_flag"
34968 || test ! -s conftest.err'
34969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970 (eval $ac_try) 2>&5
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); }; } &&
34974 { ac_try='test -s conftest.$ac_objext'
34975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34976 (eval $ac_try) 2>&5
34978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979 (exit $ac_status); }; }; then
34981 cat >>confdefs.h <<\_ACEOF
34982 #define HAVE_MT_FILENO 1
34986 echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34989 mt_fileno_result="not found"
34991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34992 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
34993 echo "${ECHO_T}$mt_fileno_result" >&6
34995 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
34996 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
34997 mt_blkno_result="found"
34998 cat >conftest.$ac_ext <<_ACEOF
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h. */
35006 #include <sys/types.h>
35007 #include <sys/mtio.h>
35022 rm -f conftest.$ac_objext
35023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35024 (eval $ac_compile) 2>conftest.er1
35026 grep -v '^ *+' conftest.er1 >conftest.err
35028 cat conftest.err >&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } &&
35031 { ac_try='test -z "$ac_c_werror_flag"
35032 || test ! -s conftest.err'
35033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35034 (eval $ac_try) 2>&5
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); }; } &&
35038 { ac_try='test -s conftest.$ac_objext'
35039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040 (eval $ac_try) 2>&5
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); }; }; then
35045 cat >>confdefs.h <<\_ACEOF
35046 #define HAVE_MT_BLKNO 1
35050 echo "$as_me: failed program was:" >&5
35051 sed 's/^/| /' conftest.$ac_ext >&5
35053 mt_blkno_result="not found"
35055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35056 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
35057 echo "${ECHO_T}$mt_blkno_result" >&6
35059 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
35060 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
35061 mt_dsreg_result="found"
35062 cat >conftest.$ac_ext <<_ACEOF
35065 cat confdefs.h >>conftest.$ac_ext
35066 cat >>conftest.$ac_ext <<_ACEOF
35067 /* end confdefs.h. */
35070 #include <sys/types.h>
35071 #include <sys/mtio.h>
35086 rm -f conftest.$ac_objext
35087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35088 (eval $ac_compile) 2>conftest.er1
35090 grep -v '^ *+' conftest.er1 >conftest.err
35092 cat conftest.err >&5
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); } &&
35095 { ac_try='test -z "$ac_c_werror_flag"
35096 || test ! -s conftest.err'
35097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098 (eval $ac_try) 2>&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); }; } &&
35102 { ac_try='test -s conftest.$ac_objext'
35103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104 (eval $ac_try) 2>&5
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); }; }; then
35109 cat >>confdefs.h <<\_ACEOF
35110 #define HAVE_MT_DSREG 1
35114 echo "$as_me: failed program was:" >&5
35115 sed 's/^/| /' conftest.$ac_ext >&5
35117 mt_dsreg_result="not found"
35119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35120 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
35121 echo "${ECHO_T}$mt_dsreg_result" >&6
35123 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
35124 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
35125 mt_erreg_result="found"
35126 cat >conftest.$ac_ext <<_ACEOF
35129 cat confdefs.h >>conftest.$ac_ext
35130 cat >>conftest.$ac_ext <<_ACEOF
35131 /* end confdefs.h. */
35134 #include <sys/types.h>
35135 #include <sys/mtio.h>
35150 rm -f conftest.$ac_objext
35151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35152 (eval $ac_compile) 2>conftest.er1
35154 grep -v '^ *+' conftest.er1 >conftest.err
35156 cat conftest.err >&5
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); } &&
35159 { ac_try='test -z "$ac_c_werror_flag"
35160 || test ! -s conftest.err'
35161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162 (eval $ac_try) 2>&5
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); }; } &&
35166 { ac_try='test -s conftest.$ac_objext'
35167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35168 (eval $ac_try) 2>&5
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); }; }; then
35173 cat >>confdefs.h <<\_ACEOF
35174 #define HAVE_MT_ERREG 1
35178 echo "$as_me: failed program was:" >&5
35179 sed 's/^/| /' conftest.$ac_ext >&5
35181 mt_erreg_result="not found"
35183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35184 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
35185 echo "${ECHO_T}$mt_erreg_result" >&6
35193 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
35194 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
35195 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
35196 echo $ECHO_N "(cached) $ECHO_C" >&6
35198 ac_check_lib_save_LIBS=$LIBS
35200 cat >conftest.$ac_ext <<_ACEOF
35203 cat confdefs.h >>conftest.$ac_ext
35204 cat >>conftest.$ac_ext <<_ACEOF
35205 /* end confdefs.h. */
35207 /* Override any gcc2 internal prototype to avoid an error. */
35211 /* We use char because int might match the return type of a gcc2
35212 builtin and then its argument prototype would still apply. */
35222 rm -f conftest.$ac_objext conftest$ac_exeext
35223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35224 (eval $ac_link) 2>conftest.er1
35226 grep -v '^ *+' conftest.er1 >conftest.err
35228 cat conftest.err >&5
35229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230 (exit $ac_status); } &&
35231 { ac_try='test -z "$ac_c_werror_flag"
35232 || test ! -s conftest.err'
35233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35234 (eval $ac_try) 2>&5
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); }; } &&
35238 { ac_try='test -s conftest$ac_exeext'
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; }; then
35244 ac_cv_lib_c_dbm_open=yes
35246 echo "$as_me: failed program was:" >&5
35247 sed 's/^/| /' conftest.$ac_ext >&5
35249 ac_cv_lib_c_dbm_open=no
35251 rm -f conftest.err conftest.$ac_objext \
35252 conftest$ac_exeext conftest.$ac_ext
35253 LIBS=$ac_check_lib_save_LIBS
35255 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
35256 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
35257 if test $ac_cv_lib_c_dbm_open = yes; then
35258 cat >>confdefs.h <<_ACEOF
35259 #define HAVE_LIBC 1
35268 case "$DB_STYLE" in
35270 if test "x$ac_cv_header_db_h" = xyes; then
35272 echo "$as_me:$LINENO: checking for main in -ldb" >&5
35273 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
35274 if test "${ac_cv_lib_db_main+set}" = set; then
35275 echo $ECHO_N "(cached) $ECHO_C" >&6
35277 ac_check_lib_save_LIBS=$LIBS
35279 cat >conftest.$ac_ext <<_ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h. */
35295 rm -f conftest.$ac_objext conftest$ac_exeext
35296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35297 (eval $ac_link) 2>conftest.er1
35299 grep -v '^ *+' conftest.er1 >conftest.err
35301 cat conftest.err >&5
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); } &&
35304 { ac_try='test -z "$ac_c_werror_flag"
35305 || test ! -s conftest.err'
35306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35307 (eval $ac_try) 2>&5
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); }; } &&
35311 { ac_try='test -s conftest$ac_exeext'
35312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35313 (eval $ac_try) 2>&5
35315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 (exit $ac_status); }; }; then
35317 ac_cv_lib_db_main=yes
35319 echo "$as_me: failed program was:" >&5
35320 sed 's/^/| /' conftest.$ac_ext >&5
35322 ac_cv_lib_db_main=no
35324 rm -f conftest.err conftest.$ac_objext \
35325 conftest$ac_exeext conftest.$ac_ext
35326 LIBS=$ac_check_lib_save_LIBS
35328 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
35329 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
35330 if test $ac_cv_lib_db_main = yes; then
35331 cat >>confdefs.h <<_ACEOF
35332 #define HAVE_LIBDB 1
35339 if test "x$ac_cv_lib_db_main" = xyes; then
35341 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
35342 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
35343 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
35344 echo $ECHO_N "(cached) $ECHO_C" >&6
35346 ac_check_lib_save_LIBS=$LIBS
35348 cat >conftest.$ac_ext <<_ACEOF
35351 cat confdefs.h >>conftest.$ac_ext
35352 cat >>conftest.$ac_ext <<_ACEOF
35353 /* end confdefs.h. */
35355 /* Override any gcc2 internal prototype to avoid an error. */
35359 /* We use char because int might match the return type of a gcc2
35360 builtin and then its argument prototype would still apply. */
35370 rm -f conftest.$ac_objext conftest$ac_exeext
35371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35372 (eval $ac_link) 2>conftest.er1
35374 grep -v '^ *+' conftest.er1 >conftest.err
35376 cat conftest.err >&5
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); } &&
35379 { ac_try='test -z "$ac_c_werror_flag"
35380 || test ! -s conftest.err'
35381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35382 (eval $ac_try) 2>&5
35384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35385 (exit $ac_status); }; } &&
35386 { ac_try='test -s conftest$ac_exeext'
35387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35388 (eval $ac_try) 2>&5
35390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); }; }; then
35392 ac_cv_lib_db_dbm_open=yes
35394 echo "$as_me: failed program was:" >&5
35395 sed 's/^/| /' conftest.$ac_ext >&5
35397 ac_cv_lib_db_dbm_open=no
35399 rm -f conftest.err conftest.$ac_objext \
35400 conftest$ac_exeext conftest.$ac_ext
35401 LIBS=$ac_check_lib_save_LIBS
35403 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
35404 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
35405 if test $ac_cv_lib_db_dbm_open = yes; then
35406 cat >>confdefs.h <<_ACEOF
35407 #define HAVE_LIBDB 1
35414 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
35419 { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
35420 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
35423 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35428 { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
35429 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
35434 { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
35435 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
35440 if test "x$ac_cv_header_dbm_h" = xyes; then
35442 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
35443 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
35444 if test "${ac_cv_lib_dbm_main+set}" = set; then
35445 echo $ECHO_N "(cached) $ECHO_C" >&6
35447 ac_check_lib_save_LIBS=$LIBS
35449 cat >conftest.$ac_ext <<_ACEOF
35452 cat confdefs.h >>conftest.$ac_ext
35453 cat >>conftest.$ac_ext <<_ACEOF
35454 /* end confdefs.h. */
35465 rm -f conftest.$ac_objext conftest$ac_exeext
35466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35467 (eval $ac_link) 2>conftest.er1
35469 grep -v '^ *+' conftest.er1 >conftest.err
35471 cat conftest.err >&5
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); } &&
35474 { ac_try='test -z "$ac_c_werror_flag"
35475 || test ! -s conftest.err'
35476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477 (eval $ac_try) 2>&5
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); }; } &&
35481 { ac_try='test -s conftest$ac_exeext'
35482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483 (eval $ac_try) 2>&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); }; }; then
35487 ac_cv_lib_dbm_main=yes
35489 echo "$as_me: failed program was:" >&5
35490 sed 's/^/| /' conftest.$ac_ext >&5
35492 ac_cv_lib_dbm_main=no
35494 rm -f conftest.err conftest.$ac_objext \
35495 conftest$ac_exeext conftest.$ac_ext
35496 LIBS=$ac_check_lib_save_LIBS
35498 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
35499 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
35500 if test $ac_cv_lib_dbm_main = yes; then
35501 cat >>confdefs.h <<_ACEOF
35502 #define HAVE_LIBDBM 1
35509 if test "x$ac_cv_lib_dbm_main" = xyes; then
35511 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35512 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35513 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35514 echo $ECHO_N "(cached) $ECHO_C" >&6
35516 ac_check_lib_save_LIBS=$LIBS
35518 cat >conftest.$ac_ext <<_ACEOF
35521 cat confdefs.h >>conftest.$ac_ext
35522 cat >>conftest.$ac_ext <<_ACEOF
35523 /* end confdefs.h. */
35525 /* Override any gcc2 internal prototype to avoid an error. */
35529 /* We use char because int might match the return type of a gcc2
35530 builtin and then its argument prototype would still apply. */
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542 (eval $ac_link) 2>conftest.er1
35544 grep -v '^ *+' conftest.er1 >conftest.err
35546 cat conftest.err >&5
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); } &&
35549 { ac_try='test -z "$ac_c_werror_flag"
35550 || test ! -s conftest.err'
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; } &&
35556 { ac_try='test -s conftest$ac_exeext'
35557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558 (eval $ac_try) 2>&5
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); }; }; then
35562 ac_cv_lib_dbm_dbm_open=yes
35564 echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35567 ac_cv_lib_dbm_dbm_open=no
35569 rm -f conftest.err conftest.$ac_objext \
35570 conftest$ac_exeext conftest.$ac_ext
35571 LIBS=$ac_check_lib_save_LIBS
35573 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35574 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35575 if test $ac_cv_lib_dbm_dbm_open = yes; then
35576 cat >>confdefs.h <<_ACEOF
35577 #define HAVE_LIBDBM 1
35584 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
35589 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
35590 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
35593 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35598 { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
35599 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
35604 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
35605 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
35610 if test "x$ac_cv_header_ndbm_h" = xyes; then
35612 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
35613 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
35614 if test "${ac_cv_lib_gdbm_main+set}" = set; then
35615 echo $ECHO_N "(cached) $ECHO_C" >&6
35617 ac_check_lib_save_LIBS=$LIBS
35618 LIBS="-lgdbm $LIBS"
35619 cat >conftest.$ac_ext <<_ACEOF
35622 cat confdefs.h >>conftest.$ac_ext
35623 cat >>conftest.$ac_ext <<_ACEOF
35624 /* end confdefs.h. */
35635 rm -f conftest.$ac_objext conftest$ac_exeext
35636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35637 (eval $ac_link) 2>conftest.er1
35639 grep -v '^ *+' conftest.er1 >conftest.err
35641 cat conftest.err >&5
35642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); } &&
35644 { ac_try='test -z "$ac_c_werror_flag"
35645 || test ! -s conftest.err'
35646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647 (eval $ac_try) 2>&5
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); }; } &&
35651 { ac_try='test -s conftest$ac_exeext'
35652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653 (eval $ac_try) 2>&5
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; }; then
35657 ac_cv_lib_gdbm_main=yes
35659 echo "$as_me: failed program was:" >&5
35660 sed 's/^/| /' conftest.$ac_ext >&5
35662 ac_cv_lib_gdbm_main=no
35664 rm -f conftest.err conftest.$ac_objext \
35665 conftest$ac_exeext conftest.$ac_ext
35666 LIBS=$ac_check_lib_save_LIBS
35668 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
35669 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
35670 if test $ac_cv_lib_gdbm_main = yes; then
35671 cat >>confdefs.h <<_ACEOF
35672 #define HAVE_LIBGDBM 1
35675 LIBS="-lgdbm $LIBS"
35679 if test "x$ac_cv_lib_gdbm_main" = xyes; then
35681 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
35682 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
35683 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
35684 echo $ECHO_N "(cached) $ECHO_C" >&6
35686 ac_check_lib_save_LIBS=$LIBS
35687 LIBS="-lgdbm $LIBS"
35688 cat >conftest.$ac_ext <<_ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h. */
35695 /* Override any gcc2 internal prototype to avoid an error. */
35699 /* We use char because int might match the return type of a gcc2
35700 builtin and then its argument prototype would still apply. */
35710 rm -f conftest.$ac_objext conftest$ac_exeext
35711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35712 (eval $ac_link) 2>conftest.er1
35714 grep -v '^ *+' conftest.er1 >conftest.err
35716 cat conftest.err >&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); } &&
35719 { ac_try='test -z "$ac_c_werror_flag"
35720 || test ! -s conftest.err'
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; } &&
35726 { ac_try='test -s conftest$ac_exeext'
35727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35728 (eval $ac_try) 2>&5
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); }; }; then
35732 ac_cv_lib_gdbm_dbm_open=yes
35734 echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35737 ac_cv_lib_gdbm_dbm_open=no
35739 rm -f conftest.err conftest.$ac_objext \
35740 conftest$ac_exeext conftest.$ac_ext
35741 LIBS=$ac_check_lib_save_LIBS
35743 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
35744 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
35745 if test $ac_cv_lib_gdbm_dbm_open = yes; then
35746 cat >>confdefs.h <<_ACEOF
35747 #define HAVE_LIBGDBM 1
35750 LIBS="-lgdbm $LIBS"
35754 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
35759 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
35760 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
35763 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35768 { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
35769 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
35774 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
35775 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
35780 if test "x$ac_cv_header_ndbm_h" = xyes; then
35782 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
35783 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
35784 if test "${ac_cv_lib_ndbm_main+set}" = set; then
35785 echo $ECHO_N "(cached) $ECHO_C" >&6
35787 ac_check_lib_save_LIBS=$LIBS
35788 LIBS="-lndbm $LIBS"
35789 cat >conftest.$ac_ext <<_ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h. */
35805 rm -f conftest.$ac_objext conftest$ac_exeext
35806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35807 (eval $ac_link) 2>conftest.er1
35809 grep -v '^ *+' conftest.er1 >conftest.err
35811 cat conftest.err >&5
35812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813 (exit $ac_status); } &&
35814 { ac_try='test -z "$ac_c_werror_flag"
35815 || test ! -s conftest.err'
35816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817 (eval $ac_try) 2>&5
35819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 (exit $ac_status); }; } &&
35821 { ac_try='test -s conftest$ac_exeext'
35822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35823 (eval $ac_try) 2>&5
35825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826 (exit $ac_status); }; }; then
35827 ac_cv_lib_ndbm_main=yes
35829 echo "$as_me: failed program was:" >&5
35830 sed 's/^/| /' conftest.$ac_ext >&5
35832 ac_cv_lib_ndbm_main=no
35834 rm -f conftest.err conftest.$ac_objext \
35835 conftest$ac_exeext conftest.$ac_ext
35836 LIBS=$ac_check_lib_save_LIBS
35838 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
35839 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
35840 if test $ac_cv_lib_ndbm_main = yes; then
35841 cat >>confdefs.h <<_ACEOF
35842 #define HAVE_LIBNDBM 1
35845 LIBS="-lndbm $LIBS"
35849 if test "x$ac_cv_lib_ndbm_main" = xyes; then
35851 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35852 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35853 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35854 echo $ECHO_N "(cached) $ECHO_C" >&6
35856 ac_check_lib_save_LIBS=$LIBS
35857 LIBS="-lndbm $LIBS"
35858 cat >conftest.$ac_ext <<_ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h. */
35865 /* Override any gcc2 internal prototype to avoid an error. */
35869 /* We use char because int might match the return type of a gcc2
35870 builtin and then its argument prototype would still apply. */
35880 rm -f conftest.$ac_objext conftest$ac_exeext
35881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35882 (eval $ac_link) 2>conftest.er1
35884 grep -v '^ *+' conftest.er1 >conftest.err
35886 cat conftest.err >&5
35887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888 (exit $ac_status); } &&
35889 { ac_try='test -z "$ac_c_werror_flag"
35890 || test ! -s conftest.err'
35891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892 (eval $ac_try) 2>&5
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); }; } &&
35896 { ac_try='test -s conftest$ac_exeext'
35897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898 (eval $ac_try) 2>&5
35900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901 (exit $ac_status); }; }; then
35902 ac_cv_lib_ndbm_dbm_open=yes
35904 echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35907 ac_cv_lib_ndbm_dbm_open=no
35909 rm -f conftest.err conftest.$ac_objext \
35910 conftest$ac_exeext conftest.$ac_ext
35911 LIBS=$ac_check_lib_save_LIBS
35913 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35914 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35915 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35916 cat >>confdefs.h <<_ACEOF
35917 #define HAVE_LIBNDBM 1
35920 LIBS="-lndbm $LIBS"
35924 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
35929 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
35930 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
35933 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35938 { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
35939 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
35944 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
35945 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
35955 if test -z "$DB_STYLE"; then
35962 if test "x$DB_STYLE" = xtext; then
35964 cat >>confdefs.h <<\_ACEOF
35969 echo "$as_me:$LINENO: checking for database" >&5
35970 echo $ECHO_N "checking for database... $ECHO_C" >&6
35971 echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
35972 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
35973 case "$DB_STYLE" in
35975 cat >>confdefs.h <<\_ACEOF
35980 cat >>confdefs.h <<\_ACEOF
35981 #define USE_DBM_H 1
35985 cat >>confdefs.h <<\_ACEOF
35986 #define USE_GDBM_H 1
35990 cat >>confdefs.h <<\_ACEOF
35991 #define USE_NDBM_H 1
35996 echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
35997 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
35998 if test "${amanda_cv_struct_datum+set}" = set; then
35999 echo $ECHO_N "(cached) $ECHO_C" >&6
36002 cat >conftest.$ac_ext <<_ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h. */
36009 #if defined(USE_DB_H)
36012 # if defined(USE_DBM_H)
36015 # if defined(USE_NDBM_H)
36031 rm -f conftest.$ac_objext
36032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36033 (eval $ac_compile) 2>conftest.er1
36035 grep -v '^ *+' conftest.er1 >conftest.err
36037 cat conftest.err >&5
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); } &&
36040 { ac_try='test -z "$ac_c_werror_flag"
36041 || test ! -s conftest.err'
36042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36043 (eval $ac_try) 2>&5
36045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046 (exit $ac_status); }; } &&
36047 { ac_try='test -s conftest.$ac_objext'
36048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36049 (eval $ac_try) 2>&5
36051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); }; }; then
36053 amanda_cv_struct_datum=yes
36055 echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36058 amanda_cv_struct_datum=no
36061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36064 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
36065 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
36066 if test "x$amanda_cv_struct_datum" = xyes; then
36068 cat >>confdefs.h <<\_ACEOF
36069 #define HAVE_STRUCT_DATUM 1
36075 case "$DB_STYLE" in
36077 gdbm) DB_EXT='""';;
36078 dbm | ndbm) DB_EXT=".dir .pag";;
36079 text) DB_EXT='""';;
36084 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
36085 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
36086 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
36087 echo $ECHO_N "(cached) $ECHO_C" >&6
36089 cat >conftest.$ac_ext <<_ACEOF
36092 cat confdefs.h >>conftest.$ac_ext
36093 cat >>conftest.$ac_ext <<_ACEOF
36094 /* end confdefs.h. */
36096 #include <limits.h>
36097 #ifdef _POSIX2_RE_DUP_MAX
36102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36103 $EGREP "yes" >/dev/null 2>&1; then
36104 amanda_cv_have__posix2_re_dup_max=yes
36106 amanda_cv_have__posix2_re_dup_max=no
36111 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
36112 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
36113 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
36115 cat >>confdefs.h <<\_ACEOF
36116 #define HAVE__POSIX2_RE_DUP_MAX 1
36121 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
36122 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
36123 if test "${amanda_cv_have_char_min+set}" = set; then
36124 echo $ECHO_N "(cached) $ECHO_C" >&6
36126 cat >conftest.$ac_ext <<_ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h. */
36133 #include <limits.h>
36139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36140 $EGREP "yes" >/dev/null 2>&1; then
36141 amanda_cv_have_char_min=yes
36143 amanda_cv_have_char_min=no
36148 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
36149 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
36150 if test "x$amanda_cv_have_char_min" = xyes; then
36152 cat >>confdefs.h <<\_ACEOF
36153 #define HAVE_CHAR_MIN 1
36158 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
36159 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
36160 if test "${amanda_cv_have_char_max+set}" = set; then
36161 echo $ECHO_N "(cached) $ECHO_C" >&6
36163 cat >conftest.$ac_ext <<_ACEOF
36166 cat confdefs.h >>conftest.$ac_ext
36167 cat >>conftest.$ac_ext <<_ACEOF
36168 /* end confdefs.h. */
36170 #include <limits.h>
36176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36177 $EGREP "yes" >/dev/null 2>&1; then
36178 amanda_cv_have_char_max=yes
36180 amanda_cv_have_char_max=no
36185 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
36186 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
36187 if test "x$amanda_cv_have_char_max" = xyes; then
36189 cat >>confdefs.h <<\_ACEOF
36190 #define HAVE_CHAR_MAX 1
36195 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
36196 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
36197 if test "${amanda_cv_have_char_bit+set}" = set; then
36198 echo $ECHO_N "(cached) $ECHO_C" >&6
36200 cat >conftest.$ac_ext <<_ACEOF
36203 cat confdefs.h >>conftest.$ac_ext
36204 cat >>conftest.$ac_ext <<_ACEOF
36205 /* end confdefs.h. */
36207 #include <limits.h>
36213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36214 $EGREP "yes" >/dev/null 2>&1; then
36215 amanda_cv_have_char_bit=yes
36217 amanda_cv_have_char_bit=no
36222 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
36223 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
36224 if test "x$amanda_cv_have_char_bit" = xyes; then
36226 cat >>confdefs.h <<\_ACEOF
36227 #define HAVE_CHAR_BIT 1
36235 for ac_func in accept
36237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36238 echo "$as_me:$LINENO: checking for $ac_func" >&5
36239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36240 if eval "test \"\${$as_ac_var+set}\" = set"; then
36241 echo $ECHO_N "(cached) $ECHO_C" >&6
36243 cat >conftest.$ac_ext <<_ACEOF
36246 cat confdefs.h >>conftest.$ac_ext
36247 cat >>conftest.$ac_ext <<_ACEOF
36248 /* end confdefs.h. */
36249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36251 #define $ac_func innocuous_$ac_func
36253 /* System header to define __stub macros and hopefully few prototypes,
36254 which can conflict with char $ac_func (); below.
36255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36256 <limits.h> exists even on freestanding compilers. */
36259 # include <limits.h>
36261 # include <assert.h>
36266 /* Override any gcc2 internal prototype to avoid an error. */
36271 /* We use char because int might match the return type of a gcc2
36272 builtin and then its argument prototype would still apply. */
36274 /* The GNU C library defines this for functions which it implements
36275 to always fail with ENOSYS. Some functions are actually named
36276 something starting with __ and the normal name is an alias. */
36277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36280 char (*f) () = $ac_func;
36289 return f != $ac_func;
36294 rm -f conftest.$ac_objext conftest$ac_exeext
36295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36296 (eval $ac_link) 2>conftest.er1
36298 grep -v '^ *+' conftest.er1 >conftest.err
36300 cat conftest.err >&5
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); } &&
36303 { ac_try='test -z "$ac_c_werror_flag"
36304 || test ! -s conftest.err'
36305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36306 (eval $ac_try) 2>&5
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); }; } &&
36310 { ac_try='test -s conftest$ac_exeext'
36311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312 (eval $ac_try) 2>&5
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); }; }; then
36316 eval "$as_ac_var=yes"
36318 echo "$as_me: failed program was:" >&5
36319 sed 's/^/| /' conftest.$ac_ext >&5
36321 eval "$as_ac_var=no"
36323 rm -f conftest.err conftest.$ac_objext \
36324 conftest$ac_exeext conftest.$ac_ext
36326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36328 if test `eval echo '${'$as_ac_var'}'` = yes; then
36329 cat >>confdefs.h <<_ACEOF
36330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36332 ice_have_accept=yes
36336 if test "${ice_have_accept}" = yes; then
36337 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
36338 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36339 if test "${ice_cv_have_accept_decl+set}" = set; then
36340 echo $ECHO_N "(cached) $ECHO_C" >&6
36343 ice_cv_have_accept_decl=no
36344 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36345 ice_re_word='(^|[^a-zA-Z0-9_])'
36346 for header in sys/types.h sys/socket.h; do
36347 # Check for ordinary declaration
36348 cat >conftest.$ac_ext <<_ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h. */
36357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36358 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
36359 ice_cv_have_accept_decl=yes
36363 if test "$ice_cv_have_accept_decl" = yes; then
36366 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36367 cat >conftest.$ac_ext <<_ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h. */
36376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36377 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36378 ice_cv_have_accept_decl=yes
36382 if test "$ice_cv_have_accept_decl" = yes; then
36389 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
36390 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
36391 if test "$ice_cv_have_accept_decl" = yes; then
36393 cat >>confdefs.h <<_ACEOF
36394 #define HAVE_ACCEPT_DECL 1
36400 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
36401 # for constant arguments. Useless!
36402 echo "$as_me:$LINENO: checking for working alloca.h" >&5
36403 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
36404 if test "${ac_cv_working_alloca_h+set}" = set; then
36405 echo $ECHO_N "(cached) $ECHO_C" >&6
36407 cat >conftest.$ac_ext <<_ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h. */
36413 #include <alloca.h>
36417 char *p = (char *) alloca (2 * sizeof (int));
36422 rm -f conftest.$ac_objext conftest$ac_exeext
36423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36424 (eval $ac_link) 2>conftest.er1
36426 grep -v '^ *+' conftest.er1 >conftest.err
36428 cat conftest.err >&5
36429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430 (exit $ac_status); } &&
36431 { ac_try='test -z "$ac_c_werror_flag"
36432 || test ! -s conftest.err'
36433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36434 (eval $ac_try) 2>&5
36436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36437 (exit $ac_status); }; } &&
36438 { ac_try='test -s conftest$ac_exeext'
36439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36440 (eval $ac_try) 2>&5
36442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443 (exit $ac_status); }; }; then
36444 ac_cv_working_alloca_h=yes
36446 echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36449 ac_cv_working_alloca_h=no
36451 rm -f conftest.err conftest.$ac_objext \
36452 conftest$ac_exeext conftest.$ac_ext
36454 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
36455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
36456 if test $ac_cv_working_alloca_h = yes; then
36458 cat >>confdefs.h <<\_ACEOF
36459 #define HAVE_ALLOCA_H 1
36464 echo "$as_me:$LINENO: checking for alloca" >&5
36465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
36466 if test "${ac_cv_func_alloca_works+set}" = set; then
36467 echo $ECHO_N "(cached) $ECHO_C" >&6
36469 cat >conftest.$ac_ext <<_ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h. */
36476 # define alloca __builtin_alloca
36479 # include <malloc.h>
36480 # define alloca _alloca
36483 # include <alloca.h>
36488 # ifndef alloca /* predefined by HP cc +Olibcalls */
36499 char *p = (char *) alloca (1);
36504 rm -f conftest.$ac_objext conftest$ac_exeext
36505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36506 (eval $ac_link) 2>conftest.er1
36508 grep -v '^ *+' conftest.er1 >conftest.err
36510 cat conftest.err >&5
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); } &&
36513 { ac_try='test -z "$ac_c_werror_flag"
36514 || test ! -s conftest.err'
36515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516 (eval $ac_try) 2>&5
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); }; } &&
36520 { ac_try='test -s conftest$ac_exeext'
36521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36522 (eval $ac_try) 2>&5
36524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525 (exit $ac_status); }; }; then
36526 ac_cv_func_alloca_works=yes
36528 echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36531 ac_cv_func_alloca_works=no
36533 rm -f conftest.err conftest.$ac_objext \
36534 conftest$ac_exeext conftest.$ac_ext
36536 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
36537 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
36539 if test $ac_cv_func_alloca_works = yes; then
36541 cat >>confdefs.h <<\_ACEOF
36542 #define HAVE_ALLOCA 1
36546 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
36547 # that cause trouble. Some versions do not even contain alloca or
36548 # contain a buggy version. If you still want to use their alloca,
36549 # use ar to extract alloca.o from them instead of compiling alloca.c.
36551 ALLOCA=alloca.$ac_objext
36553 cat >>confdefs.h <<\_ACEOF
36558 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
36559 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
36560 if test "${ac_cv_os_cray+set}" = set; then
36561 echo $ECHO_N "(cached) $ECHO_C" >&6
36563 cat >conftest.$ac_ext <<_ACEOF
36566 cat confdefs.h >>conftest.$ac_ext
36567 cat >>conftest.$ac_ext <<_ACEOF
36568 /* end confdefs.h. */
36569 #if defined(CRAY) && ! defined(CRAY2)
36576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36577 $EGREP "webecray" >/dev/null 2>&1; then
36585 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
36586 echo "${ECHO_T}$ac_cv_os_cray" >&6
36587 if test $ac_cv_os_cray = yes; then
36588 for ac_func in _getb67 GETB67 getb67; do
36589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36590 echo "$as_me:$LINENO: checking for $ac_func" >&5
36591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36592 if eval "test \"\${$as_ac_var+set}\" = set"; then
36593 echo $ECHO_N "(cached) $ECHO_C" >&6
36595 cat >conftest.$ac_ext <<_ACEOF
36598 cat confdefs.h >>conftest.$ac_ext
36599 cat >>conftest.$ac_ext <<_ACEOF
36600 /* end confdefs.h. */
36601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36603 #define $ac_func innocuous_$ac_func
36605 /* System header to define __stub macros and hopefully few prototypes,
36606 which can conflict with char $ac_func (); below.
36607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36608 <limits.h> exists even on freestanding compilers. */
36611 # include <limits.h>
36613 # include <assert.h>
36618 /* Override any gcc2 internal prototype to avoid an error. */
36623 /* We use char because int might match the return type of a gcc2
36624 builtin and then its argument prototype would still apply. */
36626 /* The GNU C library defines this for functions which it implements
36627 to always fail with ENOSYS. Some functions are actually named
36628 something starting with __ and the normal name is an alias. */
36629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36632 char (*f) () = $ac_func;
36641 return f != $ac_func;
36646 rm -f conftest.$ac_objext conftest$ac_exeext
36647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36648 (eval $ac_link) 2>conftest.er1
36650 grep -v '^ *+' conftest.er1 >conftest.err
36652 cat conftest.err >&5
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); } &&
36655 { ac_try='test -z "$ac_c_werror_flag"
36656 || test ! -s conftest.err'
36657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658 (eval $ac_try) 2>&5
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); }; } &&
36662 { ac_try='test -s conftest$ac_exeext'
36663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664 (eval $ac_try) 2>&5
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); }; }; then
36668 eval "$as_ac_var=yes"
36670 echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36673 eval "$as_ac_var=no"
36675 rm -f conftest.err conftest.$ac_objext \
36676 conftest$ac_exeext conftest.$ac_ext
36678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36680 if test `eval echo '${'$as_ac_var'}'` = yes; then
36682 cat >>confdefs.h <<_ACEOF
36683 #define CRAY_STACKSEG_END $ac_func
36692 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
36693 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
36694 if test "${ac_cv_c_stack_direction+set}" = set; then
36695 echo $ECHO_N "(cached) $ECHO_C" >&6
36697 if test "$cross_compiling" = yes; then
36698 ac_cv_c_stack_direction=0
36700 cat >conftest.$ac_ext <<_ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h. */
36707 find_stack_direction ()
36709 static char *addr = 0;
36714 return find_stack_direction ();
36717 return (&dummy > addr) ? 1 : -1;
36723 exit (find_stack_direction () < 0);
36726 rm -f conftest$ac_exeext
36727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36728 (eval $ac_link) 2>&5
36730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36733 (eval $ac_try) 2>&5
36735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736 (exit $ac_status); }; }; then
36737 ac_cv_c_stack_direction=1
36739 echo "$as_me: program exited with status $ac_status" >&5
36740 echo "$as_me: failed program was:" >&5
36741 sed 's/^/| /' conftest.$ac_ext >&5
36743 ( exit $ac_status )
36744 ac_cv_c_stack_direction=-1
36746 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36749 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
36750 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
36752 cat >>confdefs.h <<_ACEOF
36753 #define STACK_DIRECTION $ac_cv_c_stack_direction
36760 for ac_func in atexit
36762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36763 echo "$as_me:$LINENO: checking for $ac_func" >&5
36764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36765 if eval "test \"\${$as_ac_var+set}\" = set"; then
36766 echo $ECHO_N "(cached) $ECHO_C" >&6
36768 cat >conftest.$ac_ext <<_ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h. */
36774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36776 #define $ac_func innocuous_$ac_func
36778 /* System header to define __stub macros and hopefully few prototypes,
36779 which can conflict with char $ac_func (); below.
36780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36781 <limits.h> exists even on freestanding compilers. */
36784 # include <limits.h>
36786 # include <assert.h>
36791 /* Override any gcc2 internal prototype to avoid an error. */
36796 /* We use char because int might match the return type of a gcc2
36797 builtin and then its argument prototype would still apply. */
36799 /* The GNU C library defines this for functions which it implements
36800 to always fail with ENOSYS. Some functions are actually named
36801 something starting with __ and the normal name is an alias. */
36802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36805 char (*f) () = $ac_func;
36814 return f != $ac_func;
36819 rm -f conftest.$ac_objext conftest$ac_exeext
36820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36821 (eval $ac_link) 2>conftest.er1
36823 grep -v '^ *+' conftest.er1 >conftest.err
36825 cat conftest.err >&5
36826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827 (exit $ac_status); } &&
36828 { ac_try='test -z "$ac_c_werror_flag"
36829 || test ! -s conftest.err'
36830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36831 (eval $ac_try) 2>&5
36833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834 (exit $ac_status); }; } &&
36835 { ac_try='test -s conftest$ac_exeext'
36836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36837 (eval $ac_try) 2>&5
36839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840 (exit $ac_status); }; }; then
36841 eval "$as_ac_var=yes"
36843 echo "$as_me: failed program was:" >&5
36844 sed 's/^/| /' conftest.$ac_ext >&5
36846 eval "$as_ac_var=no"
36848 rm -f conftest.err conftest.$ac_objext \
36849 conftest$ac_exeext conftest.$ac_ext
36851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36853 if test `eval echo '${'$as_ac_var'}'` = yes; then
36854 cat >>confdefs.h <<_ACEOF
36855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36864 for ac_func in atof
36866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36867 echo "$as_me:$LINENO: checking for $ac_func" >&5
36868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36869 if eval "test \"\${$as_ac_var+set}\" = set"; then
36870 echo $ECHO_N "(cached) $ECHO_C" >&6
36872 cat >conftest.$ac_ext <<_ACEOF
36875 cat confdefs.h >>conftest.$ac_ext
36876 cat >>conftest.$ac_ext <<_ACEOF
36877 /* end confdefs.h. */
36878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36880 #define $ac_func innocuous_$ac_func
36882 /* System header to define __stub macros and hopefully few prototypes,
36883 which can conflict with char $ac_func (); below.
36884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36885 <limits.h> exists even on freestanding compilers. */
36888 # include <limits.h>
36890 # include <assert.h>
36895 /* Override any gcc2 internal prototype to avoid an error. */
36900 /* We use char because int might match the return type of a gcc2
36901 builtin and then its argument prototype would still apply. */
36903 /* The GNU C library defines this for functions which it implements
36904 to always fail with ENOSYS. Some functions are actually named
36905 something starting with __ and the normal name is an alias. */
36906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36909 char (*f) () = $ac_func;
36918 return f != $ac_func;
36923 rm -f conftest.$ac_objext conftest$ac_exeext
36924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36925 (eval $ac_link) 2>conftest.er1
36927 grep -v '^ *+' conftest.er1 >conftest.err
36929 cat conftest.err >&5
36930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931 (exit $ac_status); } &&
36932 { ac_try='test -z "$ac_c_werror_flag"
36933 || test ! -s conftest.err'
36934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36935 (eval $ac_try) 2>&5
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); }; } &&
36939 { ac_try='test -s conftest$ac_exeext'
36940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941 (eval $ac_try) 2>&5
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); }; }; then
36945 eval "$as_ac_var=yes"
36947 echo "$as_me: failed program was:" >&5
36948 sed 's/^/| /' conftest.$ac_ext >&5
36950 eval "$as_ac_var=no"
36952 rm -f conftest.err conftest.$ac_objext \
36953 conftest$ac_exeext conftest.$ac_ext
36955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36957 if test `eval echo '${'$as_ac_var'}'` = yes; then
36958 cat >>confdefs.h <<_ACEOF
36959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36965 if test "${ice_have_atof}" = yes; then
36966 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
36967 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
36968 if test "${ice_cv_have_atof_decl+set}" = set; then
36969 echo $ECHO_N "(cached) $ECHO_C" >&6
36972 ice_cv_have_atof_decl=no
36973 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36974 ice_re_word='(^|[^a-zA-Z0-9_])'
36975 for header in stdlib.h; do
36976 # Check for ordinary declaration
36977 cat >conftest.$ac_ext <<_ACEOF
36980 cat confdefs.h >>conftest.$ac_ext
36981 cat >>conftest.$ac_ext <<_ACEOF
36982 /* end confdefs.h. */
36986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36987 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
36988 ice_cv_have_atof_decl=yes
36992 if test "$ice_cv_have_atof_decl" = yes; then
36995 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36996 cat >conftest.$ac_ext <<_ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h. */
37005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37006 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37007 ice_cv_have_atof_decl=yes
37011 if test "$ice_cv_have_atof_decl" = yes; then
37018 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
37019 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
37020 if test "$ice_cv_have_atof_decl" = yes; then
37022 cat >>confdefs.h <<_ACEOF
37023 #define HAVE_ATOF_DECL 1
37032 for ac_func in atoi
37034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37035 echo "$as_me:$LINENO: checking for $ac_func" >&5
37036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37037 if eval "test \"\${$as_ac_var+set}\" = set"; then
37038 echo $ECHO_N "(cached) $ECHO_C" >&6
37040 cat >conftest.$ac_ext <<_ACEOF
37043 cat confdefs.h >>conftest.$ac_ext
37044 cat >>conftest.$ac_ext <<_ACEOF
37045 /* end confdefs.h. */
37046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37048 #define $ac_func innocuous_$ac_func
37050 /* System header to define __stub macros and hopefully few prototypes,
37051 which can conflict with char $ac_func (); below.
37052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37053 <limits.h> exists even on freestanding compilers. */
37056 # include <limits.h>
37058 # include <assert.h>
37063 /* Override any gcc2 internal prototype to avoid an error. */
37068 /* We use char because int might match the return type of a gcc2
37069 builtin and then its argument prototype would still apply. */
37071 /* The GNU C library defines this for functions which it implements
37072 to always fail with ENOSYS. Some functions are actually named
37073 something starting with __ and the normal name is an alias. */
37074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37077 char (*f) () = $ac_func;
37086 return f != $ac_func;
37091 rm -f conftest.$ac_objext conftest$ac_exeext
37092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37093 (eval $ac_link) 2>conftest.er1
37095 grep -v '^ *+' conftest.er1 >conftest.err
37097 cat conftest.err >&5
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } &&
37100 { ac_try='test -z "$ac_c_werror_flag"
37101 || test ! -s conftest.err'
37102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103 (eval $ac_try) 2>&5
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); }; } &&
37107 { ac_try='test -s conftest$ac_exeext'
37108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37109 (eval $ac_try) 2>&5
37111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112 (exit $ac_status); }; }; then
37113 eval "$as_ac_var=yes"
37115 echo "$as_me: failed program was:" >&5
37116 sed 's/^/| /' conftest.$ac_ext >&5
37118 eval "$as_ac_var=no"
37120 rm -f conftest.err conftest.$ac_objext \
37121 conftest$ac_exeext conftest.$ac_ext
37123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37125 if test `eval echo '${'$as_ac_var'}'` = yes; then
37126 cat >>confdefs.h <<_ACEOF
37127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37133 if test "${ice_have_atoi}" = yes; then
37134 echo "$as_me:$LINENO: checking for atoi declaration in stdlib.h" >&5
37135 echo $ECHO_N "checking for atoi declaration in stdlib.h... $ECHO_C" >&6
37136 if test "${ice_cv_have_atoi_decl+set}" = set; then
37137 echo $ECHO_N "(cached) $ECHO_C" >&6
37140 ice_cv_have_atoi_decl=no
37141 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37142 ice_re_word='(^|[^a-zA-Z0-9_])'
37143 for header in stdlib.h; do
37144 # Check for ordinary declaration
37145 cat >conftest.$ac_ext <<_ACEOF
37148 cat confdefs.h >>conftest.$ac_ext
37149 cat >>conftest.$ac_ext <<_ACEOF
37150 /* end confdefs.h. */
37154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37155 $EGREP "${ice_re_word}atoi[ ]*\(" >/dev/null 2>&1; then
37156 ice_cv_have_atoi_decl=yes
37160 if test "$ice_cv_have_atoi_decl" = yes; then
37163 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37164 cat >conftest.$ac_ext <<_ACEOF
37167 cat confdefs.h >>conftest.$ac_ext
37168 cat >>conftest.$ac_ext <<_ACEOF
37169 /* end confdefs.h. */
37173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37174 $EGREP "${ice_re_word}atoi[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37175 ice_cv_have_atoi_decl=yes
37179 if test "$ice_cv_have_atoi_decl" = yes; then
37186 echo "$as_me:$LINENO: result: $ice_cv_have_atoi_decl" >&5
37187 echo "${ECHO_T}$ice_cv_have_atoi_decl" >&6
37188 if test "$ice_cv_have_atoi_decl" = yes; then
37190 cat >>confdefs.h <<_ACEOF
37191 #define HAVE_ATOI_DECL 1
37200 for ac_func in atol
37202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37203 echo "$as_me:$LINENO: checking for $ac_func" >&5
37204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37205 if eval "test \"\${$as_ac_var+set}\" = set"; then
37206 echo $ECHO_N "(cached) $ECHO_C" >&6
37208 cat >conftest.$ac_ext <<_ACEOF
37211 cat confdefs.h >>conftest.$ac_ext
37212 cat >>conftest.$ac_ext <<_ACEOF
37213 /* end confdefs.h. */
37214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37216 #define $ac_func innocuous_$ac_func
37218 /* System header to define __stub macros and hopefully few prototypes,
37219 which can conflict with char $ac_func (); below.
37220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37221 <limits.h> exists even on freestanding compilers. */
37224 # include <limits.h>
37226 # include <assert.h>
37231 /* Override any gcc2 internal prototype to avoid an error. */
37236 /* We use char because int might match the return type of a gcc2
37237 builtin and then its argument prototype would still apply. */
37239 /* The GNU C library defines this for functions which it implements
37240 to always fail with ENOSYS. Some functions are actually named
37241 something starting with __ and the normal name is an alias. */
37242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37245 char (*f) () = $ac_func;
37254 return f != $ac_func;
37259 rm -f conftest.$ac_objext conftest$ac_exeext
37260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37261 (eval $ac_link) 2>conftest.er1
37263 grep -v '^ *+' conftest.er1 >conftest.err
37265 cat conftest.err >&5
37266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267 (exit $ac_status); } &&
37268 { ac_try='test -z "$ac_c_werror_flag"
37269 || test ! -s conftest.err'
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; } &&
37275 { ac_try='test -s conftest$ac_exeext'
37276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277 (eval $ac_try) 2>&5
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); }; }; then
37281 eval "$as_ac_var=yes"
37283 echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37286 eval "$as_ac_var=no"
37288 rm -f conftest.err conftest.$ac_objext \
37289 conftest$ac_exeext conftest.$ac_ext
37291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37293 if test `eval echo '${'$as_ac_var'}'` = yes; then
37294 cat >>confdefs.h <<_ACEOF
37295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37301 if test "${ice_have_atol}" = yes; then
37302 echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
37303 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6
37304 if test "${ice_cv_have_atol_decl+set}" = set; then
37305 echo $ECHO_N "(cached) $ECHO_C" >&6
37308 ice_cv_have_atol_decl=no
37309 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37310 ice_re_word='(^|[^a-zA-Z0-9_])'
37311 for header in stdlib.h; do
37312 # Check for ordinary declaration
37313 cat >conftest.$ac_ext <<_ACEOF
37316 cat confdefs.h >>conftest.$ac_ext
37317 cat >>conftest.$ac_ext <<_ACEOF
37318 /* end confdefs.h. */
37322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37323 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then
37324 ice_cv_have_atol_decl=yes
37328 if test "$ice_cv_have_atol_decl" = yes; then
37331 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37332 cat >conftest.$ac_ext <<_ACEOF
37335 cat confdefs.h >>conftest.$ac_ext
37336 cat >>conftest.$ac_ext <<_ACEOF
37337 /* end confdefs.h. */
37341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37342 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37343 ice_cv_have_atol_decl=yes
37347 if test "$ice_cv_have_atol_decl" = yes; then
37354 echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
37355 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6
37356 if test "$ice_cv_have_atol_decl" = yes; then
37358 cat >>confdefs.h <<_ACEOF
37359 #define HAVE_ATOL_DECL 1
37368 for ac_func in atoll
37370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37371 echo "$as_me:$LINENO: checking for $ac_func" >&5
37372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37373 if eval "test \"\${$as_ac_var+set}\" = set"; then
37374 echo $ECHO_N "(cached) $ECHO_C" >&6
37376 cat >conftest.$ac_ext <<_ACEOF
37379 cat confdefs.h >>conftest.$ac_ext
37380 cat >>conftest.$ac_ext <<_ACEOF
37381 /* end confdefs.h. */
37382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37384 #define $ac_func innocuous_$ac_func
37386 /* System header to define __stub macros and hopefully few prototypes,
37387 which can conflict with char $ac_func (); below.
37388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37389 <limits.h> exists even on freestanding compilers. */
37392 # include <limits.h>
37394 # include <assert.h>
37399 /* Override any gcc2 internal prototype to avoid an error. */
37404 /* We use char because int might match the return type of a gcc2
37405 builtin and then its argument prototype would still apply. */
37407 /* The GNU C library defines this for functions which it implements
37408 to always fail with ENOSYS. Some functions are actually named
37409 something starting with __ and the normal name is an alias. */
37410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37413 char (*f) () = $ac_func;
37422 return f != $ac_func;
37427 rm -f conftest.$ac_objext conftest$ac_exeext
37428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37429 (eval $ac_link) 2>conftest.er1
37431 grep -v '^ *+' conftest.er1 >conftest.err
37433 cat conftest.err >&5
37434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); } &&
37436 { ac_try='test -z "$ac_c_werror_flag"
37437 || test ! -s conftest.err'
37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; } &&
37443 { ac_try='test -s conftest$ac_exeext'
37444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445 (eval $ac_try) 2>&5
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); }; }; then
37449 eval "$as_ac_var=yes"
37451 echo "$as_me: failed program was:" >&5
37452 sed 's/^/| /' conftest.$ac_ext >&5
37454 eval "$as_ac_var=no"
37456 rm -f conftest.err conftest.$ac_objext \
37457 conftest$ac_exeext conftest.$ac_ext
37459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37461 if test `eval echo '${'$as_ac_var'}'` = yes; then
37462 cat >>confdefs.h <<_ACEOF
37463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37469 if test "${ice_have_atoll}" = yes; then
37470 echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
37471 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6
37472 if test "${ice_cv_have_atoll_decl+set}" = set; then
37473 echo $ECHO_N "(cached) $ECHO_C" >&6
37476 ice_cv_have_atoll_decl=no
37477 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37478 ice_re_word='(^|[^a-zA-Z0-9_])'
37479 for header in stdlib.h; do
37480 # Check for ordinary declaration
37481 cat >conftest.$ac_ext <<_ACEOF
37484 cat confdefs.h >>conftest.$ac_ext
37485 cat >>conftest.$ac_ext <<_ACEOF
37486 /* end confdefs.h. */
37490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37491 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then
37492 ice_cv_have_atoll_decl=yes
37496 if test "$ice_cv_have_atoll_decl" = yes; then
37499 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37500 cat >conftest.$ac_ext <<_ACEOF
37503 cat confdefs.h >>conftest.$ac_ext
37504 cat >>conftest.$ac_ext <<_ACEOF
37505 /* end confdefs.h. */
37509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37510 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37511 ice_cv_have_atoll_decl=yes
37515 if test "$ice_cv_have_atoll_decl" = yes; then
37522 echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
37523 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6
37524 if test "$ice_cv_have_atoll_decl" = yes; then
37526 cat >>confdefs.h <<_ACEOF
37527 #define HAVE_ATOLL_DECL 1
37534 for ac_func in basename
37536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37537 echo "$as_me:$LINENO: checking for $ac_func" >&5
37538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37539 if eval "test \"\${$as_ac_var+set}\" = set"; then
37540 echo $ECHO_N "(cached) $ECHO_C" >&6
37542 cat >conftest.$ac_ext <<_ACEOF
37545 cat confdefs.h >>conftest.$ac_ext
37546 cat >>conftest.$ac_ext <<_ACEOF
37547 /* end confdefs.h. */
37548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37550 #define $ac_func innocuous_$ac_func
37552 /* System header to define __stub macros and hopefully few prototypes,
37553 which can conflict with char $ac_func (); below.
37554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37555 <limits.h> exists even on freestanding compilers. */
37558 # include <limits.h>
37560 # include <assert.h>
37565 /* Override any gcc2 internal prototype to avoid an error. */
37570 /* We use char because int might match the return type of a gcc2
37571 builtin and then its argument prototype would still apply. */
37573 /* The GNU C library defines this for functions which it implements
37574 to always fail with ENOSYS. Some functions are actually named
37575 something starting with __ and the normal name is an alias. */
37576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37579 char (*f) () = $ac_func;
37588 return f != $ac_func;
37593 rm -f conftest.$ac_objext conftest$ac_exeext
37594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37595 (eval $ac_link) 2>conftest.er1
37597 grep -v '^ *+' conftest.er1 >conftest.err
37599 cat conftest.err >&5
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); } &&
37602 { ac_try='test -z "$ac_c_werror_flag"
37603 || test ! -s conftest.err'
37604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605 (eval $ac_try) 2>&5
37607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); }; } &&
37609 { ac_try='test -s conftest$ac_exeext'
37610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37611 (eval $ac_try) 2>&5
37613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614 (exit $ac_status); }; }; then
37615 eval "$as_ac_var=yes"
37617 echo "$as_me: failed program was:" >&5
37618 sed 's/^/| /' conftest.$ac_ext >&5
37620 eval "$as_ac_var=no"
37622 rm -f conftest.err conftest.$ac_objext \
37623 conftest$ac_exeext conftest.$ac_ext
37625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37627 if test `eval echo '${'$as_ac_var'}'` = yes; then
37628 cat >>confdefs.h <<_ACEOF
37629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37638 for ac_func in bind
37640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37641 echo "$as_me:$LINENO: checking for $ac_func" >&5
37642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37643 if eval "test \"\${$as_ac_var+set}\" = set"; then
37644 echo $ECHO_N "(cached) $ECHO_C" >&6
37646 cat >conftest.$ac_ext <<_ACEOF
37649 cat confdefs.h >>conftest.$ac_ext
37650 cat >>conftest.$ac_ext <<_ACEOF
37651 /* end confdefs.h. */
37652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37654 #define $ac_func innocuous_$ac_func
37656 /* System header to define __stub macros and hopefully few prototypes,
37657 which can conflict with char $ac_func (); below.
37658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37659 <limits.h> exists even on freestanding compilers. */
37662 # include <limits.h>
37664 # include <assert.h>
37669 /* Override any gcc2 internal prototype to avoid an error. */
37674 /* We use char because int might match the return type of a gcc2
37675 builtin and then its argument prototype would still apply. */
37677 /* The GNU C library defines this for functions which it implements
37678 to always fail with ENOSYS. Some functions are actually named
37679 something starting with __ and the normal name is an alias. */
37680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37683 char (*f) () = $ac_func;
37692 return f != $ac_func;
37697 rm -f conftest.$ac_objext conftest$ac_exeext
37698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37699 (eval $ac_link) 2>conftest.er1
37701 grep -v '^ *+' conftest.er1 >conftest.err
37703 cat conftest.err >&5
37704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705 (exit $ac_status); } &&
37706 { ac_try='test -z "$ac_c_werror_flag"
37707 || test ! -s conftest.err'
37708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709 (eval $ac_try) 2>&5
37711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); }; } &&
37713 { ac_try='test -s conftest$ac_exeext'
37714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37715 (eval $ac_try) 2>&5
37717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718 (exit $ac_status); }; }; then
37719 eval "$as_ac_var=yes"
37721 echo "$as_me: failed program was:" >&5
37722 sed 's/^/| /' conftest.$ac_ext >&5
37724 eval "$as_ac_var=no"
37726 rm -f conftest.err conftest.$ac_objext \
37727 conftest$ac_exeext conftest.$ac_ext
37729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37731 if test `eval echo '${'$as_ac_var'}'` = yes; then
37732 cat >>confdefs.h <<_ACEOF
37733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37739 if test "${ice_have_bind}" = yes; then
37740 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
37741 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37742 if test "${ice_cv_have_bind_decl+set}" = set; then
37743 echo $ECHO_N "(cached) $ECHO_C" >&6
37746 ice_cv_have_bind_decl=no
37747 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37748 ice_re_word='(^|[^a-zA-Z0-9_])'
37749 for header in sys/types.h sys/socket.h; do
37750 # Check for ordinary declaration
37751 cat >conftest.$ac_ext <<_ACEOF
37754 cat confdefs.h >>conftest.$ac_ext
37755 cat >>conftest.$ac_ext <<_ACEOF
37756 /* end confdefs.h. */
37760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37761 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
37762 ice_cv_have_bind_decl=yes
37766 if test "$ice_cv_have_bind_decl" = yes; then
37769 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37770 cat >conftest.$ac_ext <<_ACEOF
37773 cat confdefs.h >>conftest.$ac_ext
37774 cat >>conftest.$ac_ext <<_ACEOF
37775 /* end confdefs.h. */
37779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37780 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37781 ice_cv_have_bind_decl=yes
37785 if test "$ice_cv_have_bind_decl" = yes; then
37792 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
37793 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
37794 if test "$ice_cv_have_bind_decl" = yes; then
37796 cat >>confdefs.h <<_ACEOF
37797 #define HAVE_BIND_DECL 1
37806 for ac_func in bcopy
37808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37809 echo "$as_me:$LINENO: checking for $ac_func" >&5
37810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37811 if eval "test \"\${$as_ac_var+set}\" = set"; then
37812 echo $ECHO_N "(cached) $ECHO_C" >&6
37814 cat >conftest.$ac_ext <<_ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h. */
37820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37822 #define $ac_func innocuous_$ac_func
37824 /* System header to define __stub macros and hopefully few prototypes,
37825 which can conflict with char $ac_func (); below.
37826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37827 <limits.h> exists even on freestanding compilers. */
37830 # include <limits.h>
37832 # include <assert.h>
37837 /* Override any gcc2 internal prototype to avoid an error. */
37842 /* We use char because int might match the return type of a gcc2
37843 builtin and then its argument prototype would still apply. */
37845 /* The GNU C library defines this for functions which it implements
37846 to always fail with ENOSYS. Some functions are actually named
37847 something starting with __ and the normal name is an alias. */
37848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37851 char (*f) () = $ac_func;
37860 return f != $ac_func;
37865 rm -f conftest.$ac_objext conftest$ac_exeext
37866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37867 (eval $ac_link) 2>conftest.er1
37869 grep -v '^ *+' conftest.er1 >conftest.err
37871 cat conftest.err >&5
37872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873 (exit $ac_status); } &&
37874 { ac_try='test -z "$ac_c_werror_flag"
37875 || test ! -s conftest.err'
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877 (eval $ac_try) 2>&5
37879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; } &&
37881 { ac_try='test -s conftest$ac_exeext'
37882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883 (eval $ac_try) 2>&5
37885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); }; }; then
37887 eval "$as_ac_var=yes"
37889 echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37892 eval "$as_ac_var=no"
37894 rm -f conftest.err conftest.$ac_objext \
37895 conftest$ac_exeext conftest.$ac_ext
37897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37899 if test `eval echo '${'$as_ac_var'}'` = yes; then
37900 cat >>confdefs.h <<_ACEOF
37901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37907 if test "${ice_have_bcopy}" = yes; then
37908 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
37909 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
37910 if test "${ice_cv_have_bcopy_decl+set}" = set; then
37911 echo $ECHO_N "(cached) $ECHO_C" >&6
37914 ice_cv_have_bcopy_decl=no
37915 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37916 ice_re_word='(^|[^a-zA-Z0-9_])'
37917 for header in string.h strings.h stdlib.h; do
37918 # Check for ordinary declaration
37919 cat >conftest.$ac_ext <<_ACEOF
37922 cat confdefs.h >>conftest.$ac_ext
37923 cat >>conftest.$ac_ext <<_ACEOF
37924 /* end confdefs.h. */
37928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37929 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
37930 ice_cv_have_bcopy_decl=yes
37934 if test "$ice_cv_have_bcopy_decl" = yes; then
37937 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37938 cat >conftest.$ac_ext <<_ACEOF
37941 cat confdefs.h >>conftest.$ac_ext
37942 cat >>conftest.$ac_ext <<_ACEOF
37943 /* end confdefs.h. */
37947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37948 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37949 ice_cv_have_bcopy_decl=yes
37953 if test "$ice_cv_have_bcopy_decl" = yes; then
37960 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
37961 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
37962 if test "$ice_cv_have_bcopy_decl" = yes; then
37964 cat >>confdefs.h <<_ACEOF
37965 #define HAVE_BCOPY_DECL 1
37974 for ac_func in bzero
37976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37977 echo "$as_me:$LINENO: checking for $ac_func" >&5
37978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37979 if eval "test \"\${$as_ac_var+set}\" = set"; then
37980 echo $ECHO_N "(cached) $ECHO_C" >&6
37982 cat >conftest.$ac_ext <<_ACEOF
37985 cat confdefs.h >>conftest.$ac_ext
37986 cat >>conftest.$ac_ext <<_ACEOF
37987 /* end confdefs.h. */
37988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37990 #define $ac_func innocuous_$ac_func
37992 /* System header to define __stub macros and hopefully few prototypes,
37993 which can conflict with char $ac_func (); below.
37994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37995 <limits.h> exists even on freestanding compilers. */
37998 # include <limits.h>
38000 # include <assert.h>
38005 /* Override any gcc2 internal prototype to avoid an error. */
38010 /* We use char because int might match the return type of a gcc2
38011 builtin and then its argument prototype would still apply. */
38013 /* The GNU C library defines this for functions which it implements
38014 to always fail with ENOSYS. Some functions are actually named
38015 something starting with __ and the normal name is an alias. */
38016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38019 char (*f) () = $ac_func;
38028 return f != $ac_func;
38033 rm -f conftest.$ac_objext conftest$ac_exeext
38034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38035 (eval $ac_link) 2>conftest.er1
38037 grep -v '^ *+' conftest.er1 >conftest.err
38039 cat conftest.err >&5
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); } &&
38042 { ac_try='test -z "$ac_c_werror_flag"
38043 || test ! -s conftest.err'
38044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38045 (eval $ac_try) 2>&5
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); }; } &&
38049 { ac_try='test -s conftest$ac_exeext'
38050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38051 (eval $ac_try) 2>&5
38053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38054 (exit $ac_status); }; }; then
38055 eval "$as_ac_var=yes"
38057 echo "$as_me: failed program was:" >&5
38058 sed 's/^/| /' conftest.$ac_ext >&5
38060 eval "$as_ac_var=no"
38062 rm -f conftest.err conftest.$ac_objext \
38063 conftest$ac_exeext conftest.$ac_ext
38065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38067 if test `eval echo '${'$as_ac_var'}'` = yes; then
38068 cat >>confdefs.h <<_ACEOF
38069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38075 if test "${ice_have_bzero}" = yes; then
38076 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
38077 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
38078 if test "${ice_cv_have_bzero_decl+set}" = set; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38082 ice_cv_have_bzero_decl=no
38083 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38084 ice_re_word='(^|[^a-zA-Z0-9_])'
38085 for header in string.h strings.h stdlib.h; do
38086 # Check for ordinary declaration
38087 cat >conftest.$ac_ext <<_ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h. */
38096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38097 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
38098 ice_cv_have_bzero_decl=yes
38102 if test "$ice_cv_have_bzero_decl" = yes; then
38105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38106 cat >conftest.$ac_ext <<_ACEOF
38109 cat confdefs.h >>conftest.$ac_ext
38110 cat >>conftest.$ac_ext <<_ACEOF
38111 /* end confdefs.h. */
38115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38116 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38117 ice_cv_have_bzero_decl=yes
38121 if test "$ice_cv_have_bzero_decl" = yes; then
38128 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
38129 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
38130 if test "$ice_cv_have_bzero_decl" = yes; then
38132 cat >>confdefs.h <<_ACEOF
38133 #define HAVE_BZERO_DECL 1
38139 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
38140 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
38141 if test "${ac_cv_func_closedir_void+set}" = set; then
38142 echo $ECHO_N "(cached) $ECHO_C" >&6
38144 if test "$cross_compiling" = yes; then
38145 ac_cv_func_closedir_void=yes
38147 cat >conftest.$ac_ext <<_ACEOF
38150 cat confdefs.h >>conftest.$ac_ext
38151 cat >>conftest.$ac_ext <<_ACEOF
38152 /* end confdefs.h. */
38153 $ac_includes_default
38154 #include <$ac_header_dirent>
38155 #ifndef __cplusplus
38162 exit (closedir (opendir (".")) != 0);
38167 rm -f conftest$ac_exeext
38168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169 (eval $ac_link) 2>&5
38171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38174 (eval $ac_try) 2>&5
38176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); }; }; then
38178 ac_cv_func_closedir_void=no
38180 echo "$as_me: program exited with status $ac_status" >&5
38181 echo "$as_me: failed program was:" >&5
38182 sed 's/^/| /' conftest.$ac_ext >&5
38184 ( exit $ac_status )
38185 ac_cv_func_closedir_void=yes
38187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38190 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
38191 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
38192 if test $ac_cv_func_closedir_void = yes; then
38194 cat >>confdefs.h <<\_ACEOF
38195 #define CLOSEDIR_VOID 1
38201 ice_have_closelog=no
38203 for ac_func in closelog
38205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38206 echo "$as_me:$LINENO: checking for $ac_func" >&5
38207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38208 if eval "test \"\${$as_ac_var+set}\" = set"; then
38209 echo $ECHO_N "(cached) $ECHO_C" >&6
38211 cat >conftest.$ac_ext <<_ACEOF
38214 cat confdefs.h >>conftest.$ac_ext
38215 cat >>conftest.$ac_ext <<_ACEOF
38216 /* end confdefs.h. */
38217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38219 #define $ac_func innocuous_$ac_func
38221 /* System header to define __stub macros and hopefully few prototypes,
38222 which can conflict with char $ac_func (); below.
38223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38224 <limits.h> exists even on freestanding compilers. */
38227 # include <limits.h>
38229 # include <assert.h>
38234 /* Override any gcc2 internal prototype to avoid an error. */
38239 /* We use char because int might match the return type of a gcc2
38240 builtin and then its argument prototype would still apply. */
38242 /* The GNU C library defines this for functions which it implements
38243 to always fail with ENOSYS. Some functions are actually named
38244 something starting with __ and the normal name is an alias. */
38245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38248 char (*f) () = $ac_func;
38257 return f != $ac_func;
38262 rm -f conftest.$ac_objext conftest$ac_exeext
38263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38264 (eval $ac_link) 2>conftest.er1
38266 grep -v '^ *+' conftest.er1 >conftest.err
38268 cat conftest.err >&5
38269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38270 (exit $ac_status); } &&
38271 { ac_try='test -z "$ac_c_werror_flag"
38272 || test ! -s conftest.err'
38273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38274 (eval $ac_try) 2>&5
38276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277 (exit $ac_status); }; } &&
38278 { ac_try='test -s conftest$ac_exeext'
38279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38280 (eval $ac_try) 2>&5
38282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283 (exit $ac_status); }; }; then
38284 eval "$as_ac_var=yes"
38286 echo "$as_me: failed program was:" >&5
38287 sed 's/^/| /' conftest.$ac_ext >&5
38289 eval "$as_ac_var=no"
38291 rm -f conftest.err conftest.$ac_objext \
38292 conftest$ac_exeext conftest.$ac_ext
38294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38296 if test `eval echo '${'$as_ac_var'}'` = yes; then
38297 cat >>confdefs.h <<_ACEOF
38298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38300 ice_have_closelog=yes
38304 if test "${ice_have_closelog}" = yes; then
38305 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
38306 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
38307 if test "${ice_cv_have_closelog_decl+set}" = set; then
38308 echo $ECHO_N "(cached) $ECHO_C" >&6
38311 ice_cv_have_closelog_decl=no
38312 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38313 ice_re_word='(^|[^a-zA-Z0-9_])'
38314 for header in syslog.h; do
38315 # Check for ordinary declaration
38316 cat >conftest.$ac_ext <<_ACEOF
38319 cat confdefs.h >>conftest.$ac_ext
38320 cat >>conftest.$ac_ext <<_ACEOF
38321 /* end confdefs.h. */
38325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38326 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
38327 ice_cv_have_closelog_decl=yes
38331 if test "$ice_cv_have_closelog_decl" = yes; then
38334 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38335 cat >conftest.$ac_ext <<_ACEOF
38338 cat confdefs.h >>conftest.$ac_ext
38339 cat >>conftest.$ac_ext <<_ACEOF
38340 /* end confdefs.h. */
38344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38345 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38346 ice_cv_have_closelog_decl=yes
38350 if test "$ice_cv_have_closelog_decl" = yes; then
38357 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
38358 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
38359 if test "$ice_cv_have_closelog_decl" = yes; then
38361 cat >>confdefs.h <<_ACEOF
38362 #define HAVE_CLOSELOG_DECL 1
38369 ice_have_connect=no
38371 for ac_func in connect
38373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38374 echo "$as_me:$LINENO: checking for $ac_func" >&5
38375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38376 if eval "test \"\${$as_ac_var+set}\" = set"; then
38377 echo $ECHO_N "(cached) $ECHO_C" >&6
38379 cat >conftest.$ac_ext <<_ACEOF
38382 cat confdefs.h >>conftest.$ac_ext
38383 cat >>conftest.$ac_ext <<_ACEOF
38384 /* end confdefs.h. */
38385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38387 #define $ac_func innocuous_$ac_func
38389 /* System header to define __stub macros and hopefully few prototypes,
38390 which can conflict with char $ac_func (); below.
38391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38392 <limits.h> exists even on freestanding compilers. */
38395 # include <limits.h>
38397 # include <assert.h>
38402 /* Override any gcc2 internal prototype to avoid an error. */
38407 /* We use char because int might match the return type of a gcc2
38408 builtin and then its argument prototype would still apply. */
38410 /* The GNU C library defines this for functions which it implements
38411 to always fail with ENOSYS. Some functions are actually named
38412 something starting with __ and the normal name is an alias. */
38413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38416 char (*f) () = $ac_func;
38425 return f != $ac_func;
38430 rm -f conftest.$ac_objext conftest$ac_exeext
38431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38432 (eval $ac_link) 2>conftest.er1
38434 grep -v '^ *+' conftest.er1 >conftest.err
38436 cat conftest.err >&5
38437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438 (exit $ac_status); } &&
38439 { ac_try='test -z "$ac_c_werror_flag"
38440 || test ! -s conftest.err'
38441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442 (eval $ac_try) 2>&5
38444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445 (exit $ac_status); }; } &&
38446 { ac_try='test -s conftest$ac_exeext'
38447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38448 (eval $ac_try) 2>&5
38450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38451 (exit $ac_status); }; }; then
38452 eval "$as_ac_var=yes"
38454 echo "$as_me: failed program was:" >&5
38455 sed 's/^/| /' conftest.$ac_ext >&5
38457 eval "$as_ac_var=no"
38459 rm -f conftest.err conftest.$ac_objext \
38460 conftest$ac_exeext conftest.$ac_ext
38462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38464 if test `eval echo '${'$as_ac_var'}'` = yes; then
38465 cat >>confdefs.h <<_ACEOF
38466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38468 ice_have_connect=yes
38472 if test "${ice_have_connect}" = yes; then
38473 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
38474 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38475 if test "${ice_cv_have_connect_decl+set}" = set; then
38476 echo $ECHO_N "(cached) $ECHO_C" >&6
38479 ice_cv_have_connect_decl=no
38480 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38481 ice_re_word='(^|[^a-zA-Z0-9_])'
38482 for header in sys/types.h sys/socket.h; do
38483 # Check for ordinary declaration
38484 cat >conftest.$ac_ext <<_ACEOF
38487 cat confdefs.h >>conftest.$ac_ext
38488 cat >>conftest.$ac_ext <<_ACEOF
38489 /* end confdefs.h. */
38493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38494 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
38495 ice_cv_have_connect_decl=yes
38499 if test "$ice_cv_have_connect_decl" = yes; then
38502 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38503 cat >conftest.$ac_ext <<_ACEOF
38506 cat confdefs.h >>conftest.$ac_ext
38507 cat >>conftest.$ac_ext <<_ACEOF
38508 /* end confdefs.h. */
38512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38513 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38514 ice_cv_have_connect_decl=yes
38518 if test "$ice_cv_have_connect_decl" = yes; then
38525 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
38526 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
38527 if test "$ice_cv_have_connect_decl" = yes; then
38529 cat >>confdefs.h <<_ACEOF
38530 #define HAVE_CONNECT_DECL 1
38537 ice_have_dbm_open=no
38539 for ac_func in dbm_open
38541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38542 echo "$as_me:$LINENO: checking for $ac_func" >&5
38543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38544 if eval "test \"\${$as_ac_var+set}\" = set"; then
38545 echo $ECHO_N "(cached) $ECHO_C" >&6
38547 cat >conftest.$ac_ext <<_ACEOF
38550 cat confdefs.h >>conftest.$ac_ext
38551 cat >>conftest.$ac_ext <<_ACEOF
38552 /* end confdefs.h. */
38553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38555 #define $ac_func innocuous_$ac_func
38557 /* System header to define __stub macros and hopefully few prototypes,
38558 which can conflict with char $ac_func (); below.
38559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38560 <limits.h> exists even on freestanding compilers. */
38563 # include <limits.h>
38565 # include <assert.h>
38570 /* Override any gcc2 internal prototype to avoid an error. */
38575 /* We use char because int might match the return type of a gcc2
38576 builtin and then its argument prototype would still apply. */
38578 /* The GNU C library defines this for functions which it implements
38579 to always fail with ENOSYS. Some functions are actually named
38580 something starting with __ and the normal name is an alias. */
38581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38584 char (*f) () = $ac_func;
38593 return f != $ac_func;
38598 rm -f conftest.$ac_objext conftest$ac_exeext
38599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38600 (eval $ac_link) 2>conftest.er1
38602 grep -v '^ *+' conftest.er1 >conftest.err
38604 cat conftest.err >&5
38605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606 (exit $ac_status); } &&
38607 { ac_try='test -z "$ac_c_werror_flag"
38608 || test ! -s conftest.err'
38609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38610 (eval $ac_try) 2>&5
38612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38613 (exit $ac_status); }; } &&
38614 { ac_try='test -s conftest$ac_exeext'
38615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38616 (eval $ac_try) 2>&5
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); }; }; then
38620 eval "$as_ac_var=yes"
38622 echo "$as_me: failed program was:" >&5
38623 sed 's/^/| /' conftest.$ac_ext >&5
38625 eval "$as_ac_var=no"
38627 rm -f conftest.err conftest.$ac_objext \
38628 conftest$ac_exeext conftest.$ac_ext
38630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38632 if test `eval echo '${'$as_ac_var'}'` = yes; then
38633 cat >>confdefs.h <<_ACEOF
38634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38636 ice_have_dbm_open=yes
38640 if test "${ice_have_dbm_open}" = yes; then
38641 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
38642 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
38643 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
38644 echo $ECHO_N "(cached) $ECHO_C" >&6
38647 ice_cv_have_dbm_open_decl=no
38648 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38649 ice_re_word='(^|[^a-zA-Z0-9_])'
38650 for header in ${DB_HEADER-no/db/header/file}; do
38651 # Check for ordinary declaration
38652 cat >conftest.$ac_ext <<_ACEOF
38655 cat confdefs.h >>conftest.$ac_ext
38656 cat >>conftest.$ac_ext <<_ACEOF
38657 /* end confdefs.h. */
38661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38662 $EGREP "${ice_re_word}dbm_open[ ]*\(" >/dev/null 2>&1; then
38663 ice_cv_have_dbm_open_decl=yes
38667 if test "$ice_cv_have_dbm_open_decl" = yes; then
38670 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38671 cat >conftest.$ac_ext <<_ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h. */
38680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38681 $EGREP "${ice_re_word}dbm_open[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38682 ice_cv_have_dbm_open_decl=yes
38686 if test "$ice_cv_have_dbm_open_decl" = yes; then
38693 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
38694 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
38695 if test "$ice_cv_have_dbm_open_decl" = yes; then
38697 cat >>confdefs.h <<_ACEOF
38698 #define HAVE_DBM_OPEN_DECL 1
38705 for ac_func in endmntent
38707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38708 echo "$as_me:$LINENO: checking for $ac_func" >&5
38709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38710 if eval "test \"\${$as_ac_var+set}\" = set"; then
38711 echo $ECHO_N "(cached) $ECHO_C" >&6
38713 cat >conftest.$ac_ext <<_ACEOF
38716 cat confdefs.h >>conftest.$ac_ext
38717 cat >>conftest.$ac_ext <<_ACEOF
38718 /* end confdefs.h. */
38719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38721 #define $ac_func innocuous_$ac_func
38723 /* System header to define __stub macros and hopefully few prototypes,
38724 which can conflict with char $ac_func (); below.
38725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38726 <limits.h> exists even on freestanding compilers. */
38729 # include <limits.h>
38731 # include <assert.h>
38736 /* Override any gcc2 internal prototype to avoid an error. */
38741 /* We use char because int might match the return type of a gcc2
38742 builtin and then its argument prototype would still apply. */
38744 /* The GNU C library defines this for functions which it implements
38745 to always fail with ENOSYS. Some functions are actually named
38746 something starting with __ and the normal name is an alias. */
38747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38750 char (*f) () = $ac_func;
38759 return f != $ac_func;
38764 rm -f conftest.$ac_objext conftest$ac_exeext
38765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38766 (eval $ac_link) 2>conftest.er1
38768 grep -v '^ *+' conftest.er1 >conftest.err
38770 cat conftest.err >&5
38771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772 (exit $ac_status); } &&
38773 { ac_try='test -z "$ac_c_werror_flag"
38774 || test ! -s conftest.err'
38775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38776 (eval $ac_try) 2>&5
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); }; } &&
38780 { ac_try='test -s conftest$ac_exeext'
38781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782 (eval $ac_try) 2>&5
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); }; }; then
38786 eval "$as_ac_var=yes"
38788 echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38791 eval "$as_ac_var=no"
38793 rm -f conftest.err conftest.$ac_objext \
38794 conftest$ac_exeext conftest.$ac_ext
38796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38798 if test `eval echo '${'$as_ac_var'}'` = yes; then
38799 cat >>confdefs.h <<_ACEOF
38800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38809 for ac_func in fclose
38811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38812 echo "$as_me:$LINENO: checking for $ac_func" >&5
38813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38814 if eval "test \"\${$as_ac_var+set}\" = set"; then
38815 echo $ECHO_N "(cached) $ECHO_C" >&6
38817 cat >conftest.$ac_ext <<_ACEOF
38820 cat confdefs.h >>conftest.$ac_ext
38821 cat >>conftest.$ac_ext <<_ACEOF
38822 /* end confdefs.h. */
38823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38825 #define $ac_func innocuous_$ac_func
38827 /* System header to define __stub macros and hopefully few prototypes,
38828 which can conflict with char $ac_func (); below.
38829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38830 <limits.h> exists even on freestanding compilers. */
38833 # include <limits.h>
38835 # include <assert.h>
38840 /* Override any gcc2 internal prototype to avoid an error. */
38845 /* We use char because int might match the return type of a gcc2
38846 builtin and then its argument prototype would still apply. */
38848 /* The GNU C library defines this for functions which it implements
38849 to always fail with ENOSYS. Some functions are actually named
38850 something starting with __ and the normal name is an alias. */
38851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38854 char (*f) () = $ac_func;
38863 return f != $ac_func;
38868 rm -f conftest.$ac_objext conftest$ac_exeext
38869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38870 (eval $ac_link) 2>conftest.er1
38872 grep -v '^ *+' conftest.er1 >conftest.err
38874 cat conftest.err >&5
38875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876 (exit $ac_status); } &&
38877 { ac_try='test -z "$ac_c_werror_flag"
38878 || test ! -s conftest.err'
38879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880 (eval $ac_try) 2>&5
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); }; } &&
38884 { ac_try='test -s conftest$ac_exeext'
38885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38886 (eval $ac_try) 2>&5
38888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889 (exit $ac_status); }; }; then
38890 eval "$as_ac_var=yes"
38892 echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38895 eval "$as_ac_var=no"
38897 rm -f conftest.err conftest.$ac_objext \
38898 conftest$ac_exeext conftest.$ac_ext
38900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38902 if test `eval echo '${'$as_ac_var'}'` = yes; then
38903 cat >>confdefs.h <<_ACEOF
38904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38906 ice_have_fclose=yes
38910 if test "${ice_have_fclose}" = yes; then
38911 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
38912 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
38913 if test "${ice_cv_have_fclose_decl+set}" = set; then
38914 echo $ECHO_N "(cached) $ECHO_C" >&6
38917 ice_cv_have_fclose_decl=no
38918 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38919 ice_re_word='(^|[^a-zA-Z0-9_])'
38920 for header in stdio.h; do
38921 # Check for ordinary declaration
38922 cat >conftest.$ac_ext <<_ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h. */
38931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38932 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
38933 ice_cv_have_fclose_decl=yes
38937 if test "$ice_cv_have_fclose_decl" = yes; then
38940 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38941 cat >conftest.$ac_ext <<_ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h. */
38950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38951 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38952 ice_cv_have_fclose_decl=yes
38956 if test "$ice_cv_have_fclose_decl" = yes; then
38963 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
38964 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
38965 if test "$ice_cv_have_fclose_decl" = yes; then
38967 cat >>confdefs.h <<_ACEOF
38968 #define HAVE_FCLOSE_DECL 1
38977 for ac_func in fflush
38979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38980 echo "$as_me:$LINENO: checking for $ac_func" >&5
38981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38982 if eval "test \"\${$as_ac_var+set}\" = set"; then
38983 echo $ECHO_N "(cached) $ECHO_C" >&6
38985 cat >conftest.$ac_ext <<_ACEOF
38988 cat confdefs.h >>conftest.$ac_ext
38989 cat >>conftest.$ac_ext <<_ACEOF
38990 /* end confdefs.h. */
38991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38993 #define $ac_func innocuous_$ac_func
38995 /* System header to define __stub macros and hopefully few prototypes,
38996 which can conflict with char $ac_func (); below.
38997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38998 <limits.h> exists even on freestanding compilers. */
39001 # include <limits.h>
39003 # include <assert.h>
39008 /* Override any gcc2 internal prototype to avoid an error. */
39013 /* We use char because int might match the return type of a gcc2
39014 builtin and then its argument prototype would still apply. */
39016 /* The GNU C library defines this for functions which it implements
39017 to always fail with ENOSYS. Some functions are actually named
39018 something starting with __ and the normal name is an alias. */
39019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39022 char (*f) () = $ac_func;
39031 return f != $ac_func;
39036 rm -f conftest.$ac_objext conftest$ac_exeext
39037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39038 (eval $ac_link) 2>conftest.er1
39040 grep -v '^ *+' conftest.er1 >conftest.err
39042 cat conftest.err >&5
39043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044 (exit $ac_status); } &&
39045 { ac_try='test -z "$ac_c_werror_flag"
39046 || test ! -s conftest.err'
39047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39048 (eval $ac_try) 2>&5
39050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051 (exit $ac_status); }; } &&
39052 { ac_try='test -s conftest$ac_exeext'
39053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39054 (eval $ac_try) 2>&5
39056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057 (exit $ac_status); }; }; then
39058 eval "$as_ac_var=yes"
39060 echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39063 eval "$as_ac_var=no"
39065 rm -f conftest.err conftest.$ac_objext \
39066 conftest$ac_exeext conftest.$ac_ext
39068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39070 if test `eval echo '${'$as_ac_var'}'` = yes; then
39071 cat >>confdefs.h <<_ACEOF
39072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39074 ice_have_fflush=yes
39078 if test "${ice_have_fflush}" = yes; then
39079 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
39080 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
39081 if test "${ice_cv_have_fflush_decl+set}" = set; then
39082 echo $ECHO_N "(cached) $ECHO_C" >&6
39085 ice_cv_have_fflush_decl=no
39086 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39087 ice_re_word='(^|[^a-zA-Z0-9_])'
39088 for header in stdio.h; do
39089 # Check for ordinary declaration
39090 cat >conftest.$ac_ext <<_ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h. */
39099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39100 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
39101 ice_cv_have_fflush_decl=yes
39105 if test "$ice_cv_have_fflush_decl" = yes; then
39108 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39109 cat >conftest.$ac_ext <<_ACEOF
39112 cat confdefs.h >>conftest.$ac_ext
39113 cat >>conftest.$ac_ext <<_ACEOF
39114 /* end confdefs.h. */
39118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39119 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39120 ice_cv_have_fflush_decl=yes
39124 if test "$ice_cv_have_fflush_decl" = yes; then
39131 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
39132 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
39133 if test "$ice_cv_have_fflush_decl" = yes; then
39135 cat >>confdefs.h <<_ACEOF
39136 #define HAVE_FFLUSH_DECL 1
39145 for ac_func in flock
39147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39148 echo "$as_me:$LINENO: checking for $ac_func" >&5
39149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39150 if eval "test \"\${$as_ac_var+set}\" = set"; then
39151 echo $ECHO_N "(cached) $ECHO_C" >&6
39153 cat >conftest.$ac_ext <<_ACEOF
39156 cat confdefs.h >>conftest.$ac_ext
39157 cat >>conftest.$ac_ext <<_ACEOF
39158 /* end confdefs.h. */
39159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39161 #define $ac_func innocuous_$ac_func
39163 /* System header to define __stub macros and hopefully few prototypes,
39164 which can conflict with char $ac_func (); below.
39165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39166 <limits.h> exists even on freestanding compilers. */
39169 # include <limits.h>
39171 # include <assert.h>
39176 /* Override any gcc2 internal prototype to avoid an error. */
39181 /* We use char because int might match the return type of a gcc2
39182 builtin and then its argument prototype would still apply. */
39184 /* The GNU C library defines this for functions which it implements
39185 to always fail with ENOSYS. Some functions are actually named
39186 something starting with __ and the normal name is an alias. */
39187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39190 char (*f) () = $ac_func;
39199 return f != $ac_func;
39204 rm -f conftest.$ac_objext conftest$ac_exeext
39205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39206 (eval $ac_link) 2>conftest.er1
39208 grep -v '^ *+' conftest.er1 >conftest.err
39210 cat conftest.err >&5
39211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212 (exit $ac_status); } &&
39213 { ac_try='test -z "$ac_c_werror_flag"
39214 || test ! -s conftest.err'
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; } &&
39220 { ac_try='test -s conftest$ac_exeext'
39221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 (eval $ac_try) 2>&5
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); }; }; then
39226 eval "$as_ac_var=yes"
39228 echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39231 eval "$as_ac_var=no"
39233 rm -f conftest.err conftest.$ac_objext \
39234 conftest$ac_exeext conftest.$ac_ext
39236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39238 if test `eval echo '${'$as_ac_var'}'` = yes; then
39239 cat >>confdefs.h <<_ACEOF
39240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39246 if test "${ice_have_flock}" = yes; then
39247 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
39248 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
39249 if test "${ice_cv_have_flock_decl+set}" = set; then
39250 echo $ECHO_N "(cached) $ECHO_C" >&6
39253 ice_cv_have_flock_decl=no
39254 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39255 ice_re_word='(^|[^a-zA-Z0-9_])'
39256 for header in sys/file.h; do
39257 # Check for ordinary declaration
39258 cat >conftest.$ac_ext <<_ACEOF
39261 cat confdefs.h >>conftest.$ac_ext
39262 cat >>conftest.$ac_ext <<_ACEOF
39263 /* end confdefs.h. */
39267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39268 $EGREP "${ice_re_word}flock[ ]*\(" >/dev/null 2>&1; then
39269 ice_cv_have_flock_decl=yes
39273 if test "$ice_cv_have_flock_decl" = yes; then
39276 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39277 cat >conftest.$ac_ext <<_ACEOF
39280 cat confdefs.h >>conftest.$ac_ext
39281 cat >>conftest.$ac_ext <<_ACEOF
39282 /* end confdefs.h. */
39286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39287 $EGREP "${ice_re_word}flock[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39288 ice_cv_have_flock_decl=yes
39292 if test "$ice_cv_have_flock_decl" = yes; then
39299 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
39300 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
39301 if test "$ice_cv_have_flock_decl" = yes; then
39303 cat >>confdefs.h <<_ACEOF
39304 #define HAVE_FLOCK_DECL 1
39311 ice_have_fprintf=no
39313 for ac_func in fprintf
39315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39316 echo "$as_me:$LINENO: checking for $ac_func" >&5
39317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39318 if eval "test \"\${$as_ac_var+set}\" = set"; then
39319 echo $ECHO_N "(cached) $ECHO_C" >&6
39321 cat >conftest.$ac_ext <<_ACEOF
39324 cat confdefs.h >>conftest.$ac_ext
39325 cat >>conftest.$ac_ext <<_ACEOF
39326 /* end confdefs.h. */
39327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39329 #define $ac_func innocuous_$ac_func
39331 /* System header to define __stub macros and hopefully few prototypes,
39332 which can conflict with char $ac_func (); below.
39333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39334 <limits.h> exists even on freestanding compilers. */
39337 # include <limits.h>
39339 # include <assert.h>
39344 /* Override any gcc2 internal prototype to avoid an error. */
39349 /* We use char because int might match the return type of a gcc2
39350 builtin and then its argument prototype would still apply. */
39352 /* The GNU C library defines this for functions which it implements
39353 to always fail with ENOSYS. Some functions are actually named
39354 something starting with __ and the normal name is an alias. */
39355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39358 char (*f) () = $ac_func;
39367 return f != $ac_func;
39372 rm -f conftest.$ac_objext conftest$ac_exeext
39373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39374 (eval $ac_link) 2>conftest.er1
39376 grep -v '^ *+' conftest.er1 >conftest.err
39378 cat conftest.err >&5
39379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380 (exit $ac_status); } &&
39381 { ac_try='test -z "$ac_c_werror_flag"
39382 || test ! -s conftest.err'
39383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39384 (eval $ac_try) 2>&5
39386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387 (exit $ac_status); }; } &&
39388 { ac_try='test -s conftest$ac_exeext'
39389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39390 (eval $ac_try) 2>&5
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); }; }; then
39394 eval "$as_ac_var=yes"
39396 echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39399 eval "$as_ac_var=no"
39401 rm -f conftest.err conftest.$ac_objext \
39402 conftest$ac_exeext conftest.$ac_ext
39404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39406 if test `eval echo '${'$as_ac_var'}'` = yes; then
39407 cat >>confdefs.h <<_ACEOF
39408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39410 ice_have_fprintf=yes
39414 if test "${ice_have_fprintf}" = yes; then
39415 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
39416 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
39417 if test "${ice_cv_have_fprintf_decl+set}" = set; then
39418 echo $ECHO_N "(cached) $ECHO_C" >&6
39421 ice_cv_have_fprintf_decl=no
39422 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39423 ice_re_word='(^|[^a-zA-Z0-9_])'
39424 for header in stdio.h; do
39425 # Check for ordinary declaration
39426 cat >conftest.$ac_ext <<_ACEOF
39429 cat confdefs.h >>conftest.$ac_ext
39430 cat >>conftest.$ac_ext <<_ACEOF
39431 /* end confdefs.h. */
39435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39436 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
39437 ice_cv_have_fprintf_decl=yes
39441 if test "$ice_cv_have_fprintf_decl" = yes; then
39444 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39445 cat >conftest.$ac_ext <<_ACEOF
39448 cat confdefs.h >>conftest.$ac_ext
39449 cat >>conftest.$ac_ext <<_ACEOF
39450 /* end confdefs.h. */
39454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39455 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39456 ice_cv_have_fprintf_decl=yes
39460 if test "$ice_cv_have_fprintf_decl" = yes; then
39467 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
39468 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
39469 if test "$ice_cv_have_fprintf_decl" = yes; then
39471 cat >>confdefs.h <<_ACEOF
39472 #define HAVE_FPRINTF_DECL 1
39481 for ac_func in fputc
39483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39484 echo "$as_me:$LINENO: checking for $ac_func" >&5
39485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39486 if eval "test \"\${$as_ac_var+set}\" = set"; then
39487 echo $ECHO_N "(cached) $ECHO_C" >&6
39489 cat >conftest.$ac_ext <<_ACEOF
39492 cat confdefs.h >>conftest.$ac_ext
39493 cat >>conftest.$ac_ext <<_ACEOF
39494 /* end confdefs.h. */
39495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39497 #define $ac_func innocuous_$ac_func
39499 /* System header to define __stub macros and hopefully few prototypes,
39500 which can conflict with char $ac_func (); below.
39501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39502 <limits.h> exists even on freestanding compilers. */
39505 # include <limits.h>
39507 # include <assert.h>
39512 /* Override any gcc2 internal prototype to avoid an error. */
39517 /* We use char because int might match the return type of a gcc2
39518 builtin and then its argument prototype would still apply. */
39520 /* The GNU C library defines this for functions which it implements
39521 to always fail with ENOSYS. Some functions are actually named
39522 something starting with __ and the normal name is an alias. */
39523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39526 char (*f) () = $ac_func;
39535 return f != $ac_func;
39540 rm -f conftest.$ac_objext conftest$ac_exeext
39541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39542 (eval $ac_link) 2>conftest.er1
39544 grep -v '^ *+' conftest.er1 >conftest.err
39546 cat conftest.err >&5
39547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548 (exit $ac_status); } &&
39549 { ac_try='test -z "$ac_c_werror_flag"
39550 || test ! -s conftest.err'
39551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39552 (eval $ac_try) 2>&5
39554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555 (exit $ac_status); }; } &&
39556 { ac_try='test -s conftest$ac_exeext'
39557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39558 (eval $ac_try) 2>&5
39560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561 (exit $ac_status); }; }; then
39562 eval "$as_ac_var=yes"
39564 echo "$as_me: failed program was:" >&5
39565 sed 's/^/| /' conftest.$ac_ext >&5
39567 eval "$as_ac_var=no"
39569 rm -f conftest.err conftest.$ac_objext \
39570 conftest$ac_exeext conftest.$ac_ext
39572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39574 if test `eval echo '${'$as_ac_var'}'` = yes; then
39575 cat >>confdefs.h <<_ACEOF
39576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39582 if test "${ice_have_fputc}" = yes; then
39583 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
39584 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
39585 if test "${ice_cv_have_fputc_decl+set}" = set; then
39586 echo $ECHO_N "(cached) $ECHO_C" >&6
39589 ice_cv_have_fputc_decl=no
39590 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39591 ice_re_word='(^|[^a-zA-Z0-9_])'
39592 for header in stdio.h; do
39593 # Check for ordinary declaration
39594 cat >conftest.$ac_ext <<_ACEOF
39597 cat confdefs.h >>conftest.$ac_ext
39598 cat >>conftest.$ac_ext <<_ACEOF
39599 /* end confdefs.h. */
39603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39604 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
39605 ice_cv_have_fputc_decl=yes
39609 if test "$ice_cv_have_fputc_decl" = yes; then
39612 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39613 cat >conftest.$ac_ext <<_ACEOF
39616 cat confdefs.h >>conftest.$ac_ext
39617 cat >>conftest.$ac_ext <<_ACEOF
39618 /* end confdefs.h. */
39622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39623 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39624 ice_cv_have_fputc_decl=yes
39628 if test "$ice_cv_have_fputc_decl" = yes; then
39635 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
39636 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
39637 if test "$ice_cv_have_fputc_decl" = yes; then
39639 cat >>confdefs.h <<_ACEOF
39640 #define HAVE_FPUTC_DECL 1
39649 for ac_func in fputs
39651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39652 echo "$as_me:$LINENO: checking for $ac_func" >&5
39653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39654 if eval "test \"\${$as_ac_var+set}\" = set"; then
39655 echo $ECHO_N "(cached) $ECHO_C" >&6
39657 cat >conftest.$ac_ext <<_ACEOF
39660 cat confdefs.h >>conftest.$ac_ext
39661 cat >>conftest.$ac_ext <<_ACEOF
39662 /* end confdefs.h. */
39663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39665 #define $ac_func innocuous_$ac_func
39667 /* System header to define __stub macros and hopefully few prototypes,
39668 which can conflict with char $ac_func (); below.
39669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39670 <limits.h> exists even on freestanding compilers. */
39673 # include <limits.h>
39675 # include <assert.h>
39680 /* Override any gcc2 internal prototype to avoid an error. */
39685 /* We use char because int might match the return type of a gcc2
39686 builtin and then its argument prototype would still apply. */
39688 /* The GNU C library defines this for functions which it implements
39689 to always fail with ENOSYS. Some functions are actually named
39690 something starting with __ and the normal name is an alias. */
39691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39694 char (*f) () = $ac_func;
39703 return f != $ac_func;
39708 rm -f conftest.$ac_objext conftest$ac_exeext
39709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39710 (eval $ac_link) 2>conftest.er1
39712 grep -v '^ *+' conftest.er1 >conftest.err
39714 cat conftest.err >&5
39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716 (exit $ac_status); } &&
39717 { ac_try='test -z "$ac_c_werror_flag"
39718 || test ! -s conftest.err'
39719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39720 (eval $ac_try) 2>&5
39722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723 (exit $ac_status); }; } &&
39724 { ac_try='test -s conftest$ac_exeext'
39725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39726 (eval $ac_try) 2>&5
39728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729 (exit $ac_status); }; }; then
39730 eval "$as_ac_var=yes"
39732 echo "$as_me: failed program was:" >&5
39733 sed 's/^/| /' conftest.$ac_ext >&5
39735 eval "$as_ac_var=no"
39737 rm -f conftest.err conftest.$ac_objext \
39738 conftest$ac_exeext conftest.$ac_ext
39740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39742 if test `eval echo '${'$as_ac_var'}'` = yes; then
39743 cat >>confdefs.h <<_ACEOF
39744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39750 if test "${ice_have_fputs}" = yes; then
39751 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
39752 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
39753 if test "${ice_cv_have_fputs_decl+set}" = set; then
39754 echo $ECHO_N "(cached) $ECHO_C" >&6
39757 ice_cv_have_fputs_decl=no
39758 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39759 ice_re_word='(^|[^a-zA-Z0-9_])'
39760 for header in stdio.h; do
39761 # Check for ordinary declaration
39762 cat >conftest.$ac_ext <<_ACEOF
39765 cat confdefs.h >>conftest.$ac_ext
39766 cat >>conftest.$ac_ext <<_ACEOF
39767 /* end confdefs.h. */
39771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39772 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
39773 ice_cv_have_fputs_decl=yes
39777 if test "$ice_cv_have_fputs_decl" = yes; then
39780 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39781 cat >conftest.$ac_ext <<_ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h. */
39790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39791 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39792 ice_cv_have_fputs_decl=yes
39796 if test "$ice_cv_have_fputs_decl" = yes; then
39803 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
39804 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
39805 if test "$ice_cv_have_fputs_decl" = yes; then
39807 cat >>confdefs.h <<_ACEOF
39808 #define HAVE_FPUTS_DECL 1
39817 for ac_func in fread
39819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39820 echo "$as_me:$LINENO: checking for $ac_func" >&5
39821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39822 if eval "test \"\${$as_ac_var+set}\" = set"; then
39823 echo $ECHO_N "(cached) $ECHO_C" >&6
39825 cat >conftest.$ac_ext <<_ACEOF
39828 cat confdefs.h >>conftest.$ac_ext
39829 cat >>conftest.$ac_ext <<_ACEOF
39830 /* end confdefs.h. */
39831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39833 #define $ac_func innocuous_$ac_func
39835 /* System header to define __stub macros and hopefully few prototypes,
39836 which can conflict with char $ac_func (); below.
39837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39838 <limits.h> exists even on freestanding compilers. */
39841 # include <limits.h>
39843 # include <assert.h>
39848 /* Override any gcc2 internal prototype to avoid an error. */
39853 /* We use char because int might match the return type of a gcc2
39854 builtin and then its argument prototype would still apply. */
39856 /* The GNU C library defines this for functions which it implements
39857 to always fail with ENOSYS. Some functions are actually named
39858 something starting with __ and the normal name is an alias. */
39859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39862 char (*f) () = $ac_func;
39871 return f != $ac_func;
39876 rm -f conftest.$ac_objext conftest$ac_exeext
39877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39878 (eval $ac_link) 2>conftest.er1
39880 grep -v '^ *+' conftest.er1 >conftest.err
39882 cat conftest.err >&5
39883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884 (exit $ac_status); } &&
39885 { ac_try='test -z "$ac_c_werror_flag"
39886 || test ! -s conftest.err'
39887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888 (eval $ac_try) 2>&5
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); }; } &&
39892 { ac_try='test -s conftest$ac_exeext'
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; }; then
39898 eval "$as_ac_var=yes"
39900 echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39903 eval "$as_ac_var=no"
39905 rm -f conftest.err conftest.$ac_objext \
39906 conftest$ac_exeext conftest.$ac_ext
39908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39910 if test `eval echo '${'$as_ac_var'}'` = yes; then
39911 cat >>confdefs.h <<_ACEOF
39912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39918 if test "${ice_have_fread}" = yes; then
39919 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
39920 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
39921 if test "${ice_cv_have_fread_decl+set}" = set; then
39922 echo $ECHO_N "(cached) $ECHO_C" >&6
39925 ice_cv_have_fread_decl=no
39926 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39927 ice_re_word='(^|[^a-zA-Z0-9_])'
39928 for header in stdio.h stdlib.h; do
39929 # Check for ordinary declaration
39930 cat >conftest.$ac_ext <<_ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h. */
39939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39940 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
39941 ice_cv_have_fread_decl=yes
39945 if test "$ice_cv_have_fread_decl" = yes; then
39948 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39949 cat >conftest.$ac_ext <<_ACEOF
39952 cat confdefs.h >>conftest.$ac_ext
39953 cat >>conftest.$ac_ext <<_ACEOF
39954 /* end confdefs.h. */
39958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39959 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39960 ice_cv_have_fread_decl=yes
39964 if test "$ice_cv_have_fread_decl" = yes; then
39971 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
39972 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
39973 if test "$ice_cv_have_fread_decl" = yes; then
39975 cat >>confdefs.h <<_ACEOF
39976 #define HAVE_FREAD_DECL 1
39985 for ac_func in fseek
39987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39988 echo "$as_me:$LINENO: checking for $ac_func" >&5
39989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39990 if eval "test \"\${$as_ac_var+set}\" = set"; then
39991 echo $ECHO_N "(cached) $ECHO_C" >&6
39993 cat >conftest.$ac_ext <<_ACEOF
39996 cat confdefs.h >>conftest.$ac_ext
39997 cat >>conftest.$ac_ext <<_ACEOF
39998 /* end confdefs.h. */
39999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40001 #define $ac_func innocuous_$ac_func
40003 /* System header to define __stub macros and hopefully few prototypes,
40004 which can conflict with char $ac_func (); below.
40005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40006 <limits.h> exists even on freestanding compilers. */
40009 # include <limits.h>
40011 # include <assert.h>
40016 /* Override any gcc2 internal prototype to avoid an error. */
40021 /* We use char because int might match the return type of a gcc2
40022 builtin and then its argument prototype would still apply. */
40024 /* The GNU C library defines this for functions which it implements
40025 to always fail with ENOSYS. Some functions are actually named
40026 something starting with __ and the normal name is an alias. */
40027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40030 char (*f) () = $ac_func;
40039 return f != $ac_func;
40044 rm -f conftest.$ac_objext conftest$ac_exeext
40045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40046 (eval $ac_link) 2>conftest.er1
40048 grep -v '^ *+' conftest.er1 >conftest.err
40050 cat conftest.err >&5
40051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052 (exit $ac_status); } &&
40053 { ac_try='test -z "$ac_c_werror_flag"
40054 || test ! -s conftest.err'
40055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056 (eval $ac_try) 2>&5
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); }; } &&
40060 { ac_try='test -s conftest$ac_exeext'
40061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40062 (eval $ac_try) 2>&5
40064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); }; }; then
40066 eval "$as_ac_var=yes"
40068 echo "$as_me: failed program was:" >&5
40069 sed 's/^/| /' conftest.$ac_ext >&5
40071 eval "$as_ac_var=no"
40073 rm -f conftest.err conftest.$ac_objext \
40074 conftest$ac_exeext conftest.$ac_ext
40076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40078 if test `eval echo '${'$as_ac_var'}'` = yes; then
40079 cat >>confdefs.h <<_ACEOF
40080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40086 if test "${ice_have_fseek}" = yes; then
40087 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
40088 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
40089 if test "${ice_cv_have_fseek_decl+set}" = set; then
40090 echo $ECHO_N "(cached) $ECHO_C" >&6
40093 ice_cv_have_fseek_decl=no
40094 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40095 ice_re_word='(^|[^a-zA-Z0-9_])'
40096 for header in stdio.h; do
40097 # Check for ordinary declaration
40098 cat >conftest.$ac_ext <<_ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h. */
40107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40108 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
40109 ice_cv_have_fseek_decl=yes
40113 if test "$ice_cv_have_fseek_decl" = yes; then
40116 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40117 cat >conftest.$ac_ext <<_ACEOF
40120 cat confdefs.h >>conftest.$ac_ext
40121 cat >>conftest.$ac_ext <<_ACEOF
40122 /* end confdefs.h. */
40126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40127 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40128 ice_cv_have_fseek_decl=yes
40132 if test "$ice_cv_have_fseek_decl" = yes; then
40139 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
40140 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
40141 if test "$ice_cv_have_fseek_decl" = yes; then
40143 cat >>confdefs.h <<_ACEOF
40144 #define HAVE_FSEEK_DECL 1
40153 for ac_func in fwrite
40155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40156 echo "$as_me:$LINENO: checking for $ac_func" >&5
40157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40158 if eval "test \"\${$as_ac_var+set}\" = set"; then
40159 echo $ECHO_N "(cached) $ECHO_C" >&6
40161 cat >conftest.$ac_ext <<_ACEOF
40164 cat confdefs.h >>conftest.$ac_ext
40165 cat >>conftest.$ac_ext <<_ACEOF
40166 /* end confdefs.h. */
40167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40169 #define $ac_func innocuous_$ac_func
40171 /* System header to define __stub macros and hopefully few prototypes,
40172 which can conflict with char $ac_func (); below.
40173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40174 <limits.h> exists even on freestanding compilers. */
40177 # include <limits.h>
40179 # include <assert.h>
40184 /* Override any gcc2 internal prototype to avoid an error. */
40189 /* We use char because int might match the return type of a gcc2
40190 builtin and then its argument prototype would still apply. */
40192 /* The GNU C library defines this for functions which it implements
40193 to always fail with ENOSYS. Some functions are actually named
40194 something starting with __ and the normal name is an alias. */
40195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40198 char (*f) () = $ac_func;
40207 return f != $ac_func;
40212 rm -f conftest.$ac_objext conftest$ac_exeext
40213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40214 (eval $ac_link) 2>conftest.er1
40216 grep -v '^ *+' conftest.er1 >conftest.err
40218 cat conftest.err >&5
40219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220 (exit $ac_status); } &&
40221 { ac_try='test -z "$ac_c_werror_flag"
40222 || test ! -s conftest.err'
40223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40224 (eval $ac_try) 2>&5
40226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227 (exit $ac_status); }; } &&
40228 { ac_try='test -s conftest$ac_exeext'
40229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40230 (eval $ac_try) 2>&5
40232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); }; }; then
40234 eval "$as_ac_var=yes"
40236 echo "$as_me: failed program was:" >&5
40237 sed 's/^/| /' conftest.$ac_ext >&5
40239 eval "$as_ac_var=no"
40241 rm -f conftest.err conftest.$ac_objext \
40242 conftest$ac_exeext conftest.$ac_ext
40244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40246 if test `eval echo '${'$as_ac_var'}'` = yes; then
40247 cat >>confdefs.h <<_ACEOF
40248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40250 ice_have_fwrite=yes
40254 if test "${ice_have_fwrite}" = yes; then
40255 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
40256 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
40257 if test "${ice_cv_have_fwrite_decl+set}" = set; then
40258 echo $ECHO_N "(cached) $ECHO_C" >&6
40261 ice_cv_have_fwrite_decl=no
40262 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40263 ice_re_word='(^|[^a-zA-Z0-9_])'
40264 for header in stdio.h stdlib.h; do
40265 # Check for ordinary declaration
40266 cat >conftest.$ac_ext <<_ACEOF
40269 cat confdefs.h >>conftest.$ac_ext
40270 cat >>conftest.$ac_ext <<_ACEOF
40271 /* end confdefs.h. */
40275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40276 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
40277 ice_cv_have_fwrite_decl=yes
40281 if test "$ice_cv_have_fwrite_decl" = yes; then
40284 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40285 cat >conftest.$ac_ext <<_ACEOF
40288 cat confdefs.h >>conftest.$ac_ext
40289 cat >>conftest.$ac_ext <<_ACEOF
40290 /* end confdefs.h. */
40294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40295 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40296 ice_cv_have_fwrite_decl=yes
40300 if test "$ice_cv_have_fwrite_decl" = yes; then
40307 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
40308 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
40309 if test "$ice_cv_have_fwrite_decl" = yes; then
40311 cat >>confdefs.h <<_ACEOF
40312 #define HAVE_FWRITE_DECL 1
40319 for ac_func in getcwd
40321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40322 echo "$as_me:$LINENO: checking for $ac_func" >&5
40323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40324 if eval "test \"\${$as_ac_var+set}\" = set"; then
40325 echo $ECHO_N "(cached) $ECHO_C" >&6
40327 cat >conftest.$ac_ext <<_ACEOF
40330 cat confdefs.h >>conftest.$ac_ext
40331 cat >>conftest.$ac_ext <<_ACEOF
40332 /* end confdefs.h. */
40333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40335 #define $ac_func innocuous_$ac_func
40337 /* System header to define __stub macros and hopefully few prototypes,
40338 which can conflict with char $ac_func (); below.
40339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40340 <limits.h> exists even on freestanding compilers. */
40343 # include <limits.h>
40345 # include <assert.h>
40350 /* Override any gcc2 internal prototype to avoid an error. */
40355 /* We use char because int might match the return type of a gcc2
40356 builtin and then its argument prototype would still apply. */
40358 /* The GNU C library defines this for functions which it implements
40359 to always fail with ENOSYS. Some functions are actually named
40360 something starting with __ and the normal name is an alias. */
40361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40364 char (*f) () = $ac_func;
40373 return f != $ac_func;
40378 rm -f conftest.$ac_objext conftest$ac_exeext
40379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40380 (eval $ac_link) 2>conftest.er1
40382 grep -v '^ *+' conftest.er1 >conftest.err
40384 cat conftest.err >&5
40385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40386 (exit $ac_status); } &&
40387 { ac_try='test -z "$ac_c_werror_flag"
40388 || test ! -s conftest.err'
40389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40390 (eval $ac_try) 2>&5
40392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40393 (exit $ac_status); }; } &&
40394 { ac_try='test -s conftest$ac_exeext'
40395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40396 (eval $ac_try) 2>&5
40398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399 (exit $ac_status); }; }; then
40400 eval "$as_ac_var=yes"
40402 echo "$as_me: failed program was:" >&5
40403 sed 's/^/| /' conftest.$ac_ext >&5
40405 eval "$as_ac_var=no"
40407 rm -f conftest.err conftest.$ac_objext \
40408 conftest$ac_exeext conftest.$ac_ext
40410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40412 if test `eval echo '${'$as_ac_var'}'` = yes; then
40413 cat >>confdefs.h <<_ACEOF
40414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40419 "$ac_func.$ac_objext" | \
40420 *" $ac_func.$ac_objext" | \
40421 "$ac_func.$ac_objext "* | \
40422 *" $ac_func.$ac_objext "* ) ;;
40423 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40431 for ac_func in getfsent
40433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40434 echo "$as_me:$LINENO: checking for $ac_func" >&5
40435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40436 if eval "test \"\${$as_ac_var+set}\" = set"; then
40437 echo $ECHO_N "(cached) $ECHO_C" >&6
40439 cat >conftest.$ac_ext <<_ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h. */
40445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40447 #define $ac_func innocuous_$ac_func
40449 /* System header to define __stub macros and hopefully few prototypes,
40450 which can conflict with char $ac_func (); below.
40451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40452 <limits.h> exists even on freestanding compilers. */
40455 # include <limits.h>
40457 # include <assert.h>
40462 /* Override any gcc2 internal prototype to avoid an error. */
40467 /* We use char because int might match the return type of a gcc2
40468 builtin and then its argument prototype would still apply. */
40470 /* The GNU C library defines this for functions which it implements
40471 to always fail with ENOSYS. Some functions are actually named
40472 something starting with __ and the normal name is an alias. */
40473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40476 char (*f) () = $ac_func;
40485 return f != $ac_func;
40490 rm -f conftest.$ac_objext conftest$ac_exeext
40491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40492 (eval $ac_link) 2>conftest.er1
40494 grep -v '^ *+' conftest.er1 >conftest.err
40496 cat conftest.err >&5
40497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40498 (exit $ac_status); } &&
40499 { ac_try='test -z "$ac_c_werror_flag"
40500 || test ! -s conftest.err'
40501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40502 (eval $ac_try) 2>&5
40504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505 (exit $ac_status); }; } &&
40506 { ac_try='test -s conftest$ac_exeext'
40507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40508 (eval $ac_try) 2>&5
40510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511 (exit $ac_status); }; }; then
40512 eval "$as_ac_var=yes"
40514 echo "$as_me: failed program was:" >&5
40515 sed 's/^/| /' conftest.$ac_ext >&5
40517 eval "$as_ac_var=no"
40519 rm -f conftest.err conftest.$ac_objext \
40520 conftest$ac_exeext conftest.$ac_ext
40522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40524 if test `eval echo '${'$as_ac_var'}'` = yes; then
40525 cat >>confdefs.h <<_ACEOF
40526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40533 ice_have_gethostname=no
40535 for ac_func in gethostname
40537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40538 echo "$as_me:$LINENO: checking for $ac_func" >&5
40539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40540 if eval "test \"\${$as_ac_var+set}\" = set"; then
40541 echo $ECHO_N "(cached) $ECHO_C" >&6
40543 cat >conftest.$ac_ext <<_ACEOF
40546 cat confdefs.h >>conftest.$ac_ext
40547 cat >>conftest.$ac_ext <<_ACEOF
40548 /* end confdefs.h. */
40549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40551 #define $ac_func innocuous_$ac_func
40553 /* System header to define __stub macros and hopefully few prototypes,
40554 which can conflict with char $ac_func (); below.
40555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40556 <limits.h> exists even on freestanding compilers. */
40559 # include <limits.h>
40561 # include <assert.h>
40566 /* Override any gcc2 internal prototype to avoid an error. */
40571 /* We use char because int might match the return type of a gcc2
40572 builtin and then its argument prototype would still apply. */
40574 /* The GNU C library defines this for functions which it implements
40575 to always fail with ENOSYS. Some functions are actually named
40576 something starting with __ and the normal name is an alias. */
40577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40580 char (*f) () = $ac_func;
40589 return f != $ac_func;
40594 rm -f conftest.$ac_objext conftest$ac_exeext
40595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40596 (eval $ac_link) 2>conftest.er1
40598 grep -v '^ *+' conftest.er1 >conftest.err
40600 cat conftest.err >&5
40601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602 (exit $ac_status); } &&
40603 { ac_try='test -z "$ac_c_werror_flag"
40604 || test ! -s conftest.err'
40605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40606 (eval $ac_try) 2>&5
40608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609 (exit $ac_status); }; } &&
40610 { ac_try='test -s conftest$ac_exeext'
40611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40612 (eval $ac_try) 2>&5
40614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615 (exit $ac_status); }; }; then
40616 eval "$as_ac_var=yes"
40618 echo "$as_me: failed program was:" >&5
40619 sed 's/^/| /' conftest.$ac_ext >&5
40621 eval "$as_ac_var=no"
40623 rm -f conftest.err conftest.$ac_objext \
40624 conftest$ac_exeext conftest.$ac_ext
40626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40628 if test `eval echo '${'$as_ac_var'}'` = yes; then
40629 cat >>confdefs.h <<_ACEOF
40630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40632 ice_have_gethostname=yes
40636 if test "${ice_have_gethostname}" = yes; then
40637 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
40638 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
40639 if test "${ice_cv_have_gethostname_decl+set}" = set; then
40640 echo $ECHO_N "(cached) $ECHO_C" >&6
40643 ice_cv_have_gethostname_decl=no
40644 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40645 ice_re_word='(^|[^a-zA-Z0-9_])'
40646 for header in unistd.h; do
40647 # Check for ordinary declaration
40648 cat >conftest.$ac_ext <<_ACEOF
40651 cat confdefs.h >>conftest.$ac_ext
40652 cat >>conftest.$ac_ext <<_ACEOF
40653 /* end confdefs.h. */
40657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40658 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
40659 ice_cv_have_gethostname_decl=yes
40663 if test "$ice_cv_have_gethostname_decl" = yes; then
40666 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40667 cat >conftest.$ac_ext <<_ACEOF
40670 cat confdefs.h >>conftest.$ac_ext
40671 cat >>conftest.$ac_ext <<_ACEOF
40672 /* end confdefs.h. */
40676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40677 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40678 ice_cv_have_gethostname_decl=yes
40682 if test "$ice_cv_have_gethostname_decl" = yes; then
40689 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
40690 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
40691 if test "$ice_cv_have_gethostname_decl" = yes; then
40693 cat >>confdefs.h <<_ACEOF
40694 #define HAVE_GETHOSTNAME_DECL 1
40700 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
40701 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
40702 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
40703 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
40704 echo $ECHO_N "(cached) $ECHO_C" >&6
40706 ac_check_lib_save_LIBS=$LIBS
40708 cat >conftest.$ac_ext <<_ACEOF
40711 cat confdefs.h >>conftest.$ac_ext
40712 cat >>conftest.$ac_ext <<_ACEOF
40713 /* end confdefs.h. */
40715 /* Override any gcc2 internal prototype to avoid an error. */
40719 /* We use char because int might match the return type of a gcc2
40720 builtin and then its argument prototype would still apply. */
40730 rm -f conftest.$ac_objext conftest$ac_exeext
40731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40732 (eval $ac_link) 2>conftest.er1
40734 grep -v '^ *+' conftest.er1 >conftest.err
40736 cat conftest.err >&5
40737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738 (exit $ac_status); } &&
40739 { ac_try='test -z "$ac_c_werror_flag"
40740 || test ! -s conftest.err'
40741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40742 (eval $ac_try) 2>&5
40744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745 (exit $ac_status); }; } &&
40746 { ac_try='test -s conftest$ac_exeext'
40747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748 (eval $ac_try) 2>&5
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); }; }; then
40752 ac_cv_lib_sun_getmntent=yes
40754 echo "$as_me: failed program was:" >&5
40755 sed 's/^/| /' conftest.$ac_ext >&5
40757 ac_cv_lib_sun_getmntent=no
40759 rm -f conftest.err conftest.$ac_objext \
40760 conftest$ac_exeext conftest.$ac_ext
40761 LIBS=$ac_check_lib_save_LIBS
40763 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
40764 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
40765 if test $ac_cv_lib_sun_getmntent = yes; then
40768 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
40769 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
40770 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
40771 echo $ECHO_N "(cached) $ECHO_C" >&6
40773 ac_check_lib_save_LIBS=$LIBS
40775 cat >conftest.$ac_ext <<_ACEOF
40778 cat confdefs.h >>conftest.$ac_ext
40779 cat >>conftest.$ac_ext <<_ACEOF
40780 /* end confdefs.h. */
40782 /* Override any gcc2 internal prototype to avoid an error. */
40786 /* We use char because int might match the return type of a gcc2
40787 builtin and then its argument prototype would still apply. */
40797 rm -f conftest.$ac_objext conftest$ac_exeext
40798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40799 (eval $ac_link) 2>conftest.er1
40801 grep -v '^ *+' conftest.er1 >conftest.err
40803 cat conftest.err >&5
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); } &&
40806 { ac_try='test -z "$ac_c_werror_flag"
40807 || test ! -s conftest.err'
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; } &&
40813 { ac_try='test -s conftest$ac_exeext'
40814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815 (eval $ac_try) 2>&5
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); }; }; then
40819 ac_cv_lib_seq_getmntent=yes
40821 echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40824 ac_cv_lib_seq_getmntent=no
40826 rm -f conftest.err conftest.$ac_objext \
40827 conftest$ac_exeext conftest.$ac_ext
40828 LIBS=$ac_check_lib_save_LIBS
40830 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
40831 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
40832 if test $ac_cv_lib_seq_getmntent = yes; then
40835 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
40836 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
40837 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
40838 echo $ECHO_N "(cached) $ECHO_C" >&6
40840 ac_check_lib_save_LIBS=$LIBS
40842 cat >conftest.$ac_ext <<_ACEOF
40845 cat confdefs.h >>conftest.$ac_ext
40846 cat >>conftest.$ac_ext <<_ACEOF
40847 /* end confdefs.h. */
40849 /* Override any gcc2 internal prototype to avoid an error. */
40853 /* We use char because int might match the return type of a gcc2
40854 builtin and then its argument prototype would still apply. */
40864 rm -f conftest.$ac_objext conftest$ac_exeext
40865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40866 (eval $ac_link) 2>conftest.er1
40868 grep -v '^ *+' conftest.er1 >conftest.err
40870 cat conftest.err >&5
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } &&
40873 { ac_try='test -z "$ac_c_werror_flag"
40874 || test ! -s conftest.err'
40875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40876 (eval $ac_try) 2>&5
40878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40879 (exit $ac_status); }; } &&
40880 { ac_try='test -s conftest$ac_exeext'
40881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40882 (eval $ac_try) 2>&5
40884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885 (exit $ac_status); }; }; then
40886 ac_cv_lib_gen_getmntent=yes
40888 echo "$as_me: failed program was:" >&5
40889 sed 's/^/| /' conftest.$ac_ext >&5
40891 ac_cv_lib_gen_getmntent=no
40893 rm -f conftest.err conftest.$ac_objext \
40894 conftest$ac_exeext conftest.$ac_ext
40895 LIBS=$ac_check_lib_save_LIBS
40897 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
40898 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
40899 if test $ac_cv_lib_gen_getmntent = yes; then
40908 for ac_func in getmntent
40910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40911 echo "$as_me:$LINENO: checking for $ac_func" >&5
40912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40913 if eval "test \"\${$as_ac_var+set}\" = set"; then
40914 echo $ECHO_N "(cached) $ECHO_C" >&6
40916 cat >conftest.$ac_ext <<_ACEOF
40919 cat confdefs.h >>conftest.$ac_ext
40920 cat >>conftest.$ac_ext <<_ACEOF
40921 /* end confdefs.h. */
40922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40924 #define $ac_func innocuous_$ac_func
40926 /* System header to define __stub macros and hopefully few prototypes,
40927 which can conflict with char $ac_func (); below.
40928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40929 <limits.h> exists even on freestanding compilers. */
40932 # include <limits.h>
40934 # include <assert.h>
40939 /* Override any gcc2 internal prototype to avoid an error. */
40944 /* We use char because int might match the return type of a gcc2
40945 builtin and then its argument prototype would still apply. */
40947 /* The GNU C library defines this for functions which it implements
40948 to always fail with ENOSYS. Some functions are actually named
40949 something starting with __ and the normal name is an alias. */
40950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40953 char (*f) () = $ac_func;
40962 return f != $ac_func;
40967 rm -f conftest.$ac_objext conftest$ac_exeext
40968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40969 (eval $ac_link) 2>conftest.er1
40971 grep -v '^ *+' conftest.er1 >conftest.err
40973 cat conftest.err >&5
40974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975 (exit $ac_status); } &&
40976 { ac_try='test -z "$ac_c_werror_flag"
40977 || test ! -s conftest.err'
40978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40979 (eval $ac_try) 2>&5
40981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982 (exit $ac_status); }; } &&
40983 { ac_try='test -s conftest$ac_exeext'
40984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40985 (eval $ac_try) 2>&5
40987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988 (exit $ac_status); }; }; then
40989 eval "$as_ac_var=yes"
40991 echo "$as_me: failed program was:" >&5
40992 sed 's/^/| /' conftest.$ac_ext >&5
40994 eval "$as_ac_var=no"
40996 rm -f conftest.err conftest.$ac_objext \
40997 conftest$ac_exeext conftest.$ac_ext
40999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41001 if test `eval echo '${'$as_ac_var'}'` = yes; then
41002 cat >>confdefs.h <<_ACEOF
41003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41013 for ac_func in getopt
41015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41016 echo "$as_me:$LINENO: checking for $ac_func" >&5
41017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41018 if eval "test \"\${$as_ac_var+set}\" = set"; then
41019 echo $ECHO_N "(cached) $ECHO_C" >&6
41021 cat >conftest.$ac_ext <<_ACEOF
41024 cat confdefs.h >>conftest.$ac_ext
41025 cat >>conftest.$ac_ext <<_ACEOF
41026 /* end confdefs.h. */
41027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41029 #define $ac_func innocuous_$ac_func
41031 /* System header to define __stub macros and hopefully few prototypes,
41032 which can conflict with char $ac_func (); below.
41033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41034 <limits.h> exists even on freestanding compilers. */
41037 # include <limits.h>
41039 # include <assert.h>
41044 /* Override any gcc2 internal prototype to avoid an error. */
41049 /* We use char because int might match the return type of a gcc2
41050 builtin and then its argument prototype would still apply. */
41052 /* The GNU C library defines this for functions which it implements
41053 to always fail with ENOSYS. Some functions are actually named
41054 something starting with __ and the normal name is an alias. */
41055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41058 char (*f) () = $ac_func;
41067 return f != $ac_func;
41072 rm -f conftest.$ac_objext conftest$ac_exeext
41073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41074 (eval $ac_link) 2>conftest.er1
41076 grep -v '^ *+' conftest.er1 >conftest.err
41078 cat conftest.err >&5
41079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41080 (exit $ac_status); } &&
41081 { ac_try='test -z "$ac_c_werror_flag"
41082 || test ! -s conftest.err'
41083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41084 (eval $ac_try) 2>&5
41086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087 (exit $ac_status); }; } &&
41088 { ac_try='test -s conftest$ac_exeext'
41089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41090 (eval $ac_try) 2>&5
41092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093 (exit $ac_status); }; }; then
41094 eval "$as_ac_var=yes"
41096 echo "$as_me: failed program was:" >&5
41097 sed 's/^/| /' conftest.$ac_ext >&5
41099 eval "$as_ac_var=no"
41101 rm -f conftest.err conftest.$ac_objext \
41102 conftest$ac_exeext conftest.$ac_ext
41104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41106 if test `eval echo '${'$as_ac_var'}'` = yes; then
41107 cat >>confdefs.h <<_ACEOF
41108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41110 ice_have_getopt=yes
41114 if test "${ice_have_getopt}" = yes; then
41115 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
41116 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
41117 if test "${ice_cv_have_getopt_decl+set}" = set; then
41118 echo $ECHO_N "(cached) $ECHO_C" >&6
41121 ice_cv_have_getopt_decl=no
41122 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41123 ice_re_word='(^|[^a-zA-Z0-9_])'
41124 for header in stdlib.h unistd.h libc.h; do
41125 # Check for ordinary declaration
41126 cat >conftest.$ac_ext <<_ACEOF
41129 cat confdefs.h >>conftest.$ac_ext
41130 cat >>conftest.$ac_ext <<_ACEOF
41131 /* end confdefs.h. */
41135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41136 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
41137 ice_cv_have_getopt_decl=yes
41141 if test "$ice_cv_have_getopt_decl" = yes; then
41144 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41145 cat >conftest.$ac_ext <<_ACEOF
41148 cat confdefs.h >>conftest.$ac_ext
41149 cat >>conftest.$ac_ext <<_ACEOF
41150 /* end confdefs.h. */
41154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41155 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41156 ice_cv_have_getopt_decl=yes
41160 if test "$ice_cv_have_getopt_decl" = yes; then
41167 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
41168 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
41169 if test "$ice_cv_have_getopt_decl" = yes; then
41171 cat >>confdefs.h <<_ACEOF
41172 #define HAVE_GETOPT_DECL 1
41179 ice_have_getpeername=no
41181 for ac_func in getpeername
41183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41184 echo "$as_me:$LINENO: checking for $ac_func" >&5
41185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41186 if eval "test \"\${$as_ac_var+set}\" = set"; then
41187 echo $ECHO_N "(cached) $ECHO_C" >&6
41189 cat >conftest.$ac_ext <<_ACEOF
41192 cat confdefs.h >>conftest.$ac_ext
41193 cat >>conftest.$ac_ext <<_ACEOF
41194 /* end confdefs.h. */
41195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41197 #define $ac_func innocuous_$ac_func
41199 /* System header to define __stub macros and hopefully few prototypes,
41200 which can conflict with char $ac_func (); below.
41201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41202 <limits.h> exists even on freestanding compilers. */
41205 # include <limits.h>
41207 # include <assert.h>
41212 /* Override any gcc2 internal prototype to avoid an error. */
41217 /* We use char because int might match the return type of a gcc2
41218 builtin and then its argument prototype would still apply. */
41220 /* The GNU C library defines this for functions which it implements
41221 to always fail with ENOSYS. Some functions are actually named
41222 something starting with __ and the normal name is an alias. */
41223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41226 char (*f) () = $ac_func;
41235 return f != $ac_func;
41240 rm -f conftest.$ac_objext conftest$ac_exeext
41241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41242 (eval $ac_link) 2>conftest.er1
41244 grep -v '^ *+' conftest.er1 >conftest.err
41246 cat conftest.err >&5
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); } &&
41249 { ac_try='test -z "$ac_c_werror_flag"
41250 || test ! -s conftest.err'
41251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41252 (eval $ac_try) 2>&5
41254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255 (exit $ac_status); }; } &&
41256 { ac_try='test -s conftest$ac_exeext'
41257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41258 (eval $ac_try) 2>&5
41260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); }; }; then
41262 eval "$as_ac_var=yes"
41264 echo "$as_me: failed program was:" >&5
41265 sed 's/^/| /' conftest.$ac_ext >&5
41267 eval "$as_ac_var=no"
41269 rm -f conftest.err conftest.$ac_objext \
41270 conftest$ac_exeext conftest.$ac_ext
41272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41274 if test `eval echo '${'$as_ac_var'}'` = yes; then
41275 cat >>confdefs.h <<_ACEOF
41276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41278 ice_have_getpeername=yes
41282 if test "${ice_have_getpeername}" = yes; then
41283 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
41284 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41285 if test "${ice_cv_have_getpeername_decl+set}" = set; then
41286 echo $ECHO_N "(cached) $ECHO_C" >&6
41289 ice_cv_have_getpeername_decl=no
41290 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41291 ice_re_word='(^|[^a-zA-Z0-9_])'
41292 for header in sys/types.h sys/socket.h; do
41293 # Check for ordinary declaration
41294 cat >conftest.$ac_ext <<_ACEOF
41297 cat confdefs.h >>conftest.$ac_ext
41298 cat >>conftest.$ac_ext <<_ACEOF
41299 /* end confdefs.h. */
41303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41304 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
41305 ice_cv_have_getpeername_decl=yes
41309 if test "$ice_cv_have_getpeername_decl" = yes; then
41312 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41313 cat >conftest.$ac_ext <<_ACEOF
41316 cat confdefs.h >>conftest.$ac_ext
41317 cat >>conftest.$ac_ext <<_ACEOF
41318 /* end confdefs.h. */
41322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41323 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41324 ice_cv_have_getpeername_decl=yes
41328 if test "$ice_cv_have_getpeername_decl" = yes; then
41335 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
41336 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
41337 if test "$ice_cv_have_getpeername_decl" = yes; then
41339 cat >>confdefs.h <<_ACEOF
41340 #define HAVE_GETPEERNAME_DECL 1
41347 for ac_func in getpgrp
41349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41350 echo "$as_me:$LINENO: checking for $ac_func" >&5
41351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41352 if eval "test \"\${$as_ac_var+set}\" = set"; then
41353 echo $ECHO_N "(cached) $ECHO_C" >&6
41355 cat >conftest.$ac_ext <<_ACEOF
41358 cat confdefs.h >>conftest.$ac_ext
41359 cat >>conftest.$ac_ext <<_ACEOF
41360 /* end confdefs.h. */
41361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41363 #define $ac_func innocuous_$ac_func
41365 /* System header to define __stub macros and hopefully few prototypes,
41366 which can conflict with char $ac_func (); below.
41367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41368 <limits.h> exists even on freestanding compilers. */
41371 # include <limits.h>
41373 # include <assert.h>
41378 /* Override any gcc2 internal prototype to avoid an error. */
41383 /* We use char because int might match the return type of a gcc2
41384 builtin and then its argument prototype would still apply. */
41386 /* The GNU C library defines this for functions which it implements
41387 to always fail with ENOSYS. Some functions are actually named
41388 something starting with __ and the normal name is an alias. */
41389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41392 char (*f) () = $ac_func;
41401 return f != $ac_func;
41406 rm -f conftest.$ac_objext conftest$ac_exeext
41407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41408 (eval $ac_link) 2>conftest.er1
41410 grep -v '^ *+' conftest.er1 >conftest.err
41412 cat conftest.err >&5
41413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41414 (exit $ac_status); } &&
41415 { ac_try='test -z "$ac_c_werror_flag"
41416 || test ! -s conftest.err'
41417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41418 (eval $ac_try) 2>&5
41420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41421 (exit $ac_status); }; } &&
41422 { ac_try='test -s conftest$ac_exeext'
41423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41424 (eval $ac_try) 2>&5
41426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427 (exit $ac_status); }; }; then
41428 eval "$as_ac_var=yes"
41430 echo "$as_me: failed program was:" >&5
41431 sed 's/^/| /' conftest.$ac_ext >&5
41433 eval "$as_ac_var=no"
41435 rm -f conftest.err conftest.$ac_objext \
41436 conftest$ac_exeext conftest.$ac_ext
41438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41440 if test `eval echo '${'$as_ac_var'}'` = yes; then
41441 cat >>confdefs.h <<_ACEOF
41442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41448 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
41449 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
41450 if test "${ac_cv_func_getpgrp_void+set}" = set; then
41451 echo $ECHO_N "(cached) $ECHO_C" >&6
41453 # Use it with a single arg.
41454 cat >conftest.$ac_ext <<_ACEOF
41457 cat confdefs.h >>conftest.$ac_ext
41458 cat >>conftest.$ac_ext <<_ACEOF
41459 /* end confdefs.h. */
41460 $ac_includes_default
41469 rm -f conftest.$ac_objext
41470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41471 (eval $ac_compile) 2>conftest.er1
41473 grep -v '^ *+' conftest.er1 >conftest.err
41475 cat conftest.err >&5
41476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477 (exit $ac_status); } &&
41478 { ac_try='test -z "$ac_c_werror_flag"
41479 || test ! -s conftest.err'
41480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41481 (eval $ac_try) 2>&5
41483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484 (exit $ac_status); }; } &&
41485 { ac_try='test -s conftest.$ac_objext'
41486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41487 (eval $ac_try) 2>&5
41489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41490 (exit $ac_status); }; }; then
41491 ac_cv_func_getpgrp_void=no
41493 echo "$as_me: failed program was:" >&5
41494 sed 's/^/| /' conftest.$ac_ext >&5
41496 ac_cv_func_getpgrp_void=yes
41498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41501 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
41502 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
41503 if test $ac_cv_func_getpgrp_void = yes; then
41505 cat >>confdefs.h <<\_ACEOF
41506 #define GETPGRP_VOID 1
41512 ice_have_getsockname=no
41514 for ac_func in getsockname
41516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41517 echo "$as_me:$LINENO: checking for $ac_func" >&5
41518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41519 if eval "test \"\${$as_ac_var+set}\" = set"; then
41520 echo $ECHO_N "(cached) $ECHO_C" >&6
41522 cat >conftest.$ac_ext <<_ACEOF
41525 cat confdefs.h >>conftest.$ac_ext
41526 cat >>conftest.$ac_ext <<_ACEOF
41527 /* end confdefs.h. */
41528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41530 #define $ac_func innocuous_$ac_func
41532 /* System header to define __stub macros and hopefully few prototypes,
41533 which can conflict with char $ac_func (); below.
41534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41535 <limits.h> exists even on freestanding compilers. */
41538 # include <limits.h>
41540 # include <assert.h>
41545 /* Override any gcc2 internal prototype to avoid an error. */
41550 /* We use char because int might match the return type of a gcc2
41551 builtin and then its argument prototype would still apply. */
41553 /* The GNU C library defines this for functions which it implements
41554 to always fail with ENOSYS. Some functions are actually named
41555 something starting with __ and the normal name is an alias. */
41556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41559 char (*f) () = $ac_func;
41568 return f != $ac_func;
41573 rm -f conftest.$ac_objext conftest$ac_exeext
41574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41575 (eval $ac_link) 2>conftest.er1
41577 grep -v '^ *+' conftest.er1 >conftest.err
41579 cat conftest.err >&5
41580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581 (exit $ac_status); } &&
41582 { ac_try='test -z "$ac_c_werror_flag"
41583 || test ! -s conftest.err'
41584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41585 (eval $ac_try) 2>&5
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); }; } &&
41589 { ac_try='test -s conftest$ac_exeext'
41590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41591 (eval $ac_try) 2>&5
41593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); }; }; then
41595 eval "$as_ac_var=yes"
41597 echo "$as_me: failed program was:" >&5
41598 sed 's/^/| /' conftest.$ac_ext >&5
41600 eval "$as_ac_var=no"
41602 rm -f conftest.err conftest.$ac_objext \
41603 conftest$ac_exeext conftest.$ac_ext
41605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41607 if test `eval echo '${'$as_ac_var'}'` = yes; then
41608 cat >>confdefs.h <<_ACEOF
41609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41611 ice_have_getsockname=yes
41615 if test "${ice_have_getsockname}" = yes; then
41616 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
41617 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41618 if test "${ice_cv_have_getsockname_decl+set}" = set; then
41619 echo $ECHO_N "(cached) $ECHO_C" >&6
41622 ice_cv_have_getsockname_decl=no
41623 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41624 ice_re_word='(^|[^a-zA-Z0-9_])'
41625 for header in sys/types.h sys/socket.h; do
41626 # Check for ordinary declaration
41627 cat >conftest.$ac_ext <<_ACEOF
41630 cat confdefs.h >>conftest.$ac_ext
41631 cat >>conftest.$ac_ext <<_ACEOF
41632 /* end confdefs.h. */
41636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41637 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
41638 ice_cv_have_getsockname_decl=yes
41642 if test "$ice_cv_have_getsockname_decl" = yes; then
41645 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41646 cat >conftest.$ac_ext <<_ACEOF
41649 cat confdefs.h >>conftest.$ac_ext
41650 cat >>conftest.$ac_ext <<_ACEOF
41651 /* end confdefs.h. */
41655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41656 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41657 ice_cv_have_getsockname_decl=yes
41661 if test "$ice_cv_have_getsockname_decl" = yes; then
41668 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
41669 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
41670 if test "$ice_cv_have_getsockname_decl" = yes; then
41672 cat >>confdefs.h <<_ACEOF
41673 #define HAVE_GETSOCKNAME_DECL 1
41680 ice_have_getsockopt=no
41682 for ac_func in getsockopt
41684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41685 echo "$as_me:$LINENO: checking for $ac_func" >&5
41686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41687 if eval "test \"\${$as_ac_var+set}\" = set"; then
41688 echo $ECHO_N "(cached) $ECHO_C" >&6
41690 cat >conftest.$ac_ext <<_ACEOF
41693 cat confdefs.h >>conftest.$ac_ext
41694 cat >>conftest.$ac_ext <<_ACEOF
41695 /* end confdefs.h. */
41696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41698 #define $ac_func innocuous_$ac_func
41700 /* System header to define __stub macros and hopefully few prototypes,
41701 which can conflict with char $ac_func (); below.
41702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41703 <limits.h> exists even on freestanding compilers. */
41706 # include <limits.h>
41708 # include <assert.h>
41713 /* Override any gcc2 internal prototype to avoid an error. */
41718 /* We use char because int might match the return type of a gcc2
41719 builtin and then its argument prototype would still apply. */
41721 /* The GNU C library defines this for functions which it implements
41722 to always fail with ENOSYS. Some functions are actually named
41723 something starting with __ and the normal name is an alias. */
41724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41727 char (*f) () = $ac_func;
41736 return f != $ac_func;
41741 rm -f conftest.$ac_objext conftest$ac_exeext
41742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41743 (eval $ac_link) 2>conftest.er1
41745 grep -v '^ *+' conftest.er1 >conftest.err
41747 cat conftest.err >&5
41748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749 (exit $ac_status); } &&
41750 { ac_try='test -z "$ac_c_werror_flag"
41751 || test ! -s conftest.err'
41752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41753 (eval $ac_try) 2>&5
41755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41756 (exit $ac_status); }; } &&
41757 { ac_try='test -s conftest$ac_exeext'
41758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41759 (eval $ac_try) 2>&5
41761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41762 (exit $ac_status); }; }; then
41763 eval "$as_ac_var=yes"
41765 echo "$as_me: failed program was:" >&5
41766 sed 's/^/| /' conftest.$ac_ext >&5
41768 eval "$as_ac_var=no"
41770 rm -f conftest.err conftest.$ac_objext \
41771 conftest$ac_exeext conftest.$ac_ext
41773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41775 if test `eval echo '${'$as_ac_var'}'` = yes; then
41776 cat >>confdefs.h <<_ACEOF
41777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41779 ice_have_getsockopt=yes
41783 if test "${ice_have_getsockopt}" = yes; then
41784 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
41785 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41786 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
41787 echo $ECHO_N "(cached) $ECHO_C" >&6
41790 ice_cv_have_getsockopt_decl=no
41791 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41792 ice_re_word='(^|[^a-zA-Z0-9_])'
41793 for header in sys/types.h sys/socket.h; do
41794 # Check for ordinary declaration
41795 cat >conftest.$ac_ext <<_ACEOF
41798 cat confdefs.h >>conftest.$ac_ext
41799 cat >>conftest.$ac_ext <<_ACEOF
41800 /* end confdefs.h. */
41804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41805 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
41806 ice_cv_have_getsockopt_decl=yes
41810 if test "$ice_cv_have_getsockopt_decl" = yes; then
41813 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41814 cat >conftest.$ac_ext <<_ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h. */
41823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41824 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41825 ice_cv_have_getsockopt_decl=yes
41829 if test "$ice_cv_have_getsockopt_decl" = yes; then
41836 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
41837 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
41838 if test "$ice_cv_have_getsockopt_decl" = yes; then
41840 cat >>confdefs.h <<_ACEOF
41841 #define HAVE_GETSOCKOPT_DECL 1
41848 ice_have_gettimeofday=no
41850 for ac_func in gettimeofday
41852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41853 echo "$as_me:$LINENO: checking for $ac_func" >&5
41854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41855 if eval "test \"\${$as_ac_var+set}\" = set"; then
41856 echo $ECHO_N "(cached) $ECHO_C" >&6
41858 cat >conftest.$ac_ext <<_ACEOF
41861 cat confdefs.h >>conftest.$ac_ext
41862 cat >>conftest.$ac_ext <<_ACEOF
41863 /* end confdefs.h. */
41864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41866 #define $ac_func innocuous_$ac_func
41868 /* System header to define __stub macros and hopefully few prototypes,
41869 which can conflict with char $ac_func (); below.
41870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41871 <limits.h> exists even on freestanding compilers. */
41874 # include <limits.h>
41876 # include <assert.h>
41881 /* Override any gcc2 internal prototype to avoid an error. */
41886 /* We use char because int might match the return type of a gcc2
41887 builtin and then its argument prototype would still apply. */
41889 /* The GNU C library defines this for functions which it implements
41890 to always fail with ENOSYS. Some functions are actually named
41891 something starting with __ and the normal name is an alias. */
41892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41895 char (*f) () = $ac_func;
41904 return f != $ac_func;
41909 rm -f conftest.$ac_objext conftest$ac_exeext
41910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41911 (eval $ac_link) 2>conftest.er1
41913 grep -v '^ *+' conftest.er1 >conftest.err
41915 cat conftest.err >&5
41916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917 (exit $ac_status); } &&
41918 { ac_try='test -z "$ac_c_werror_flag"
41919 || test ! -s conftest.err'
41920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41921 (eval $ac_try) 2>&5
41923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924 (exit $ac_status); }; } &&
41925 { ac_try='test -s conftest$ac_exeext'
41926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41927 (eval $ac_try) 2>&5
41929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930 (exit $ac_status); }; }; then
41931 eval "$as_ac_var=yes"
41933 echo "$as_me: failed program was:" >&5
41934 sed 's/^/| /' conftest.$ac_ext >&5
41936 eval "$as_ac_var=no"
41938 rm -f conftest.err conftest.$ac_objext \
41939 conftest$ac_exeext conftest.$ac_ext
41941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41943 if test `eval echo '${'$as_ac_var'}'` = yes; then
41944 cat >>confdefs.h <<_ACEOF
41945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41947 ice_have_gettimeofday=yes
41951 if test "${ice_have_gettimeofday}" = yes; then
41952 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
41953 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
41954 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
41955 echo $ECHO_N "(cached) $ECHO_C" >&6
41958 ice_cv_have_gettimeofday_decl=no
41959 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41960 ice_re_word='(^|[^a-zA-Z0-9_])'
41961 for header in time.h sys/time.h; do
41962 # Check for ordinary declaration
41963 cat >conftest.$ac_ext <<_ACEOF
41966 cat confdefs.h >>conftest.$ac_ext
41967 cat >>conftest.$ac_ext <<_ACEOF
41968 /* end confdefs.h. */
41972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41973 $EGREP "${ice_re_word}gettimeofday[ ]*\(" >/dev/null 2>&1; then
41974 ice_cv_have_gettimeofday_decl=yes
41978 if test "$ice_cv_have_gettimeofday_decl" = yes; then
41981 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41982 cat >conftest.$ac_ext <<_ACEOF
41985 cat confdefs.h >>conftest.$ac_ext
41986 cat >>conftest.$ac_ext <<_ACEOF
41987 /* end confdefs.h. */
41991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41992 $EGREP "${ice_re_word}gettimeofday[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41993 ice_cv_have_gettimeofday_decl=yes
41997 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42004 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
42005 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
42006 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42008 cat >>confdefs.h <<_ACEOF
42009 #define HAVE_GETTIMEOFDAY_DECL 1
42017 echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
42018 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
42019 if test "${amanda_cv_gettimeofday_args+set}" = set; then
42020 echo $ECHO_N "(cached) $ECHO_C" >&6
42023 cat >conftest.$ac_ext <<_ACEOF
42026 cat confdefs.h >>conftest.$ac_ext
42027 cat >>conftest.$ac_ext <<_ACEOF
42028 /* end confdefs.h. */
42030 #ifdef TIME_WITH_SYS_TIME
42031 # include <sys/time.h>
42034 # ifdef HAVE_SYS_TIME_H
42035 # include <sys/time.h>
42045 struct timeval val;
42046 struct timezone zone;
42047 gettimeofday(&val, &zone);
42053 rm -f conftest.$ac_objext
42054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42055 (eval $ac_compile) 2>conftest.er1
42057 grep -v '^ *+' conftest.er1 >conftest.err
42059 cat conftest.err >&5
42060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); } &&
42062 { ac_try='test -z "$ac_c_werror_flag"
42063 || test ! -s conftest.err'
42064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42065 (eval $ac_try) 2>&5
42067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068 (exit $ac_status); }; } &&
42069 { ac_try='test -s conftest.$ac_objext'
42070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42071 (eval $ac_try) 2>&5
42073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074 (exit $ac_status); }; }; then
42075 amanda_cv_gettimeofday_args=2
42077 echo "$as_me: failed program was:" >&5
42078 sed 's/^/| /' conftest.$ac_ext >&5
42080 amanda_cv_gettimeofday_args=1
42083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42087 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
42088 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
42089 if test "$amanda_cv_gettimeofday_args" = 2; then
42091 cat >>confdefs.h <<\_ACEOF
42092 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
42101 for ac_func in getvfsent initgroups isascii
42103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42104 echo "$as_me:$LINENO: checking for $ac_func" >&5
42105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42106 if eval "test \"\${$as_ac_var+set}\" = set"; then
42107 echo $ECHO_N "(cached) $ECHO_C" >&6
42109 cat >conftest.$ac_ext <<_ACEOF
42112 cat confdefs.h >>conftest.$ac_ext
42113 cat >>conftest.$ac_ext <<_ACEOF
42114 /* end confdefs.h. */
42115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42117 #define $ac_func innocuous_$ac_func
42119 /* System header to define __stub macros and hopefully few prototypes,
42120 which can conflict with char $ac_func (); below.
42121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42122 <limits.h> exists even on freestanding compilers. */
42125 # include <limits.h>
42127 # include <assert.h>
42132 /* Override any gcc2 internal prototype to avoid an error. */
42137 /* We use char because int might match the return type of a gcc2
42138 builtin and then its argument prototype would still apply. */
42140 /* The GNU C library defines this for functions which it implements
42141 to always fail with ENOSYS. Some functions are actually named
42142 something starting with __ and the normal name is an alias. */
42143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42146 char (*f) () = $ac_func;
42155 return f != $ac_func;
42160 rm -f conftest.$ac_objext conftest$ac_exeext
42161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42162 (eval $ac_link) 2>conftest.er1
42164 grep -v '^ *+' conftest.er1 >conftest.err
42166 cat conftest.err >&5
42167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42168 (exit $ac_status); } &&
42169 { ac_try='test -z "$ac_c_werror_flag"
42170 || test ! -s conftest.err'
42171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42172 (eval $ac_try) 2>&5
42174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42175 (exit $ac_status); }; } &&
42176 { ac_try='test -s conftest$ac_exeext'
42177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42178 (eval $ac_try) 2>&5
42180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42181 (exit $ac_status); }; }; then
42182 eval "$as_ac_var=yes"
42184 echo "$as_me: failed program was:" >&5
42185 sed 's/^/| /' conftest.$ac_ext >&5
42187 eval "$as_ac_var=no"
42189 rm -f conftest.err conftest.$ac_objext \
42190 conftest$ac_exeext conftest.$ac_ext
42192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42194 if test `eval echo '${'$as_ac_var'}'` = yes; then
42195 cat >>confdefs.h <<_ACEOF
42196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42203 ice_have_initgroups=no
42205 for ac_func in initgroups
42207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42208 echo "$as_me:$LINENO: checking for $ac_func" >&5
42209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42210 if eval "test \"\${$as_ac_var+set}\" = set"; then
42211 echo $ECHO_N "(cached) $ECHO_C" >&6
42213 cat >conftest.$ac_ext <<_ACEOF
42216 cat confdefs.h >>conftest.$ac_ext
42217 cat >>conftest.$ac_ext <<_ACEOF
42218 /* end confdefs.h. */
42219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42221 #define $ac_func innocuous_$ac_func
42223 /* System header to define __stub macros and hopefully few prototypes,
42224 which can conflict with char $ac_func (); below.
42225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42226 <limits.h> exists even on freestanding compilers. */
42229 # include <limits.h>
42231 # include <assert.h>
42236 /* Override any gcc2 internal prototype to avoid an error. */
42241 /* We use char because int might match the return type of a gcc2
42242 builtin and then its argument prototype would still apply. */
42244 /* The GNU C library defines this for functions which it implements
42245 to always fail with ENOSYS. Some functions are actually named
42246 something starting with __ and the normal name is an alias. */
42247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42250 char (*f) () = $ac_func;
42259 return f != $ac_func;
42264 rm -f conftest.$ac_objext conftest$ac_exeext
42265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42266 (eval $ac_link) 2>conftest.er1
42268 grep -v '^ *+' conftest.er1 >conftest.err
42270 cat conftest.err >&5
42271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42272 (exit $ac_status); } &&
42273 { ac_try='test -z "$ac_c_werror_flag"
42274 || test ! -s conftest.err'
42275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42276 (eval $ac_try) 2>&5
42278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279 (exit $ac_status); }; } &&
42280 { ac_try='test -s conftest$ac_exeext'
42281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282 (eval $ac_try) 2>&5
42284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285 (exit $ac_status); }; }; then
42286 eval "$as_ac_var=yes"
42288 echo "$as_me: failed program was:" >&5
42289 sed 's/^/| /' conftest.$ac_ext >&5
42291 eval "$as_ac_var=no"
42293 rm -f conftest.err conftest.$ac_objext \
42294 conftest$ac_exeext conftest.$ac_ext
42296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42298 if test `eval echo '${'$as_ac_var'}'` = yes; then
42299 cat >>confdefs.h <<_ACEOF
42300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42302 ice_have_initgroups=yes
42306 if test "${ice_have_initgroups}" = yes; then
42307 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
42308 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
42309 if test "${ice_cv_have_initgroups_decl+set}" = set; then
42310 echo $ECHO_N "(cached) $ECHO_C" >&6
42313 ice_cv_have_initgroups_decl=no
42314 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42315 ice_re_word='(^|[^a-zA-Z0-9_])'
42316 for header in grp.h sys/types.h unistd.h libc.h; do
42317 # Check for ordinary declaration
42318 cat >conftest.$ac_ext <<_ACEOF
42321 cat confdefs.h >>conftest.$ac_ext
42322 cat >>conftest.$ac_ext <<_ACEOF
42323 /* end confdefs.h. */
42327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42328 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
42329 ice_cv_have_initgroups_decl=yes
42333 if test "$ice_cv_have_initgroups_decl" = yes; then
42336 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42337 cat >conftest.$ac_ext <<_ACEOF
42340 cat confdefs.h >>conftest.$ac_ext
42341 cat >>conftest.$ac_ext <<_ACEOF
42342 /* end confdefs.h. */
42346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42347 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42348 ice_cv_have_initgroups_decl=yes
42352 if test "$ice_cv_have_initgroups_decl" = yes; then
42359 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
42360 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
42361 if test "$ice_cv_have_initgroups_decl" = yes; then
42363 cat >>confdefs.h <<_ACEOF
42364 #define HAVE_INITGROUPS_DECL 1
42373 for ac_func in ioctl
42375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42376 echo "$as_me:$LINENO: checking for $ac_func" >&5
42377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42378 if eval "test \"\${$as_ac_var+set}\" = set"; then
42379 echo $ECHO_N "(cached) $ECHO_C" >&6
42381 cat >conftest.$ac_ext <<_ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h. */
42387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42389 #define $ac_func innocuous_$ac_func
42391 /* System header to define __stub macros and hopefully few prototypes,
42392 which can conflict with char $ac_func (); below.
42393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42394 <limits.h> exists even on freestanding compilers. */
42397 # include <limits.h>
42399 # include <assert.h>
42404 /* Override any gcc2 internal prototype to avoid an error. */
42409 /* We use char because int might match the return type of a gcc2
42410 builtin and then its argument prototype would still apply. */
42412 /* The GNU C library defines this for functions which it implements
42413 to always fail with ENOSYS. Some functions are actually named
42414 something starting with __ and the normal name is an alias. */
42415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42418 char (*f) () = $ac_func;
42427 return f != $ac_func;
42432 rm -f conftest.$ac_objext conftest$ac_exeext
42433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42434 (eval $ac_link) 2>conftest.er1
42436 grep -v '^ *+' conftest.er1 >conftest.err
42438 cat conftest.err >&5
42439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440 (exit $ac_status); } &&
42441 { ac_try='test -z "$ac_c_werror_flag"
42442 || test ! -s conftest.err'
42443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444 (eval $ac_try) 2>&5
42446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447 (exit $ac_status); }; } &&
42448 { ac_try='test -s conftest$ac_exeext'
42449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42450 (eval $ac_try) 2>&5
42452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); }; }; then
42454 eval "$as_ac_var=yes"
42456 echo "$as_me: failed program was:" >&5
42457 sed 's/^/| /' conftest.$ac_ext >&5
42459 eval "$as_ac_var=no"
42461 rm -f conftest.err conftest.$ac_objext \
42462 conftest$ac_exeext conftest.$ac_ext
42464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42466 if test `eval echo '${'$as_ac_var'}'` = yes; then
42467 cat >>confdefs.h <<_ACEOF
42468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42474 if test "${ice_have_ioctl}" = yes; then
42475 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
42476 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
42477 if test "${ice_cv_have_ioctl_decl+set}" = set; then
42478 echo $ECHO_N "(cached) $ECHO_C" >&6
42481 ice_cv_have_ioctl_decl=no
42482 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42483 ice_re_word='(^|[^a-zA-Z0-9_])'
42484 for header in sys/ioctl.h unistd.h libc.h; do
42485 # Check for ordinary declaration
42486 cat >conftest.$ac_ext <<_ACEOF
42489 cat confdefs.h >>conftest.$ac_ext
42490 cat >>conftest.$ac_ext <<_ACEOF
42491 /* end confdefs.h. */
42495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42496 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
42497 ice_cv_have_ioctl_decl=yes
42501 if test "$ice_cv_have_ioctl_decl" = yes; then
42504 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42505 cat >conftest.$ac_ext <<_ACEOF
42508 cat confdefs.h >>conftest.$ac_ext
42509 cat >>conftest.$ac_ext <<_ACEOF
42510 /* end confdefs.h. */
42514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42515 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42516 ice_cv_have_ioctl_decl=yes
42520 if test "$ice_cv_have_ioctl_decl" = yes; then
42527 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
42528 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
42529 if test "$ice_cv_have_ioctl_decl" = yes; then
42531 cat >>confdefs.h <<_ACEOF
42532 #define HAVE_IOCTL_DECL 1
42539 ice_have_isnormal=no
42541 for ac_func in isnormal
42543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42544 echo "$as_me:$LINENO: checking for $ac_func" >&5
42545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42546 if eval "test \"\${$as_ac_var+set}\" = set"; then
42547 echo $ECHO_N "(cached) $ECHO_C" >&6
42549 cat >conftest.$ac_ext <<_ACEOF
42552 cat confdefs.h >>conftest.$ac_ext
42553 cat >>conftest.$ac_ext <<_ACEOF
42554 /* end confdefs.h. */
42555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42557 #define $ac_func innocuous_$ac_func
42559 /* System header to define __stub macros and hopefully few prototypes,
42560 which can conflict with char $ac_func (); below.
42561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42562 <limits.h> exists even on freestanding compilers. */
42565 # include <limits.h>
42567 # include <assert.h>
42572 /* Override any gcc2 internal prototype to avoid an error. */
42577 /* We use char because int might match the return type of a gcc2
42578 builtin and then its argument prototype would still apply. */
42580 /* The GNU C library defines this for functions which it implements
42581 to always fail with ENOSYS. Some functions are actually named
42582 something starting with __ and the normal name is an alias. */
42583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42586 char (*f) () = $ac_func;
42595 return f != $ac_func;
42600 rm -f conftest.$ac_objext conftest$ac_exeext
42601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42602 (eval $ac_link) 2>conftest.er1
42604 grep -v '^ *+' conftest.er1 >conftest.err
42606 cat conftest.err >&5
42607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608 (exit $ac_status); } &&
42609 { ac_try='test -z "$ac_c_werror_flag"
42610 || test ! -s conftest.err'
42611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42612 (eval $ac_try) 2>&5
42614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42615 (exit $ac_status); }; } &&
42616 { ac_try='test -s conftest$ac_exeext'
42617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42618 (eval $ac_try) 2>&5
42620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621 (exit $ac_status); }; }; then
42622 eval "$as_ac_var=yes"
42624 echo "$as_me: failed program was:" >&5
42625 sed 's/^/| /' conftest.$ac_ext >&5
42627 eval "$as_ac_var=no"
42629 rm -f conftest.err conftest.$ac_objext \
42630 conftest$ac_exeext conftest.$ac_ext
42632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42634 if test `eval echo '${'$as_ac_var'}'` = yes; then
42635 cat >>confdefs.h <<_ACEOF
42636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42638 ice_have_isnormal=yes
42642 if test "${ice_have_isnormal}" = yes; then
42643 echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
42644 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6
42645 if test "${ice_cv_have_isnormal_decl+set}" = set; then
42646 echo $ECHO_N "(cached) $ECHO_C" >&6
42649 ice_cv_have_isnormal_decl=no
42650 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42651 ice_re_word='(^|[^a-zA-Z0-9_])'
42652 for header in math.h; do
42653 # Check for ordinary declaration
42654 cat >conftest.$ac_ext <<_ACEOF
42657 cat confdefs.h >>conftest.$ac_ext
42658 cat >>conftest.$ac_ext <<_ACEOF
42659 /* end confdefs.h. */
42663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42664 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then
42665 ice_cv_have_isnormal_decl=yes
42669 if test "$ice_cv_have_isnormal_decl" = yes; then
42672 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42673 cat >conftest.$ac_ext <<_ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h. */
42682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42683 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42684 ice_cv_have_isnormal_decl=yes
42688 if test "$ice_cv_have_isnormal_decl" = yes; then
42695 echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
42696 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6
42697 if test "$ice_cv_have_isnormal_decl" = yes; then
42699 cat >>confdefs.h <<_ACEOF
42700 #define HAVE_ISNORMAL_DECL 1
42709 for ac_func in listen
42711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42712 echo "$as_me:$LINENO: checking for $ac_func" >&5
42713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42714 if eval "test \"\${$as_ac_var+set}\" = set"; then
42715 echo $ECHO_N "(cached) $ECHO_C" >&6
42717 cat >conftest.$ac_ext <<_ACEOF
42720 cat confdefs.h >>conftest.$ac_ext
42721 cat >>conftest.$ac_ext <<_ACEOF
42722 /* end confdefs.h. */
42723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42725 #define $ac_func innocuous_$ac_func
42727 /* System header to define __stub macros and hopefully few prototypes,
42728 which can conflict with char $ac_func (); below.
42729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42730 <limits.h> exists even on freestanding compilers. */
42733 # include <limits.h>
42735 # include <assert.h>
42740 /* Override any gcc2 internal prototype to avoid an error. */
42745 /* We use char because int might match the return type of a gcc2
42746 builtin and then its argument prototype would still apply. */
42748 /* The GNU C library defines this for functions which it implements
42749 to always fail with ENOSYS. Some functions are actually named
42750 something starting with __ and the normal name is an alias. */
42751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42754 char (*f) () = $ac_func;
42763 return f != $ac_func;
42768 rm -f conftest.$ac_objext conftest$ac_exeext
42769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42770 (eval $ac_link) 2>conftest.er1
42772 grep -v '^ *+' conftest.er1 >conftest.err
42774 cat conftest.err >&5
42775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42776 (exit $ac_status); } &&
42777 { ac_try='test -z "$ac_c_werror_flag"
42778 || test ! -s conftest.err'
42779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42780 (eval $ac_try) 2>&5
42782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783 (exit $ac_status); }; } &&
42784 { ac_try='test -s conftest$ac_exeext'
42785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42786 (eval $ac_try) 2>&5
42788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789 (exit $ac_status); }; }; then
42790 eval "$as_ac_var=yes"
42792 echo "$as_me: failed program was:" >&5
42793 sed 's/^/| /' conftest.$ac_ext >&5
42795 eval "$as_ac_var=no"
42797 rm -f conftest.err conftest.$ac_objext \
42798 conftest$ac_exeext conftest.$ac_ext
42800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42802 if test `eval echo '${'$as_ac_var'}'` = yes; then
42803 cat >>confdefs.h <<_ACEOF
42804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42806 ice_have_listen=yes
42810 if test "${ice_have_listen}" = yes; then
42811 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
42812 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42813 if test "${ice_cv_have_listen_decl+set}" = set; then
42814 echo $ECHO_N "(cached) $ECHO_C" >&6
42817 ice_cv_have_listen_decl=no
42818 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42819 ice_re_word='(^|[^a-zA-Z0-9_])'
42820 for header in sys/types.h sys/socket.h; do
42821 # Check for ordinary declaration
42822 cat >conftest.$ac_ext <<_ACEOF
42825 cat confdefs.h >>conftest.$ac_ext
42826 cat >>conftest.$ac_ext <<_ACEOF
42827 /* end confdefs.h. */
42831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42832 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
42833 ice_cv_have_listen_decl=yes
42837 if test "$ice_cv_have_listen_decl" = yes; then
42840 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42841 cat >conftest.$ac_ext <<_ACEOF
42844 cat confdefs.h >>conftest.$ac_ext
42845 cat >>conftest.$ac_ext <<_ACEOF
42846 /* end confdefs.h. */
42850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42851 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42852 ice_cv_have_listen_decl=yes
42856 if test "$ice_cv_have_listen_decl" = yes; then
42863 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
42864 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
42865 if test "$ice_cv_have_listen_decl" = yes; then
42867 cat >>confdefs.h <<_ACEOF
42868 #define HAVE_LISTEN_DECL 1
42877 for ac_func in lstat
42879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42880 echo "$as_me:$LINENO: checking for $ac_func" >&5
42881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42882 if eval "test \"\${$as_ac_var+set}\" = set"; then
42883 echo $ECHO_N "(cached) $ECHO_C" >&6
42885 cat >conftest.$ac_ext <<_ACEOF
42888 cat confdefs.h >>conftest.$ac_ext
42889 cat >>conftest.$ac_ext <<_ACEOF
42890 /* end confdefs.h. */
42891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42893 #define $ac_func innocuous_$ac_func
42895 /* System header to define __stub macros and hopefully few prototypes,
42896 which can conflict with char $ac_func (); below.
42897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42898 <limits.h> exists even on freestanding compilers. */
42901 # include <limits.h>
42903 # include <assert.h>
42908 /* Override any gcc2 internal prototype to avoid an error. */
42913 /* We use char because int might match the return type of a gcc2
42914 builtin and then its argument prototype would still apply. */
42916 /* The GNU C library defines this for functions which it implements
42917 to always fail with ENOSYS. Some functions are actually named
42918 something starting with __ and the normal name is an alias. */
42919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42922 char (*f) () = $ac_func;
42931 return f != $ac_func;
42936 rm -f conftest.$ac_objext conftest$ac_exeext
42937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42938 (eval $ac_link) 2>conftest.er1
42940 grep -v '^ *+' conftest.er1 >conftest.err
42942 cat conftest.err >&5
42943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42944 (exit $ac_status); } &&
42945 { ac_try='test -z "$ac_c_werror_flag"
42946 || test ! -s conftest.err'
42947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42948 (eval $ac_try) 2>&5
42950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42951 (exit $ac_status); }; } &&
42952 { ac_try='test -s conftest$ac_exeext'
42953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42954 (eval $ac_try) 2>&5
42956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42957 (exit $ac_status); }; }; then
42958 eval "$as_ac_var=yes"
42960 echo "$as_me: failed program was:" >&5
42961 sed 's/^/| /' conftest.$ac_ext >&5
42963 eval "$as_ac_var=no"
42965 rm -f conftest.err conftest.$ac_objext \
42966 conftest$ac_exeext conftest.$ac_ext
42968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42970 if test `eval echo '${'$as_ac_var'}'` = yes; then
42971 cat >>confdefs.h <<_ACEOF
42972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42978 if test "${ice_have_lstat}" = yes; then
42979 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
42980 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
42981 if test "${ice_cv_have_lstat_decl+set}" = set; then
42982 echo $ECHO_N "(cached) $ECHO_C" >&6
42985 ice_cv_have_lstat_decl=no
42986 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42987 ice_re_word='(^|[^a-zA-Z0-9_])'
42988 for header in sys/types.h sys/stat.h; do
42989 # Check for ordinary declaration
42990 cat >conftest.$ac_ext <<_ACEOF
42993 cat confdefs.h >>conftest.$ac_ext
42994 cat >>conftest.$ac_ext <<_ACEOF
42995 /* end confdefs.h. */
42999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43000 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
43001 ice_cv_have_lstat_decl=yes
43005 if test "$ice_cv_have_lstat_decl" = yes; then
43008 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43009 cat >conftest.$ac_ext <<_ACEOF
43012 cat confdefs.h >>conftest.$ac_ext
43013 cat >>conftest.$ac_ext <<_ACEOF
43014 /* end confdefs.h. */
43018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43019 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43020 ice_cv_have_lstat_decl=yes
43024 if test "$ice_cv_have_lstat_decl" = yes; then
43031 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
43032 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
43033 if test "$ice_cv_have_lstat_decl" = yes; then
43035 cat >>confdefs.h <<_ACEOF
43036 #define HAVE_LSTAT_DECL 1
43045 for ac_func in malloc
43047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43048 echo "$as_me:$LINENO: checking for $ac_func" >&5
43049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43050 if eval "test \"\${$as_ac_var+set}\" = set"; then
43051 echo $ECHO_N "(cached) $ECHO_C" >&6
43053 cat >conftest.$ac_ext <<_ACEOF
43056 cat confdefs.h >>conftest.$ac_ext
43057 cat >>conftest.$ac_ext <<_ACEOF
43058 /* end confdefs.h. */
43059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43061 #define $ac_func innocuous_$ac_func
43063 /* System header to define __stub macros and hopefully few prototypes,
43064 which can conflict with char $ac_func (); below.
43065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43066 <limits.h> exists even on freestanding compilers. */
43069 # include <limits.h>
43071 # include <assert.h>
43076 /* Override any gcc2 internal prototype to avoid an error. */
43081 /* We use char because int might match the return type of a gcc2
43082 builtin and then its argument prototype would still apply. */
43084 /* The GNU C library defines this for functions which it implements
43085 to always fail with ENOSYS. Some functions are actually named
43086 something starting with __ and the normal name is an alias. */
43087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43090 char (*f) () = $ac_func;
43099 return f != $ac_func;
43104 rm -f conftest.$ac_objext conftest$ac_exeext
43105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43106 (eval $ac_link) 2>conftest.er1
43108 grep -v '^ *+' conftest.er1 >conftest.err
43110 cat conftest.err >&5
43111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43112 (exit $ac_status); } &&
43113 { ac_try='test -z "$ac_c_werror_flag"
43114 || test ! -s conftest.err'
43115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43116 (eval $ac_try) 2>&5
43118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119 (exit $ac_status); }; } &&
43120 { ac_try='test -s conftest$ac_exeext'
43121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43122 (eval $ac_try) 2>&5
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); }; }; then
43126 eval "$as_ac_var=yes"
43128 echo "$as_me: failed program was:" >&5
43129 sed 's/^/| /' conftest.$ac_ext >&5
43131 eval "$as_ac_var=no"
43133 rm -f conftest.err conftest.$ac_objext \
43134 conftest$ac_exeext conftest.$ac_ext
43136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43138 if test `eval echo '${'$as_ac_var'}'` = yes; then
43139 cat >>confdefs.h <<_ACEOF
43140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43142 ice_have_malloc=yes
43146 if test "${ice_have_malloc}" = yes; then
43147 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
43148 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
43149 if test "${ice_cv_have_malloc_decl+set}" = set; then
43150 echo $ECHO_N "(cached) $ECHO_C" >&6
43153 ice_cv_have_malloc_decl=no
43154 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43155 ice_re_word='(^|[^a-zA-Z0-9_])'
43156 for header in stdlib.h; do
43157 # Check for ordinary declaration
43158 cat >conftest.$ac_ext <<_ACEOF
43161 cat confdefs.h >>conftest.$ac_ext
43162 cat >>conftest.$ac_ext <<_ACEOF
43163 /* end confdefs.h. */
43167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43168 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
43169 ice_cv_have_malloc_decl=yes
43173 if test "$ice_cv_have_malloc_decl" = yes; then
43176 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43177 cat >conftest.$ac_ext <<_ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h. */
43186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43187 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43188 ice_cv_have_malloc_decl=yes
43192 if test "$ice_cv_have_malloc_decl" = yes; then
43199 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
43200 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
43201 if test "$ice_cv_have_malloc_decl" = yes; then
43203 cat >>confdefs.h <<_ACEOF
43204 #define HAVE_MALLOC_DECL 1
43211 for ac_func in memmove
43213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43214 echo "$as_me:$LINENO: checking for $ac_func" >&5
43215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43216 if eval "test \"\${$as_ac_var+set}\" = set"; then
43217 echo $ECHO_N "(cached) $ECHO_C" >&6
43219 cat >conftest.$ac_ext <<_ACEOF
43222 cat confdefs.h >>conftest.$ac_ext
43223 cat >>conftest.$ac_ext <<_ACEOF
43224 /* end confdefs.h. */
43225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43227 #define $ac_func innocuous_$ac_func
43229 /* System header to define __stub macros and hopefully few prototypes,
43230 which can conflict with char $ac_func (); below.
43231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43232 <limits.h> exists even on freestanding compilers. */
43235 # include <limits.h>
43237 # include <assert.h>
43242 /* Override any gcc2 internal prototype to avoid an error. */
43247 /* We use char because int might match the return type of a gcc2
43248 builtin and then its argument prototype would still apply. */
43250 /* The GNU C library defines this for functions which it implements
43251 to always fail with ENOSYS. Some functions are actually named
43252 something starting with __ and the normal name is an alias. */
43253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43256 char (*f) () = $ac_func;
43265 return f != $ac_func;
43270 rm -f conftest.$ac_objext conftest$ac_exeext
43271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43272 (eval $ac_link) 2>conftest.er1
43274 grep -v '^ *+' conftest.er1 >conftest.err
43276 cat conftest.err >&5
43277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278 (exit $ac_status); } &&
43279 { ac_try='test -z "$ac_c_werror_flag"
43280 || test ! -s conftest.err'
43281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43282 (eval $ac_try) 2>&5
43284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43285 (exit $ac_status); }; } &&
43286 { ac_try='test -s conftest$ac_exeext'
43287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43288 (eval $ac_try) 2>&5
43290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291 (exit $ac_status); }; }; then
43292 eval "$as_ac_var=yes"
43294 echo "$as_me: failed program was:" >&5
43295 sed 's/^/| /' conftest.$ac_ext >&5
43297 eval "$as_ac_var=no"
43299 rm -f conftest.err conftest.$ac_objext \
43300 conftest$ac_exeext conftest.$ac_ext
43302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43304 if test `eval echo '${'$as_ac_var'}'` = yes; then
43305 cat >>confdefs.h <<_ACEOF
43306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43311 "$ac_func.$ac_objext" | \
43312 *" $ac_func.$ac_objext" | \
43313 "$ac_func.$ac_objext "* | \
43314 *" $ac_func.$ac_objext "* ) ;;
43315 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43323 ice_have_memmove=no
43325 for ac_func in memmove
43327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43328 echo "$as_me:$LINENO: checking for $ac_func" >&5
43329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43330 if eval "test \"\${$as_ac_var+set}\" = set"; then
43331 echo $ECHO_N "(cached) $ECHO_C" >&6
43333 cat >conftest.$ac_ext <<_ACEOF
43336 cat confdefs.h >>conftest.$ac_ext
43337 cat >>conftest.$ac_ext <<_ACEOF
43338 /* end confdefs.h. */
43339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43341 #define $ac_func innocuous_$ac_func
43343 /* System header to define __stub macros and hopefully few prototypes,
43344 which can conflict with char $ac_func (); below.
43345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43346 <limits.h> exists even on freestanding compilers. */
43349 # include <limits.h>
43351 # include <assert.h>
43356 /* Override any gcc2 internal prototype to avoid an error. */
43361 /* We use char because int might match the return type of a gcc2
43362 builtin and then its argument prototype would still apply. */
43364 /* The GNU C library defines this for functions which it implements
43365 to always fail with ENOSYS. Some functions are actually named
43366 something starting with __ and the normal name is an alias. */
43367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43370 char (*f) () = $ac_func;
43379 return f != $ac_func;
43384 rm -f conftest.$ac_objext conftest$ac_exeext
43385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43386 (eval $ac_link) 2>conftest.er1
43388 grep -v '^ *+' conftest.er1 >conftest.err
43390 cat conftest.err >&5
43391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392 (exit $ac_status); } &&
43393 { ac_try='test -z "$ac_c_werror_flag"
43394 || test ! -s conftest.err'
43395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43396 (eval $ac_try) 2>&5
43398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43399 (exit $ac_status); }; } &&
43400 { ac_try='test -s conftest$ac_exeext'
43401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43402 (eval $ac_try) 2>&5
43404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43405 (exit $ac_status); }; }; then
43406 eval "$as_ac_var=yes"
43408 echo "$as_me: failed program was:" >&5
43409 sed 's/^/| /' conftest.$ac_ext >&5
43411 eval "$as_ac_var=no"
43413 rm -f conftest.err conftest.$ac_objext \
43414 conftest$ac_exeext conftest.$ac_ext
43416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43418 if test `eval echo '${'$as_ac_var'}'` = yes; then
43419 cat >>confdefs.h <<_ACEOF
43420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43422 ice_have_memmove=yes
43426 if test "${ice_have_memmove}" = yes; then
43427 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
43428 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
43429 if test "${ice_cv_have_memmove_decl+set}" = set; then
43430 echo $ECHO_N "(cached) $ECHO_C" >&6
43433 ice_cv_have_memmove_decl=no
43434 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43435 ice_re_word='(^|[^a-zA-Z0-9_])'
43436 for header in string.h strings.h; do
43437 # Check for ordinary declaration
43438 cat >conftest.$ac_ext <<_ACEOF
43441 cat confdefs.h >>conftest.$ac_ext
43442 cat >>conftest.$ac_ext <<_ACEOF
43443 /* end confdefs.h. */
43447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43448 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
43449 ice_cv_have_memmove_decl=yes
43453 if test "$ice_cv_have_memmove_decl" = yes; then
43456 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43457 cat >conftest.$ac_ext <<_ACEOF
43460 cat confdefs.h >>conftest.$ac_ext
43461 cat >>conftest.$ac_ext <<_ACEOF
43462 /* end confdefs.h. */
43466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43467 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43468 ice_cv_have_memmove_decl=yes
43472 if test "$ice_cv_have_memmove_decl" = yes; then
43479 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
43480 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
43481 if test "$ice_cv_have_memmove_decl" = yes; then
43483 cat >>confdefs.h <<_ACEOF
43484 #define HAVE_MEMMOVE_DECL 1
43493 for ac_func in memset
43495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43496 echo "$as_me:$LINENO: checking for $ac_func" >&5
43497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43498 if eval "test \"\${$as_ac_var+set}\" = set"; then
43499 echo $ECHO_N "(cached) $ECHO_C" >&6
43501 cat >conftest.$ac_ext <<_ACEOF
43504 cat confdefs.h >>conftest.$ac_ext
43505 cat >>conftest.$ac_ext <<_ACEOF
43506 /* end confdefs.h. */
43507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43509 #define $ac_func innocuous_$ac_func
43511 /* System header to define __stub macros and hopefully few prototypes,
43512 which can conflict with char $ac_func (); below.
43513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43514 <limits.h> exists even on freestanding compilers. */
43517 # include <limits.h>
43519 # include <assert.h>
43524 /* Override any gcc2 internal prototype to avoid an error. */
43529 /* We use char because int might match the return type of a gcc2
43530 builtin and then its argument prototype would still apply. */
43532 /* The GNU C library defines this for functions which it implements
43533 to always fail with ENOSYS. Some functions are actually named
43534 something starting with __ and the normal name is an alias. */
43535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43538 char (*f) () = $ac_func;
43547 return f != $ac_func;
43552 rm -f conftest.$ac_objext conftest$ac_exeext
43553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43554 (eval $ac_link) 2>conftest.er1
43556 grep -v '^ *+' conftest.er1 >conftest.err
43558 cat conftest.err >&5
43559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43560 (exit $ac_status); } &&
43561 { ac_try='test -z "$ac_c_werror_flag"
43562 || test ! -s conftest.err'
43563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43564 (eval $ac_try) 2>&5
43566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43567 (exit $ac_status); }; } &&
43568 { ac_try='test -s conftest$ac_exeext'
43569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43570 (eval $ac_try) 2>&5
43572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573 (exit $ac_status); }; }; then
43574 eval "$as_ac_var=yes"
43576 echo "$as_me: failed program was:" >&5
43577 sed 's/^/| /' conftest.$ac_ext >&5
43579 eval "$as_ac_var=no"
43581 rm -f conftest.err conftest.$ac_objext \
43582 conftest$ac_exeext conftest.$ac_ext
43584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43586 if test `eval echo '${'$as_ac_var'}'` = yes; then
43587 cat >>confdefs.h <<_ACEOF
43588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43590 ice_have_memset=yes
43594 if test "${ice_have_memset}" = yes; then
43595 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
43596 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
43597 if test "${ice_cv_have_memset_decl+set}" = set; then
43598 echo $ECHO_N "(cached) $ECHO_C" >&6
43601 ice_cv_have_memset_decl=no
43602 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43603 ice_re_word='(^|[^a-zA-Z0-9_])'
43604 for header in string.h strings.h; do
43605 # Check for ordinary declaration
43606 cat >conftest.$ac_ext <<_ACEOF
43609 cat confdefs.h >>conftest.$ac_ext
43610 cat >>conftest.$ac_ext <<_ACEOF
43611 /* end confdefs.h. */
43615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43616 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
43617 ice_cv_have_memset_decl=yes
43621 if test "$ice_cv_have_memset_decl" = yes; then
43624 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43625 cat >conftest.$ac_ext <<_ACEOF
43628 cat confdefs.h >>conftest.$ac_ext
43629 cat >>conftest.$ac_ext <<_ACEOF
43630 /* end confdefs.h. */
43634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43635 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43636 ice_cv_have_memset_decl=yes
43640 if test "$ice_cv_have_memset_decl" = yes; then
43647 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
43648 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
43649 if test "$ice_cv_have_memset_decl" = yes; then
43651 cat >>confdefs.h <<_ACEOF
43652 #define HAVE_MEMSET_DECL 1
43659 for ac_func in mkdir
43661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43662 echo "$as_me:$LINENO: checking for $ac_func" >&5
43663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43664 if eval "test \"\${$as_ac_var+set}\" = set"; then
43665 echo $ECHO_N "(cached) $ECHO_C" >&6
43667 cat >conftest.$ac_ext <<_ACEOF
43670 cat confdefs.h >>conftest.$ac_ext
43671 cat >>conftest.$ac_ext <<_ACEOF
43672 /* end confdefs.h. */
43673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43675 #define $ac_func innocuous_$ac_func
43677 /* System header to define __stub macros and hopefully few prototypes,
43678 which can conflict with char $ac_func (); below.
43679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43680 <limits.h> exists even on freestanding compilers. */
43683 # include <limits.h>
43685 # include <assert.h>
43690 /* Override any gcc2 internal prototype to avoid an error. */
43695 /* We use char because int might match the return type of a gcc2
43696 builtin and then its argument prototype would still apply. */
43698 /* The GNU C library defines this for functions which it implements
43699 to always fail with ENOSYS. Some functions are actually named
43700 something starting with __ and the normal name is an alias. */
43701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43704 char (*f) () = $ac_func;
43713 return f != $ac_func;
43718 rm -f conftest.$ac_objext conftest$ac_exeext
43719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43720 (eval $ac_link) 2>conftest.er1
43722 grep -v '^ *+' conftest.er1 >conftest.err
43724 cat conftest.err >&5
43725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43726 (exit $ac_status); } &&
43727 { ac_try='test -z "$ac_c_werror_flag"
43728 || test ! -s conftest.err'
43729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43730 (eval $ac_try) 2>&5
43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733 (exit $ac_status); }; } &&
43734 { ac_try='test -s conftest$ac_exeext'
43735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43736 (eval $ac_try) 2>&5
43738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739 (exit $ac_status); }; }; then
43740 eval "$as_ac_var=yes"
43742 echo "$as_me: failed program was:" >&5
43743 sed 's/^/| /' conftest.$ac_ext >&5
43745 eval "$as_ac_var=no"
43747 rm -f conftest.err conftest.$ac_objext \
43748 conftest$ac_exeext conftest.$ac_ext
43750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43752 if test `eval echo '${'$as_ac_var'}'` = yes; then
43753 cat >>confdefs.h <<_ACEOF
43754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43761 ice_have_mkstemp=no
43763 for ac_func in mkstemp
43765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43766 echo "$as_me:$LINENO: checking for $ac_func" >&5
43767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43768 if eval "test \"\${$as_ac_var+set}\" = set"; then
43769 echo $ECHO_N "(cached) $ECHO_C" >&6
43771 cat >conftest.$ac_ext <<_ACEOF
43774 cat confdefs.h >>conftest.$ac_ext
43775 cat >>conftest.$ac_ext <<_ACEOF
43776 /* end confdefs.h. */
43777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43779 #define $ac_func innocuous_$ac_func
43781 /* System header to define __stub macros and hopefully few prototypes,
43782 which can conflict with char $ac_func (); below.
43783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43784 <limits.h> exists even on freestanding compilers. */
43787 # include <limits.h>
43789 # include <assert.h>
43794 /* Override any gcc2 internal prototype to avoid an error. */
43799 /* We use char because int might match the return type of a gcc2
43800 builtin and then its argument prototype would still apply. */
43802 /* The GNU C library defines this for functions which it implements
43803 to always fail with ENOSYS. Some functions are actually named
43804 something starting with __ and the normal name is an alias. */
43805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43808 char (*f) () = $ac_func;
43817 return f != $ac_func;
43822 rm -f conftest.$ac_objext conftest$ac_exeext
43823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43824 (eval $ac_link) 2>conftest.er1
43826 grep -v '^ *+' conftest.er1 >conftest.err
43828 cat conftest.err >&5
43829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43830 (exit $ac_status); } &&
43831 { ac_try='test -z "$ac_c_werror_flag"
43832 || test ! -s conftest.err'
43833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43834 (eval $ac_try) 2>&5
43836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43837 (exit $ac_status); }; } &&
43838 { ac_try='test -s conftest$ac_exeext'
43839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43840 (eval $ac_try) 2>&5
43842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43843 (exit $ac_status); }; }; then
43844 eval "$as_ac_var=yes"
43846 echo "$as_me: failed program was:" >&5
43847 sed 's/^/| /' conftest.$ac_ext >&5
43849 eval "$as_ac_var=no"
43851 rm -f conftest.err conftest.$ac_objext \
43852 conftest$ac_exeext conftest.$ac_ext
43854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43856 if test `eval echo '${'$as_ac_var'}'` = yes; then
43857 cat >>confdefs.h <<_ACEOF
43858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43860 ice_have_mkstemp=yes
43864 if test "${ice_have_mkstemp}" = yes; then
43865 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
43866 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
43867 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
43868 echo $ECHO_N "(cached) $ECHO_C" >&6
43871 ice_cv_have_mkstemp_decl=no
43872 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43873 ice_re_word='(^|[^a-zA-Z0-9_])'
43874 for header in stdlib.h; do
43875 # Check for ordinary declaration
43876 cat >conftest.$ac_ext <<_ACEOF
43879 cat confdefs.h >>conftest.$ac_ext
43880 cat >>conftest.$ac_ext <<_ACEOF
43881 /* end confdefs.h. */
43885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43886 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then
43887 ice_cv_have_mkstemp_decl=yes
43891 if test "$ice_cv_have_mkstemp_decl" = yes; then
43894 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43895 cat >conftest.$ac_ext <<_ACEOF
43898 cat confdefs.h >>conftest.$ac_ext
43899 cat >>conftest.$ac_ext <<_ACEOF
43900 /* end confdefs.h. */
43904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43905 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43906 ice_cv_have_mkstemp_decl=yes
43910 if test "$ice_cv_have_mkstemp_decl" = yes; then
43917 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
43918 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
43919 if test "$ice_cv_have_mkstemp_decl" = yes; then
43921 cat >>confdefs.h <<_ACEOF
43922 #define HAVE_MKSTEMP_DECL 1
43931 for ac_func in mktemp
43933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43934 echo "$as_me:$LINENO: checking for $ac_func" >&5
43935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43936 if eval "test \"\${$as_ac_var+set}\" = set"; then
43937 echo $ECHO_N "(cached) $ECHO_C" >&6
43939 cat >conftest.$ac_ext <<_ACEOF
43942 cat confdefs.h >>conftest.$ac_ext
43943 cat >>conftest.$ac_ext <<_ACEOF
43944 /* end confdefs.h. */
43945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43947 #define $ac_func innocuous_$ac_func
43949 /* System header to define __stub macros and hopefully few prototypes,
43950 which can conflict with char $ac_func (); below.
43951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43952 <limits.h> exists even on freestanding compilers. */
43955 # include <limits.h>
43957 # include <assert.h>
43962 /* Override any gcc2 internal prototype to avoid an error. */
43967 /* We use char because int might match the return type of a gcc2
43968 builtin and then its argument prototype would still apply. */
43970 /* The GNU C library defines this for functions which it implements
43971 to always fail with ENOSYS. Some functions are actually named
43972 something starting with __ and the normal name is an alias. */
43973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43976 char (*f) () = $ac_func;
43985 return f != $ac_func;
43990 rm -f conftest.$ac_objext conftest$ac_exeext
43991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43992 (eval $ac_link) 2>conftest.er1
43994 grep -v '^ *+' conftest.er1 >conftest.err
43996 cat conftest.err >&5
43997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998 (exit $ac_status); } &&
43999 { ac_try='test -z "$ac_c_werror_flag"
44000 || test ! -s conftest.err'
44001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44002 (eval $ac_try) 2>&5
44004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44005 (exit $ac_status); }; } &&
44006 { ac_try='test -s conftest$ac_exeext'
44007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44008 (eval $ac_try) 2>&5
44010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011 (exit $ac_status); }; }; then
44012 eval "$as_ac_var=yes"
44014 echo "$as_me: failed program was:" >&5
44015 sed 's/^/| /' conftest.$ac_ext >&5
44017 eval "$as_ac_var=no"
44019 rm -f conftest.err conftest.$ac_objext \
44020 conftest$ac_exeext conftest.$ac_ext
44022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44024 if test `eval echo '${'$as_ac_var'}'` = yes; then
44025 cat >>confdefs.h <<_ACEOF
44026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44028 ice_have_mktemp=yes
44032 if test "${ice_have_mktemp}" = yes; then
44033 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
44034 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
44035 if test "${ice_cv_have_mktemp_decl+set}" = set; then
44036 echo $ECHO_N "(cached) $ECHO_C" >&6
44039 ice_cv_have_mktemp_decl=no
44040 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44041 ice_re_word='(^|[^a-zA-Z0-9_])'
44042 for header in stdlib.h; do
44043 # Check for ordinary declaration
44044 cat >conftest.$ac_ext <<_ACEOF
44047 cat confdefs.h >>conftest.$ac_ext
44048 cat >>conftest.$ac_ext <<_ACEOF
44049 /* end confdefs.h. */
44053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44054 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
44055 ice_cv_have_mktemp_decl=yes
44059 if test "$ice_cv_have_mktemp_decl" = yes; then
44062 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44063 cat >conftest.$ac_ext <<_ACEOF
44066 cat confdefs.h >>conftest.$ac_ext
44067 cat >>conftest.$ac_ext <<_ACEOF
44068 /* end confdefs.h. */
44072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44073 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44074 ice_cv_have_mktemp_decl=yes
44078 if test "$ice_cv_have_mktemp_decl" = yes; then
44085 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
44086 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
44087 if test "$ice_cv_have_mktemp_decl" = yes; then
44089 cat >>confdefs.h <<_ACEOF
44090 #define HAVE_MKTEMP_DECL 1
44097 for ac_func in mktime
44099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44100 echo "$as_me:$LINENO: checking for $ac_func" >&5
44101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44102 if eval "test \"\${$as_ac_var+set}\" = set"; then
44103 echo $ECHO_N "(cached) $ECHO_C" >&6
44105 cat >conftest.$ac_ext <<_ACEOF
44108 cat confdefs.h >>conftest.$ac_ext
44109 cat >>conftest.$ac_ext <<_ACEOF
44110 /* end confdefs.h. */
44111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44113 #define $ac_func innocuous_$ac_func
44115 /* System header to define __stub macros and hopefully few prototypes,
44116 which can conflict with char $ac_func (); below.
44117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44118 <limits.h> exists even on freestanding compilers. */
44121 # include <limits.h>
44123 # include <assert.h>
44128 /* Override any gcc2 internal prototype to avoid an error. */
44133 /* We use char because int might match the return type of a gcc2
44134 builtin and then its argument prototype would still apply. */
44136 /* The GNU C library defines this for functions which it implements
44137 to always fail with ENOSYS. Some functions are actually named
44138 something starting with __ and the normal name is an alias. */
44139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44142 char (*f) () = $ac_func;
44151 return f != $ac_func;
44156 rm -f conftest.$ac_objext conftest$ac_exeext
44157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44158 (eval $ac_link) 2>conftest.er1
44160 grep -v '^ *+' conftest.er1 >conftest.err
44162 cat conftest.err >&5
44163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44164 (exit $ac_status); } &&
44165 { ac_try='test -z "$ac_c_werror_flag"
44166 || test ! -s conftest.err'
44167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44168 (eval $ac_try) 2>&5
44170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44171 (exit $ac_status); }; } &&
44172 { ac_try='test -s conftest$ac_exeext'
44173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44174 (eval $ac_try) 2>&5
44176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44177 (exit $ac_status); }; }; then
44178 eval "$as_ac_var=yes"
44180 echo "$as_me: failed program was:" >&5
44181 sed 's/^/| /' conftest.$ac_ext >&5
44183 eval "$as_ac_var=no"
44185 rm -f conftest.err conftest.$ac_objext \
44186 conftest$ac_exeext conftest.$ac_ext
44188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44190 if test `eval echo '${'$as_ac_var'}'` = yes; then
44191 cat >>confdefs.h <<_ACEOF
44192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44197 "$ac_func.$ac_objext" | \
44198 *" $ac_func.$ac_objext" | \
44199 "$ac_func.$ac_objext "* | \
44200 *" $ac_func.$ac_objext "* ) ;;
44201 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44211 for ac_func in mktime
44213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44214 echo "$as_me:$LINENO: checking for $ac_func" >&5
44215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44216 if eval "test \"\${$as_ac_var+set}\" = set"; then
44217 echo $ECHO_N "(cached) $ECHO_C" >&6
44219 cat >conftest.$ac_ext <<_ACEOF
44222 cat confdefs.h >>conftest.$ac_ext
44223 cat >>conftest.$ac_ext <<_ACEOF
44224 /* end confdefs.h. */
44225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44227 #define $ac_func innocuous_$ac_func
44229 /* System header to define __stub macros and hopefully few prototypes,
44230 which can conflict with char $ac_func (); below.
44231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44232 <limits.h> exists even on freestanding compilers. */
44235 # include <limits.h>
44237 # include <assert.h>
44242 /* Override any gcc2 internal prototype to avoid an error. */
44247 /* We use char because int might match the return type of a gcc2
44248 builtin and then its argument prototype would still apply. */
44250 /* The GNU C library defines this for functions which it implements
44251 to always fail with ENOSYS. Some functions are actually named
44252 something starting with __ and the normal name is an alias. */
44253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44256 char (*f) () = $ac_func;
44265 return f != $ac_func;
44270 rm -f conftest.$ac_objext conftest$ac_exeext
44271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44272 (eval $ac_link) 2>conftest.er1
44274 grep -v '^ *+' conftest.er1 >conftest.err
44276 cat conftest.err >&5
44277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44278 (exit $ac_status); } &&
44279 { ac_try='test -z "$ac_c_werror_flag"
44280 || test ! -s conftest.err'
44281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44282 (eval $ac_try) 2>&5
44284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44285 (exit $ac_status); }; } &&
44286 { ac_try='test -s conftest$ac_exeext'
44287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44288 (eval $ac_try) 2>&5
44290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44291 (exit $ac_status); }; }; then
44292 eval "$as_ac_var=yes"
44294 echo "$as_me: failed program was:" >&5
44295 sed 's/^/| /' conftest.$ac_ext >&5
44297 eval "$as_ac_var=no"
44299 rm -f conftest.err conftest.$ac_objext \
44300 conftest$ac_exeext conftest.$ac_ext
44302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44304 if test `eval echo '${'$as_ac_var'}'` = yes; then
44305 cat >>confdefs.h <<_ACEOF
44306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44308 ice_have_mktime=yes
44312 if test "${ice_have_mktime}" = yes; then
44313 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
44314 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
44315 if test "${ice_cv_have_mktime_decl+set}" = set; then
44316 echo $ECHO_N "(cached) $ECHO_C" >&6
44319 ice_cv_have_mktime_decl=no
44320 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44321 ice_re_word='(^|[^a-zA-Z0-9_])'
44322 for header in time.h sys/time.h; do
44323 # Check for ordinary declaration
44324 cat >conftest.$ac_ext <<_ACEOF
44327 cat confdefs.h >>conftest.$ac_ext
44328 cat >>conftest.$ac_ext <<_ACEOF
44329 /* end confdefs.h. */
44333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44334 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
44335 ice_cv_have_mktime_decl=yes
44339 if test "$ice_cv_have_mktime_decl" = yes; then
44342 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44343 cat >conftest.$ac_ext <<_ACEOF
44346 cat confdefs.h >>conftest.$ac_ext
44347 cat >>conftest.$ac_ext <<_ACEOF
44348 /* end confdefs.h. */
44352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44353 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44354 ice_cv_have_mktime_decl=yes
44358 if test "$ice_cv_have_mktime_decl" = yes; then
44365 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
44366 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
44367 if test "$ice_cv_have_mktime_decl" = yes; then
44369 cat >>confdefs.h <<_ACEOF
44370 #define HAVE_MKTIME_DECL 1
44378 for ac_header in stdlib.h unistd.h
44380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44382 echo "$as_me:$LINENO: checking for $ac_header" >&5
44383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44385 echo $ECHO_N "(cached) $ECHO_C" >&6
44387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44390 # Is the header compilable?
44391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44393 cat >conftest.$ac_ext <<_ACEOF
44396 cat confdefs.h >>conftest.$ac_ext
44397 cat >>conftest.$ac_ext <<_ACEOF
44398 /* end confdefs.h. */
44399 $ac_includes_default
44400 #include <$ac_header>
44402 rm -f conftest.$ac_objext
44403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44404 (eval $ac_compile) 2>conftest.er1
44406 grep -v '^ *+' conftest.er1 >conftest.err
44408 cat conftest.err >&5
44409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44410 (exit $ac_status); } &&
44411 { ac_try='test -z "$ac_c_werror_flag"
44412 || test ! -s conftest.err'
44413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44414 (eval $ac_try) 2>&5
44416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417 (exit $ac_status); }; } &&
44418 { ac_try='test -s conftest.$ac_objext'
44419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44420 (eval $ac_try) 2>&5
44422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); }; }; then
44424 ac_header_compiler=yes
44426 echo "$as_me: failed program was:" >&5
44427 sed 's/^/| /' conftest.$ac_ext >&5
44429 ac_header_compiler=no
44431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44433 echo "${ECHO_T}$ac_header_compiler" >&6
44435 # Is the header present?
44436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44438 cat >conftest.$ac_ext <<_ACEOF
44441 cat confdefs.h >>conftest.$ac_ext
44442 cat >>conftest.$ac_ext <<_ACEOF
44443 /* end confdefs.h. */
44444 #include <$ac_header>
44446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44449 grep -v '^ *+' conftest.er1 >conftest.err
44451 cat conftest.err >&5
44452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44453 (exit $ac_status); } >/dev/null; then
44454 if test -s conftest.err; then
44455 ac_cpp_err=$ac_c_preproc_warn_flag
44456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44463 if test -z "$ac_cpp_err"; then
44464 ac_header_preproc=yes
44466 echo "$as_me: failed program was:" >&5
44467 sed 's/^/| /' conftest.$ac_ext >&5
44469 ac_header_preproc=no
44471 rm -f conftest.err conftest.$ac_ext
44472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44473 echo "${ECHO_T}$ac_header_preproc" >&6
44475 # So? What about this header?
44476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44482 ac_header_preproc=yes
44485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44499 ## ------------------------------------------ ##
44500 ## Report this to the AC_PACKAGE_NAME lists. ##
44501 ## ------------------------------------------ ##
44504 sed "s/^/$as_me: WARNING: /" >&2
44507 echo "$as_me:$LINENO: checking for $ac_header" >&5
44508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44510 echo $ECHO_N "(cached) $ECHO_C" >&6
44512 eval "$as_ac_Header=\$ac_header_preproc"
44514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44519 cat >>confdefs.h <<_ACEOF
44520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44528 for ac_func in getpagesize
44530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44531 echo "$as_me:$LINENO: checking for $ac_func" >&5
44532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44533 if eval "test \"\${$as_ac_var+set}\" = set"; then
44534 echo $ECHO_N "(cached) $ECHO_C" >&6
44536 cat >conftest.$ac_ext <<_ACEOF
44539 cat confdefs.h >>conftest.$ac_ext
44540 cat >>conftest.$ac_ext <<_ACEOF
44541 /* end confdefs.h. */
44542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44544 #define $ac_func innocuous_$ac_func
44546 /* System header to define __stub macros and hopefully few prototypes,
44547 which can conflict with char $ac_func (); below.
44548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44549 <limits.h> exists even on freestanding compilers. */
44552 # include <limits.h>
44554 # include <assert.h>
44559 /* Override any gcc2 internal prototype to avoid an error. */
44564 /* We use char because int might match the return type of a gcc2
44565 builtin and then its argument prototype would still apply. */
44567 /* The GNU C library defines this for functions which it implements
44568 to always fail with ENOSYS. Some functions are actually named
44569 something starting with __ and the normal name is an alias. */
44570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44573 char (*f) () = $ac_func;
44582 return f != $ac_func;
44587 rm -f conftest.$ac_objext conftest$ac_exeext
44588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44589 (eval $ac_link) 2>conftest.er1
44591 grep -v '^ *+' conftest.er1 >conftest.err
44593 cat conftest.err >&5
44594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44595 (exit $ac_status); } &&
44596 { ac_try='test -z "$ac_c_werror_flag"
44597 || test ! -s conftest.err'
44598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44599 (eval $ac_try) 2>&5
44601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44602 (exit $ac_status); }; } &&
44603 { ac_try='test -s conftest$ac_exeext'
44604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44605 (eval $ac_try) 2>&5
44607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44608 (exit $ac_status); }; }; then
44609 eval "$as_ac_var=yes"
44611 echo "$as_me: failed program was:" >&5
44612 sed 's/^/| /' conftest.$ac_ext >&5
44614 eval "$as_ac_var=no"
44616 rm -f conftest.err conftest.$ac_objext \
44617 conftest$ac_exeext conftest.$ac_ext
44619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44621 if test `eval echo '${'$as_ac_var'}'` = yes; then
44622 cat >>confdefs.h <<_ACEOF
44623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44629 echo "$as_me:$LINENO: checking for working mmap" >&5
44630 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
44631 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
44632 echo $ECHO_N "(cached) $ECHO_C" >&6
44634 if test "$cross_compiling" = yes; then
44635 ac_cv_func_mmap_fixed_mapped=no
44637 cat >conftest.$ac_ext <<_ACEOF
44640 cat confdefs.h >>conftest.$ac_ext
44641 cat >>conftest.$ac_ext <<_ACEOF
44642 /* end confdefs.h. */
44643 $ac_includes_default
44644 /* malloc might have been renamed as rpl_malloc. */
44647 /* Thanks to Mike Haertel and Jim Avera for this test.
44648 Here is a matrix of mmap possibilities:
44649 mmap private not fixed
44650 mmap private fixed at somewhere currently unmapped
44651 mmap private fixed at somewhere already mapped
44652 mmap shared not fixed
44653 mmap shared fixed at somewhere currently unmapped
44654 mmap shared fixed at somewhere already mapped
44655 For private mappings, we should verify that changes cannot be read()
44656 back from the file, nor mmap's back from the file at a different
44657 address. (There have been systems where private was not correctly
44658 implemented like the infamous i386 svr4.0, and systems where the
44659 VM page cache was not coherent with the file system buffer cache
44660 like early versions of FreeBSD and possibly contemporary NetBSD.)
44661 For shared mappings, we should conversely verify that changes get
44662 propagated back to all the places they're supposed to be.
44664 Grep wants private fixed already mapped.
44665 The main things grep needs to know about mmap are:
44666 * does it exist and is it safe to write into the mmap'd area
44667 * how to use it (BSD variants) */
44670 #include <sys/mman.h>
44672 #if !STDC_HEADERS && !HAVE_STDLIB_H
44676 /* This mess was copied from the GNU getpagesize.h. */
44677 #if !HAVE_GETPAGESIZE
44678 /* Assume that all systems that can run configure have sys/param.h. */
44679 # if !HAVE_SYS_PARAM_H
44680 # define HAVE_SYS_PARAM_H 1
44683 # ifdef _SC_PAGESIZE
44684 # define getpagesize() sysconf(_SC_PAGESIZE)
44685 # else /* no _SC_PAGESIZE */
44686 # if HAVE_SYS_PARAM_H
44687 # include <sys/param.h>
44688 # ifdef EXEC_PAGESIZE
44689 # define getpagesize() EXEC_PAGESIZE
44690 # else /* no EXEC_PAGESIZE */
44692 # define getpagesize() NBPG * CLSIZE
44695 # endif /* no CLSIZE */
44696 # else /* no NBPG */
44698 # define getpagesize() NBPC
44699 # else /* no NBPC */
44701 # define getpagesize() PAGESIZE
44702 # endif /* PAGESIZE */
44703 # endif /* no NBPC */
44704 # endif /* no NBPG */
44705 # endif /* no EXEC_PAGESIZE */
44706 # else /* no HAVE_SYS_PARAM_H */
44707 # define getpagesize() 8192 /* punt totally */
44708 # endif /* no HAVE_SYS_PARAM_H */
44709 # endif /* no _SC_PAGESIZE */
44711 #endif /* no HAVE_GETPAGESIZE */
44716 char *data, *data2, *data3;
44720 pagesize = getpagesize ();
44722 /* First, make a file with some known garbage in it. */
44723 data = (char *) malloc (pagesize);
44726 for (i = 0; i < pagesize; ++i)
44727 *(data + i) = rand ();
44729 fd = creat ("conftest.mmap", 0600);
44732 if (write (fd, data, pagesize) != pagesize)
44736 /* Next, try to mmap the file at a fixed address which already has
44737 something else allocated at it. If we can, also make sure that
44738 we see the same garbage. */
44739 fd = open ("conftest.mmap", O_RDWR);
44742 data2 = (char *) malloc (2 * pagesize);
44745 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
44746 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
44747 MAP_PRIVATE | MAP_FIXED, fd, 0L))
44749 for (i = 0; i < pagesize; ++i)
44750 if (*(data + i) != *(data2 + i))
44753 /* Finally, make sure that changes to the mapped area do not
44754 percolate back to the file as seen by read(). (This is a bug on
44755 some variants of i386 svr4.0.) */
44756 for (i = 0; i < pagesize; ++i)
44757 *(data2 + i) = *(data2 + i) + 1;
44758 data3 = (char *) malloc (pagesize);
44761 if (read (fd, data3, pagesize) != pagesize)
44763 for (i = 0; i < pagesize; ++i)
44764 if (*(data + i) != *(data3 + i))
44770 rm -f conftest$ac_exeext
44771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44772 (eval $ac_link) 2>&5
44774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44777 (eval $ac_try) 2>&5
44779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44780 (exit $ac_status); }; }; then
44781 ac_cv_func_mmap_fixed_mapped=yes
44783 echo "$as_me: program exited with status $ac_status" >&5
44784 echo "$as_me: failed program was:" >&5
44785 sed 's/^/| /' conftest.$ac_ext >&5
44787 ( exit $ac_status )
44788 ac_cv_func_mmap_fixed_mapped=no
44790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44793 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
44794 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
44795 if test $ac_cv_func_mmap_fixed_mapped = yes; then
44797 cat >>confdefs.h <<\_ACEOF
44798 #define HAVE_MMAP 1
44802 rm -f conftest.mmap
44805 for ac_func in on_exit
44807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44808 echo "$as_me:$LINENO: checking for $ac_func" >&5
44809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44810 if eval "test \"\${$as_ac_var+set}\" = set"; then
44811 echo $ECHO_N "(cached) $ECHO_C" >&6
44813 cat >conftest.$ac_ext <<_ACEOF
44816 cat confdefs.h >>conftest.$ac_ext
44817 cat >>conftest.$ac_ext <<_ACEOF
44818 /* end confdefs.h. */
44819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44821 #define $ac_func innocuous_$ac_func
44823 /* System header to define __stub macros and hopefully few prototypes,
44824 which can conflict with char $ac_func (); below.
44825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44826 <limits.h> exists even on freestanding compilers. */
44829 # include <limits.h>
44831 # include <assert.h>
44836 /* Override any gcc2 internal prototype to avoid an error. */
44841 /* We use char because int might match the return type of a gcc2
44842 builtin and then its argument prototype would still apply. */
44844 /* The GNU C library defines this for functions which it implements
44845 to always fail with ENOSYS. Some functions are actually named
44846 something starting with __ and the normal name is an alias. */
44847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44850 char (*f) () = $ac_func;
44859 return f != $ac_func;
44864 rm -f conftest.$ac_objext conftest$ac_exeext
44865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44866 (eval $ac_link) 2>conftest.er1
44868 grep -v '^ *+' conftest.er1 >conftest.err
44870 cat conftest.err >&5
44871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44872 (exit $ac_status); } &&
44873 { ac_try='test -z "$ac_c_werror_flag"
44874 || test ! -s conftest.err'
44875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44876 (eval $ac_try) 2>&5
44878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44879 (exit $ac_status); }; } &&
44880 { ac_try='test -s conftest$ac_exeext'
44881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44882 (eval $ac_try) 2>&5
44884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885 (exit $ac_status); }; }; then
44886 eval "$as_ac_var=yes"
44888 echo "$as_me: failed program was:" >&5
44889 sed 's/^/| /' conftest.$ac_ext >&5
44891 eval "$as_ac_var=no"
44893 rm -f conftest.err conftest.$ac_objext \
44894 conftest$ac_exeext conftest.$ac_ext
44896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44898 if test `eval echo '${'$as_ac_var'}'` = yes; then
44899 cat >>confdefs.h <<_ACEOF
44900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44907 ice_have_openlog=no
44909 for ac_func in openlog
44911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44912 echo "$as_me:$LINENO: checking for $ac_func" >&5
44913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44914 if eval "test \"\${$as_ac_var+set}\" = set"; then
44915 echo $ECHO_N "(cached) $ECHO_C" >&6
44917 cat >conftest.$ac_ext <<_ACEOF
44920 cat confdefs.h >>conftest.$ac_ext
44921 cat >>conftest.$ac_ext <<_ACEOF
44922 /* end confdefs.h. */
44923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44925 #define $ac_func innocuous_$ac_func
44927 /* System header to define __stub macros and hopefully few prototypes,
44928 which can conflict with char $ac_func (); below.
44929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44930 <limits.h> exists even on freestanding compilers. */
44933 # include <limits.h>
44935 # include <assert.h>
44940 /* Override any gcc2 internal prototype to avoid an error. */
44945 /* We use char because int might match the return type of a gcc2
44946 builtin and then its argument prototype would still apply. */
44948 /* The GNU C library defines this for functions which it implements
44949 to always fail with ENOSYS. Some functions are actually named
44950 something starting with __ and the normal name is an alias. */
44951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44954 char (*f) () = $ac_func;
44963 return f != $ac_func;
44968 rm -f conftest.$ac_objext conftest$ac_exeext
44969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44970 (eval $ac_link) 2>conftest.er1
44972 grep -v '^ *+' conftest.er1 >conftest.err
44974 cat conftest.err >&5
44975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44976 (exit $ac_status); } &&
44977 { ac_try='test -z "$ac_c_werror_flag"
44978 || test ! -s conftest.err'
44979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44980 (eval $ac_try) 2>&5
44982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44983 (exit $ac_status); }; } &&
44984 { ac_try='test -s conftest$ac_exeext'
44985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44986 (eval $ac_try) 2>&5
44988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44989 (exit $ac_status); }; }; then
44990 eval "$as_ac_var=yes"
44992 echo "$as_me: failed program was:" >&5
44993 sed 's/^/| /' conftest.$ac_ext >&5
44995 eval "$as_ac_var=no"
44997 rm -f conftest.err conftest.$ac_objext \
44998 conftest$ac_exeext conftest.$ac_ext
45000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45002 if test `eval echo '${'$as_ac_var'}'` = yes; then
45003 cat >>confdefs.h <<_ACEOF
45004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45006 ice_have_openlog=yes
45010 if test "${ice_have_openlog}" = yes; then
45011 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
45012 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
45013 if test "${ice_cv_have_openlog_decl+set}" = set; then
45014 echo $ECHO_N "(cached) $ECHO_C" >&6
45017 ice_cv_have_openlog_decl=no
45018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45019 ice_re_word='(^|[^a-zA-Z0-9_])'
45020 for header in syslog.h; do
45021 # Check for ordinary declaration
45022 cat >conftest.$ac_ext <<_ACEOF
45025 cat confdefs.h >>conftest.$ac_ext
45026 cat >>conftest.$ac_ext <<_ACEOF
45027 /* end confdefs.h. */
45031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45032 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
45033 ice_cv_have_openlog_decl=yes
45037 if test "$ice_cv_have_openlog_decl" = yes; then
45040 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45041 cat >conftest.$ac_ext <<_ACEOF
45044 cat confdefs.h >>conftest.$ac_ext
45045 cat >>conftest.$ac_ext <<_ACEOF
45046 /* end confdefs.h. */
45050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45051 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45052 ice_cv_have_openlog_decl=yes
45056 if test "$ice_cv_have_openlog_decl" = yes; then
45063 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
45064 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
45065 if test "$ice_cv_have_openlog_decl" = yes; then
45067 cat >>confdefs.h <<_ACEOF
45068 #define HAVE_OPENLOG_DECL 1
45077 for ac_func in pclose
45079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45080 echo "$as_me:$LINENO: checking for $ac_func" >&5
45081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45082 if eval "test \"\${$as_ac_var+set}\" = set"; then
45083 echo $ECHO_N "(cached) $ECHO_C" >&6
45085 cat >conftest.$ac_ext <<_ACEOF
45088 cat confdefs.h >>conftest.$ac_ext
45089 cat >>conftest.$ac_ext <<_ACEOF
45090 /* end confdefs.h. */
45091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45093 #define $ac_func innocuous_$ac_func
45095 /* System header to define __stub macros and hopefully few prototypes,
45096 which can conflict with char $ac_func (); below.
45097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45098 <limits.h> exists even on freestanding compilers. */
45101 # include <limits.h>
45103 # include <assert.h>
45108 /* Override any gcc2 internal prototype to avoid an error. */
45113 /* We use char because int might match the return type of a gcc2
45114 builtin and then its argument prototype would still apply. */
45116 /* The GNU C library defines this for functions which it implements
45117 to always fail with ENOSYS. Some functions are actually named
45118 something starting with __ and the normal name is an alias. */
45119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45122 char (*f) () = $ac_func;
45131 return f != $ac_func;
45136 rm -f conftest.$ac_objext conftest$ac_exeext
45137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45138 (eval $ac_link) 2>conftest.er1
45140 grep -v '^ *+' conftest.er1 >conftest.err
45142 cat conftest.err >&5
45143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45144 (exit $ac_status); } &&
45145 { ac_try='test -z "$ac_c_werror_flag"
45146 || test ! -s conftest.err'
45147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45148 (eval $ac_try) 2>&5
45150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45151 (exit $ac_status); }; } &&
45152 { ac_try='test -s conftest$ac_exeext'
45153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45154 (eval $ac_try) 2>&5
45156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45157 (exit $ac_status); }; }; then
45158 eval "$as_ac_var=yes"
45160 echo "$as_me: failed program was:" >&5
45161 sed 's/^/| /' conftest.$ac_ext >&5
45163 eval "$as_ac_var=no"
45165 rm -f conftest.err conftest.$ac_objext \
45166 conftest$ac_exeext conftest.$ac_ext
45168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45170 if test `eval echo '${'$as_ac_var'}'` = yes; then
45171 cat >>confdefs.h <<_ACEOF
45172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45174 ice_have_pclose=yes
45178 if test "${ice_have_pclose}" = yes; then
45179 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
45180 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
45181 if test "${ice_cv_have_pclose_decl+set}" = set; then
45182 echo $ECHO_N "(cached) $ECHO_C" >&6
45185 ice_cv_have_pclose_decl=no
45186 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45187 ice_re_word='(^|[^a-zA-Z0-9_])'
45188 for header in stdio.h; do
45189 # Check for ordinary declaration
45190 cat >conftest.$ac_ext <<_ACEOF
45193 cat confdefs.h >>conftest.$ac_ext
45194 cat >>conftest.$ac_ext <<_ACEOF
45195 /* end confdefs.h. */
45199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45200 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
45201 ice_cv_have_pclose_decl=yes
45205 if test "$ice_cv_have_pclose_decl" = yes; then
45208 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45209 cat >conftest.$ac_ext <<_ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h. */
45218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45219 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45220 ice_cv_have_pclose_decl=yes
45224 if test "$ice_cv_have_pclose_decl" = yes; then
45231 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
45232 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
45233 if test "$ice_cv_have_pclose_decl" = yes; then
45235 cat >>confdefs.h <<_ACEOF
45236 #define HAVE_PCLOSE_DECL 1
45245 for ac_func in perror
45247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45248 echo "$as_me:$LINENO: checking for $ac_func" >&5
45249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45250 if eval "test \"\${$as_ac_var+set}\" = set"; then
45251 echo $ECHO_N "(cached) $ECHO_C" >&6
45253 cat >conftest.$ac_ext <<_ACEOF
45256 cat confdefs.h >>conftest.$ac_ext
45257 cat >>conftest.$ac_ext <<_ACEOF
45258 /* end confdefs.h. */
45259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45261 #define $ac_func innocuous_$ac_func
45263 /* System header to define __stub macros and hopefully few prototypes,
45264 which can conflict with char $ac_func (); below.
45265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45266 <limits.h> exists even on freestanding compilers. */
45269 # include <limits.h>
45271 # include <assert.h>
45276 /* Override any gcc2 internal prototype to avoid an error. */
45281 /* We use char because int might match the return type of a gcc2
45282 builtin and then its argument prototype would still apply. */
45284 /* The GNU C library defines this for functions which it implements
45285 to always fail with ENOSYS. Some functions are actually named
45286 something starting with __ and the normal name is an alias. */
45287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45290 char (*f) () = $ac_func;
45299 return f != $ac_func;
45304 rm -f conftest.$ac_objext conftest$ac_exeext
45305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45306 (eval $ac_link) 2>conftest.er1
45308 grep -v '^ *+' conftest.er1 >conftest.err
45310 cat conftest.err >&5
45311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45312 (exit $ac_status); } &&
45313 { ac_try='test -z "$ac_c_werror_flag"
45314 || test ! -s conftest.err'
45315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45316 (eval $ac_try) 2>&5
45318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45319 (exit $ac_status); }; } &&
45320 { ac_try='test -s conftest$ac_exeext'
45321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45322 (eval $ac_try) 2>&5
45324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325 (exit $ac_status); }; }; then
45326 eval "$as_ac_var=yes"
45328 echo "$as_me: failed program was:" >&5
45329 sed 's/^/| /' conftest.$ac_ext >&5
45331 eval "$as_ac_var=no"
45333 rm -f conftest.err conftest.$ac_objext \
45334 conftest$ac_exeext conftest.$ac_ext
45336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45338 if test `eval echo '${'$as_ac_var'}'` = yes; then
45339 cat >>confdefs.h <<_ACEOF
45340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45342 ice_have_perror=yes
45346 if test "${ice_have_perror}" = yes; then
45347 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
45348 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
45349 if test "${ice_cv_have_perror_decl+set}" = set; then
45350 echo $ECHO_N "(cached) $ECHO_C" >&6
45353 ice_cv_have_perror_decl=no
45354 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45355 ice_re_word='(^|[^a-zA-Z0-9_])'
45356 for header in stdio.h; do
45357 # Check for ordinary declaration
45358 cat >conftest.$ac_ext <<_ACEOF
45361 cat confdefs.h >>conftest.$ac_ext
45362 cat >>conftest.$ac_ext <<_ACEOF
45363 /* end confdefs.h. */
45367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45368 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
45369 ice_cv_have_perror_decl=yes
45373 if test "$ice_cv_have_perror_decl" = yes; then
45376 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45377 cat >conftest.$ac_ext <<_ACEOF
45380 cat confdefs.h >>conftest.$ac_ext
45381 cat >>conftest.$ac_ext <<_ACEOF
45382 /* end confdefs.h. */
45386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45387 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45388 ice_cv_have_perror_decl=yes
45392 if test "$ice_cv_have_perror_decl" = yes; then
45399 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
45400 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
45401 if test "$ice_cv_have_perror_decl" = yes; then
45403 cat >>confdefs.h <<_ACEOF
45404 #define HAVE_PERROR_DECL 1
45413 for ac_func in printf
45415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45416 echo "$as_me:$LINENO: checking for $ac_func" >&5
45417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45418 if eval "test \"\${$as_ac_var+set}\" = set"; then
45419 echo $ECHO_N "(cached) $ECHO_C" >&6
45421 cat >conftest.$ac_ext <<_ACEOF
45424 cat confdefs.h >>conftest.$ac_ext
45425 cat >>conftest.$ac_ext <<_ACEOF
45426 /* end confdefs.h. */
45427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45429 #define $ac_func innocuous_$ac_func
45431 /* System header to define __stub macros and hopefully few prototypes,
45432 which can conflict with char $ac_func (); below.
45433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45434 <limits.h> exists even on freestanding compilers. */
45437 # include <limits.h>
45439 # include <assert.h>
45444 /* Override any gcc2 internal prototype to avoid an error. */
45449 /* We use char because int might match the return type of a gcc2
45450 builtin and then its argument prototype would still apply. */
45452 /* The GNU C library defines this for functions which it implements
45453 to always fail with ENOSYS. Some functions are actually named
45454 something starting with __ and the normal name is an alias. */
45455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45458 char (*f) () = $ac_func;
45467 return f != $ac_func;
45472 rm -f conftest.$ac_objext conftest$ac_exeext
45473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45474 (eval $ac_link) 2>conftest.er1
45476 grep -v '^ *+' conftest.er1 >conftest.err
45478 cat conftest.err >&5
45479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45480 (exit $ac_status); } &&
45481 { ac_try='test -z "$ac_c_werror_flag"
45482 || test ! -s conftest.err'
45483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45484 (eval $ac_try) 2>&5
45486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45487 (exit $ac_status); }; } &&
45488 { ac_try='test -s conftest$ac_exeext'
45489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45490 (eval $ac_try) 2>&5
45492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45493 (exit $ac_status); }; }; then
45494 eval "$as_ac_var=yes"
45496 echo "$as_me: failed program was:" >&5
45497 sed 's/^/| /' conftest.$ac_ext >&5
45499 eval "$as_ac_var=no"
45501 rm -f conftest.err conftest.$ac_objext \
45502 conftest$ac_exeext conftest.$ac_ext
45504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45506 if test `eval echo '${'$as_ac_var'}'` = yes; then
45507 cat >>confdefs.h <<_ACEOF
45508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45510 ice_have_printf=yes
45514 if test "${ice_have_printf}" = yes; then
45515 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
45516 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
45517 if test "${ice_cv_have_printf_decl+set}" = set; then
45518 echo $ECHO_N "(cached) $ECHO_C" >&6
45521 ice_cv_have_printf_decl=no
45522 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45523 ice_re_word='(^|[^a-zA-Z0-9_])'
45524 for header in stdio.h; do
45525 # Check for ordinary declaration
45526 cat >conftest.$ac_ext <<_ACEOF
45529 cat confdefs.h >>conftest.$ac_ext
45530 cat >>conftest.$ac_ext <<_ACEOF
45531 /* end confdefs.h. */
45535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45536 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
45537 ice_cv_have_printf_decl=yes
45541 if test "$ice_cv_have_printf_decl" = yes; then
45544 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45545 cat >conftest.$ac_ext <<_ACEOF
45548 cat confdefs.h >>conftest.$ac_ext
45549 cat >>conftest.$ac_ext <<_ACEOF
45550 /* end confdefs.h. */
45554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45555 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45556 ice_cv_have_printf_decl=yes
45560 if test "$ice_cv_have_printf_decl" = yes; then
45567 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
45568 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
45569 if test "$ice_cv_have_printf_decl" = yes; then
45571 cat >>confdefs.h <<_ACEOF
45572 #define HAVE_PRINTF_DECL 1
45579 for ac_func in putenv
45581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45582 echo "$as_me:$LINENO: checking for $ac_func" >&5
45583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45584 if eval "test \"\${$as_ac_var+set}\" = set"; then
45585 echo $ECHO_N "(cached) $ECHO_C" >&6
45587 cat >conftest.$ac_ext <<_ACEOF
45590 cat confdefs.h >>conftest.$ac_ext
45591 cat >>conftest.$ac_ext <<_ACEOF
45592 /* end confdefs.h. */
45593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45595 #define $ac_func innocuous_$ac_func
45597 /* System header to define __stub macros and hopefully few prototypes,
45598 which can conflict with char $ac_func (); below.
45599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45600 <limits.h> exists even on freestanding compilers. */
45603 # include <limits.h>
45605 # include <assert.h>
45610 /* Override any gcc2 internal prototype to avoid an error. */
45615 /* We use char because int might match the return type of a gcc2
45616 builtin and then its argument prototype would still apply. */
45618 /* The GNU C library defines this for functions which it implements
45619 to always fail with ENOSYS. Some functions are actually named
45620 something starting with __ and the normal name is an alias. */
45621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45624 char (*f) () = $ac_func;
45633 return f != $ac_func;
45638 rm -f conftest.$ac_objext conftest$ac_exeext
45639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45640 (eval $ac_link) 2>conftest.er1
45642 grep -v '^ *+' conftest.er1 >conftest.err
45644 cat conftest.err >&5
45645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45646 (exit $ac_status); } &&
45647 { ac_try='test -z "$ac_c_werror_flag"
45648 || test ! -s conftest.err'
45649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45650 (eval $ac_try) 2>&5
45652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45653 (exit $ac_status); }; } &&
45654 { ac_try='test -s conftest$ac_exeext'
45655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45656 (eval $ac_try) 2>&5
45658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45659 (exit $ac_status); }; }; then
45660 eval "$as_ac_var=yes"
45662 echo "$as_me: failed program was:" >&5
45663 sed 's/^/| /' conftest.$ac_ext >&5
45665 eval "$as_ac_var=no"
45667 rm -f conftest.err conftest.$ac_objext \
45668 conftest$ac_exeext conftest.$ac_ext
45670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45672 if test `eval echo '${'$as_ac_var'}'` = yes; then
45673 cat >>confdefs.h <<_ACEOF
45674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45683 for ac_func in puts
45685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45686 echo "$as_me:$LINENO: checking for $ac_func" >&5
45687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45688 if eval "test \"\${$as_ac_var+set}\" = set"; then
45689 echo $ECHO_N "(cached) $ECHO_C" >&6
45691 cat >conftest.$ac_ext <<_ACEOF
45694 cat confdefs.h >>conftest.$ac_ext
45695 cat >>conftest.$ac_ext <<_ACEOF
45696 /* end confdefs.h. */
45697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45699 #define $ac_func innocuous_$ac_func
45701 /* System header to define __stub macros and hopefully few prototypes,
45702 which can conflict with char $ac_func (); below.
45703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45704 <limits.h> exists even on freestanding compilers. */
45707 # include <limits.h>
45709 # include <assert.h>
45714 /* Override any gcc2 internal prototype to avoid an error. */
45719 /* We use char because int might match the return type of a gcc2
45720 builtin and then its argument prototype would still apply. */
45722 /* The GNU C library defines this for functions which it implements
45723 to always fail with ENOSYS. Some functions are actually named
45724 something starting with __ and the normal name is an alias. */
45725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45728 char (*f) () = $ac_func;
45737 return f != $ac_func;
45742 rm -f conftest.$ac_objext conftest$ac_exeext
45743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45744 (eval $ac_link) 2>conftest.er1
45746 grep -v '^ *+' conftest.er1 >conftest.err
45748 cat conftest.err >&5
45749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750 (exit $ac_status); } &&
45751 { ac_try='test -z "$ac_c_werror_flag"
45752 || test ! -s conftest.err'
45753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754 (eval $ac_try) 2>&5
45756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757 (exit $ac_status); }; } &&
45758 { ac_try='test -s conftest$ac_exeext'
45759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45760 (eval $ac_try) 2>&5
45762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45763 (exit $ac_status); }; }; then
45764 eval "$as_ac_var=yes"
45766 echo "$as_me: failed program was:" >&5
45767 sed 's/^/| /' conftest.$ac_ext >&5
45769 eval "$as_ac_var=no"
45771 rm -f conftest.err conftest.$ac_objext \
45772 conftest$ac_exeext conftest.$ac_ext
45774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45776 if test `eval echo '${'$as_ac_var'}'` = yes; then
45777 cat >>confdefs.h <<_ACEOF
45778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45784 if test "${ice_have_puts}" = yes; then
45785 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
45786 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
45787 if test "${ice_cv_have_puts_decl+set}" = set; then
45788 echo $ECHO_N "(cached) $ECHO_C" >&6
45791 ice_cv_have_puts_decl=no
45792 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45793 ice_re_word='(^|[^a-zA-Z0-9_])'
45794 for header in stdio.h; do
45795 # Check for ordinary declaration
45796 cat >conftest.$ac_ext <<_ACEOF
45799 cat confdefs.h >>conftest.$ac_ext
45800 cat >>conftest.$ac_ext <<_ACEOF
45801 /* end confdefs.h. */
45805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45806 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
45807 ice_cv_have_puts_decl=yes
45811 if test "$ice_cv_have_puts_decl" = yes; then
45814 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45815 cat >conftest.$ac_ext <<_ACEOF
45818 cat confdefs.h >>conftest.$ac_ext
45819 cat >>conftest.$ac_ext <<_ACEOF
45820 /* end confdefs.h. */
45824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45825 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45826 ice_cv_have_puts_decl=yes
45830 if test "$ice_cv_have_puts_decl" = yes; then
45837 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
45838 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
45839 if test "$ice_cv_have_puts_decl" = yes; then
45841 cat >>confdefs.h <<_ACEOF
45842 #define HAVE_PUTS_DECL 1
45849 ice_have_realloc=no
45851 for ac_func in realloc
45853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45854 echo "$as_me:$LINENO: checking for $ac_func" >&5
45855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45856 if eval "test \"\${$as_ac_var+set}\" = set"; then
45857 echo $ECHO_N "(cached) $ECHO_C" >&6
45859 cat >conftest.$ac_ext <<_ACEOF
45862 cat confdefs.h >>conftest.$ac_ext
45863 cat >>conftest.$ac_ext <<_ACEOF
45864 /* end confdefs.h. */
45865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45867 #define $ac_func innocuous_$ac_func
45869 /* System header to define __stub macros and hopefully few prototypes,
45870 which can conflict with char $ac_func (); below.
45871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45872 <limits.h> exists even on freestanding compilers. */
45875 # include <limits.h>
45877 # include <assert.h>
45882 /* Override any gcc2 internal prototype to avoid an error. */
45887 /* We use char because int might match the return type of a gcc2
45888 builtin and then its argument prototype would still apply. */
45890 /* The GNU C library defines this for functions which it implements
45891 to always fail with ENOSYS. Some functions are actually named
45892 something starting with __ and the normal name is an alias. */
45893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45896 char (*f) () = $ac_func;
45905 return f != $ac_func;
45910 rm -f conftest.$ac_objext conftest$ac_exeext
45911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45912 (eval $ac_link) 2>conftest.er1
45914 grep -v '^ *+' conftest.er1 >conftest.err
45916 cat conftest.err >&5
45917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45918 (exit $ac_status); } &&
45919 { ac_try='test -z "$ac_c_werror_flag"
45920 || test ! -s conftest.err'
45921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45922 (eval $ac_try) 2>&5
45924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45925 (exit $ac_status); }; } &&
45926 { ac_try='test -s conftest$ac_exeext'
45927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45928 (eval $ac_try) 2>&5
45930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45931 (exit $ac_status); }; }; then
45932 eval "$as_ac_var=yes"
45934 echo "$as_me: failed program was:" >&5
45935 sed 's/^/| /' conftest.$ac_ext >&5
45937 eval "$as_ac_var=no"
45939 rm -f conftest.err conftest.$ac_objext \
45940 conftest$ac_exeext conftest.$ac_ext
45942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45944 if test `eval echo '${'$as_ac_var'}'` = yes; then
45945 cat >>confdefs.h <<_ACEOF
45946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45948 ice_have_realloc=yes
45952 if test "${ice_have_realloc}" = yes; then
45953 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
45954 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
45955 if test "${ice_cv_have_realloc_decl+set}" = set; then
45956 echo $ECHO_N "(cached) $ECHO_C" >&6
45959 ice_cv_have_realloc_decl=no
45960 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45961 ice_re_word='(^|[^a-zA-Z0-9_])'
45962 for header in stdlib.h; do
45963 # Check for ordinary declaration
45964 cat >conftest.$ac_ext <<_ACEOF
45967 cat confdefs.h >>conftest.$ac_ext
45968 cat >>conftest.$ac_ext <<_ACEOF
45969 /* end confdefs.h. */
45973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45974 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
45975 ice_cv_have_realloc_decl=yes
45979 if test "$ice_cv_have_realloc_decl" = yes; then
45982 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45983 cat >conftest.$ac_ext <<_ACEOF
45986 cat confdefs.h >>conftest.$ac_ext
45987 cat >>conftest.$ac_ext <<_ACEOF
45988 /* end confdefs.h. */
45992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45993 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45994 ice_cv_have_realloc_decl=yes
45998 if test "$ice_cv_have_realloc_decl" = yes; then
46005 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
46006 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
46007 if test "$ice_cv_have_realloc_decl" = yes; then
46009 cat >>confdefs.h <<_ACEOF
46010 #define HAVE_REALLOC_DECL 1
46017 ice_have_recvfrom=no
46019 for ac_func in recvfrom
46021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46022 echo "$as_me:$LINENO: checking for $ac_func" >&5
46023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46024 if eval "test \"\${$as_ac_var+set}\" = set"; then
46025 echo $ECHO_N "(cached) $ECHO_C" >&6
46027 cat >conftest.$ac_ext <<_ACEOF
46030 cat confdefs.h >>conftest.$ac_ext
46031 cat >>conftest.$ac_ext <<_ACEOF
46032 /* end confdefs.h. */
46033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46035 #define $ac_func innocuous_$ac_func
46037 /* System header to define __stub macros and hopefully few prototypes,
46038 which can conflict with char $ac_func (); below.
46039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46040 <limits.h> exists even on freestanding compilers. */
46043 # include <limits.h>
46045 # include <assert.h>
46050 /* Override any gcc2 internal prototype to avoid an error. */
46055 /* We use char because int might match the return type of a gcc2
46056 builtin and then its argument prototype would still apply. */
46058 /* The GNU C library defines this for functions which it implements
46059 to always fail with ENOSYS. Some functions are actually named
46060 something starting with __ and the normal name is an alias. */
46061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46064 char (*f) () = $ac_func;
46073 return f != $ac_func;
46078 rm -f conftest.$ac_objext conftest$ac_exeext
46079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46080 (eval $ac_link) 2>conftest.er1
46082 grep -v '^ *+' conftest.er1 >conftest.err
46084 cat conftest.err >&5
46085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46086 (exit $ac_status); } &&
46087 { ac_try='test -z "$ac_c_werror_flag"
46088 || test ! -s conftest.err'
46089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46090 (eval $ac_try) 2>&5
46092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46093 (exit $ac_status); }; } &&
46094 { ac_try='test -s conftest$ac_exeext'
46095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46096 (eval $ac_try) 2>&5
46098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46099 (exit $ac_status); }; }; then
46100 eval "$as_ac_var=yes"
46102 echo "$as_me: failed program was:" >&5
46103 sed 's/^/| /' conftest.$ac_ext >&5
46105 eval "$as_ac_var=no"
46107 rm -f conftest.err conftest.$ac_objext \
46108 conftest$ac_exeext conftest.$ac_ext
46110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46112 if test `eval echo '${'$as_ac_var'}'` = yes; then
46113 cat >>confdefs.h <<_ACEOF
46114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46116 ice_have_recvfrom=yes
46120 if test "${ice_have_recvfrom}" = yes; then
46121 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
46122 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46123 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
46124 echo $ECHO_N "(cached) $ECHO_C" >&6
46127 ice_cv_have_recvfrom_decl=no
46128 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46129 ice_re_word='(^|[^a-zA-Z0-9_])'
46130 for header in sys/types.h sys/socket.h; do
46131 # Check for ordinary declaration
46132 cat >conftest.$ac_ext <<_ACEOF
46135 cat confdefs.h >>conftest.$ac_ext
46136 cat >>conftest.$ac_ext <<_ACEOF
46137 /* end confdefs.h. */
46141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46142 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
46143 ice_cv_have_recvfrom_decl=yes
46147 if test "$ice_cv_have_recvfrom_decl" = yes; then
46150 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46151 cat >conftest.$ac_ext <<_ACEOF
46154 cat confdefs.h >>conftest.$ac_ext
46155 cat >>conftest.$ac_ext <<_ACEOF
46156 /* end confdefs.h. */
46160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46161 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46162 ice_cv_have_recvfrom_decl=yes
46166 if test "$ice_cv_have_recvfrom_decl" = yes; then
46173 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
46174 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
46175 if test "$ice_cv_have_recvfrom_decl" = yes; then
46177 cat >>confdefs.h <<_ACEOF
46178 #define HAVE_RECVFROM_DECL 1
46187 for ac_func in remove
46189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46190 echo "$as_me:$LINENO: checking for $ac_func" >&5
46191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46192 if eval "test \"\${$as_ac_var+set}\" = set"; then
46193 echo $ECHO_N "(cached) $ECHO_C" >&6
46195 cat >conftest.$ac_ext <<_ACEOF
46198 cat confdefs.h >>conftest.$ac_ext
46199 cat >>conftest.$ac_ext <<_ACEOF
46200 /* end confdefs.h. */
46201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46203 #define $ac_func innocuous_$ac_func
46205 /* System header to define __stub macros and hopefully few prototypes,
46206 which can conflict with char $ac_func (); below.
46207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46208 <limits.h> exists even on freestanding compilers. */
46211 # include <limits.h>
46213 # include <assert.h>
46218 /* Override any gcc2 internal prototype to avoid an error. */
46223 /* We use char because int might match the return type of a gcc2
46224 builtin and then its argument prototype would still apply. */
46226 /* The GNU C library defines this for functions which it implements
46227 to always fail with ENOSYS. Some functions are actually named
46228 something starting with __ and the normal name is an alias. */
46229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46232 char (*f) () = $ac_func;
46241 return f != $ac_func;
46246 rm -f conftest.$ac_objext conftest$ac_exeext
46247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46248 (eval $ac_link) 2>conftest.er1
46250 grep -v '^ *+' conftest.er1 >conftest.err
46252 cat conftest.err >&5
46253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46254 (exit $ac_status); } &&
46255 { ac_try='test -z "$ac_c_werror_flag"
46256 || test ! -s conftest.err'
46257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46258 (eval $ac_try) 2>&5
46260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261 (exit $ac_status); }; } &&
46262 { ac_try='test -s conftest$ac_exeext'
46263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46264 (eval $ac_try) 2>&5
46266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267 (exit $ac_status); }; }; then
46268 eval "$as_ac_var=yes"
46270 echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46273 eval "$as_ac_var=no"
46275 rm -f conftest.err conftest.$ac_objext \
46276 conftest$ac_exeext conftest.$ac_ext
46278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46280 if test `eval echo '${'$as_ac_var'}'` = yes; then
46281 cat >>confdefs.h <<_ACEOF
46282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46284 ice_have_remove=yes
46288 if test "${ice_have_remove}" = yes; then
46289 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
46290 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
46291 if test "${ice_cv_have_remove_decl+set}" = set; then
46292 echo $ECHO_N "(cached) $ECHO_C" >&6
46295 ice_cv_have_remove_decl=no
46296 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46297 ice_re_word='(^|[^a-zA-Z0-9_])'
46298 for header in stdio.h; do
46299 # Check for ordinary declaration
46300 cat >conftest.$ac_ext <<_ACEOF
46303 cat confdefs.h >>conftest.$ac_ext
46304 cat >>conftest.$ac_ext <<_ACEOF
46305 /* end confdefs.h. */
46309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46310 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
46311 ice_cv_have_remove_decl=yes
46315 if test "$ice_cv_have_remove_decl" = yes; then
46318 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46319 cat >conftest.$ac_ext <<_ACEOF
46322 cat confdefs.h >>conftest.$ac_ext
46323 cat >>conftest.$ac_ext <<_ACEOF
46324 /* end confdefs.h. */
46328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46329 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46330 ice_cv_have_remove_decl=yes
46334 if test "$ice_cv_have_remove_decl" = yes; then
46341 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
46342 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
46343 if test "$ice_cv_have_remove_decl" = yes; then
46345 cat >>confdefs.h <<_ACEOF
46346 #define HAVE_REMOVE_DECL 1
46355 for ac_func in rename
46357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46358 echo "$as_me:$LINENO: checking for $ac_func" >&5
46359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46360 if eval "test \"\${$as_ac_var+set}\" = set"; then
46361 echo $ECHO_N "(cached) $ECHO_C" >&6
46363 cat >conftest.$ac_ext <<_ACEOF
46366 cat confdefs.h >>conftest.$ac_ext
46367 cat >>conftest.$ac_ext <<_ACEOF
46368 /* end confdefs.h. */
46369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46371 #define $ac_func innocuous_$ac_func
46373 /* System header to define __stub macros and hopefully few prototypes,
46374 which can conflict with char $ac_func (); below.
46375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46376 <limits.h> exists even on freestanding compilers. */
46379 # include <limits.h>
46381 # include <assert.h>
46386 /* Override any gcc2 internal prototype to avoid an error. */
46391 /* We use char because int might match the return type of a gcc2
46392 builtin and then its argument prototype would still apply. */
46394 /* The GNU C library defines this for functions which it implements
46395 to always fail with ENOSYS. Some functions are actually named
46396 something starting with __ and the normal name is an alias. */
46397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46400 char (*f) () = $ac_func;
46409 return f != $ac_func;
46414 rm -f conftest.$ac_objext conftest$ac_exeext
46415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46416 (eval $ac_link) 2>conftest.er1
46418 grep -v '^ *+' conftest.er1 >conftest.err
46420 cat conftest.err >&5
46421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46422 (exit $ac_status); } &&
46423 { ac_try='test -z "$ac_c_werror_flag"
46424 || test ! -s conftest.err'
46425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46426 (eval $ac_try) 2>&5
46428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46429 (exit $ac_status); }; } &&
46430 { ac_try='test -s conftest$ac_exeext'
46431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46432 (eval $ac_try) 2>&5
46434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46435 (exit $ac_status); }; }; then
46436 eval "$as_ac_var=yes"
46438 echo "$as_me: failed program was:" >&5
46439 sed 's/^/| /' conftest.$ac_ext >&5
46441 eval "$as_ac_var=no"
46443 rm -f conftest.err conftest.$ac_objext \
46444 conftest$ac_exeext conftest.$ac_ext
46446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46448 if test `eval echo '${'$as_ac_var'}'` = yes; then
46449 cat >>confdefs.h <<_ACEOF
46450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46452 ice_have_rename=yes
46456 if test "${ice_have_rename}" = yes; then
46457 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
46458 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
46459 if test "${ice_cv_have_rename_decl+set}" = set; then
46460 echo $ECHO_N "(cached) $ECHO_C" >&6
46463 ice_cv_have_rename_decl=no
46464 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46465 ice_re_word='(^|[^a-zA-Z0-9_])'
46466 for header in stdio.h; do
46467 # Check for ordinary declaration
46468 cat >conftest.$ac_ext <<_ACEOF
46471 cat confdefs.h >>conftest.$ac_ext
46472 cat >>conftest.$ac_ext <<_ACEOF
46473 /* end confdefs.h. */
46477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46478 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
46479 ice_cv_have_rename_decl=yes
46483 if test "$ice_cv_have_rename_decl" = yes; then
46486 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46487 cat >conftest.$ac_ext <<_ACEOF
46490 cat confdefs.h >>conftest.$ac_ext
46491 cat >>conftest.$ac_ext <<_ACEOF
46492 /* end confdefs.h. */
46496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46497 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46498 ice_cv_have_rename_decl=yes
46502 if test "$ice_cv_have_rename_decl" = yes; then
46509 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
46510 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
46511 if test "$ice_cv_have_rename_decl" = yes; then
46513 cat >>confdefs.h <<_ACEOF
46514 #define HAVE_RENAME_DECL 1
46523 for ac_func in rewind
46525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46526 echo "$as_me:$LINENO: checking for $ac_func" >&5
46527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46528 if eval "test \"\${$as_ac_var+set}\" = set"; then
46529 echo $ECHO_N "(cached) $ECHO_C" >&6
46531 cat >conftest.$ac_ext <<_ACEOF
46534 cat confdefs.h >>conftest.$ac_ext
46535 cat >>conftest.$ac_ext <<_ACEOF
46536 /* end confdefs.h. */
46537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46539 #define $ac_func innocuous_$ac_func
46541 /* System header to define __stub macros and hopefully few prototypes,
46542 which can conflict with char $ac_func (); below.
46543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46544 <limits.h> exists even on freestanding compilers. */
46547 # include <limits.h>
46549 # include <assert.h>
46554 /* Override any gcc2 internal prototype to avoid an error. */
46559 /* We use char because int might match the return type of a gcc2
46560 builtin and then its argument prototype would still apply. */
46562 /* The GNU C library defines this for functions which it implements
46563 to always fail with ENOSYS. Some functions are actually named
46564 something starting with __ and the normal name is an alias. */
46565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46568 char (*f) () = $ac_func;
46577 return f != $ac_func;
46582 rm -f conftest.$ac_objext conftest$ac_exeext
46583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46584 (eval $ac_link) 2>conftest.er1
46586 grep -v '^ *+' conftest.er1 >conftest.err
46588 cat conftest.err >&5
46589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46590 (exit $ac_status); } &&
46591 { ac_try='test -z "$ac_c_werror_flag"
46592 || test ! -s conftest.err'
46593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46594 (eval $ac_try) 2>&5
46596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46597 (exit $ac_status); }; } &&
46598 { ac_try='test -s conftest$ac_exeext'
46599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46600 (eval $ac_try) 2>&5
46602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46603 (exit $ac_status); }; }; then
46604 eval "$as_ac_var=yes"
46606 echo "$as_me: failed program was:" >&5
46607 sed 's/^/| /' conftest.$ac_ext >&5
46609 eval "$as_ac_var=no"
46611 rm -f conftest.err conftest.$ac_objext \
46612 conftest$ac_exeext conftest.$ac_ext
46614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46616 if test `eval echo '${'$as_ac_var'}'` = yes; then
46617 cat >>confdefs.h <<_ACEOF
46618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46620 ice_have_rewind=yes
46624 if test "${ice_have_rewind}" = yes; then
46625 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
46626 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
46627 if test "${ice_cv_have_rewind_decl+set}" = set; then
46628 echo $ECHO_N "(cached) $ECHO_C" >&6
46631 ice_cv_have_rewind_decl=no
46632 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46633 ice_re_word='(^|[^a-zA-Z0-9_])'
46634 for header in stdio.h; do
46635 # Check for ordinary declaration
46636 cat >conftest.$ac_ext <<_ACEOF
46639 cat confdefs.h >>conftest.$ac_ext
46640 cat >>conftest.$ac_ext <<_ACEOF
46641 /* end confdefs.h. */
46645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46646 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
46647 ice_cv_have_rewind_decl=yes
46651 if test "$ice_cv_have_rewind_decl" = yes; then
46654 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46655 cat >conftest.$ac_ext <<_ACEOF
46658 cat confdefs.h >>conftest.$ac_ext
46659 cat >>conftest.$ac_ext <<_ACEOF
46660 /* end confdefs.h. */
46664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46665 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46666 ice_cv_have_rewind_decl=yes
46670 if test "$ice_cv_have_rewind_decl" = yes; then
46677 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
46678 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
46679 if test "$ice_cv_have_rewind_decl" = yes; then
46681 cat >>confdefs.h <<_ACEOF
46682 #define HAVE_REWIND_DECL 1
46689 for ac_func in rmdir
46691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46692 echo "$as_me:$LINENO: checking for $ac_func" >&5
46693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46694 if eval "test \"\${$as_ac_var+set}\" = set"; then
46695 echo $ECHO_N "(cached) $ECHO_C" >&6
46697 cat >conftest.$ac_ext <<_ACEOF
46700 cat confdefs.h >>conftest.$ac_ext
46701 cat >>conftest.$ac_ext <<_ACEOF
46702 /* end confdefs.h. */
46703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46705 #define $ac_func innocuous_$ac_func
46707 /* System header to define __stub macros and hopefully few prototypes,
46708 which can conflict with char $ac_func (); below.
46709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46710 <limits.h> exists even on freestanding compilers. */
46713 # include <limits.h>
46715 # include <assert.h>
46720 /* Override any gcc2 internal prototype to avoid an error. */
46725 /* We use char because int might match the return type of a gcc2
46726 builtin and then its argument prototype would still apply. */
46728 /* The GNU C library defines this for functions which it implements
46729 to always fail with ENOSYS. Some functions are actually named
46730 something starting with __ and the normal name is an alias. */
46731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46734 char (*f) () = $ac_func;
46743 return f != $ac_func;
46748 rm -f conftest.$ac_objext conftest$ac_exeext
46749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46750 (eval $ac_link) 2>conftest.er1
46752 grep -v '^ *+' conftest.er1 >conftest.err
46754 cat conftest.err >&5
46755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756 (exit $ac_status); } &&
46757 { ac_try='test -z "$ac_c_werror_flag"
46758 || test ! -s conftest.err'
46759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46760 (eval $ac_try) 2>&5
46762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46763 (exit $ac_status); }; } &&
46764 { ac_try='test -s conftest$ac_exeext'
46765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46766 (eval $ac_try) 2>&5
46768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46769 (exit $ac_status); }; }; then
46770 eval "$as_ac_var=yes"
46772 echo "$as_me: failed program was:" >&5
46773 sed 's/^/| /' conftest.$ac_ext >&5
46775 eval "$as_ac_var=no"
46777 rm -f conftest.err conftest.$ac_objext \
46778 conftest$ac_exeext conftest.$ac_ext
46780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46782 if test `eval echo '${'$as_ac_var'}'` = yes; then
46783 cat >>confdefs.h <<_ACEOF
46784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46791 ice_have_ruserok=no
46793 for ac_func in ruserok
46795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46796 echo "$as_me:$LINENO: checking for $ac_func" >&5
46797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46798 if eval "test \"\${$as_ac_var+set}\" = set"; then
46799 echo $ECHO_N "(cached) $ECHO_C" >&6
46801 cat >conftest.$ac_ext <<_ACEOF
46804 cat confdefs.h >>conftest.$ac_ext
46805 cat >>conftest.$ac_ext <<_ACEOF
46806 /* end confdefs.h. */
46807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46809 #define $ac_func innocuous_$ac_func
46811 /* System header to define __stub macros and hopefully few prototypes,
46812 which can conflict with char $ac_func (); below.
46813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46814 <limits.h> exists even on freestanding compilers. */
46817 # include <limits.h>
46819 # include <assert.h>
46824 /* Override any gcc2 internal prototype to avoid an error. */
46829 /* We use char because int might match the return type of a gcc2
46830 builtin and then its argument prototype would still apply. */
46832 /* The GNU C library defines this for functions which it implements
46833 to always fail with ENOSYS. Some functions are actually named
46834 something starting with __ and the normal name is an alias. */
46835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46838 char (*f) () = $ac_func;
46847 return f != $ac_func;
46852 rm -f conftest.$ac_objext conftest$ac_exeext
46853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46854 (eval $ac_link) 2>conftest.er1
46856 grep -v '^ *+' conftest.er1 >conftest.err
46858 cat conftest.err >&5
46859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46860 (exit $ac_status); } &&
46861 { ac_try='test -z "$ac_c_werror_flag"
46862 || test ! -s conftest.err'
46863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46864 (eval $ac_try) 2>&5
46866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46867 (exit $ac_status); }; } &&
46868 { ac_try='test -s conftest$ac_exeext'
46869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46870 (eval $ac_try) 2>&5
46872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46873 (exit $ac_status); }; }; then
46874 eval "$as_ac_var=yes"
46876 echo "$as_me: failed program was:" >&5
46877 sed 's/^/| /' conftest.$ac_ext >&5
46879 eval "$as_ac_var=no"
46881 rm -f conftest.err conftest.$ac_objext \
46882 conftest$ac_exeext conftest.$ac_ext
46884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46886 if test `eval echo '${'$as_ac_var'}'` = yes; then
46887 cat >>confdefs.h <<_ACEOF
46888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46890 ice_have_ruserok=yes
46894 if test "${ice_have_ruserok}" = yes; then
46895 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
46896 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
46897 if test "${ice_cv_have_ruserok_decl+set}" = set; then
46898 echo $ECHO_N "(cached) $ECHO_C" >&6
46901 ice_cv_have_ruserok_decl=no
46902 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46903 ice_re_word='(^|[^a-zA-Z0-9_])'
46904 for header in netdb.h sys/socket.h libc.h unistd.h; do
46905 # Check for ordinary declaration
46906 cat >conftest.$ac_ext <<_ACEOF
46909 cat confdefs.h >>conftest.$ac_ext
46910 cat >>conftest.$ac_ext <<_ACEOF
46911 /* end confdefs.h. */
46915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46916 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
46917 ice_cv_have_ruserok_decl=yes
46921 if test "$ice_cv_have_ruserok_decl" = yes; then
46924 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46925 cat >conftest.$ac_ext <<_ACEOF
46928 cat confdefs.h >>conftest.$ac_ext
46929 cat >>conftest.$ac_ext <<_ACEOF
46930 /* end confdefs.h. */
46934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46935 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46936 ice_cv_have_ruserok_decl=yes
46940 if test "$ice_cv_have_ruserok_decl" = yes; then
46947 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
46948 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
46949 if test "$ice_cv_have_ruserok_decl" = yes; then
46951 cat >>confdefs.h <<_ACEOF
46952 #define HAVE_RUSEROK_DECL 1
46961 for ac_func in select
46963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46964 echo "$as_me:$LINENO: checking for $ac_func" >&5
46965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46966 if eval "test \"\${$as_ac_var+set}\" = set"; then
46967 echo $ECHO_N "(cached) $ECHO_C" >&6
46969 cat >conftest.$ac_ext <<_ACEOF
46972 cat confdefs.h >>conftest.$ac_ext
46973 cat >>conftest.$ac_ext <<_ACEOF
46974 /* end confdefs.h. */
46975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46977 #define $ac_func innocuous_$ac_func
46979 /* System header to define __stub macros and hopefully few prototypes,
46980 which can conflict with char $ac_func (); below.
46981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46982 <limits.h> exists even on freestanding compilers. */
46985 # include <limits.h>
46987 # include <assert.h>
46992 /* Override any gcc2 internal prototype to avoid an error. */
46997 /* We use char because int might match the return type of a gcc2
46998 builtin and then its argument prototype would still apply. */
47000 /* The GNU C library defines this for functions which it implements
47001 to always fail with ENOSYS. Some functions are actually named
47002 something starting with __ and the normal name is an alias. */
47003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47006 char (*f) () = $ac_func;
47015 return f != $ac_func;
47020 rm -f conftest.$ac_objext conftest$ac_exeext
47021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47022 (eval $ac_link) 2>conftest.er1
47024 grep -v '^ *+' conftest.er1 >conftest.err
47026 cat conftest.err >&5
47027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47028 (exit $ac_status); } &&
47029 { ac_try='test -z "$ac_c_werror_flag"
47030 || test ! -s conftest.err'
47031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47032 (eval $ac_try) 2>&5
47034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47035 (exit $ac_status); }; } &&
47036 { ac_try='test -s conftest$ac_exeext'
47037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47038 (eval $ac_try) 2>&5
47040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47041 (exit $ac_status); }; }; then
47042 eval "$as_ac_var=yes"
47044 echo "$as_me: failed program was:" >&5
47045 sed 's/^/| /' conftest.$ac_ext >&5
47047 eval "$as_ac_var=no"
47049 rm -f conftest.err conftest.$ac_objext \
47050 conftest$ac_exeext conftest.$ac_ext
47052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47054 if test `eval echo '${'$as_ac_var'}'` = yes; then
47055 cat >>confdefs.h <<_ACEOF
47056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47058 ice_have_select=yes
47062 if test "${ice_have_select}" = yes; then
47063 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
47064 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
47065 if test "${ice_cv_have_select_decl+set}" = set; then
47066 echo $ECHO_N "(cached) $ECHO_C" >&6
47069 ice_cv_have_select_decl=no
47070 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47071 ice_re_word='(^|[^a-zA-Z0-9_])'
47072 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
47073 # Check for ordinary declaration
47074 cat >conftest.$ac_ext <<_ACEOF
47077 cat confdefs.h >>conftest.$ac_ext
47078 cat >>conftest.$ac_ext <<_ACEOF
47079 /* end confdefs.h. */
47083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47084 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
47085 ice_cv_have_select_decl=yes
47089 if test "$ice_cv_have_select_decl" = yes; then
47092 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47093 cat >conftest.$ac_ext <<_ACEOF
47096 cat confdefs.h >>conftest.$ac_ext
47097 cat >>conftest.$ac_ext <<_ACEOF
47098 /* end confdefs.h. */
47102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47103 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47104 ice_cv_have_select_decl=yes
47108 if test "$ice_cv_have_select_decl" = yes; then
47115 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
47116 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
47117 if test "$ice_cv_have_select_decl" = yes; then
47119 cat >>confdefs.h <<_ACEOF
47120 #define HAVE_SELECT_DECL 1
47127 echo "$as_me:$LINENO: checking for select() argument type" >&5
47128 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
47129 if test "${amanda_cv_select_arg_type+set}" = set; then
47130 echo $ECHO_N "(cached) $ECHO_C" >&6
47134 cat <<EOF >conftest.$ac_ext
47135 #include "confdefs.h"
47136 #ifdef HAVE_SYS_TIME_H
47137 # include <sys/time.h>
47139 #ifdef HAVE_SYS_TYPES_H
47140 # include <sys/types.h>
47142 #ifdef HAVE_SYS_SELECT_H
47143 # include <sys/select.h>
47145 #ifdef HAVE_SYS_SOCKET_H
47146 # include <sys/socket.h>
47148 #ifdef HAVE_UNISTD_H
47149 # include <unistd.h>
47154 #ifdef FD_SET_POINTER
47155 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
47157 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
47163 amanda_cv_select_arg_type=no
47164 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
47165 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
47166 if test $? -ne 0; then
47167 amanda_cv_select_arg_type=int
47169 if test "$amanda_cv_select_arg_type" = no; then
47170 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
47171 if test $? -ne 0; then
47172 amanda_cv_select_arg_type=fd_set
47175 if test "$amanda_cv_select_arg_type" = no; then
47176 wc_fdset=`wc -l <conftest.fd_set`
47177 wc_int=`wc -l <conftest.int`
47178 if test "$wc_fdset" -le "$wc_int"; then
47179 amanda_cv_select_arg_type=fd_set
47181 amanda_cv_select_arg_type=int
47188 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
47189 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
47191 cat >>confdefs.h <<_ACEOF
47192 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
47200 for ac_func in sendto
47202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47203 echo "$as_me:$LINENO: checking for $ac_func" >&5
47204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47205 if eval "test \"\${$as_ac_var+set}\" = set"; then
47206 echo $ECHO_N "(cached) $ECHO_C" >&6
47208 cat >conftest.$ac_ext <<_ACEOF
47211 cat confdefs.h >>conftest.$ac_ext
47212 cat >>conftest.$ac_ext <<_ACEOF
47213 /* end confdefs.h. */
47214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47216 #define $ac_func innocuous_$ac_func
47218 /* System header to define __stub macros and hopefully few prototypes,
47219 which can conflict with char $ac_func (); below.
47220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47221 <limits.h> exists even on freestanding compilers. */
47224 # include <limits.h>
47226 # include <assert.h>
47231 /* Override any gcc2 internal prototype to avoid an error. */
47236 /* We use char because int might match the return type of a gcc2
47237 builtin and then its argument prototype would still apply. */
47239 /* The GNU C library defines this for functions which it implements
47240 to always fail with ENOSYS. Some functions are actually named
47241 something starting with __ and the normal name is an alias. */
47242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47245 char (*f) () = $ac_func;
47254 return f != $ac_func;
47259 rm -f conftest.$ac_objext conftest$ac_exeext
47260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47261 (eval $ac_link) 2>conftest.er1
47263 grep -v '^ *+' conftest.er1 >conftest.err
47265 cat conftest.err >&5
47266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47267 (exit $ac_status); } &&
47268 { ac_try='test -z "$ac_c_werror_flag"
47269 || test ! -s conftest.err'
47270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47271 (eval $ac_try) 2>&5
47273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47274 (exit $ac_status); }; } &&
47275 { ac_try='test -s conftest$ac_exeext'
47276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47277 (eval $ac_try) 2>&5
47279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47280 (exit $ac_status); }; }; then
47281 eval "$as_ac_var=yes"
47283 echo "$as_me: failed program was:" >&5
47284 sed 's/^/| /' conftest.$ac_ext >&5
47286 eval "$as_ac_var=no"
47288 rm -f conftest.err conftest.$ac_objext \
47289 conftest$ac_exeext conftest.$ac_ext
47291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47293 if test `eval echo '${'$as_ac_var'}'` = yes; then
47294 cat >>confdefs.h <<_ACEOF
47295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47297 ice_have_sendto=yes
47301 if test "${ice_have_sendto}" = yes; then
47302 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
47303 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47304 if test "${ice_cv_have_sendto_decl+set}" = set; then
47305 echo $ECHO_N "(cached) $ECHO_C" >&6
47308 ice_cv_have_sendto_decl=no
47309 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47310 ice_re_word='(^|[^a-zA-Z0-9_])'
47311 for header in sys/types.h sys/socket.h; do
47312 # Check for ordinary declaration
47313 cat >conftest.$ac_ext <<_ACEOF
47316 cat confdefs.h >>conftest.$ac_ext
47317 cat >>conftest.$ac_ext <<_ACEOF
47318 /* end confdefs.h. */
47322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47323 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
47324 ice_cv_have_sendto_decl=yes
47328 if test "$ice_cv_have_sendto_decl" = yes; then
47331 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47332 cat >conftest.$ac_ext <<_ACEOF
47335 cat confdefs.h >>conftest.$ac_ext
47336 cat >>conftest.$ac_ext <<_ACEOF
47337 /* end confdefs.h. */
47341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47342 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47343 ice_cv_have_sendto_decl=yes
47347 if test "$ice_cv_have_sendto_decl" = yes; then
47354 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
47355 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
47356 if test "$ice_cv_have_sendto_decl" = yes; then
47358 cat >>confdefs.h <<_ACEOF
47359 #define HAVE_SENDTO_DECL 1
47366 ice_have_setegid=no
47368 for ac_func in setegid
47370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47371 echo "$as_me:$LINENO: checking for $ac_func" >&5
47372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47373 if eval "test \"\${$as_ac_var+set}\" = set"; then
47374 echo $ECHO_N "(cached) $ECHO_C" >&6
47376 cat >conftest.$ac_ext <<_ACEOF
47379 cat confdefs.h >>conftest.$ac_ext
47380 cat >>conftest.$ac_ext <<_ACEOF
47381 /* end confdefs.h. */
47382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47384 #define $ac_func innocuous_$ac_func
47386 /* System header to define __stub macros and hopefully few prototypes,
47387 which can conflict with char $ac_func (); below.
47388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47389 <limits.h> exists even on freestanding compilers. */
47392 # include <limits.h>
47394 # include <assert.h>
47399 /* Override any gcc2 internal prototype to avoid an error. */
47404 /* We use char because int might match the return type of a gcc2
47405 builtin and then its argument prototype would still apply. */
47407 /* The GNU C library defines this for functions which it implements
47408 to always fail with ENOSYS. Some functions are actually named
47409 something starting with __ and the normal name is an alias. */
47410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47413 char (*f) () = $ac_func;
47422 return f != $ac_func;
47427 rm -f conftest.$ac_objext conftest$ac_exeext
47428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47429 (eval $ac_link) 2>conftest.er1
47431 grep -v '^ *+' conftest.er1 >conftest.err
47433 cat conftest.err >&5
47434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47435 (exit $ac_status); } &&
47436 { ac_try='test -z "$ac_c_werror_flag"
47437 || test ! -s conftest.err'
47438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47439 (eval $ac_try) 2>&5
47441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47442 (exit $ac_status); }; } &&
47443 { ac_try='test -s conftest$ac_exeext'
47444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47445 (eval $ac_try) 2>&5
47447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448 (exit $ac_status); }; }; then
47449 eval "$as_ac_var=yes"
47451 echo "$as_me: failed program was:" >&5
47452 sed 's/^/| /' conftest.$ac_ext >&5
47454 eval "$as_ac_var=no"
47456 rm -f conftest.err conftest.$ac_objext \
47457 conftest$ac_exeext conftest.$ac_ext
47459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47461 if test `eval echo '${'$as_ac_var'}'` = yes; then
47462 cat >>confdefs.h <<_ACEOF
47463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47465 ice_have_setegid=yes
47469 if test "${ice_have_setegid}" = yes; then
47470 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
47471 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
47472 if test "${ice_cv_have_setegid_decl+set}" = set; then
47473 echo $ECHO_N "(cached) $ECHO_C" >&6
47476 ice_cv_have_setegid_decl=no
47477 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47478 ice_re_word='(^|[^a-zA-Z0-9_])'
47479 for header in unistd.h; do
47480 # Check for ordinary declaration
47481 cat >conftest.$ac_ext <<_ACEOF
47484 cat confdefs.h >>conftest.$ac_ext
47485 cat >>conftest.$ac_ext <<_ACEOF
47486 /* end confdefs.h. */
47490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47491 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
47492 ice_cv_have_setegid_decl=yes
47496 if test "$ice_cv_have_setegid_decl" = yes; then
47499 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47500 cat >conftest.$ac_ext <<_ACEOF
47503 cat confdefs.h >>conftest.$ac_ext
47504 cat >>conftest.$ac_ext <<_ACEOF
47505 /* end confdefs.h. */
47509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47510 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47511 ice_cv_have_setegid_decl=yes
47515 if test "$ice_cv_have_setegid_decl" = yes; then
47522 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
47523 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
47524 if test "$ice_cv_have_setegid_decl" = yes; then
47526 cat >>confdefs.h <<_ACEOF
47527 #define HAVE_SETEGID_DECL 1
47534 ice_have_seteuid=no
47536 for ac_func in seteuid
47538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47539 echo "$as_me:$LINENO: checking for $ac_func" >&5
47540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47541 if eval "test \"\${$as_ac_var+set}\" = set"; then
47542 echo $ECHO_N "(cached) $ECHO_C" >&6
47544 cat >conftest.$ac_ext <<_ACEOF
47547 cat confdefs.h >>conftest.$ac_ext
47548 cat >>conftest.$ac_ext <<_ACEOF
47549 /* end confdefs.h. */
47550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47552 #define $ac_func innocuous_$ac_func
47554 /* System header to define __stub macros and hopefully few prototypes,
47555 which can conflict with char $ac_func (); below.
47556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47557 <limits.h> exists even on freestanding compilers. */
47560 # include <limits.h>
47562 # include <assert.h>
47567 /* Override any gcc2 internal prototype to avoid an error. */
47572 /* We use char because int might match the return type of a gcc2
47573 builtin and then its argument prototype would still apply. */
47575 /* The GNU C library defines this for functions which it implements
47576 to always fail with ENOSYS. Some functions are actually named
47577 something starting with __ and the normal name is an alias. */
47578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47581 char (*f) () = $ac_func;
47590 return f != $ac_func;
47595 rm -f conftest.$ac_objext conftest$ac_exeext
47596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47597 (eval $ac_link) 2>conftest.er1
47599 grep -v '^ *+' conftest.er1 >conftest.err
47601 cat conftest.err >&5
47602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47603 (exit $ac_status); } &&
47604 { ac_try='test -z "$ac_c_werror_flag"
47605 || test ! -s conftest.err'
47606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47607 (eval $ac_try) 2>&5
47609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47610 (exit $ac_status); }; } &&
47611 { ac_try='test -s conftest$ac_exeext'
47612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47613 (eval $ac_try) 2>&5
47615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47616 (exit $ac_status); }; }; then
47617 eval "$as_ac_var=yes"
47619 echo "$as_me: failed program was:" >&5
47620 sed 's/^/| /' conftest.$ac_ext >&5
47622 eval "$as_ac_var=no"
47624 rm -f conftest.err conftest.$ac_objext \
47625 conftest$ac_exeext conftest.$ac_ext
47627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47629 if test `eval echo '${'$as_ac_var'}'` = yes; then
47630 cat >>confdefs.h <<_ACEOF
47631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47633 ice_have_seteuid=yes
47637 if test "${ice_have_seteuid}" = yes; then
47638 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
47639 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
47640 if test "${ice_cv_have_seteuid_decl+set}" = set; then
47641 echo $ECHO_N "(cached) $ECHO_C" >&6
47644 ice_cv_have_seteuid_decl=no
47645 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47646 ice_re_word='(^|[^a-zA-Z0-9_])'
47647 for header in unistd.h; do
47648 # Check for ordinary declaration
47649 cat >conftest.$ac_ext <<_ACEOF
47652 cat confdefs.h >>conftest.$ac_ext
47653 cat >>conftest.$ac_ext <<_ACEOF
47654 /* end confdefs.h. */
47658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47659 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
47660 ice_cv_have_seteuid_decl=yes
47664 if test "$ice_cv_have_seteuid_decl" = yes; then
47667 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47668 cat >conftest.$ac_ext <<_ACEOF
47671 cat confdefs.h >>conftest.$ac_ext
47672 cat >>conftest.$ac_ext <<_ACEOF
47673 /* end confdefs.h. */
47677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47678 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47679 ice_cv_have_seteuid_decl=yes
47683 if test "$ice_cv_have_seteuid_decl" = yes; then
47690 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
47691 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
47692 if test "$ice_cv_have_seteuid_decl" = yes; then
47694 cat >>confdefs.h <<_ACEOF
47695 #define HAVE_SETEUID_DECL 1
47702 for ac_func in setmntent
47704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47705 echo "$as_me:$LINENO: checking for $ac_func" >&5
47706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47707 if eval "test \"\${$as_ac_var+set}\" = set"; then
47708 echo $ECHO_N "(cached) $ECHO_C" >&6
47710 cat >conftest.$ac_ext <<_ACEOF
47713 cat confdefs.h >>conftest.$ac_ext
47714 cat >>conftest.$ac_ext <<_ACEOF
47715 /* end confdefs.h. */
47716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47718 #define $ac_func innocuous_$ac_func
47720 /* System header to define __stub macros and hopefully few prototypes,
47721 which can conflict with char $ac_func (); below.
47722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47723 <limits.h> exists even on freestanding compilers. */
47726 # include <limits.h>
47728 # include <assert.h>
47733 /* Override any gcc2 internal prototype to avoid an error. */
47738 /* We use char because int might match the return type of a gcc2
47739 builtin and then its argument prototype would still apply. */
47741 /* The GNU C library defines this for functions which it implements
47742 to always fail with ENOSYS. Some functions are actually named
47743 something starting with __ and the normal name is an alias. */
47744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47747 char (*f) () = $ac_func;
47756 return f != $ac_func;
47761 rm -f conftest.$ac_objext conftest$ac_exeext
47762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47763 (eval $ac_link) 2>conftest.er1
47765 grep -v '^ *+' conftest.er1 >conftest.err
47767 cat conftest.err >&5
47768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47769 (exit $ac_status); } &&
47770 { ac_try='test -z "$ac_c_werror_flag"
47771 || test ! -s conftest.err'
47772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47773 (eval $ac_try) 2>&5
47775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47776 (exit $ac_status); }; } &&
47777 { ac_try='test -s conftest$ac_exeext'
47778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47779 (eval $ac_try) 2>&5
47781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47782 (exit $ac_status); }; }; then
47783 eval "$as_ac_var=yes"
47785 echo "$as_me: failed program was:" >&5
47786 sed 's/^/| /' conftest.$ac_ext >&5
47788 eval "$as_ac_var=no"
47790 rm -f conftest.err conftest.$ac_objext \
47791 conftest$ac_exeext conftest.$ac_ext
47793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47795 if test `eval echo '${'$as_ac_var'}'` = yes; then
47796 cat >>confdefs.h <<_ACEOF
47797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47804 for ac_func in shquote
47806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47807 echo "$as_me:$LINENO: checking for $ac_func" >&5
47808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47809 if eval "test \"\${$as_ac_var+set}\" = set"; then
47810 echo $ECHO_N "(cached) $ECHO_C" >&6
47812 cat >conftest.$ac_ext <<_ACEOF
47815 cat confdefs.h >>conftest.$ac_ext
47816 cat >>conftest.$ac_ext <<_ACEOF
47817 /* end confdefs.h. */
47818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47820 #define $ac_func innocuous_$ac_func
47822 /* System header to define __stub macros and hopefully few prototypes,
47823 which can conflict with char $ac_func (); below.
47824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47825 <limits.h> exists even on freestanding compilers. */
47828 # include <limits.h>
47830 # include <assert.h>
47835 /* Override any gcc2 internal prototype to avoid an error. */
47840 /* We use char because int might match the return type of a gcc2
47841 builtin and then its argument prototype would still apply. */
47843 /* The GNU C library defines this for functions which it implements
47844 to always fail with ENOSYS. Some functions are actually named
47845 something starting with __ and the normal name is an alias. */
47846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47849 char (*f) () = $ac_func;
47858 return f != $ac_func;
47863 rm -f conftest.$ac_objext conftest$ac_exeext
47864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47865 (eval $ac_link) 2>conftest.er1
47867 grep -v '^ *+' conftest.er1 >conftest.err
47869 cat conftest.err >&5
47870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47871 (exit $ac_status); } &&
47872 { ac_try='test -z "$ac_c_werror_flag"
47873 || test ! -s conftest.err'
47874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47875 (eval $ac_try) 2>&5
47877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47878 (exit $ac_status); }; } &&
47879 { ac_try='test -s conftest$ac_exeext'
47880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47881 (eval $ac_try) 2>&5
47883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47884 (exit $ac_status); }; }; then
47885 eval "$as_ac_var=yes"
47887 echo "$as_me: failed program was:" >&5
47888 sed 's/^/| /' conftest.$ac_ext >&5
47890 eval "$as_ac_var=no"
47892 rm -f conftest.err conftest.$ac_objext \
47893 conftest$ac_exeext conftest.$ac_ext
47895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47897 if test `eval echo '${'$as_ac_var'}'` = yes; then
47898 cat >>confdefs.h <<_ACEOF
47899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47907 ice_have_setresgid=no
47909 for ac_func in setresgid
47911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47912 echo "$as_me:$LINENO: checking for $ac_func" >&5
47913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47914 if eval "test \"\${$as_ac_var+set}\" = set"; then
47915 echo $ECHO_N "(cached) $ECHO_C" >&6
47917 cat >conftest.$ac_ext <<_ACEOF
47920 cat confdefs.h >>conftest.$ac_ext
47921 cat >>conftest.$ac_ext <<_ACEOF
47922 /* end confdefs.h. */
47923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47925 #define $ac_func innocuous_$ac_func
47927 /* System header to define __stub macros and hopefully few prototypes,
47928 which can conflict with char $ac_func (); below.
47929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47930 <limits.h> exists even on freestanding compilers. */
47933 # include <limits.h>
47935 # include <assert.h>
47940 /* Override any gcc2 internal prototype to avoid an error. */
47945 /* We use char because int might match the return type of a gcc2
47946 builtin and then its argument prototype would still apply. */
47948 /* The GNU C library defines this for functions which it implements
47949 to always fail with ENOSYS. Some functions are actually named
47950 something starting with __ and the normal name is an alias. */
47951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47954 char (*f) () = $ac_func;
47963 return f != $ac_func;
47968 rm -f conftest.$ac_objext conftest$ac_exeext
47969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47970 (eval $ac_link) 2>conftest.er1
47972 grep -v '^ *+' conftest.er1 >conftest.err
47974 cat conftest.err >&5
47975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47976 (exit $ac_status); } &&
47977 { ac_try='test -z "$ac_c_werror_flag"
47978 || test ! -s conftest.err'
47979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47980 (eval $ac_try) 2>&5
47982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47983 (exit $ac_status); }; } &&
47984 { ac_try='test -s conftest$ac_exeext'
47985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47986 (eval $ac_try) 2>&5
47988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47989 (exit $ac_status); }; }; then
47990 eval "$as_ac_var=yes"
47992 echo "$as_me: failed program was:" >&5
47993 sed 's/^/| /' conftest.$ac_ext >&5
47995 eval "$as_ac_var=no"
47997 rm -f conftest.err conftest.$ac_objext \
47998 conftest$ac_exeext conftest.$ac_ext
48000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48002 if test `eval echo '${'$as_ac_var'}'` = yes; then
48003 cat >>confdefs.h <<_ACEOF
48004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48006 ice_have_setresgid=yes
48010 if test "${ice_have_setresgid}" = yes; then
48011 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
48012 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
48013 if test "${ice_cv_have_setresgid_decl+set}" = set; then
48014 echo $ECHO_N "(cached) $ECHO_C" >&6
48017 ice_cv_have_setresgid_decl=no
48018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48019 ice_re_word='(^|[^a-zA-Z0-9_])'
48020 for header in unistd.h; do
48021 # Check for ordinary declaration
48022 cat >conftest.$ac_ext <<_ACEOF
48025 cat confdefs.h >>conftest.$ac_ext
48026 cat >>conftest.$ac_ext <<_ACEOF
48027 /* end confdefs.h. */
48031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48032 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
48033 ice_cv_have_setresgid_decl=yes
48037 if test "$ice_cv_have_setresgid_decl" = yes; then
48040 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48041 cat >conftest.$ac_ext <<_ACEOF
48044 cat confdefs.h >>conftest.$ac_ext
48045 cat >>conftest.$ac_ext <<_ACEOF
48046 /* end confdefs.h. */
48050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48051 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48052 ice_cv_have_setresgid_decl=yes
48056 if test "$ice_cv_have_setresgid_decl" = yes; then
48063 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
48064 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
48065 if test "$ice_cv_have_setresgid_decl" = yes; then
48067 cat >>confdefs.h <<_ACEOF
48068 #define HAVE_SETRESGID_DECL 1
48075 ice_have_setresuid=no
48077 for ac_func in setresuid
48079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48080 echo "$as_me:$LINENO: checking for $ac_func" >&5
48081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48082 if eval "test \"\${$as_ac_var+set}\" = set"; then
48083 echo $ECHO_N "(cached) $ECHO_C" >&6
48085 cat >conftest.$ac_ext <<_ACEOF
48088 cat confdefs.h >>conftest.$ac_ext
48089 cat >>conftest.$ac_ext <<_ACEOF
48090 /* end confdefs.h. */
48091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48093 #define $ac_func innocuous_$ac_func
48095 /* System header to define __stub macros and hopefully few prototypes,
48096 which can conflict with char $ac_func (); below.
48097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48098 <limits.h> exists even on freestanding compilers. */
48101 # include <limits.h>
48103 # include <assert.h>
48108 /* Override any gcc2 internal prototype to avoid an error. */
48113 /* We use char because int might match the return type of a gcc2
48114 builtin and then its argument prototype would still apply. */
48116 /* The GNU C library defines this for functions which it implements
48117 to always fail with ENOSYS. Some functions are actually named
48118 something starting with __ and the normal name is an alias. */
48119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48122 char (*f) () = $ac_func;
48131 return f != $ac_func;
48136 rm -f conftest.$ac_objext conftest$ac_exeext
48137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48138 (eval $ac_link) 2>conftest.er1
48140 grep -v '^ *+' conftest.er1 >conftest.err
48142 cat conftest.err >&5
48143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48144 (exit $ac_status); } &&
48145 { ac_try='test -z "$ac_c_werror_flag"
48146 || test ! -s conftest.err'
48147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48148 (eval $ac_try) 2>&5
48150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48151 (exit $ac_status); }; } &&
48152 { ac_try='test -s conftest$ac_exeext'
48153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48154 (eval $ac_try) 2>&5
48156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48157 (exit $ac_status); }; }; then
48158 eval "$as_ac_var=yes"
48160 echo "$as_me: failed program was:" >&5
48161 sed 's/^/| /' conftest.$ac_ext >&5
48163 eval "$as_ac_var=no"
48165 rm -f conftest.err conftest.$ac_objext \
48166 conftest$ac_exeext conftest.$ac_ext
48168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48170 if test `eval echo '${'$as_ac_var'}'` = yes; then
48171 cat >>confdefs.h <<_ACEOF
48172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48174 ice_have_setresuid=yes
48178 if test "${ice_have_setresuid}" = yes; then
48179 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
48180 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
48181 if test "${ice_cv_have_setresuid_decl+set}" = set; then
48182 echo $ECHO_N "(cached) $ECHO_C" >&6
48185 ice_cv_have_setresuid_decl=no
48186 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48187 ice_re_word='(^|[^a-zA-Z0-9_])'
48188 for header in unistd.h; do
48189 # Check for ordinary declaration
48190 cat >conftest.$ac_ext <<_ACEOF
48193 cat confdefs.h >>conftest.$ac_ext
48194 cat >>conftest.$ac_ext <<_ACEOF
48195 /* end confdefs.h. */
48199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48200 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
48201 ice_cv_have_setresuid_decl=yes
48205 if test "$ice_cv_have_setresuid_decl" = yes; then
48208 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48209 cat >conftest.$ac_ext <<_ACEOF
48212 cat confdefs.h >>conftest.$ac_ext
48213 cat >>conftest.$ac_ext <<_ACEOF
48214 /* end confdefs.h. */
48218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48219 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48220 ice_cv_have_setresuid_decl=yes
48224 if test "$ice_cv_have_setresuid_decl" = yes; then
48231 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
48232 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
48233 if test "$ice_cv_have_setresuid_decl" = yes; then
48235 cat >>confdefs.h <<_ACEOF
48236 #define HAVE_SETRESUID_DECL 1
48243 echo "$as_me:$LINENO: checking for setpgid" >&5
48244 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
48245 if test "${ac_cv_func_setpgid+set}" = set; then
48246 echo $ECHO_N "(cached) $ECHO_C" >&6
48248 cat >conftest.$ac_ext <<_ACEOF
48251 cat confdefs.h >>conftest.$ac_ext
48252 cat >>conftest.$ac_ext <<_ACEOF
48253 /* end confdefs.h. */
48254 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
48255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48256 #define setpgid innocuous_setpgid
48258 /* System header to define __stub macros and hopefully few prototypes,
48259 which can conflict with char setpgid (); below.
48260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48261 <limits.h> exists even on freestanding compilers. */
48264 # include <limits.h>
48266 # include <assert.h>
48271 /* Override any gcc2 internal prototype to avoid an error. */
48276 /* We use char because int might match the return type of a gcc2
48277 builtin and then its argument prototype would still apply. */
48279 /* The GNU C library defines this for functions which it implements
48280 to always fail with ENOSYS. Some functions are actually named
48281 something starting with __ and the normal name is an alias. */
48282 #if defined (__stub_setpgid) || defined (__stub___setpgid)
48285 char (*f) () = setpgid;
48294 return f != setpgid;
48299 rm -f conftest.$ac_objext conftest$ac_exeext
48300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48301 (eval $ac_link) 2>conftest.er1
48303 grep -v '^ *+' conftest.er1 >conftest.err
48305 cat conftest.err >&5
48306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48307 (exit $ac_status); } &&
48308 { ac_try='test -z "$ac_c_werror_flag"
48309 || test ! -s conftest.err'
48310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48311 (eval $ac_try) 2>&5
48313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48314 (exit $ac_status); }; } &&
48315 { ac_try='test -s conftest$ac_exeext'
48316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48317 (eval $ac_try) 2>&5
48319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48320 (exit $ac_status); }; }; then
48321 ac_cv_func_setpgid=yes
48323 echo "$as_me: failed program was:" >&5
48324 sed 's/^/| /' conftest.$ac_ext >&5
48326 ac_cv_func_setpgid=no
48328 rm -f conftest.err conftest.$ac_objext \
48329 conftest$ac_exeext conftest.$ac_ext
48331 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
48332 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
48333 if test $ac_cv_func_setpgid = yes; then
48336 cat >>confdefs.h <<\_ACEOF
48337 #define HAVE_SETPGID 1
48341 ice_have_setpgid=no
48343 for ac_func in setpgid
48345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48346 echo "$as_me:$LINENO: checking for $ac_func" >&5
48347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48348 if eval "test \"\${$as_ac_var+set}\" = set"; then
48349 echo $ECHO_N "(cached) $ECHO_C" >&6
48351 cat >conftest.$ac_ext <<_ACEOF
48354 cat confdefs.h >>conftest.$ac_ext
48355 cat >>conftest.$ac_ext <<_ACEOF
48356 /* end confdefs.h. */
48357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48359 #define $ac_func innocuous_$ac_func
48361 /* System header to define __stub macros and hopefully few prototypes,
48362 which can conflict with char $ac_func (); below.
48363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48364 <limits.h> exists even on freestanding compilers. */
48367 # include <limits.h>
48369 # include <assert.h>
48374 /* Override any gcc2 internal prototype to avoid an error. */
48379 /* We use char because int might match the return type of a gcc2
48380 builtin and then its argument prototype would still apply. */
48382 /* The GNU C library defines this for functions which it implements
48383 to always fail with ENOSYS. Some functions are actually named
48384 something starting with __ and the normal name is an alias. */
48385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48388 char (*f) () = $ac_func;
48397 return f != $ac_func;
48402 rm -f conftest.$ac_objext conftest$ac_exeext
48403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48404 (eval $ac_link) 2>conftest.er1
48406 grep -v '^ *+' conftest.er1 >conftest.err
48408 cat conftest.err >&5
48409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48410 (exit $ac_status); } &&
48411 { ac_try='test -z "$ac_c_werror_flag"
48412 || test ! -s conftest.err'
48413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48414 (eval $ac_try) 2>&5
48416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48417 (exit $ac_status); }; } &&
48418 { ac_try='test -s conftest$ac_exeext'
48419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48420 (eval $ac_try) 2>&5
48422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48423 (exit $ac_status); }; }; then
48424 eval "$as_ac_var=yes"
48426 echo "$as_me: failed program was:" >&5
48427 sed 's/^/| /' conftest.$ac_ext >&5
48429 eval "$as_ac_var=no"
48431 rm -f conftest.err conftest.$ac_objext \
48432 conftest$ac_exeext conftest.$ac_ext
48434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48436 if test `eval echo '${'$as_ac_var'}'` = yes; then
48437 cat >>confdefs.h <<_ACEOF
48438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48440 ice_have_setpgid=yes
48444 if test "${ice_have_setpgid}" = yes; then
48445 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
48446 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
48447 if test "${ice_cv_have_setpgid_decl+set}" = set; then
48448 echo $ECHO_N "(cached) $ECHO_C" >&6
48451 ice_cv_have_setpgid_decl=no
48452 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48453 ice_re_word='(^|[^a-zA-Z0-9_])'
48454 for header in sys/types.h unistd.h; do
48455 # Check for ordinary declaration
48456 cat >conftest.$ac_ext <<_ACEOF
48459 cat confdefs.h >>conftest.$ac_ext
48460 cat >>conftest.$ac_ext <<_ACEOF
48461 /* end confdefs.h. */
48465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48466 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
48467 ice_cv_have_setpgid_decl=yes
48471 if test "$ice_cv_have_setpgid_decl" = yes; then
48474 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48475 cat >conftest.$ac_ext <<_ACEOF
48478 cat confdefs.h >>conftest.$ac_ext
48479 cat >>conftest.$ac_ext <<_ACEOF
48480 /* end confdefs.h. */
48484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48485 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48486 ice_cv_have_setpgid_decl=yes
48490 if test "$ice_cv_have_setpgid_decl" = yes; then
48497 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
48498 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
48499 if test "$ice_cv_have_setpgid_decl" = yes; then
48501 cat >>confdefs.h <<_ACEOF
48502 #define HAVE_SETPGID_DECL 1
48511 echo "$as_me:$LINENO: checking for setpgrp" >&5
48512 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
48513 if test "${ac_cv_func_setpgrp+set}" = set; then
48514 echo $ECHO_N "(cached) $ECHO_C" >&6
48516 cat >conftest.$ac_ext <<_ACEOF
48519 cat confdefs.h >>conftest.$ac_ext
48520 cat >>conftest.$ac_ext <<_ACEOF
48521 /* end confdefs.h. */
48522 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
48523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48524 #define setpgrp innocuous_setpgrp
48526 /* System header to define __stub macros and hopefully few prototypes,
48527 which can conflict with char setpgrp (); below.
48528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48529 <limits.h> exists even on freestanding compilers. */
48532 # include <limits.h>
48534 # include <assert.h>
48539 /* Override any gcc2 internal prototype to avoid an error. */
48544 /* We use char because int might match the return type of a gcc2
48545 builtin and then its argument prototype would still apply. */
48547 /* The GNU C library defines this for functions which it implements
48548 to always fail with ENOSYS. Some functions are actually named
48549 something starting with __ and the normal name is an alias. */
48550 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
48553 char (*f) () = setpgrp;
48562 return f != setpgrp;
48567 rm -f conftest.$ac_objext conftest$ac_exeext
48568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48569 (eval $ac_link) 2>conftest.er1
48571 grep -v '^ *+' conftest.er1 >conftest.err
48573 cat conftest.err >&5
48574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48575 (exit $ac_status); } &&
48576 { ac_try='test -z "$ac_c_werror_flag"
48577 || test ! -s conftest.err'
48578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48579 (eval $ac_try) 2>&5
48581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48582 (exit $ac_status); }; } &&
48583 { ac_try='test -s conftest$ac_exeext'
48584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48585 (eval $ac_try) 2>&5
48587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48588 (exit $ac_status); }; }; then
48589 ac_cv_func_setpgrp=yes
48591 echo "$as_me: failed program was:" >&5
48592 sed 's/^/| /' conftest.$ac_ext >&5
48594 ac_cv_func_setpgrp=no
48596 rm -f conftest.err conftest.$ac_objext \
48597 conftest$ac_exeext conftest.$ac_ext
48599 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
48600 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
48601 if test $ac_cv_func_setpgrp = yes; then
48602 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
48603 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
48604 if test "${ac_cv_func_setpgrp_void+set}" = set; then
48605 echo $ECHO_N "(cached) $ECHO_C" >&6
48607 if test "$cross_compiling" = yes; then
48608 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
48609 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
48610 { (exit 1); exit 1; }; }
48612 cat >conftest.$ac_ext <<_ACEOF
48615 cat confdefs.h >>conftest.$ac_ext
48616 cat >>conftest.$ac_ext <<_ACEOF
48617 /* end confdefs.h. */
48619 # include <unistd.h>
48625 /* If this system has a BSD-style setpgrp which takes arguments,
48626 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
48627 exit successfully. */
48628 exit (setpgrp (1,1) == -1 ? 0 : 1);
48633 rm -f conftest$ac_exeext
48634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48635 (eval $ac_link) 2>&5
48637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48640 (eval $ac_try) 2>&5
48642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48643 (exit $ac_status); }; }; then
48644 ac_cv_func_setpgrp_void=no
48646 echo "$as_me: program exited with status $ac_status" >&5
48647 echo "$as_me: failed program was:" >&5
48648 sed 's/^/| /' conftest.$ac_ext >&5
48650 ( exit $ac_status )
48651 ac_cv_func_setpgrp_void=yes
48653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48656 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
48657 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
48658 if test $ac_cv_func_setpgrp_void = yes; then
48660 cat >>confdefs.h <<\_ACEOF
48661 #define SETPGRP_VOID 1
48669 ice_have_setpgrp=no
48671 for ac_func in setpgrp
48673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48674 echo "$as_me:$LINENO: checking for $ac_func" >&5
48675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48676 if eval "test \"\${$as_ac_var+set}\" = set"; then
48677 echo $ECHO_N "(cached) $ECHO_C" >&6
48679 cat >conftest.$ac_ext <<_ACEOF
48682 cat confdefs.h >>conftest.$ac_ext
48683 cat >>conftest.$ac_ext <<_ACEOF
48684 /* end confdefs.h. */
48685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48687 #define $ac_func innocuous_$ac_func
48689 /* System header to define __stub macros and hopefully few prototypes,
48690 which can conflict with char $ac_func (); below.
48691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48692 <limits.h> exists even on freestanding compilers. */
48695 # include <limits.h>
48697 # include <assert.h>
48702 /* Override any gcc2 internal prototype to avoid an error. */
48707 /* We use char because int might match the return type of a gcc2
48708 builtin and then its argument prototype would still apply. */
48710 /* The GNU C library defines this for functions which it implements
48711 to always fail with ENOSYS. Some functions are actually named
48712 something starting with __ and the normal name is an alias. */
48713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48716 char (*f) () = $ac_func;
48725 return f != $ac_func;
48730 rm -f conftest.$ac_objext conftest$ac_exeext
48731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48732 (eval $ac_link) 2>conftest.er1
48734 grep -v '^ *+' conftest.er1 >conftest.err
48736 cat conftest.err >&5
48737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48738 (exit $ac_status); } &&
48739 { ac_try='test -z "$ac_c_werror_flag"
48740 || test ! -s conftest.err'
48741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48742 (eval $ac_try) 2>&5
48744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48745 (exit $ac_status); }; } &&
48746 { ac_try='test -s conftest$ac_exeext'
48747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48748 (eval $ac_try) 2>&5
48750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48751 (exit $ac_status); }; }; then
48752 eval "$as_ac_var=yes"
48754 echo "$as_me: failed program was:" >&5
48755 sed 's/^/| /' conftest.$ac_ext >&5
48757 eval "$as_ac_var=no"
48759 rm -f conftest.err conftest.$ac_objext \
48760 conftest$ac_exeext conftest.$ac_ext
48762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48764 if test `eval echo '${'$as_ac_var'}'` = yes; then
48765 cat >>confdefs.h <<_ACEOF
48766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48768 ice_have_setpgrp=yes
48772 if test "${ice_have_setpgrp}" = yes; then
48773 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
48774 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
48775 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
48776 echo $ECHO_N "(cached) $ECHO_C" >&6
48779 ice_cv_have_setpgrp_decl=no
48780 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48781 ice_re_word='(^|[^a-zA-Z0-9_])'
48782 for header in sys/types.h unistd.h libc.h; do
48783 # Check for ordinary declaration
48784 cat >conftest.$ac_ext <<_ACEOF
48787 cat confdefs.h >>conftest.$ac_ext
48788 cat >>conftest.$ac_ext <<_ACEOF
48789 /* end confdefs.h. */
48793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48794 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
48795 ice_cv_have_setpgrp_decl=yes
48799 if test "$ice_cv_have_setpgrp_decl" = yes; then
48802 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48803 cat >conftest.$ac_ext <<_ACEOF
48806 cat confdefs.h >>conftest.$ac_ext
48807 cat >>conftest.$ac_ext <<_ACEOF
48808 /* end confdefs.h. */
48812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48813 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48814 ice_cv_have_setpgrp_decl=yes
48818 if test "$ice_cv_have_setpgrp_decl" = yes; then
48825 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
48826 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
48827 if test "$ice_cv_have_setpgrp_decl" = yes; then
48829 cat >>confdefs.h <<_ACEOF
48830 #define HAVE_SETPGRP_DECL 1
48838 ice_have_setsockopt=no
48840 for ac_func in setsockopt
48842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48843 echo "$as_me:$LINENO: checking for $ac_func" >&5
48844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48845 if eval "test \"\${$as_ac_var+set}\" = set"; then
48846 echo $ECHO_N "(cached) $ECHO_C" >&6
48848 cat >conftest.$ac_ext <<_ACEOF
48851 cat confdefs.h >>conftest.$ac_ext
48852 cat >>conftest.$ac_ext <<_ACEOF
48853 /* end confdefs.h. */
48854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48856 #define $ac_func innocuous_$ac_func
48858 /* System header to define __stub macros and hopefully few prototypes,
48859 which can conflict with char $ac_func (); below.
48860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48861 <limits.h> exists even on freestanding compilers. */
48864 # include <limits.h>
48866 # include <assert.h>
48871 /* Override any gcc2 internal prototype to avoid an error. */
48876 /* We use char because int might match the return type of a gcc2
48877 builtin and then its argument prototype would still apply. */
48879 /* The GNU C library defines this for functions which it implements
48880 to always fail with ENOSYS. Some functions are actually named
48881 something starting with __ and the normal name is an alias. */
48882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48885 char (*f) () = $ac_func;
48894 return f != $ac_func;
48899 rm -f conftest.$ac_objext conftest$ac_exeext
48900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48901 (eval $ac_link) 2>conftest.er1
48903 grep -v '^ *+' conftest.er1 >conftest.err
48905 cat conftest.err >&5
48906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48907 (exit $ac_status); } &&
48908 { ac_try='test -z "$ac_c_werror_flag"
48909 || test ! -s conftest.err'
48910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48911 (eval $ac_try) 2>&5
48913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48914 (exit $ac_status); }; } &&
48915 { ac_try='test -s conftest$ac_exeext'
48916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48917 (eval $ac_try) 2>&5
48919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48920 (exit $ac_status); }; }; then
48921 eval "$as_ac_var=yes"
48923 echo "$as_me: failed program was:" >&5
48924 sed 's/^/| /' conftest.$ac_ext >&5
48926 eval "$as_ac_var=no"
48928 rm -f conftest.err conftest.$ac_objext \
48929 conftest$ac_exeext conftest.$ac_ext
48931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48933 if test `eval echo '${'$as_ac_var'}'` = yes; then
48934 cat >>confdefs.h <<_ACEOF
48935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48937 ice_have_setsockopt=yes
48941 if test "${ice_have_setsockopt}" = yes; then
48942 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
48943 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
48944 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
48945 echo $ECHO_N "(cached) $ECHO_C" >&6
48948 ice_cv_have_setsockopt_decl=no
48949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48950 ice_re_word='(^|[^a-zA-Z0-9_])'
48951 for header in sys/types.h sys/socket.h; do
48952 # Check for ordinary declaration
48953 cat >conftest.$ac_ext <<_ACEOF
48956 cat confdefs.h >>conftest.$ac_ext
48957 cat >>conftest.$ac_ext <<_ACEOF
48958 /* end confdefs.h. */
48962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48963 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
48964 ice_cv_have_setsockopt_decl=yes
48968 if test "$ice_cv_have_setsockopt_decl" = yes; then
48971 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48972 cat >conftest.$ac_ext <<_ACEOF
48975 cat confdefs.h >>conftest.$ac_ext
48976 cat >>conftest.$ac_ext <<_ACEOF
48977 /* end confdefs.h. */
48981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48982 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48983 ice_cv_have_setsockopt_decl=yes
48987 if test "$ice_cv_have_setsockopt_decl" = yes; then
48994 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
48995 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
48996 if test "$ice_cv_have_setsockopt_decl" = yes; then
48998 cat >>confdefs.h <<_ACEOF
48999 #define HAVE_SETSOCKOPT_DECL 1
49007 for ac_func in shmget
49009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49010 echo "$as_me:$LINENO: checking for $ac_func" >&5
49011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49012 if eval "test \"\${$as_ac_var+set}\" = set"; then
49013 echo $ECHO_N "(cached) $ECHO_C" >&6
49015 cat >conftest.$ac_ext <<_ACEOF
49018 cat confdefs.h >>conftest.$ac_ext
49019 cat >>conftest.$ac_ext <<_ACEOF
49020 /* end confdefs.h. */
49021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49023 #define $ac_func innocuous_$ac_func
49025 /* System header to define __stub macros and hopefully few prototypes,
49026 which can conflict with char $ac_func (); below.
49027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49028 <limits.h> exists even on freestanding compilers. */
49031 # include <limits.h>
49033 # include <assert.h>
49038 /* Override any gcc2 internal prototype to avoid an error. */
49043 /* We use char because int might match the return type of a gcc2
49044 builtin and then its argument prototype would still apply. */
49046 /* The GNU C library defines this for functions which it implements
49047 to always fail with ENOSYS. Some functions are actually named
49048 something starting with __ and the normal name is an alias. */
49049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49052 char (*f) () = $ac_func;
49061 return f != $ac_func;
49066 rm -f conftest.$ac_objext conftest$ac_exeext
49067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49068 (eval $ac_link) 2>conftest.er1
49070 grep -v '^ *+' conftest.er1 >conftest.err
49072 cat conftest.err >&5
49073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49074 (exit $ac_status); } &&
49075 { ac_try='test -z "$ac_c_werror_flag"
49076 || test ! -s conftest.err'
49077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49078 (eval $ac_try) 2>&5
49080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49081 (exit $ac_status); }; } &&
49082 { ac_try='test -s conftest$ac_exeext'
49083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49084 (eval $ac_try) 2>&5
49086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49087 (exit $ac_status); }; }; then
49088 eval "$as_ac_var=yes"
49090 echo "$as_me: failed program was:" >&5
49091 sed 's/^/| /' conftest.$ac_ext >&5
49093 eval "$as_ac_var=no"
49095 rm -f conftest.err conftest.$ac_objext \
49096 conftest$ac_exeext conftest.$ac_ext
49098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49100 if test `eval echo '${'$as_ac_var'}'` = yes; then
49101 cat >>confdefs.h <<_ACEOF
49102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49106 echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
49107 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
49108 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
49109 echo $ECHO_N "(cached) $ECHO_C" >&6
49112 if test "$ac_cv_func_shmget" = yes; then
49113 cat <<EOF >conftest.$ac_ext
49114 #include "confdefs.h"
49115 #ifdef HAVE_SYS_TYPES_H
49116 # include <sys/types.h>
49118 #ifdef HAVE_SYS_IPC_H
49119 # include <sys/ipc.h>
49121 #ifdef HAVE_SYS_SHM_H
49122 # include <sys/shm.h>
49126 extern "C" void *shmat(int, void *, int);
49137 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
49138 if test $? = 0; then
49139 amanda_cv_shmdt_arg_type=void
49141 amanda_cv_shmdt_arg_type=char
49145 amanda_cv_shmdt_arg_type=nothing
49150 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
49151 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
49153 cat >>confdefs.h <<_ACEOF
49154 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
49159 case "$FORCE_MMAP" in
49162 cat >>confdefs.h <<\_ACEOF
49163 #define HAVE_SYSVSHM 1
49176 for ac_func in shmat
49178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49179 echo "$as_me:$LINENO: checking for $ac_func" >&5
49180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49181 if eval "test \"\${$as_ac_var+set}\" = set"; then
49182 echo $ECHO_N "(cached) $ECHO_C" >&6
49184 cat >conftest.$ac_ext <<_ACEOF
49187 cat confdefs.h >>conftest.$ac_ext
49188 cat >>conftest.$ac_ext <<_ACEOF
49189 /* end confdefs.h. */
49190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49192 #define $ac_func innocuous_$ac_func
49194 /* System header to define __stub macros and hopefully few prototypes,
49195 which can conflict with char $ac_func (); below.
49196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49197 <limits.h> exists even on freestanding compilers. */
49200 # include <limits.h>
49202 # include <assert.h>
49207 /* Override any gcc2 internal prototype to avoid an error. */
49212 /* We use char because int might match the return type of a gcc2
49213 builtin and then its argument prototype would still apply. */
49215 /* The GNU C library defines this for functions which it implements
49216 to always fail with ENOSYS. Some functions are actually named
49217 something starting with __ and the normal name is an alias. */
49218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49221 char (*f) () = $ac_func;
49230 return f != $ac_func;
49235 rm -f conftest.$ac_objext conftest$ac_exeext
49236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49237 (eval $ac_link) 2>conftest.er1
49239 grep -v '^ *+' conftest.er1 >conftest.err
49241 cat conftest.err >&5
49242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49243 (exit $ac_status); } &&
49244 { ac_try='test -z "$ac_c_werror_flag"
49245 || test ! -s conftest.err'
49246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49247 (eval $ac_try) 2>&5
49249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49250 (exit $ac_status); }; } &&
49251 { ac_try='test -s conftest$ac_exeext'
49252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49253 (eval $ac_try) 2>&5
49255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49256 (exit $ac_status); }; }; then
49257 eval "$as_ac_var=yes"
49259 echo "$as_me: failed program was:" >&5
49260 sed 's/^/| /' conftest.$ac_ext >&5
49262 eval "$as_ac_var=no"
49264 rm -f conftest.err conftest.$ac_objext \
49265 conftest$ac_exeext conftest.$ac_ext
49267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49269 if test `eval echo '${'$as_ac_var'}'` = yes; then
49270 cat >>confdefs.h <<_ACEOF
49271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49277 if test "${ice_have_shmat}" = yes; then
49278 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49279 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49280 if test "${ice_cv_have_shmat_decl+set}" = set; then
49281 echo $ECHO_N "(cached) $ECHO_C" >&6
49284 ice_cv_have_shmat_decl=no
49285 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49286 ice_re_word='(^|[^a-zA-Z0-9_])'
49287 for header in sys/types.h sys/ipc.h sys/shm.h; do
49288 # Check for ordinary declaration
49289 cat >conftest.$ac_ext <<_ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h. */
49298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49299 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
49300 ice_cv_have_shmat_decl=yes
49304 if test "$ice_cv_have_shmat_decl" = yes; then
49307 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49308 cat >conftest.$ac_ext <<_ACEOF
49311 cat confdefs.h >>conftest.$ac_ext
49312 cat >>conftest.$ac_ext <<_ACEOF
49313 /* end confdefs.h. */
49317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49318 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49319 ice_cv_have_shmat_decl=yes
49323 if test "$ice_cv_have_shmat_decl" = yes; then
49330 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
49331 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
49332 if test "$ice_cv_have_shmat_decl" = yes; then
49334 cat >>confdefs.h <<_ACEOF
49335 #define HAVE_SHMAT_DECL 1
49344 for ac_func in shmctl
49346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49347 echo "$as_me:$LINENO: checking for $ac_func" >&5
49348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49349 if eval "test \"\${$as_ac_var+set}\" = set"; then
49350 echo $ECHO_N "(cached) $ECHO_C" >&6
49352 cat >conftest.$ac_ext <<_ACEOF
49355 cat confdefs.h >>conftest.$ac_ext
49356 cat >>conftest.$ac_ext <<_ACEOF
49357 /* end confdefs.h. */
49358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49360 #define $ac_func innocuous_$ac_func
49362 /* System header to define __stub macros and hopefully few prototypes,
49363 which can conflict with char $ac_func (); below.
49364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49365 <limits.h> exists even on freestanding compilers. */
49368 # include <limits.h>
49370 # include <assert.h>
49375 /* Override any gcc2 internal prototype to avoid an error. */
49380 /* We use char because int might match the return type of a gcc2
49381 builtin and then its argument prototype would still apply. */
49383 /* The GNU C library defines this for functions which it implements
49384 to always fail with ENOSYS. Some functions are actually named
49385 something starting with __ and the normal name is an alias. */
49386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49389 char (*f) () = $ac_func;
49398 return f != $ac_func;
49403 rm -f conftest.$ac_objext conftest$ac_exeext
49404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49405 (eval $ac_link) 2>conftest.er1
49407 grep -v '^ *+' conftest.er1 >conftest.err
49409 cat conftest.err >&5
49410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49411 (exit $ac_status); } &&
49412 { ac_try='test -z "$ac_c_werror_flag"
49413 || test ! -s conftest.err'
49414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49415 (eval $ac_try) 2>&5
49417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49418 (exit $ac_status); }; } &&
49419 { ac_try='test -s conftest$ac_exeext'
49420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49421 (eval $ac_try) 2>&5
49423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49424 (exit $ac_status); }; }; then
49425 eval "$as_ac_var=yes"
49427 echo "$as_me: failed program was:" >&5
49428 sed 's/^/| /' conftest.$ac_ext >&5
49430 eval "$as_ac_var=no"
49432 rm -f conftest.err conftest.$ac_objext \
49433 conftest$ac_exeext conftest.$ac_ext
49435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49437 if test `eval echo '${'$as_ac_var'}'` = yes; then
49438 cat >>confdefs.h <<_ACEOF
49439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49441 ice_have_shmctl=yes
49445 if test "${ice_have_shmctl}" = yes; then
49446 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49447 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49448 if test "${ice_cv_have_shmctl_decl+set}" = set; then
49449 echo $ECHO_N "(cached) $ECHO_C" >&6
49452 ice_cv_have_shmctl_decl=no
49453 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49454 ice_re_word='(^|[^a-zA-Z0-9_])'
49455 for header in sys/types.h sys/ipc.h sys/shm.h; do
49456 # Check for ordinary declaration
49457 cat >conftest.$ac_ext <<_ACEOF
49460 cat confdefs.h >>conftest.$ac_ext
49461 cat >>conftest.$ac_ext <<_ACEOF
49462 /* end confdefs.h. */
49466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49467 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
49468 ice_cv_have_shmctl_decl=yes
49472 if test "$ice_cv_have_shmctl_decl" = yes; then
49475 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49476 cat >conftest.$ac_ext <<_ACEOF
49479 cat confdefs.h >>conftest.$ac_ext
49480 cat >>conftest.$ac_ext <<_ACEOF
49481 /* end confdefs.h. */
49485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49486 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49487 ice_cv_have_shmctl_decl=yes
49491 if test "$ice_cv_have_shmctl_decl" = yes; then
49498 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
49499 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
49500 if test "$ice_cv_have_shmctl_decl" = yes; then
49502 cat >>confdefs.h <<_ACEOF
49503 #define HAVE_SHMCTL_DECL 1
49512 for ac_func in shmdt
49514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49515 echo "$as_me:$LINENO: checking for $ac_func" >&5
49516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49517 if eval "test \"\${$as_ac_var+set}\" = set"; then
49518 echo $ECHO_N "(cached) $ECHO_C" >&6
49520 cat >conftest.$ac_ext <<_ACEOF
49523 cat confdefs.h >>conftest.$ac_ext
49524 cat >>conftest.$ac_ext <<_ACEOF
49525 /* end confdefs.h. */
49526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49528 #define $ac_func innocuous_$ac_func
49530 /* System header to define __stub macros and hopefully few prototypes,
49531 which can conflict with char $ac_func (); below.
49532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49533 <limits.h> exists even on freestanding compilers. */
49536 # include <limits.h>
49538 # include <assert.h>
49543 /* Override any gcc2 internal prototype to avoid an error. */
49548 /* We use char because int might match the return type of a gcc2
49549 builtin and then its argument prototype would still apply. */
49551 /* The GNU C library defines this for functions which it implements
49552 to always fail with ENOSYS. Some functions are actually named
49553 something starting with __ and the normal name is an alias. */
49554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49557 char (*f) () = $ac_func;
49566 return f != $ac_func;
49571 rm -f conftest.$ac_objext conftest$ac_exeext
49572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49573 (eval $ac_link) 2>conftest.er1
49575 grep -v '^ *+' conftest.er1 >conftest.err
49577 cat conftest.err >&5
49578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49579 (exit $ac_status); } &&
49580 { ac_try='test -z "$ac_c_werror_flag"
49581 || test ! -s conftest.err'
49582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49583 (eval $ac_try) 2>&5
49585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586 (exit $ac_status); }; } &&
49587 { ac_try='test -s conftest$ac_exeext'
49588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49589 (eval $ac_try) 2>&5
49591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49592 (exit $ac_status); }; }; then
49593 eval "$as_ac_var=yes"
49595 echo "$as_me: failed program was:" >&5
49596 sed 's/^/| /' conftest.$ac_ext >&5
49598 eval "$as_ac_var=no"
49600 rm -f conftest.err conftest.$ac_objext \
49601 conftest$ac_exeext conftest.$ac_ext
49603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49605 if test `eval echo '${'$as_ac_var'}'` = yes; then
49606 cat >>confdefs.h <<_ACEOF
49607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49613 if test "${ice_have_shmdt}" = yes; then
49614 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49615 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49616 if test "${ice_cv_have_shmdt_decl+set}" = set; then
49617 echo $ECHO_N "(cached) $ECHO_C" >&6
49620 ice_cv_have_shmdt_decl=no
49621 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49622 ice_re_word='(^|[^a-zA-Z0-9_])'
49623 for header in sys/types.h sys/ipc.h sys/shm.h; do
49624 # Check for ordinary declaration
49625 cat >conftest.$ac_ext <<_ACEOF
49628 cat confdefs.h >>conftest.$ac_ext
49629 cat >>conftest.$ac_ext <<_ACEOF
49630 /* end confdefs.h. */
49634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49635 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
49636 ice_cv_have_shmdt_decl=yes
49640 if test "$ice_cv_have_shmdt_decl" = yes; then
49643 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49644 cat >conftest.$ac_ext <<_ACEOF
49647 cat confdefs.h >>conftest.$ac_ext
49648 cat >>conftest.$ac_ext <<_ACEOF
49649 /* end confdefs.h. */
49653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49654 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49655 ice_cv_have_shmdt_decl=yes
49659 if test "$ice_cv_have_shmdt_decl" = yes; then
49666 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
49667 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
49668 if test "$ice_cv_have_shmdt_decl" = yes; then
49670 cat >>confdefs.h <<_ACEOF
49671 #define HAVE_SHMDT_DECL 1
49680 for ac_func in shmget
49682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49683 echo "$as_me:$LINENO: checking for $ac_func" >&5
49684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49685 if eval "test \"\${$as_ac_var+set}\" = set"; then
49686 echo $ECHO_N "(cached) $ECHO_C" >&6
49688 cat >conftest.$ac_ext <<_ACEOF
49691 cat confdefs.h >>conftest.$ac_ext
49692 cat >>conftest.$ac_ext <<_ACEOF
49693 /* end confdefs.h. */
49694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49696 #define $ac_func innocuous_$ac_func
49698 /* System header to define __stub macros and hopefully few prototypes,
49699 which can conflict with char $ac_func (); below.
49700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49701 <limits.h> exists even on freestanding compilers. */
49704 # include <limits.h>
49706 # include <assert.h>
49711 /* Override any gcc2 internal prototype to avoid an error. */
49716 /* We use char because int might match the return type of a gcc2
49717 builtin and then its argument prototype would still apply. */
49719 /* The GNU C library defines this for functions which it implements
49720 to always fail with ENOSYS. Some functions are actually named
49721 something starting with __ and the normal name is an alias. */
49722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49725 char (*f) () = $ac_func;
49734 return f != $ac_func;
49739 rm -f conftest.$ac_objext conftest$ac_exeext
49740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49741 (eval $ac_link) 2>conftest.er1
49743 grep -v '^ *+' conftest.er1 >conftest.err
49745 cat conftest.err >&5
49746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49747 (exit $ac_status); } &&
49748 { ac_try='test -z "$ac_c_werror_flag"
49749 || test ! -s conftest.err'
49750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49751 (eval $ac_try) 2>&5
49753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754 (exit $ac_status); }; } &&
49755 { ac_try='test -s conftest$ac_exeext'
49756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49757 (eval $ac_try) 2>&5
49759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760 (exit $ac_status); }; }; then
49761 eval "$as_ac_var=yes"
49763 echo "$as_me: failed program was:" >&5
49764 sed 's/^/| /' conftest.$ac_ext >&5
49766 eval "$as_ac_var=no"
49768 rm -f conftest.err conftest.$ac_objext \
49769 conftest$ac_exeext conftest.$ac_ext
49771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49773 if test `eval echo '${'$as_ac_var'}'` = yes; then
49774 cat >>confdefs.h <<_ACEOF
49775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49777 ice_have_shmget=yes
49781 if test "${ice_have_shmget}" = yes; then
49782 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49783 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49784 if test "${ice_cv_have_shmget_decl+set}" = set; then
49785 echo $ECHO_N "(cached) $ECHO_C" >&6
49788 ice_cv_have_shmget_decl=no
49789 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49790 ice_re_word='(^|[^a-zA-Z0-9_])'
49791 for header in sys/types.h sys/ipc.h sys/shm.h; do
49792 # Check for ordinary declaration
49793 cat >conftest.$ac_ext <<_ACEOF
49796 cat confdefs.h >>conftest.$ac_ext
49797 cat >>conftest.$ac_ext <<_ACEOF
49798 /* end confdefs.h. */
49802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49803 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
49804 ice_cv_have_shmget_decl=yes
49808 if test "$ice_cv_have_shmget_decl" = yes; then
49811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49812 cat >conftest.$ac_ext <<_ACEOF
49815 cat confdefs.h >>conftest.$ac_ext
49816 cat >>conftest.$ac_ext <<_ACEOF
49817 /* end confdefs.h. */
49821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49822 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49823 ice_cv_have_shmget_decl=yes
49827 if test "$ice_cv_have_shmget_decl" = yes; then
49834 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
49835 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
49836 if test "$ice_cv_have_shmget_decl" = yes; then
49838 cat >>confdefs.h <<_ACEOF
49839 #define HAVE_SHMGET_DECL 1
49846 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
49847 case "$FORCE_MMAP" in
49849 if test "x$ac_cv_func_shmget" != xyes; then
49850 { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
49851 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
49852 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
49853 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
49854 NO_SERVER_MODE=true
49858 { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
49859 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
49860 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
49861 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
49862 NO_SERVER_MODE=true
49868 ice_have_snprintf=no
49870 for ac_func in snprintf
49872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49873 echo "$as_me:$LINENO: checking for $ac_func" >&5
49874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49875 if eval "test \"\${$as_ac_var+set}\" = set"; then
49876 echo $ECHO_N "(cached) $ECHO_C" >&6
49878 cat >conftest.$ac_ext <<_ACEOF
49881 cat confdefs.h >>conftest.$ac_ext
49882 cat >>conftest.$ac_ext <<_ACEOF
49883 /* end confdefs.h. */
49884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49886 #define $ac_func innocuous_$ac_func
49888 /* System header to define __stub macros and hopefully few prototypes,
49889 which can conflict with char $ac_func (); below.
49890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49891 <limits.h> exists even on freestanding compilers. */
49894 # include <limits.h>
49896 # include <assert.h>
49901 /* Override any gcc2 internal prototype to avoid an error. */
49906 /* We use char because int might match the return type of a gcc2
49907 builtin and then its argument prototype would still apply. */
49909 /* The GNU C library defines this for functions which it implements
49910 to always fail with ENOSYS. Some functions are actually named
49911 something starting with __ and the normal name is an alias. */
49912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49915 char (*f) () = $ac_func;
49924 return f != $ac_func;
49929 rm -f conftest.$ac_objext conftest$ac_exeext
49930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49931 (eval $ac_link) 2>conftest.er1
49933 grep -v '^ *+' conftest.er1 >conftest.err
49935 cat conftest.err >&5
49936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49937 (exit $ac_status); } &&
49938 { ac_try='test -z "$ac_c_werror_flag"
49939 || test ! -s conftest.err'
49940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49941 (eval $ac_try) 2>&5
49943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49944 (exit $ac_status); }; } &&
49945 { ac_try='test -s conftest$ac_exeext'
49946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49947 (eval $ac_try) 2>&5
49949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49950 (exit $ac_status); }; }; then
49951 eval "$as_ac_var=yes"
49953 echo "$as_me: failed program was:" >&5
49954 sed 's/^/| /' conftest.$ac_ext >&5
49956 eval "$as_ac_var=no"
49958 rm -f conftest.err conftest.$ac_objext \
49959 conftest$ac_exeext conftest.$ac_ext
49961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49963 if test `eval echo '${'$as_ac_var'}'` = yes; then
49964 cat >>confdefs.h <<_ACEOF
49965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49967 ice_have_snprintf=yes
49971 if test "${ice_have_snprintf}" = yes; then
49972 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
49973 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
49974 if test "${ice_cv_have_snprintf_decl+set}" = set; then
49975 echo $ECHO_N "(cached) $ECHO_C" >&6
49978 ice_cv_have_snprintf_decl=no
49979 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49980 ice_re_word='(^|[^a-zA-Z0-9_])'
49981 for header in stdio.h; do
49982 # Check for ordinary declaration
49983 cat >conftest.$ac_ext <<_ACEOF
49986 cat confdefs.h >>conftest.$ac_ext
49987 cat >>conftest.$ac_ext <<_ACEOF
49988 /* end confdefs.h. */
49992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49993 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
49994 ice_cv_have_snprintf_decl=yes
49998 if test "$ice_cv_have_snprintf_decl" = yes; then
50001 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50002 cat >conftest.$ac_ext <<_ACEOF
50005 cat confdefs.h >>conftest.$ac_ext
50006 cat >>conftest.$ac_ext <<_ACEOF
50007 /* end confdefs.h. */
50011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50012 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50013 ice_cv_have_snprintf_decl=yes
50017 if test "$ice_cv_have_snprintf_decl" = yes; then
50024 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
50025 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
50026 if test "$ice_cv_have_snprintf_decl" = yes; then
50028 cat >>confdefs.h <<_ACEOF
50029 #define HAVE_SNPRINTF_DECL 1
50036 ice_have_vsnprintf=no
50038 for ac_func in vsnprintf
50040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50041 echo "$as_me:$LINENO: checking for $ac_func" >&5
50042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50043 if eval "test \"\${$as_ac_var+set}\" = set"; then
50044 echo $ECHO_N "(cached) $ECHO_C" >&6
50046 cat >conftest.$ac_ext <<_ACEOF
50049 cat confdefs.h >>conftest.$ac_ext
50050 cat >>conftest.$ac_ext <<_ACEOF
50051 /* end confdefs.h. */
50052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50054 #define $ac_func innocuous_$ac_func
50056 /* System header to define __stub macros and hopefully few prototypes,
50057 which can conflict with char $ac_func (); below.
50058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50059 <limits.h> exists even on freestanding compilers. */
50062 # include <limits.h>
50064 # include <assert.h>
50069 /* Override any gcc2 internal prototype to avoid an error. */
50074 /* We use char because int might match the return type of a gcc2
50075 builtin and then its argument prototype would still apply. */
50077 /* The GNU C library defines this for functions which it implements
50078 to always fail with ENOSYS. Some functions are actually named
50079 something starting with __ and the normal name is an alias. */
50080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50083 char (*f) () = $ac_func;
50092 return f != $ac_func;
50097 rm -f conftest.$ac_objext conftest$ac_exeext
50098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50099 (eval $ac_link) 2>conftest.er1
50101 grep -v '^ *+' conftest.er1 >conftest.err
50103 cat conftest.err >&5
50104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50105 (exit $ac_status); } &&
50106 { ac_try='test -z "$ac_c_werror_flag"
50107 || test ! -s conftest.err'
50108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50109 (eval $ac_try) 2>&5
50111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50112 (exit $ac_status); }; } &&
50113 { ac_try='test -s conftest$ac_exeext'
50114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50115 (eval $ac_try) 2>&5
50117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50118 (exit $ac_status); }; }; then
50119 eval "$as_ac_var=yes"
50121 echo "$as_me: failed program was:" >&5
50122 sed 's/^/| /' conftest.$ac_ext >&5
50124 eval "$as_ac_var=no"
50126 rm -f conftest.err conftest.$ac_objext \
50127 conftest$ac_exeext conftest.$ac_ext
50129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50131 if test `eval echo '${'$as_ac_var'}'` = yes; then
50132 cat >>confdefs.h <<_ACEOF
50133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50135 ice_have_vsnprintf=yes
50139 if test "${ice_have_vsnprintf}" = yes; then
50140 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
50141 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
50142 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
50143 echo $ECHO_N "(cached) $ECHO_C" >&6
50146 ice_cv_have_vsnprintf_decl=no
50147 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50148 ice_re_word='(^|[^a-zA-Z0-9_])'
50149 for header in stdio.h; do
50150 # Check for ordinary declaration
50151 cat >conftest.$ac_ext <<_ACEOF
50154 cat confdefs.h >>conftest.$ac_ext
50155 cat >>conftest.$ac_ext <<_ACEOF
50156 /* end confdefs.h. */
50160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50161 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
50162 ice_cv_have_vsnprintf_decl=yes
50166 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50169 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50170 cat >conftest.$ac_ext <<_ACEOF
50173 cat confdefs.h >>conftest.$ac_ext
50174 cat >>conftest.$ac_ext <<_ACEOF
50175 /* end confdefs.h. */
50179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50180 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50181 ice_cv_have_vsnprintf_decl=yes
50185 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50192 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
50193 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
50194 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50196 cat >>confdefs.h <<_ACEOF
50197 #define HAVE_VSNPRINTF_DECL 1
50203 if test x"$ice_have_snprintf" != x"yes" ||
50204 test x"$ice_have_vsnprintf" != x"yes"; then
50206 "snprintf.$ac_objext" | \
50207 *" snprintf.$ac_objext" | \
50208 "snprintf.$ac_objext "* | \
50209 *" snprintf.$ac_objext "* ) ;;
50210 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
50215 for ac_func in snprintf
50217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50218 echo "$as_me:$LINENO: checking for $ac_func" >&5
50219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50220 if eval "test \"\${$as_ac_var+set}\" = set"; then
50221 echo $ECHO_N "(cached) $ECHO_C" >&6
50223 cat >conftest.$ac_ext <<_ACEOF
50226 cat confdefs.h >>conftest.$ac_ext
50227 cat >>conftest.$ac_ext <<_ACEOF
50228 /* end confdefs.h. */
50229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50231 #define $ac_func innocuous_$ac_func
50233 /* System header to define __stub macros and hopefully few prototypes,
50234 which can conflict with char $ac_func (); below.
50235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50236 <limits.h> exists even on freestanding compilers. */
50239 # include <limits.h>
50241 # include <assert.h>
50246 /* Override any gcc2 internal prototype to avoid an error. */
50251 /* We use char because int might match the return type of a gcc2
50252 builtin and then its argument prototype would still apply. */
50254 /* The GNU C library defines this for functions which it implements
50255 to always fail with ENOSYS. Some functions are actually named
50256 something starting with __ and the normal name is an alias. */
50257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50260 char (*f) () = $ac_func;
50269 return f != $ac_func;
50274 rm -f conftest.$ac_objext conftest$ac_exeext
50275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50276 (eval $ac_link) 2>conftest.er1
50278 grep -v '^ *+' conftest.er1 >conftest.err
50280 cat conftest.err >&5
50281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50282 (exit $ac_status); } &&
50283 { ac_try='test -z "$ac_c_werror_flag"
50284 || test ! -s conftest.err'
50285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50286 (eval $ac_try) 2>&5
50288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50289 (exit $ac_status); }; } &&
50290 { ac_try='test -s conftest$ac_exeext'
50291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50292 (eval $ac_try) 2>&5
50294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50295 (exit $ac_status); }; }; then
50296 eval "$as_ac_var=yes"
50298 echo "$as_me: failed program was:" >&5
50299 sed 's/^/| /' conftest.$ac_ext >&5
50301 eval "$as_ac_var=no"
50303 rm -f conftest.err conftest.$ac_objext \
50304 conftest$ac_exeext conftest.$ac_ext
50306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50308 if test `eval echo '${'$as_ac_var'}'` = yes; then
50309 cat >>confdefs.h <<_ACEOF
50310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50315 "$ac_func.$ac_objext" | \
50316 *" $ac_func.$ac_objext" | \
50317 "$ac_func.$ac_objext "* | \
50318 *" $ac_func.$ac_objext "* ) ;;
50319 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50332 for ac_func in sigaction sigemptyset sigvec
50334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50335 echo "$as_me:$LINENO: checking for $ac_func" >&5
50336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50337 if eval "test \"\${$as_ac_var+set}\" = set"; then
50338 echo $ECHO_N "(cached) $ECHO_C" >&6
50340 cat >conftest.$ac_ext <<_ACEOF
50343 cat confdefs.h >>conftest.$ac_ext
50344 cat >>conftest.$ac_ext <<_ACEOF
50345 /* end confdefs.h. */
50346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50348 #define $ac_func innocuous_$ac_func
50350 /* System header to define __stub macros and hopefully few prototypes,
50351 which can conflict with char $ac_func (); below.
50352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50353 <limits.h> exists even on freestanding compilers. */
50356 # include <limits.h>
50358 # include <assert.h>
50363 /* Override any gcc2 internal prototype to avoid an error. */
50368 /* We use char because int might match the return type of a gcc2
50369 builtin and then its argument prototype would still apply. */
50371 /* The GNU C library defines this for functions which it implements
50372 to always fail with ENOSYS. Some functions are actually named
50373 something starting with __ and the normal name is an alias. */
50374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50377 char (*f) () = $ac_func;
50386 return f != $ac_func;
50391 rm -f conftest.$ac_objext conftest$ac_exeext
50392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50393 (eval $ac_link) 2>conftest.er1
50395 grep -v '^ *+' conftest.er1 >conftest.err
50397 cat conftest.err >&5
50398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50399 (exit $ac_status); } &&
50400 { ac_try='test -z "$ac_c_werror_flag"
50401 || test ! -s conftest.err'
50402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50403 (eval $ac_try) 2>&5
50405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50406 (exit $ac_status); }; } &&
50407 { ac_try='test -s conftest$ac_exeext'
50408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50409 (eval $ac_try) 2>&5
50411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50412 (exit $ac_status); }; }; then
50413 eval "$as_ac_var=yes"
50415 echo "$as_me: failed program was:" >&5
50416 sed 's/^/| /' conftest.$ac_ext >&5
50418 eval "$as_ac_var=no"
50420 rm -f conftest.err conftest.$ac_objext \
50421 conftest$ac_exeext conftest.$ac_ext
50423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50425 if test `eval echo '${'$as_ac_var'}'` = yes; then
50426 cat >>confdefs.h <<_ACEOF
50427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50436 for ac_func in socket
50438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50439 echo "$as_me:$LINENO: checking for $ac_func" >&5
50440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50441 if eval "test \"\${$as_ac_var+set}\" = set"; then
50442 echo $ECHO_N "(cached) $ECHO_C" >&6
50444 cat >conftest.$ac_ext <<_ACEOF
50447 cat confdefs.h >>conftest.$ac_ext
50448 cat >>conftest.$ac_ext <<_ACEOF
50449 /* end confdefs.h. */
50450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50452 #define $ac_func innocuous_$ac_func
50454 /* System header to define __stub macros and hopefully few prototypes,
50455 which can conflict with char $ac_func (); below.
50456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50457 <limits.h> exists even on freestanding compilers. */
50460 # include <limits.h>
50462 # include <assert.h>
50467 /* Override any gcc2 internal prototype to avoid an error. */
50472 /* We use char because int might match the return type of a gcc2
50473 builtin and then its argument prototype would still apply. */
50475 /* The GNU C library defines this for functions which it implements
50476 to always fail with ENOSYS. Some functions are actually named
50477 something starting with __ and the normal name is an alias. */
50478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50481 char (*f) () = $ac_func;
50490 return f != $ac_func;
50495 rm -f conftest.$ac_objext conftest$ac_exeext
50496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50497 (eval $ac_link) 2>conftest.er1
50499 grep -v '^ *+' conftest.er1 >conftest.err
50501 cat conftest.err >&5
50502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50503 (exit $ac_status); } &&
50504 { ac_try='test -z "$ac_c_werror_flag"
50505 || test ! -s conftest.err'
50506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50507 (eval $ac_try) 2>&5
50509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50510 (exit $ac_status); }; } &&
50511 { ac_try='test -s conftest$ac_exeext'
50512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50513 (eval $ac_try) 2>&5
50515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50516 (exit $ac_status); }; }; then
50517 eval "$as_ac_var=yes"
50519 echo "$as_me: failed program was:" >&5
50520 sed 's/^/| /' conftest.$ac_ext >&5
50522 eval "$as_ac_var=no"
50524 rm -f conftest.err conftest.$ac_objext \
50525 conftest$ac_exeext conftest.$ac_ext
50527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50529 if test `eval echo '${'$as_ac_var'}'` = yes; then
50530 cat >>confdefs.h <<_ACEOF
50531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50533 ice_have_socket=yes
50537 if test "${ice_have_socket}" = yes; then
50538 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
50539 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50540 if test "${ice_cv_have_socket_decl+set}" = set; then
50541 echo $ECHO_N "(cached) $ECHO_C" >&6
50544 ice_cv_have_socket_decl=no
50545 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50546 ice_re_word='(^|[^a-zA-Z0-9_])'
50547 for header in sys/types.h sys/socket.h; do
50548 # Check for ordinary declaration
50549 cat >conftest.$ac_ext <<_ACEOF
50552 cat confdefs.h >>conftest.$ac_ext
50553 cat >>conftest.$ac_ext <<_ACEOF
50554 /* end confdefs.h. */
50558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50559 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
50560 ice_cv_have_socket_decl=yes
50564 if test "$ice_cv_have_socket_decl" = yes; then
50567 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50568 cat >conftest.$ac_ext <<_ACEOF
50571 cat confdefs.h >>conftest.$ac_ext
50572 cat >>conftest.$ac_ext <<_ACEOF
50573 /* end confdefs.h. */
50577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50578 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50579 ice_cv_have_socket_decl=yes
50583 if test "$ice_cv_have_socket_decl" = yes; then
50590 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
50591 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
50592 if test "$ice_cv_have_socket_decl" = yes; then
50594 cat >>confdefs.h <<_ACEOF
50595 #define HAVE_SOCKET_DECL 1
50602 ice_have_socketpair=no
50604 for ac_func in socketpair
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
50701 ice_have_socketpair=yes
50705 if test "${ice_have_socketpair}" = yes; then
50706 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
50707 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50708 if test "${ice_cv_have_socketpair_decl+set}" = set; then
50709 echo $ECHO_N "(cached) $ECHO_C" >&6
50712 ice_cv_have_socketpair_decl=no
50713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50714 ice_re_word='(^|[^a-zA-Z0-9_])'
50715 for header in sys/types.h sys/socket.h; do
50716 # Check for ordinary declaration
50717 cat >conftest.$ac_ext <<_ACEOF
50720 cat confdefs.h >>conftest.$ac_ext
50721 cat >>conftest.$ac_ext <<_ACEOF
50722 /* end confdefs.h. */
50726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50727 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
50728 ice_cv_have_socketpair_decl=yes
50732 if test "$ice_cv_have_socketpair_decl" = yes; then
50735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50736 cat >conftest.$ac_ext <<_ACEOF
50739 cat confdefs.h >>conftest.$ac_ext
50740 cat >>conftest.$ac_ext <<_ACEOF
50741 /* end confdefs.h. */
50745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50746 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50747 ice_cv_have_socketpair_decl=yes
50751 if test "$ice_cv_have_socketpair_decl" = yes; then
50758 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
50759 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
50760 if test "$ice_cv_have_socketpair_decl" = yes; then
50762 cat >>confdefs.h <<_ACEOF
50763 #define HAVE_SOCKETPAIR_DECL 1
50772 for ac_func in sscanf
50774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50775 echo "$as_me:$LINENO: checking for $ac_func" >&5
50776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50777 if eval "test \"\${$as_ac_var+set}\" = set"; then
50778 echo $ECHO_N "(cached) $ECHO_C" >&6
50780 cat >conftest.$ac_ext <<_ACEOF
50783 cat confdefs.h >>conftest.$ac_ext
50784 cat >>conftest.$ac_ext <<_ACEOF
50785 /* end confdefs.h. */
50786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50788 #define $ac_func innocuous_$ac_func
50790 /* System header to define __stub macros and hopefully few prototypes,
50791 which can conflict with char $ac_func (); below.
50792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50793 <limits.h> exists even on freestanding compilers. */
50796 # include <limits.h>
50798 # include <assert.h>
50803 /* Override any gcc2 internal prototype to avoid an error. */
50808 /* We use char because int might match the return type of a gcc2
50809 builtin and then its argument prototype would still apply. */
50811 /* The GNU C library defines this for functions which it implements
50812 to always fail with ENOSYS. Some functions are actually named
50813 something starting with __ and the normal name is an alias. */
50814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50817 char (*f) () = $ac_func;
50826 return f != $ac_func;
50831 rm -f conftest.$ac_objext conftest$ac_exeext
50832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50833 (eval $ac_link) 2>conftest.er1
50835 grep -v '^ *+' conftest.er1 >conftest.err
50837 cat conftest.err >&5
50838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50839 (exit $ac_status); } &&
50840 { ac_try='test -z "$ac_c_werror_flag"
50841 || test ! -s conftest.err'
50842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50843 (eval $ac_try) 2>&5
50845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50846 (exit $ac_status); }; } &&
50847 { ac_try='test -s conftest$ac_exeext'
50848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50849 (eval $ac_try) 2>&5
50851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50852 (exit $ac_status); }; }; then
50853 eval "$as_ac_var=yes"
50855 echo "$as_me: failed program was:" >&5
50856 sed 's/^/| /' conftest.$ac_ext >&5
50858 eval "$as_ac_var=no"
50860 rm -f conftest.err conftest.$ac_objext \
50861 conftest$ac_exeext conftest.$ac_ext
50863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50865 if test `eval echo '${'$as_ac_var'}'` = yes; then
50866 cat >>confdefs.h <<_ACEOF
50867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50869 ice_have_sscanf=yes
50873 if test "${ice_have_sscanf}" = yes; then
50874 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
50875 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
50876 if test "${ice_cv_have_sscanf_decl+set}" = set; then
50877 echo $ECHO_N "(cached) $ECHO_C" >&6
50880 ice_cv_have_sscanf_decl=no
50881 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50882 ice_re_word='(^|[^a-zA-Z0-9_])'
50883 for header in stdio.h; do
50884 # Check for ordinary declaration
50885 cat >conftest.$ac_ext <<_ACEOF
50888 cat confdefs.h >>conftest.$ac_ext
50889 cat >>conftest.$ac_ext <<_ACEOF
50890 /* end confdefs.h. */
50894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50895 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
50896 ice_cv_have_sscanf_decl=yes
50900 if test "$ice_cv_have_sscanf_decl" = yes; then
50903 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50904 cat >conftest.$ac_ext <<_ACEOF
50907 cat confdefs.h >>conftest.$ac_ext
50908 cat >>conftest.$ac_ext <<_ACEOF
50909 /* end confdefs.h. */
50913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50914 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50915 ice_cv_have_sscanf_decl=yes
50919 if test "$ice_cv_have_sscanf_decl" = yes; then
50926 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
50927 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
50928 if test "$ice_cv_have_sscanf_decl" = yes; then
50930 cat >>confdefs.h <<_ACEOF
50931 #define HAVE_SSCANF_DECL 1
50939 for ac_func in statfs statvfs
50941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50942 echo "$as_me:$LINENO: checking for $ac_func" >&5
50943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50944 if eval "test \"\${$as_ac_var+set}\" = set"; then
50945 echo $ECHO_N "(cached) $ECHO_C" >&6
50947 cat >conftest.$ac_ext <<_ACEOF
50950 cat confdefs.h >>conftest.$ac_ext
50951 cat >>conftest.$ac_ext <<_ACEOF
50952 /* end confdefs.h. */
50953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50955 #define $ac_func innocuous_$ac_func
50957 /* System header to define __stub macros and hopefully few prototypes,
50958 which can conflict with char $ac_func (); below.
50959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50960 <limits.h> exists even on freestanding compilers. */
50963 # include <limits.h>
50965 # include <assert.h>
50970 /* Override any gcc2 internal prototype to avoid an error. */
50975 /* We use char because int might match the return type of a gcc2
50976 builtin and then its argument prototype would still apply. */
50978 /* The GNU C library defines this for functions which it implements
50979 to always fail with ENOSYS. Some functions are actually named
50980 something starting with __ and the normal name is an alias. */
50981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50984 char (*f) () = $ac_func;
50993 return f != $ac_func;
50998 rm -f conftest.$ac_objext conftest$ac_exeext
50999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51000 (eval $ac_link) 2>conftest.er1
51002 grep -v '^ *+' conftest.er1 >conftest.err
51004 cat conftest.err >&5
51005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51006 (exit $ac_status); } &&
51007 { ac_try='test -z "$ac_c_werror_flag"
51008 || test ! -s conftest.err'
51009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51010 (eval $ac_try) 2>&5
51012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51013 (exit $ac_status); }; } &&
51014 { ac_try='test -s conftest$ac_exeext'
51015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51016 (eval $ac_try) 2>&5
51018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51019 (exit $ac_status); }; }; then
51020 eval "$as_ac_var=yes"
51022 echo "$as_me: failed program was:" >&5
51023 sed 's/^/| /' conftest.$ac_ext >&5
51025 eval "$as_ac_var=no"
51027 rm -f conftest.err conftest.$ac_objext \
51028 conftest$ac_exeext conftest.$ac_ext
51030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51032 if test `eval echo '${'$as_ac_var'}'` = yes; then
51033 cat >>confdefs.h <<_ACEOF
51034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51041 for ac_func in strerror
51043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51044 echo "$as_me:$LINENO: checking for $ac_func" >&5
51045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51046 if eval "test \"\${$as_ac_var+set}\" = set"; then
51047 echo $ECHO_N "(cached) $ECHO_C" >&6
51049 cat >conftest.$ac_ext <<_ACEOF
51052 cat confdefs.h >>conftest.$ac_ext
51053 cat >>conftest.$ac_ext <<_ACEOF
51054 /* end confdefs.h. */
51055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51057 #define $ac_func innocuous_$ac_func
51059 /* System header to define __stub macros and hopefully few prototypes,
51060 which can conflict with char $ac_func (); below.
51061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51062 <limits.h> exists even on freestanding compilers. */
51065 # include <limits.h>
51067 # include <assert.h>
51072 /* Override any gcc2 internal prototype to avoid an error. */
51077 /* We use char because int might match the return type of a gcc2
51078 builtin and then its argument prototype would still apply. */
51080 /* The GNU C library defines this for functions which it implements
51081 to always fail with ENOSYS. Some functions are actually named
51082 something starting with __ and the normal name is an alias. */
51083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51086 char (*f) () = $ac_func;
51095 return f != $ac_func;
51100 rm -f conftest.$ac_objext conftest$ac_exeext
51101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51102 (eval $ac_link) 2>conftest.er1
51104 grep -v '^ *+' conftest.er1 >conftest.err
51106 cat conftest.err >&5
51107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51108 (exit $ac_status); } &&
51109 { ac_try='test -z "$ac_c_werror_flag"
51110 || test ! -s conftest.err'
51111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51112 (eval $ac_try) 2>&5
51114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51115 (exit $ac_status); }; } &&
51116 { ac_try='test -s conftest$ac_exeext'
51117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51118 (eval $ac_try) 2>&5
51120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51121 (exit $ac_status); }; }; then
51122 eval "$as_ac_var=yes"
51124 echo "$as_me: failed program was:" >&5
51125 sed 's/^/| /' conftest.$ac_ext >&5
51127 eval "$as_ac_var=no"
51129 rm -f conftest.err conftest.$ac_objext \
51130 conftest$ac_exeext conftest.$ac_ext
51132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51134 if test `eval echo '${'$as_ac_var'}'` = yes; then
51135 cat >>confdefs.h <<_ACEOF
51136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51141 "$ac_func.$ac_objext" | \
51142 *" $ac_func.$ac_objext" | \
51143 "$ac_func.$ac_objext "* | \
51144 *" $ac_func.$ac_objext "* ) ;;
51145 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51153 ice_have_strerror=no
51155 for ac_func in strerror
51157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51158 echo "$as_me:$LINENO: checking for $ac_func" >&5
51159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51160 if eval "test \"\${$as_ac_var+set}\" = set"; then
51161 echo $ECHO_N "(cached) $ECHO_C" >&6
51163 cat >conftest.$ac_ext <<_ACEOF
51166 cat confdefs.h >>conftest.$ac_ext
51167 cat >>conftest.$ac_ext <<_ACEOF
51168 /* end confdefs.h. */
51169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51171 #define $ac_func innocuous_$ac_func
51173 /* System header to define __stub macros and hopefully few prototypes,
51174 which can conflict with char $ac_func (); below.
51175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51176 <limits.h> exists even on freestanding compilers. */
51179 # include <limits.h>
51181 # include <assert.h>
51186 /* Override any gcc2 internal prototype to avoid an error. */
51191 /* We use char because int might match the return type of a gcc2
51192 builtin and then its argument prototype would still apply. */
51194 /* The GNU C library defines this for functions which it implements
51195 to always fail with ENOSYS. Some functions are actually named
51196 something starting with __ and the normal name is an alias. */
51197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51200 char (*f) () = $ac_func;
51209 return f != $ac_func;
51214 rm -f conftest.$ac_objext conftest$ac_exeext
51215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51216 (eval $ac_link) 2>conftest.er1
51218 grep -v '^ *+' conftest.er1 >conftest.err
51220 cat conftest.err >&5
51221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51222 (exit $ac_status); } &&
51223 { ac_try='test -z "$ac_c_werror_flag"
51224 || test ! -s conftest.err'
51225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51226 (eval $ac_try) 2>&5
51228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51229 (exit $ac_status); }; } &&
51230 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
51236 eval "$as_ac_var=yes"
51238 echo "$as_me: failed program was:" >&5
51239 sed 's/^/| /' conftest.$ac_ext >&5
51241 eval "$as_ac_var=no"
51243 rm -f conftest.err conftest.$ac_objext \
51244 conftest$ac_exeext conftest.$ac_ext
51246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51248 if test `eval echo '${'$as_ac_var'}'` = yes; then
51249 cat >>confdefs.h <<_ACEOF
51250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51252 ice_have_strerror=yes
51256 if test "${ice_have_strerror}" = yes; then
51257 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
51258 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
51259 if test "${ice_cv_have_strerror_decl+set}" = set; then
51260 echo $ECHO_N "(cached) $ECHO_C" >&6
51263 ice_cv_have_strerror_decl=no
51264 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51265 ice_re_word='(^|[^a-zA-Z0-9_])'
51266 for header in string.h strings.h; do
51267 # Check for ordinary declaration
51268 cat >conftest.$ac_ext <<_ACEOF
51271 cat confdefs.h >>conftest.$ac_ext
51272 cat >>conftest.$ac_ext <<_ACEOF
51273 /* end confdefs.h. */
51277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51278 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
51279 ice_cv_have_strerror_decl=yes
51283 if test "$ice_cv_have_strerror_decl" = yes; then
51286 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51287 cat >conftest.$ac_ext <<_ACEOF
51290 cat confdefs.h >>conftest.$ac_ext
51291 cat >>conftest.$ac_ext <<_ACEOF
51292 /* end confdefs.h. */
51296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51297 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51298 ice_cv_have_strerror_decl=yes
51302 if test "$ice_cv_have_strerror_decl" = yes; then
51309 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
51310 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
51311 if test "$ice_cv_have_strerror_decl" = yes; then
51313 cat >>confdefs.h <<_ACEOF
51314 #define HAVE_STRERROR_DECL 1
51321 for ac_func in strftime
51323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51324 echo "$as_me:$LINENO: checking for $ac_func" >&5
51325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51326 if eval "test \"\${$as_ac_var+set}\" = set"; then
51327 echo $ECHO_N "(cached) $ECHO_C" >&6
51329 cat >conftest.$ac_ext <<_ACEOF
51332 cat confdefs.h >>conftest.$ac_ext
51333 cat >>conftest.$ac_ext <<_ACEOF
51334 /* end confdefs.h. */
51335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51337 #define $ac_func innocuous_$ac_func
51339 /* System header to define __stub macros and hopefully few prototypes,
51340 which can conflict with char $ac_func (); below.
51341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51342 <limits.h> exists even on freestanding compilers. */
51345 # include <limits.h>
51347 # include <assert.h>
51352 /* Override any gcc2 internal prototype to avoid an error. */
51357 /* We use char because int might match the return type of a gcc2
51358 builtin and then its argument prototype would still apply. */
51360 /* The GNU C library defines this for functions which it implements
51361 to always fail with ENOSYS. Some functions are actually named
51362 something starting with __ and the normal name is an alias. */
51363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51366 char (*f) () = $ac_func;
51375 return f != $ac_func;
51380 rm -f conftest.$ac_objext conftest$ac_exeext
51381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51382 (eval $ac_link) 2>conftest.er1
51384 grep -v '^ *+' conftest.er1 >conftest.err
51386 cat conftest.err >&5
51387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51388 (exit $ac_status); } &&
51389 { ac_try='test -z "$ac_c_werror_flag"
51390 || test ! -s conftest.err'
51391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51392 (eval $ac_try) 2>&5
51394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51395 (exit $ac_status); }; } &&
51396 { ac_try='test -s conftest$ac_exeext'
51397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51398 (eval $ac_try) 2>&5
51400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51401 (exit $ac_status); }; }; then
51402 eval "$as_ac_var=yes"
51404 echo "$as_me: failed program was:" >&5
51405 sed 's/^/| /' conftest.$ac_ext >&5
51407 eval "$as_ac_var=no"
51409 rm -f conftest.err conftest.$ac_objext \
51410 conftest$ac_exeext conftest.$ac_ext
51412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51414 if test `eval echo '${'$as_ac_var'}'` = yes; then
51415 cat >>confdefs.h <<_ACEOF
51416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51420 # strftime is in -lintl on SCO UNIX.
51421 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
51422 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
51423 if test "${ac_cv_lib_intl_strftime+set}" = set; then
51424 echo $ECHO_N "(cached) $ECHO_C" >&6
51426 ac_check_lib_save_LIBS=$LIBS
51427 LIBS="-lintl $LIBS"
51428 cat >conftest.$ac_ext <<_ACEOF
51431 cat confdefs.h >>conftest.$ac_ext
51432 cat >>conftest.$ac_ext <<_ACEOF
51433 /* end confdefs.h. */
51435 /* Override any gcc2 internal prototype to avoid an error. */
51439 /* We use char because int might match the return type of a gcc2
51440 builtin and then its argument prototype would still apply. */
51450 rm -f conftest.$ac_objext conftest$ac_exeext
51451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51452 (eval $ac_link) 2>conftest.er1
51454 grep -v '^ *+' conftest.er1 >conftest.err
51456 cat conftest.err >&5
51457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51458 (exit $ac_status); } &&
51459 { ac_try='test -z "$ac_c_werror_flag"
51460 || test ! -s conftest.err'
51461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51462 (eval $ac_try) 2>&5
51464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51465 (exit $ac_status); }; } &&
51466 { ac_try='test -s conftest$ac_exeext'
51467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51468 (eval $ac_try) 2>&5
51470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51471 (exit $ac_status); }; }; then
51472 ac_cv_lib_intl_strftime=yes
51474 echo "$as_me: failed program was:" >&5
51475 sed 's/^/| /' conftest.$ac_ext >&5
51477 ac_cv_lib_intl_strftime=no
51479 rm -f conftest.err conftest.$ac_objext \
51480 conftest$ac_exeext conftest.$ac_ext
51481 LIBS=$ac_check_lib_save_LIBS
51483 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
51484 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
51485 if test $ac_cv_lib_intl_strftime = yes; then
51486 cat >>confdefs.h <<\_ACEOF
51487 #define HAVE_STRFTIME 1
51490 LIBS="-lintl $LIBS"
51497 for ac_func in strftime
51499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51500 echo "$as_me:$LINENO: checking for $ac_func" >&5
51501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51502 if eval "test \"\${$as_ac_var+set}\" = set"; then
51503 echo $ECHO_N "(cached) $ECHO_C" >&6
51505 cat >conftest.$ac_ext <<_ACEOF
51508 cat confdefs.h >>conftest.$ac_ext
51509 cat >>conftest.$ac_ext <<_ACEOF
51510 /* end confdefs.h. */
51511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51513 #define $ac_func innocuous_$ac_func
51515 /* System header to define __stub macros and hopefully few prototypes,
51516 which can conflict with char $ac_func (); below.
51517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51518 <limits.h> exists even on freestanding compilers. */
51521 # include <limits.h>
51523 # include <assert.h>
51528 /* Override any gcc2 internal prototype to avoid an error. */
51533 /* We use char because int might match the return type of a gcc2
51534 builtin and then its argument prototype would still apply. */
51536 /* The GNU C library defines this for functions which it implements
51537 to always fail with ENOSYS. Some functions are actually named
51538 something starting with __ and the normal name is an alias. */
51539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51542 char (*f) () = $ac_func;
51551 return f != $ac_func;
51556 rm -f conftest.$ac_objext conftest$ac_exeext
51557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51558 (eval $ac_link) 2>conftest.er1
51560 grep -v '^ *+' conftest.er1 >conftest.err
51562 cat conftest.err >&5
51563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51564 (exit $ac_status); } &&
51565 { ac_try='test -z "$ac_c_werror_flag"
51566 || test ! -s conftest.err'
51567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51568 (eval $ac_try) 2>&5
51570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51571 (exit $ac_status); }; } &&
51572 { ac_try='test -s conftest$ac_exeext'
51573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51574 (eval $ac_try) 2>&5
51576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51577 (exit $ac_status); }; }; then
51578 eval "$as_ac_var=yes"
51580 echo "$as_me: failed program was:" >&5
51581 sed 's/^/| /' conftest.$ac_ext >&5
51583 eval "$as_ac_var=no"
51585 rm -f conftest.err conftest.$ac_objext \
51586 conftest$ac_exeext conftest.$ac_ext
51588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51590 if test `eval echo '${'$as_ac_var'}'` = yes; then
51591 cat >>confdefs.h <<_ACEOF
51592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51597 "$ac_func.$ac_objext" | \
51598 *" $ac_func.$ac_objext" | \
51599 "$ac_func.$ac_objext "* | \
51600 *" $ac_func.$ac_objext "* ) ;;
51601 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51609 ice_have_strftime=no
51611 for ac_func in strftime
51613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51614 echo "$as_me:$LINENO: checking for $ac_func" >&5
51615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51616 if eval "test \"\${$as_ac_var+set}\" = set"; then
51617 echo $ECHO_N "(cached) $ECHO_C" >&6
51619 cat >conftest.$ac_ext <<_ACEOF
51622 cat confdefs.h >>conftest.$ac_ext
51623 cat >>conftest.$ac_ext <<_ACEOF
51624 /* end confdefs.h. */
51625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51627 #define $ac_func innocuous_$ac_func
51629 /* System header to define __stub macros and hopefully few prototypes,
51630 which can conflict with char $ac_func (); below.
51631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51632 <limits.h> exists even on freestanding compilers. */
51635 # include <limits.h>
51637 # include <assert.h>
51642 /* Override any gcc2 internal prototype to avoid an error. */
51647 /* We use char because int might match the return type of a gcc2
51648 builtin and then its argument prototype would still apply. */
51650 /* The GNU C library defines this for functions which it implements
51651 to always fail with ENOSYS. Some functions are actually named
51652 something starting with __ and the normal name is an alias. */
51653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51656 char (*f) () = $ac_func;
51665 return f != $ac_func;
51670 rm -f conftest.$ac_objext conftest$ac_exeext
51671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51672 (eval $ac_link) 2>conftest.er1
51674 grep -v '^ *+' conftest.er1 >conftest.err
51676 cat conftest.err >&5
51677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51678 (exit $ac_status); } &&
51679 { ac_try='test -z "$ac_c_werror_flag"
51680 || test ! -s conftest.err'
51681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51682 (eval $ac_try) 2>&5
51684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51685 (exit $ac_status); }; } &&
51686 { ac_try='test -s conftest$ac_exeext'
51687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51688 (eval $ac_try) 2>&5
51690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51691 (exit $ac_status); }; }; then
51692 eval "$as_ac_var=yes"
51694 echo "$as_me: failed program was:" >&5
51695 sed 's/^/| /' conftest.$ac_ext >&5
51697 eval "$as_ac_var=no"
51699 rm -f conftest.err conftest.$ac_objext \
51700 conftest$ac_exeext conftest.$ac_ext
51702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51704 if test `eval echo '${'$as_ac_var'}'` = yes; then
51705 cat >>confdefs.h <<_ACEOF
51706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51708 ice_have_strftime=yes
51712 if test "${ice_have_strftime}" = yes; then
51713 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
51714 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
51715 if test "${ice_cv_have_strftime_decl+set}" = set; then
51716 echo $ECHO_N "(cached) $ECHO_C" >&6
51719 ice_cv_have_strftime_decl=no
51720 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51721 ice_re_word='(^|[^a-zA-Z0-9_])'
51722 for header in time.h sys/time.h; do
51723 # Check for ordinary declaration
51724 cat >conftest.$ac_ext <<_ACEOF
51727 cat confdefs.h >>conftest.$ac_ext
51728 cat >>conftest.$ac_ext <<_ACEOF
51729 /* end confdefs.h. */
51733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51734 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
51735 ice_cv_have_strftime_decl=yes
51739 if test "$ice_cv_have_strftime_decl" = yes; then
51742 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51743 cat >conftest.$ac_ext <<_ACEOF
51746 cat confdefs.h >>conftest.$ac_ext
51747 cat >>conftest.$ac_ext <<_ACEOF
51748 /* end confdefs.h. */
51752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51753 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51754 ice_cv_have_strftime_decl=yes
51758 if test "$ice_cv_have_strftime_decl" = yes; then
51765 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
51766 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
51767 if test "$ice_cv_have_strftime_decl" = yes; then
51769 cat >>confdefs.h <<_ACEOF
51770 #define HAVE_STRFTIME_DECL 1
51777 for ac_func in strncasecmp
51779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51780 echo "$as_me:$LINENO: checking for $ac_func" >&5
51781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51782 if eval "test \"\${$as_ac_var+set}\" = set"; then
51783 echo $ECHO_N "(cached) $ECHO_C" >&6
51785 cat >conftest.$ac_ext <<_ACEOF
51788 cat confdefs.h >>conftest.$ac_ext
51789 cat >>conftest.$ac_ext <<_ACEOF
51790 /* end confdefs.h. */
51791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51793 #define $ac_func innocuous_$ac_func
51795 /* System header to define __stub macros and hopefully few prototypes,
51796 which can conflict with char $ac_func (); below.
51797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51798 <limits.h> exists even on freestanding compilers. */
51801 # include <limits.h>
51803 # include <assert.h>
51808 /* Override any gcc2 internal prototype to avoid an error. */
51813 /* We use char because int might match the return type of a gcc2
51814 builtin and then its argument prototype would still apply. */
51816 /* The GNU C library defines this for functions which it implements
51817 to always fail with ENOSYS. Some functions are actually named
51818 something starting with __ and the normal name is an alias. */
51819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51822 char (*f) () = $ac_func;
51831 return f != $ac_func;
51836 rm -f conftest.$ac_objext conftest$ac_exeext
51837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51838 (eval $ac_link) 2>conftest.er1
51840 grep -v '^ *+' conftest.er1 >conftest.err
51842 cat conftest.err >&5
51843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51844 (exit $ac_status); } &&
51845 { ac_try='test -z "$ac_c_werror_flag"
51846 || test ! -s conftest.err'
51847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51848 (eval $ac_try) 2>&5
51850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51851 (exit $ac_status); }; } &&
51852 { ac_try='test -s conftest$ac_exeext'
51853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51854 (eval $ac_try) 2>&5
51856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51857 (exit $ac_status); }; }; then
51858 eval "$as_ac_var=yes"
51860 echo "$as_me: failed program was:" >&5
51861 sed 's/^/| /' conftest.$ac_ext >&5
51863 eval "$as_ac_var=no"
51865 rm -f conftest.err conftest.$ac_objext \
51866 conftest$ac_exeext conftest.$ac_ext
51868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51870 if test `eval echo '${'$as_ac_var'}'` = yes; then
51871 cat >>confdefs.h <<_ACEOF
51872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51877 "$ac_func.$ac_objext" | \
51878 *" $ac_func.$ac_objext" | \
51879 "$ac_func.$ac_objext "* | \
51880 *" $ac_func.$ac_objext "* ) ;;
51881 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51889 ice_have_strncasecmp=no
51891 for ac_func in strncasecmp
51893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51894 echo "$as_me:$LINENO: checking for $ac_func" >&5
51895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51896 if eval "test \"\${$as_ac_var+set}\" = set"; then
51897 echo $ECHO_N "(cached) $ECHO_C" >&6
51899 cat >conftest.$ac_ext <<_ACEOF
51902 cat confdefs.h >>conftest.$ac_ext
51903 cat >>conftest.$ac_ext <<_ACEOF
51904 /* end confdefs.h. */
51905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51907 #define $ac_func innocuous_$ac_func
51909 /* System header to define __stub macros and hopefully few prototypes,
51910 which can conflict with char $ac_func (); below.
51911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51912 <limits.h> exists even on freestanding compilers. */
51915 # include <limits.h>
51917 # include <assert.h>
51922 /* Override any gcc2 internal prototype to avoid an error. */
51927 /* We use char because int might match the return type of a gcc2
51928 builtin and then its argument prototype would still apply. */
51930 /* The GNU C library defines this for functions which it implements
51931 to always fail with ENOSYS. Some functions are actually named
51932 something starting with __ and the normal name is an alias. */
51933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51936 char (*f) () = $ac_func;
51945 return f != $ac_func;
51950 rm -f conftest.$ac_objext conftest$ac_exeext
51951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51952 (eval $ac_link) 2>conftest.er1
51954 grep -v '^ *+' conftest.er1 >conftest.err
51956 cat conftest.err >&5
51957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51958 (exit $ac_status); } &&
51959 { ac_try='test -z "$ac_c_werror_flag"
51960 || test ! -s conftest.err'
51961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51962 (eval $ac_try) 2>&5
51964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51965 (exit $ac_status); }; } &&
51966 { ac_try='test -s conftest$ac_exeext'
51967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51968 (eval $ac_try) 2>&5
51970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51971 (exit $ac_status); }; }; then
51972 eval "$as_ac_var=yes"
51974 echo "$as_me: failed program was:" >&5
51975 sed 's/^/| /' conftest.$ac_ext >&5
51977 eval "$as_ac_var=no"
51979 rm -f conftest.err conftest.$ac_objext \
51980 conftest$ac_exeext conftest.$ac_ext
51982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51984 if test `eval echo '${'$as_ac_var'}'` = yes; then
51985 cat >>confdefs.h <<_ACEOF
51986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51988 ice_have_strncasecmp=yes
51992 if test "${ice_have_strncasecmp}" = yes; then
51993 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
51994 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
51995 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
51996 echo $ECHO_N "(cached) $ECHO_C" >&6
51999 ice_cv_have_strncasecmp_decl=no
52000 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52001 ice_re_word='(^|[^a-zA-Z0-9_])'
52002 for header in string.h strings.h; do
52003 # Check for ordinary declaration
52004 cat >conftest.$ac_ext <<_ACEOF
52007 cat confdefs.h >>conftest.$ac_ext
52008 cat >>conftest.$ac_ext <<_ACEOF
52009 /* end confdefs.h. */
52013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52014 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
52015 ice_cv_have_strncasecmp_decl=yes
52019 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52022 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52023 cat >conftest.$ac_ext <<_ACEOF
52026 cat confdefs.h >>conftest.$ac_ext
52027 cat >>conftest.$ac_ext <<_ACEOF
52028 /* end confdefs.h. */
52032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52033 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52034 ice_cv_have_strncasecmp_decl=yes
52038 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52045 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
52046 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
52047 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52049 cat >>confdefs.h <<_ACEOF
52050 #define HAVE_STRNCASECMP_DECL 1
52057 for ac_func in strstr
52059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52060 echo "$as_me:$LINENO: checking for $ac_func" >&5
52061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52062 if eval "test \"\${$as_ac_var+set}\" = set"; then
52063 echo $ECHO_N "(cached) $ECHO_C" >&6
52065 cat >conftest.$ac_ext <<_ACEOF
52068 cat confdefs.h >>conftest.$ac_ext
52069 cat >>conftest.$ac_ext <<_ACEOF
52070 /* end confdefs.h. */
52071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52073 #define $ac_func innocuous_$ac_func
52075 /* System header to define __stub macros and hopefully few prototypes,
52076 which can conflict with char $ac_func (); below.
52077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52078 <limits.h> exists even on freestanding compilers. */
52081 # include <limits.h>
52083 # include <assert.h>
52088 /* Override any gcc2 internal prototype to avoid an error. */
52093 /* We use char because int might match the return type of a gcc2
52094 builtin and then its argument prototype would still apply. */
52096 /* The GNU C library defines this for functions which it implements
52097 to always fail with ENOSYS. Some functions are actually named
52098 something starting with __ and the normal name is an alias. */
52099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52102 char (*f) () = $ac_func;
52111 return f != $ac_func;
52116 rm -f conftest.$ac_objext conftest$ac_exeext
52117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52118 (eval $ac_link) 2>conftest.er1
52120 grep -v '^ *+' conftest.er1 >conftest.err
52122 cat conftest.err >&5
52123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52124 (exit $ac_status); } &&
52125 { ac_try='test -z "$ac_c_werror_flag"
52126 || test ! -s conftest.err'
52127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52128 (eval $ac_try) 2>&5
52130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52131 (exit $ac_status); }; } &&
52132 { ac_try='test -s conftest$ac_exeext'
52133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52134 (eval $ac_try) 2>&5
52136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52137 (exit $ac_status); }; }; then
52138 eval "$as_ac_var=yes"
52140 echo "$as_me: failed program was:" >&5
52141 sed 's/^/| /' conftest.$ac_ext >&5
52143 eval "$as_ac_var=no"
52145 rm -f conftest.err conftest.$ac_objext \
52146 conftest$ac_exeext conftest.$ac_ext
52148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52150 if test `eval echo '${'$as_ac_var'}'` = yes; then
52151 cat >>confdefs.h <<_ACEOF
52152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52157 "$ac_func.$ac_objext" | \
52158 *" $ac_func.$ac_objext" | \
52159 "$ac_func.$ac_objext "* | \
52160 *" $ac_func.$ac_objext "* ) ;;
52161 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
52171 for ac_func in syslog
52173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52174 echo "$as_me:$LINENO: checking for $ac_func" >&5
52175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52176 if eval "test \"\${$as_ac_var+set}\" = set"; then
52177 echo $ECHO_N "(cached) $ECHO_C" >&6
52179 cat >conftest.$ac_ext <<_ACEOF
52182 cat confdefs.h >>conftest.$ac_ext
52183 cat >>conftest.$ac_ext <<_ACEOF
52184 /* end confdefs.h. */
52185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52187 #define $ac_func innocuous_$ac_func
52189 /* System header to define __stub macros and hopefully few prototypes,
52190 which can conflict with char $ac_func (); below.
52191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52192 <limits.h> exists even on freestanding compilers. */
52195 # include <limits.h>
52197 # include <assert.h>
52202 /* Override any gcc2 internal prototype to avoid an error. */
52207 /* We use char because int might match the return type of a gcc2
52208 builtin and then its argument prototype would still apply. */
52210 /* The GNU C library defines this for functions which it implements
52211 to always fail with ENOSYS. Some functions are actually named
52212 something starting with __ and the normal name is an alias. */
52213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52216 char (*f) () = $ac_func;
52225 return f != $ac_func;
52230 rm -f conftest.$ac_objext conftest$ac_exeext
52231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52232 (eval $ac_link) 2>conftest.er1
52234 grep -v '^ *+' conftest.er1 >conftest.err
52236 cat conftest.err >&5
52237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238 (exit $ac_status); } &&
52239 { ac_try='test -z "$ac_c_werror_flag"
52240 || test ! -s conftest.err'
52241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52242 (eval $ac_try) 2>&5
52244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52245 (exit $ac_status); }; } &&
52246 { ac_try='test -s conftest$ac_exeext'
52247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52248 (eval $ac_try) 2>&5
52250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52251 (exit $ac_status); }; }; then
52252 eval "$as_ac_var=yes"
52254 echo "$as_me: failed program was:" >&5
52255 sed 's/^/| /' conftest.$ac_ext >&5
52257 eval "$as_ac_var=no"
52259 rm -f conftest.err conftest.$ac_objext \
52260 conftest$ac_exeext conftest.$ac_ext
52262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52264 if test `eval echo '${'$as_ac_var'}'` = yes; then
52265 cat >>confdefs.h <<_ACEOF
52266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52268 ice_have_syslog=yes
52272 if test "${ice_have_syslog}" = yes; then
52273 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
52274 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
52275 if test "${ice_cv_have_syslog_decl+set}" = set; then
52276 echo $ECHO_N "(cached) $ECHO_C" >&6
52279 ice_cv_have_syslog_decl=no
52280 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52281 ice_re_word='(^|[^a-zA-Z0-9_])'
52282 for header in syslog.h; do
52283 # Check for ordinary declaration
52284 cat >conftest.$ac_ext <<_ACEOF
52287 cat confdefs.h >>conftest.$ac_ext
52288 cat >>conftest.$ac_ext <<_ACEOF
52289 /* end confdefs.h. */
52293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52294 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
52295 ice_cv_have_syslog_decl=yes
52299 if test "$ice_cv_have_syslog_decl" = yes; then
52302 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52303 cat >conftest.$ac_ext <<_ACEOF
52306 cat confdefs.h >>conftest.$ac_ext
52307 cat >>conftest.$ac_ext <<_ACEOF
52308 /* end confdefs.h. */
52312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52313 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52314 ice_cv_have_syslog_decl=yes
52318 if test "$ice_cv_have_syslog_decl" = yes; then
52325 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
52326 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
52327 if test "$ice_cv_have_syslog_decl" = yes; then
52329 cat >>confdefs.h <<_ACEOF
52330 #define HAVE_SYSLOG_DECL 1
52339 for ac_func in system
52341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52342 echo "$as_me:$LINENO: checking for $ac_func" >&5
52343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52344 if eval "test \"\${$as_ac_var+set}\" = set"; then
52345 echo $ECHO_N "(cached) $ECHO_C" >&6
52347 cat >conftest.$ac_ext <<_ACEOF
52350 cat confdefs.h >>conftest.$ac_ext
52351 cat >>conftest.$ac_ext <<_ACEOF
52352 /* end confdefs.h. */
52353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52355 #define $ac_func innocuous_$ac_func
52357 /* System header to define __stub macros and hopefully few prototypes,
52358 which can conflict with char $ac_func (); below.
52359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52360 <limits.h> exists even on freestanding compilers. */
52363 # include <limits.h>
52365 # include <assert.h>
52370 /* Override any gcc2 internal prototype to avoid an error. */
52375 /* We use char because int might match the return type of a gcc2
52376 builtin and then its argument prototype would still apply. */
52378 /* The GNU C library defines this for functions which it implements
52379 to always fail with ENOSYS. Some functions are actually named
52380 something starting with __ and the normal name is an alias. */
52381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52384 char (*f) () = $ac_func;
52393 return f != $ac_func;
52398 rm -f conftest.$ac_objext conftest$ac_exeext
52399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52400 (eval $ac_link) 2>conftest.er1
52402 grep -v '^ *+' conftest.er1 >conftest.err
52404 cat conftest.err >&5
52405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52406 (exit $ac_status); } &&
52407 { ac_try='test -z "$ac_c_werror_flag"
52408 || test ! -s conftest.err'
52409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52410 (eval $ac_try) 2>&5
52412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52413 (exit $ac_status); }; } &&
52414 { ac_try='test -s conftest$ac_exeext'
52415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52416 (eval $ac_try) 2>&5
52418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52419 (exit $ac_status); }; }; then
52420 eval "$as_ac_var=yes"
52422 echo "$as_me: failed program was:" >&5
52423 sed 's/^/| /' conftest.$ac_ext >&5
52425 eval "$as_ac_var=no"
52427 rm -f conftest.err conftest.$ac_objext \
52428 conftest$ac_exeext conftest.$ac_ext
52430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52432 if test `eval echo '${'$as_ac_var'}'` = yes; then
52433 cat >>confdefs.h <<_ACEOF
52434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52436 ice_have_system=yes
52440 if test "${ice_have_system}" = yes; then
52441 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
52442 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
52443 if test "${ice_cv_have_system_decl+set}" = set; then
52444 echo $ECHO_N "(cached) $ECHO_C" >&6
52447 ice_cv_have_system_decl=no
52448 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52449 ice_re_word='(^|[^a-zA-Z0-9_])'
52450 for header in stdlib.h; do
52451 # Check for ordinary declaration
52452 cat >conftest.$ac_ext <<_ACEOF
52455 cat confdefs.h >>conftest.$ac_ext
52456 cat >>conftest.$ac_ext <<_ACEOF
52457 /* end confdefs.h. */
52461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52462 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
52463 ice_cv_have_system_decl=yes
52467 if test "$ice_cv_have_system_decl" = yes; then
52470 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52471 cat >conftest.$ac_ext <<_ACEOF
52474 cat confdefs.h >>conftest.$ac_ext
52475 cat >>conftest.$ac_ext <<_ACEOF
52476 /* end confdefs.h. */
52480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52481 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52482 ice_cv_have_system_decl=yes
52486 if test "$ice_cv_have_system_decl" = yes; then
52493 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
52494 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
52495 if test "$ice_cv_have_system_decl" = yes; then
52497 cat >>confdefs.h <<_ACEOF
52498 #define HAVE_SYSTEM_DECL 1
52507 for ac_func in time
52509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52510 echo "$as_me:$LINENO: checking for $ac_func" >&5
52511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52512 if eval "test \"\${$as_ac_var+set}\" = set"; then
52513 echo $ECHO_N "(cached) $ECHO_C" >&6
52515 cat >conftest.$ac_ext <<_ACEOF
52518 cat confdefs.h >>conftest.$ac_ext
52519 cat >>conftest.$ac_ext <<_ACEOF
52520 /* end confdefs.h. */
52521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52523 #define $ac_func innocuous_$ac_func
52525 /* System header to define __stub macros and hopefully few prototypes,
52526 which can conflict with char $ac_func (); below.
52527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52528 <limits.h> exists even on freestanding compilers. */
52531 # include <limits.h>
52533 # include <assert.h>
52538 /* Override any gcc2 internal prototype to avoid an error. */
52543 /* We use char because int might match the return type of a gcc2
52544 builtin and then its argument prototype would still apply. */
52546 /* The GNU C library defines this for functions which it implements
52547 to always fail with ENOSYS. Some functions are actually named
52548 something starting with __ and the normal name is an alias. */
52549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52552 char (*f) () = $ac_func;
52561 return f != $ac_func;
52566 rm -f conftest.$ac_objext conftest$ac_exeext
52567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52568 (eval $ac_link) 2>conftest.er1
52570 grep -v '^ *+' conftest.er1 >conftest.err
52572 cat conftest.err >&5
52573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52574 (exit $ac_status); } &&
52575 { ac_try='test -z "$ac_c_werror_flag"
52576 || test ! -s conftest.err'
52577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52578 (eval $ac_try) 2>&5
52580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52581 (exit $ac_status); }; } &&
52582 { ac_try='test -s conftest$ac_exeext'
52583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52584 (eval $ac_try) 2>&5
52586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52587 (exit $ac_status); }; }; then
52588 eval "$as_ac_var=yes"
52590 echo "$as_me: failed program was:" >&5
52591 sed 's/^/| /' conftest.$ac_ext >&5
52593 eval "$as_ac_var=no"
52595 rm -f conftest.err conftest.$ac_objext \
52596 conftest$ac_exeext conftest.$ac_ext
52598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52600 if test `eval echo '${'$as_ac_var'}'` = yes; then
52601 cat >>confdefs.h <<_ACEOF
52602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52608 if test "${ice_have_time}" = yes; then
52609 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
52610 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
52611 if test "${ice_cv_have_time_decl+set}" = set; then
52612 echo $ECHO_N "(cached) $ECHO_C" >&6
52615 ice_cv_have_time_decl=no
52616 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52617 ice_re_word='(^|[^a-zA-Z0-9_])'
52618 for header in time.h sys/time.h; do
52619 # Check for ordinary declaration
52620 cat >conftest.$ac_ext <<_ACEOF
52623 cat confdefs.h >>conftest.$ac_ext
52624 cat >>conftest.$ac_ext <<_ACEOF
52625 /* end confdefs.h. */
52629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52630 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
52631 ice_cv_have_time_decl=yes
52635 if test "$ice_cv_have_time_decl" = yes; then
52638 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52639 cat >conftest.$ac_ext <<_ACEOF
52642 cat confdefs.h >>conftest.$ac_ext
52643 cat >>conftest.$ac_ext <<_ACEOF
52644 /* end confdefs.h. */
52648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52649 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52650 ice_cv_have_time_decl=yes
52654 if test "$ice_cv_have_time_decl" = yes; then
52661 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
52662 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
52663 if test "$ice_cv_have_time_decl" = yes; then
52665 cat >>confdefs.h <<_ACEOF
52666 #define HAVE_TIME_DECL 1
52673 ice_have_tolower=no
52675 for ac_func in tolower
52677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52678 echo "$as_me:$LINENO: checking for $ac_func" >&5
52679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52680 if eval "test \"\${$as_ac_var+set}\" = set"; then
52681 echo $ECHO_N "(cached) $ECHO_C" >&6
52683 cat >conftest.$ac_ext <<_ACEOF
52686 cat confdefs.h >>conftest.$ac_ext
52687 cat >>conftest.$ac_ext <<_ACEOF
52688 /* end confdefs.h. */
52689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52691 #define $ac_func innocuous_$ac_func
52693 /* System header to define __stub macros and hopefully few prototypes,
52694 which can conflict with char $ac_func (); below.
52695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52696 <limits.h> exists even on freestanding compilers. */
52699 # include <limits.h>
52701 # include <assert.h>
52706 /* Override any gcc2 internal prototype to avoid an error. */
52711 /* We use char because int might match the return type of a gcc2
52712 builtin and then its argument prototype would still apply. */
52714 /* The GNU C library defines this for functions which it implements
52715 to always fail with ENOSYS. Some functions are actually named
52716 something starting with __ and the normal name is an alias. */
52717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52720 char (*f) () = $ac_func;
52729 return f != $ac_func;
52734 rm -f conftest.$ac_objext conftest$ac_exeext
52735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52736 (eval $ac_link) 2>conftest.er1
52738 grep -v '^ *+' conftest.er1 >conftest.err
52740 cat conftest.err >&5
52741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52742 (exit $ac_status); } &&
52743 { ac_try='test -z "$ac_c_werror_flag"
52744 || test ! -s conftest.err'
52745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52746 (eval $ac_try) 2>&5
52748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52749 (exit $ac_status); }; } &&
52750 { ac_try='test -s conftest$ac_exeext'
52751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52752 (eval $ac_try) 2>&5
52754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52755 (exit $ac_status); }; }; then
52756 eval "$as_ac_var=yes"
52758 echo "$as_me: failed program was:" >&5
52759 sed 's/^/| /' conftest.$ac_ext >&5
52761 eval "$as_ac_var=no"
52763 rm -f conftest.err conftest.$ac_objext \
52764 conftest$ac_exeext conftest.$ac_ext
52766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52768 if test `eval echo '${'$as_ac_var'}'` = yes; then
52769 cat >>confdefs.h <<_ACEOF
52770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52772 ice_have_tolower=yes
52776 if test "${ice_have_tolower}" = yes; then
52777 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
52778 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
52779 if test "${ice_cv_have_tolower_decl+set}" = set; then
52780 echo $ECHO_N "(cached) $ECHO_C" >&6
52783 ice_cv_have_tolower_decl=no
52784 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52785 ice_re_word='(^|[^a-zA-Z0-9_])'
52786 for header in ctype.h; do
52787 # Check for ordinary declaration
52788 cat >conftest.$ac_ext <<_ACEOF
52791 cat confdefs.h >>conftest.$ac_ext
52792 cat >>conftest.$ac_ext <<_ACEOF
52793 /* end confdefs.h. */
52797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52798 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
52799 ice_cv_have_tolower_decl=yes
52803 if test "$ice_cv_have_tolower_decl" = yes; then
52806 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52807 cat >conftest.$ac_ext <<_ACEOF
52810 cat confdefs.h >>conftest.$ac_ext
52811 cat >>conftest.$ac_ext <<_ACEOF
52812 /* end confdefs.h. */
52816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52817 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52818 ice_cv_have_tolower_decl=yes
52822 if test "$ice_cv_have_tolower_decl" = yes; then
52829 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
52830 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
52831 if test "$ice_cv_have_tolower_decl" = yes; then
52833 cat >>confdefs.h <<_ACEOF
52834 #define HAVE_TOLOWER_DECL 1
52841 ice_have_toupper=no
52843 for ac_func in toupper
52845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52846 echo "$as_me:$LINENO: checking for $ac_func" >&5
52847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52848 if eval "test \"\${$as_ac_var+set}\" = set"; then
52849 echo $ECHO_N "(cached) $ECHO_C" >&6
52851 cat >conftest.$ac_ext <<_ACEOF
52854 cat confdefs.h >>conftest.$ac_ext
52855 cat >>conftest.$ac_ext <<_ACEOF
52856 /* end confdefs.h. */
52857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52859 #define $ac_func innocuous_$ac_func
52861 /* System header to define __stub macros and hopefully few prototypes,
52862 which can conflict with char $ac_func (); below.
52863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52864 <limits.h> exists even on freestanding compilers. */
52867 # include <limits.h>
52869 # include <assert.h>
52874 /* Override any gcc2 internal prototype to avoid an error. */
52879 /* We use char because int might match the return type of a gcc2
52880 builtin and then its argument prototype would still apply. */
52882 /* The GNU C library defines this for functions which it implements
52883 to always fail with ENOSYS. Some functions are actually named
52884 something starting with __ and the normal name is an alias. */
52885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52888 char (*f) () = $ac_func;
52897 return f != $ac_func;
52902 rm -f conftest.$ac_objext conftest$ac_exeext
52903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52904 (eval $ac_link) 2>conftest.er1
52906 grep -v '^ *+' conftest.er1 >conftest.err
52908 cat conftest.err >&5
52909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52910 (exit $ac_status); } &&
52911 { ac_try='test -z "$ac_c_werror_flag"
52912 || test ! -s conftest.err'
52913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52914 (eval $ac_try) 2>&5
52916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52917 (exit $ac_status); }; } &&
52918 { ac_try='test -s conftest$ac_exeext'
52919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52920 (eval $ac_try) 2>&5
52922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52923 (exit $ac_status); }; }; then
52924 eval "$as_ac_var=yes"
52926 echo "$as_me: failed program was:" >&5
52927 sed 's/^/| /' conftest.$ac_ext >&5
52929 eval "$as_ac_var=no"
52931 rm -f conftest.err conftest.$ac_objext \
52932 conftest$ac_exeext conftest.$ac_ext
52934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52936 if test `eval echo '${'$as_ac_var'}'` = yes; then
52937 cat >>confdefs.h <<_ACEOF
52938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52940 ice_have_toupper=yes
52944 if test "${ice_have_toupper}" = yes; then
52945 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
52946 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
52947 if test "${ice_cv_have_toupper_decl+set}" = set; then
52948 echo $ECHO_N "(cached) $ECHO_C" >&6
52951 ice_cv_have_toupper_decl=no
52952 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52953 ice_re_word='(^|[^a-zA-Z0-9_])'
52954 for header in ctype.h; do
52955 # Check for ordinary declaration
52956 cat >conftest.$ac_ext <<_ACEOF
52959 cat confdefs.h >>conftest.$ac_ext
52960 cat >>conftest.$ac_ext <<_ACEOF
52961 /* end confdefs.h. */
52965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52966 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
52967 ice_cv_have_toupper_decl=yes
52971 if test "$ice_cv_have_toupper_decl" = yes; then
52974 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52975 cat >conftest.$ac_ext <<_ACEOF
52978 cat confdefs.h >>conftest.$ac_ext
52979 cat >>conftest.$ac_ext <<_ACEOF
52980 /* end confdefs.h. */
52984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52985 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52986 ice_cv_have_toupper_decl=yes
52990 if test "$ice_cv_have_toupper_decl" = yes; then
52997 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
52998 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
52999 if test "$ice_cv_have_toupper_decl" = yes; then
53001 cat >>confdefs.h <<_ACEOF
53002 #define HAVE_TOUPPER_DECL 1
53011 for ac_func in ungetc
53013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53014 echo "$as_me:$LINENO: checking for $ac_func" >&5
53015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53016 if eval "test \"\${$as_ac_var+set}\" = set"; then
53017 echo $ECHO_N "(cached) $ECHO_C" >&6
53019 cat >conftest.$ac_ext <<_ACEOF
53022 cat confdefs.h >>conftest.$ac_ext
53023 cat >>conftest.$ac_ext <<_ACEOF
53024 /* end confdefs.h. */
53025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53027 #define $ac_func innocuous_$ac_func
53029 /* System header to define __stub macros and hopefully few prototypes,
53030 which can conflict with char $ac_func (); below.
53031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53032 <limits.h> exists even on freestanding compilers. */
53035 # include <limits.h>
53037 # include <assert.h>
53042 /* Override any gcc2 internal prototype to avoid an error. */
53047 /* We use char because int might match the return type of a gcc2
53048 builtin and then its argument prototype would still apply. */
53050 /* The GNU C library defines this for functions which it implements
53051 to always fail with ENOSYS. Some functions are actually named
53052 something starting with __ and the normal name is an alias. */
53053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53056 char (*f) () = $ac_func;
53065 return f != $ac_func;
53070 rm -f conftest.$ac_objext conftest$ac_exeext
53071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53072 (eval $ac_link) 2>conftest.er1
53074 grep -v '^ *+' conftest.er1 >conftest.err
53076 cat conftest.err >&5
53077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53078 (exit $ac_status); } &&
53079 { ac_try='test -z "$ac_c_werror_flag"
53080 || test ! -s conftest.err'
53081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53082 (eval $ac_try) 2>&5
53084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53085 (exit $ac_status); }; } &&
53086 { ac_try='test -s conftest$ac_exeext'
53087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53088 (eval $ac_try) 2>&5
53090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53091 (exit $ac_status); }; }; then
53092 eval "$as_ac_var=yes"
53094 echo "$as_me: failed program was:" >&5
53095 sed 's/^/| /' conftest.$ac_ext >&5
53097 eval "$as_ac_var=no"
53099 rm -f conftest.err conftest.$ac_objext \
53100 conftest$ac_exeext conftest.$ac_ext
53102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53104 if test `eval echo '${'$as_ac_var'}'` = yes; then
53105 cat >>confdefs.h <<_ACEOF
53106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53108 ice_have_ungetc=yes
53112 if test "${ice_have_ungetc}" = yes; then
53113 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
53114 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
53115 if test "${ice_cv_have_ungetc_decl+set}" = set; then
53116 echo $ECHO_N "(cached) $ECHO_C" >&6
53119 ice_cv_have_ungetc_decl=no
53120 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53121 ice_re_word='(^|[^a-zA-Z0-9_])'
53122 for header in stdio.h; do
53123 # Check for ordinary declaration
53124 cat >conftest.$ac_ext <<_ACEOF
53127 cat confdefs.h >>conftest.$ac_ext
53128 cat >>conftest.$ac_ext <<_ACEOF
53129 /* end confdefs.h. */
53133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53134 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
53135 ice_cv_have_ungetc_decl=yes
53139 if test "$ice_cv_have_ungetc_decl" = yes; then
53142 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53143 cat >conftest.$ac_ext <<_ACEOF
53146 cat confdefs.h >>conftest.$ac_ext
53147 cat >>conftest.$ac_ext <<_ACEOF
53148 /* end confdefs.h. */
53152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53153 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53154 ice_cv_have_ungetc_decl=yes
53158 if test "$ice_cv_have_ungetc_decl" = yes; then
53165 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
53166 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
53167 if test "$ice_cv_have_ungetc_decl" = yes; then
53169 cat >>confdefs.h <<_ACEOF
53170 #define HAVE_UNGETC_DECL 1
53177 for ac_func in vprintf
53179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53180 echo "$as_me:$LINENO: checking for $ac_func" >&5
53181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53182 if eval "test \"\${$as_ac_var+set}\" = set"; then
53183 echo $ECHO_N "(cached) $ECHO_C" >&6
53185 cat >conftest.$ac_ext <<_ACEOF
53188 cat confdefs.h >>conftest.$ac_ext
53189 cat >>conftest.$ac_ext <<_ACEOF
53190 /* end confdefs.h. */
53191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53193 #define $ac_func innocuous_$ac_func
53195 /* System header to define __stub macros and hopefully few prototypes,
53196 which can conflict with char $ac_func (); below.
53197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53198 <limits.h> exists even on freestanding compilers. */
53201 # include <limits.h>
53203 # include <assert.h>
53208 /* Override any gcc2 internal prototype to avoid an error. */
53213 /* We use char because int might match the return type of a gcc2
53214 builtin and then its argument prototype would still apply. */
53216 /* The GNU C library defines this for functions which it implements
53217 to always fail with ENOSYS. Some functions are actually named
53218 something starting with __ and the normal name is an alias. */
53219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53222 char (*f) () = $ac_func;
53231 return f != $ac_func;
53236 rm -f conftest.$ac_objext conftest$ac_exeext
53237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53238 (eval $ac_link) 2>conftest.er1
53240 grep -v '^ *+' conftest.er1 >conftest.err
53242 cat conftest.err >&5
53243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53244 (exit $ac_status); } &&
53245 { ac_try='test -z "$ac_c_werror_flag"
53246 || test ! -s conftest.err'
53247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53248 (eval $ac_try) 2>&5
53250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53251 (exit $ac_status); }; } &&
53252 { ac_try='test -s conftest$ac_exeext'
53253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53254 (eval $ac_try) 2>&5
53256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53257 (exit $ac_status); }; }; then
53258 eval "$as_ac_var=yes"
53260 echo "$as_me: failed program was:" >&5
53261 sed 's/^/| /' conftest.$ac_ext >&5
53263 eval "$as_ac_var=no"
53265 rm -f conftest.err conftest.$ac_objext \
53266 conftest$ac_exeext conftest.$ac_ext
53268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53270 if test `eval echo '${'$as_ac_var'}'` = yes; then
53271 cat >>confdefs.h <<_ACEOF
53272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53275 echo "$as_me:$LINENO: checking for _doprnt" >&5
53276 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
53277 if test "${ac_cv_func__doprnt+set}" = set; then
53278 echo $ECHO_N "(cached) $ECHO_C" >&6
53280 cat >conftest.$ac_ext <<_ACEOF
53283 cat confdefs.h >>conftest.$ac_ext
53284 cat >>conftest.$ac_ext <<_ACEOF
53285 /* end confdefs.h. */
53286 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
53287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53288 #define _doprnt innocuous__doprnt
53290 /* System header to define __stub macros and hopefully few prototypes,
53291 which can conflict with char _doprnt (); below.
53292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53293 <limits.h> exists even on freestanding compilers. */
53296 # include <limits.h>
53298 # include <assert.h>
53303 /* Override any gcc2 internal prototype to avoid an error. */
53308 /* We use char because int might match the return type of a gcc2
53309 builtin and then its argument prototype would still apply. */
53311 /* The GNU C library defines this for functions which it implements
53312 to always fail with ENOSYS. Some functions are actually named
53313 something starting with __ and the normal name is an alias. */
53314 #if defined (__stub__doprnt) || defined (__stub____doprnt)
53317 char (*f) () = _doprnt;
53326 return f != _doprnt;
53331 rm -f conftest.$ac_objext conftest$ac_exeext
53332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53333 (eval $ac_link) 2>conftest.er1
53335 grep -v '^ *+' conftest.er1 >conftest.err
53337 cat conftest.err >&5
53338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53339 (exit $ac_status); } &&
53340 { ac_try='test -z "$ac_c_werror_flag"
53341 || test ! -s conftest.err'
53342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53343 (eval $ac_try) 2>&5
53345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53346 (exit $ac_status); }; } &&
53347 { ac_try='test -s conftest$ac_exeext'
53348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53349 (eval $ac_try) 2>&5
53351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53352 (exit $ac_status); }; }; then
53353 ac_cv_func__doprnt=yes
53355 echo "$as_me: failed program was:" >&5
53356 sed 's/^/| /' conftest.$ac_ext >&5
53358 ac_cv_func__doprnt=no
53360 rm -f conftest.err conftest.$ac_objext \
53361 conftest$ac_exeext conftest.$ac_ext
53363 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
53364 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
53365 if test $ac_cv_func__doprnt = yes; then
53367 cat >>confdefs.h <<\_ACEOF
53368 #define HAVE_DOPRNT 1
53378 ice_have_vfprintf=no
53380 for ac_func in vfprintf
53382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53383 echo "$as_me:$LINENO: checking for $ac_func" >&5
53384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53385 if eval "test \"\${$as_ac_var+set}\" = set"; then
53386 echo $ECHO_N "(cached) $ECHO_C" >&6
53388 cat >conftest.$ac_ext <<_ACEOF
53391 cat confdefs.h >>conftest.$ac_ext
53392 cat >>conftest.$ac_ext <<_ACEOF
53393 /* end confdefs.h. */
53394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53396 #define $ac_func innocuous_$ac_func
53398 /* System header to define __stub macros and hopefully few prototypes,
53399 which can conflict with char $ac_func (); below.
53400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53401 <limits.h> exists even on freestanding compilers. */
53404 # include <limits.h>
53406 # include <assert.h>
53411 /* Override any gcc2 internal prototype to avoid an error. */
53416 /* We use char because int might match the return type of a gcc2
53417 builtin and then its argument prototype would still apply. */
53419 /* The GNU C library defines this for functions which it implements
53420 to always fail with ENOSYS. Some functions are actually named
53421 something starting with __ and the normal name is an alias. */
53422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53425 char (*f) () = $ac_func;
53434 return f != $ac_func;
53439 rm -f conftest.$ac_objext conftest$ac_exeext
53440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53441 (eval $ac_link) 2>conftest.er1
53443 grep -v '^ *+' conftest.er1 >conftest.err
53445 cat conftest.err >&5
53446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53447 (exit $ac_status); } &&
53448 { ac_try='test -z "$ac_c_werror_flag"
53449 || test ! -s conftest.err'
53450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53451 (eval $ac_try) 2>&5
53453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53454 (exit $ac_status); }; } &&
53455 { ac_try='test -s conftest$ac_exeext'
53456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53457 (eval $ac_try) 2>&5
53459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53460 (exit $ac_status); }; }; then
53461 eval "$as_ac_var=yes"
53463 echo "$as_me: failed program was:" >&5
53464 sed 's/^/| /' conftest.$ac_ext >&5
53466 eval "$as_ac_var=no"
53468 rm -f conftest.err conftest.$ac_objext \
53469 conftest$ac_exeext conftest.$ac_ext
53471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53473 if test `eval echo '${'$as_ac_var'}'` = yes; then
53474 cat >>confdefs.h <<_ACEOF
53475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53477 ice_have_vfprintf=yes
53481 if test "${ice_have_vfprintf}" = yes; then
53482 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
53483 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53484 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
53485 echo $ECHO_N "(cached) $ECHO_C" >&6
53488 ice_cv_have_vfprintf_decl=no
53489 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53490 ice_re_word='(^|[^a-zA-Z0-9_])'
53491 for header in stdio.h stdlib.h; do
53492 # Check for ordinary declaration
53493 cat >conftest.$ac_ext <<_ACEOF
53496 cat confdefs.h >>conftest.$ac_ext
53497 cat >>conftest.$ac_ext <<_ACEOF
53498 /* end confdefs.h. */
53502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53503 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
53504 ice_cv_have_vfprintf_decl=yes
53508 if test "$ice_cv_have_vfprintf_decl" = yes; then
53511 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53512 cat >conftest.$ac_ext <<_ACEOF
53515 cat confdefs.h >>conftest.$ac_ext
53516 cat >>conftest.$ac_ext <<_ACEOF
53517 /* end confdefs.h. */
53521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53522 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53523 ice_cv_have_vfprintf_decl=yes
53527 if test "$ice_cv_have_vfprintf_decl" = yes; then
53534 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
53535 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
53536 if test "$ice_cv_have_vfprintf_decl" = yes; then
53538 cat >>confdefs.h <<_ACEOF
53539 #define HAVE_VFPRINTF_DECL 1
53546 ice_have_vprintf=no
53548 for ac_func in vprintf
53550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53551 echo "$as_me:$LINENO: checking for $ac_func" >&5
53552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53553 if eval "test \"\${$as_ac_var+set}\" = set"; then
53554 echo $ECHO_N "(cached) $ECHO_C" >&6
53556 cat >conftest.$ac_ext <<_ACEOF
53559 cat confdefs.h >>conftest.$ac_ext
53560 cat >>conftest.$ac_ext <<_ACEOF
53561 /* end confdefs.h. */
53562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53564 #define $ac_func innocuous_$ac_func
53566 /* System header to define __stub macros and hopefully few prototypes,
53567 which can conflict with char $ac_func (); below.
53568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53569 <limits.h> exists even on freestanding compilers. */
53572 # include <limits.h>
53574 # include <assert.h>
53579 /* Override any gcc2 internal prototype to avoid an error. */
53584 /* We use char because int might match the return type of a gcc2
53585 builtin and then its argument prototype would still apply. */
53587 /* The GNU C library defines this for functions which it implements
53588 to always fail with ENOSYS. Some functions are actually named
53589 something starting with __ and the normal name is an alias. */
53590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53593 char (*f) () = $ac_func;
53602 return f != $ac_func;
53607 rm -f conftest.$ac_objext conftest$ac_exeext
53608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53609 (eval $ac_link) 2>conftest.er1
53611 grep -v '^ *+' conftest.er1 >conftest.err
53613 cat conftest.err >&5
53614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53615 (exit $ac_status); } &&
53616 { ac_try='test -z "$ac_c_werror_flag"
53617 || test ! -s conftest.err'
53618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53619 (eval $ac_try) 2>&5
53621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53622 (exit $ac_status); }; } &&
53623 { ac_try='test -s conftest$ac_exeext'
53624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53625 (eval $ac_try) 2>&5
53627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53628 (exit $ac_status); }; }; then
53629 eval "$as_ac_var=yes"
53631 echo "$as_me: failed program was:" >&5
53632 sed 's/^/| /' conftest.$ac_ext >&5
53634 eval "$as_ac_var=no"
53636 rm -f conftest.err conftest.$ac_objext \
53637 conftest$ac_exeext conftest.$ac_ext
53639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53641 if test `eval echo '${'$as_ac_var'}'` = yes; then
53642 cat >>confdefs.h <<_ACEOF
53643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53645 ice_have_vprintf=yes
53649 if test "${ice_have_vprintf}" = yes; then
53650 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
53651 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53652 if test "${ice_cv_have_vprintf_decl+set}" = set; then
53653 echo $ECHO_N "(cached) $ECHO_C" >&6
53656 ice_cv_have_vprintf_decl=no
53657 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53658 ice_re_word='(^|[^a-zA-Z0-9_])'
53659 for header in stdio.h stdlib.h; do
53660 # Check for ordinary declaration
53661 cat >conftest.$ac_ext <<_ACEOF
53664 cat confdefs.h >>conftest.$ac_ext
53665 cat >>conftest.$ac_ext <<_ACEOF
53666 /* end confdefs.h. */
53670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53671 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
53672 ice_cv_have_vprintf_decl=yes
53676 if test "$ice_cv_have_vprintf_decl" = yes; then
53679 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53680 cat >conftest.$ac_ext <<_ACEOF
53683 cat confdefs.h >>conftest.$ac_ext
53684 cat >>conftest.$ac_ext <<_ACEOF
53685 /* end confdefs.h. */
53689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53690 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53691 ice_cv_have_vprintf_decl=yes
53695 if test "$ice_cv_have_vprintf_decl" = yes; then
53702 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
53703 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
53704 if test "$ice_cv_have_vprintf_decl" = yes; then
53706 cat >>confdefs.h <<_ACEOF
53707 #define HAVE_VPRINTF_DECL 1
53714 ice_have_vsprintf=no
53716 for ac_func in vsprintf
53718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53719 echo "$as_me:$LINENO: checking for $ac_func" >&5
53720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53721 if eval "test \"\${$as_ac_var+set}\" = set"; then
53722 echo $ECHO_N "(cached) $ECHO_C" >&6
53724 cat >conftest.$ac_ext <<_ACEOF
53727 cat confdefs.h >>conftest.$ac_ext
53728 cat >>conftest.$ac_ext <<_ACEOF
53729 /* end confdefs.h. */
53730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53732 #define $ac_func innocuous_$ac_func
53734 /* System header to define __stub macros and hopefully few prototypes,
53735 which can conflict with char $ac_func (); below.
53736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53737 <limits.h> exists even on freestanding compilers. */
53740 # include <limits.h>
53742 # include <assert.h>
53747 /* Override any gcc2 internal prototype to avoid an error. */
53752 /* We use char because int might match the return type of a gcc2
53753 builtin and then its argument prototype would still apply. */
53755 /* The GNU C library defines this for functions which it implements
53756 to always fail with ENOSYS. Some functions are actually named
53757 something starting with __ and the normal name is an alias. */
53758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53761 char (*f) () = $ac_func;
53770 return f != $ac_func;
53775 rm -f conftest.$ac_objext conftest$ac_exeext
53776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53777 (eval $ac_link) 2>conftest.er1
53779 grep -v '^ *+' conftest.er1 >conftest.err
53781 cat conftest.err >&5
53782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53783 (exit $ac_status); } &&
53784 { ac_try='test -z "$ac_c_werror_flag"
53785 || test ! -s conftest.err'
53786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53787 (eval $ac_try) 2>&5
53789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53790 (exit $ac_status); }; } &&
53791 { ac_try='test -s conftest$ac_exeext'
53792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53793 (eval $ac_try) 2>&5
53795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53796 (exit $ac_status); }; }; then
53797 eval "$as_ac_var=yes"
53799 echo "$as_me: failed program was:" >&5
53800 sed 's/^/| /' conftest.$ac_ext >&5
53802 eval "$as_ac_var=no"
53804 rm -f conftest.err conftest.$ac_objext \
53805 conftest$ac_exeext conftest.$ac_ext
53807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53809 if test `eval echo '${'$as_ac_var'}'` = yes; then
53810 cat >>confdefs.h <<_ACEOF
53811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53813 ice_have_vsprintf=yes
53817 if test "${ice_have_vsprintf}" = yes; then
53818 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
53819 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53820 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
53821 echo $ECHO_N "(cached) $ECHO_C" >&6
53824 ice_cv_have_vsprintf_decl=no
53825 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53826 ice_re_word='(^|[^a-zA-Z0-9_])'
53827 for header in stdio.h stdlib.h; do
53828 # Check for ordinary declaration
53829 cat >conftest.$ac_ext <<_ACEOF
53832 cat confdefs.h >>conftest.$ac_ext
53833 cat >>conftest.$ac_ext <<_ACEOF
53834 /* end confdefs.h. */
53838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53839 $EGREP "${ice_re_word}vsprintf[ ]*\(" >/dev/null 2>&1; then
53840 ice_cv_have_vsprintf_decl=yes
53844 if test "$ice_cv_have_vsprintf_decl" = yes; then
53847 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53848 cat >conftest.$ac_ext <<_ACEOF
53851 cat confdefs.h >>conftest.$ac_ext
53852 cat >>conftest.$ac_ext <<_ACEOF
53853 /* end confdefs.h. */
53857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53858 $EGREP "${ice_re_word}vsprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53859 ice_cv_have_vsprintf_decl=yes
53863 if test "$ice_cv_have_vsprintf_decl" = yes; then
53870 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
53871 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
53872 if test "$ice_cv_have_vsprintf_decl" = yes; then
53874 cat >>confdefs.h <<_ACEOF
53875 #define HAVE_VSPRINTF_DECL 1
53881 echo "$as_me:$LINENO: checking for wait4" >&5
53882 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
53883 if test "${ac_cv_func_wait4+set}" = set; then
53884 echo $ECHO_N "(cached) $ECHO_C" >&6
53886 cat >conftest.$ac_ext <<_ACEOF
53889 cat confdefs.h >>conftest.$ac_ext
53890 cat >>conftest.$ac_ext <<_ACEOF
53891 /* end confdefs.h. */
53892 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
53893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53894 #define wait4 innocuous_wait4
53896 /* System header to define __stub macros and hopefully few prototypes,
53897 which can conflict with char wait4 (); below.
53898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53899 <limits.h> exists even on freestanding compilers. */
53902 # include <limits.h>
53904 # include <assert.h>
53909 /* Override any gcc2 internal prototype to avoid an error. */
53914 /* We use char because int might match the return type of a gcc2
53915 builtin and then its argument prototype would still apply. */
53917 /* The GNU C library defines this for functions which it implements
53918 to always fail with ENOSYS. Some functions are actually named
53919 something starting with __ and the normal name is an alias. */
53920 #if defined (__stub_wait4) || defined (__stub___wait4)
53923 char (*f) () = wait4;
53937 rm -f conftest.$ac_objext conftest$ac_exeext
53938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53939 (eval $ac_link) 2>conftest.er1
53941 grep -v '^ *+' conftest.er1 >conftest.err
53943 cat conftest.err >&5
53944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53945 (exit $ac_status); } &&
53946 { ac_try='test -z "$ac_c_werror_flag"
53947 || test ! -s conftest.err'
53948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53949 (eval $ac_try) 2>&5
53951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53952 (exit $ac_status); }; } &&
53953 { ac_try='test -s conftest$ac_exeext'
53954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53955 (eval $ac_try) 2>&5
53957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53958 (exit $ac_status); }; }; then
53959 ac_cv_func_wait4=yes
53961 echo "$as_me: failed program was:" >&5
53962 sed 's/^/| /' conftest.$ac_ext >&5
53964 ac_cv_func_wait4=no
53966 rm -f conftest.err conftest.$ac_objext \
53967 conftest$ac_exeext conftest.$ac_ext
53969 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
53970 echo "${ECHO_T}$ac_cv_func_wait4" >&6
53973 for ac_func in waitpid
53975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53976 echo "$as_me:$LINENO: checking for $ac_func" >&5
53977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53978 if eval "test \"\${$as_ac_var+set}\" = set"; then
53979 echo $ECHO_N "(cached) $ECHO_C" >&6
53981 cat >conftest.$ac_ext <<_ACEOF
53984 cat confdefs.h >>conftest.$ac_ext
53985 cat >>conftest.$ac_ext <<_ACEOF
53986 /* end confdefs.h. */
53987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53989 #define $ac_func innocuous_$ac_func
53991 /* System header to define __stub macros and hopefully few prototypes,
53992 which can conflict with char $ac_func (); below.
53993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53994 <limits.h> exists even on freestanding compilers. */
53997 # include <limits.h>
53999 # include <assert.h>
54004 /* Override any gcc2 internal prototype to avoid an error. */
54009 /* We use char because int might match the return type of a gcc2
54010 builtin and then its argument prototype would still apply. */
54012 /* The GNU C library defines this for functions which it implements
54013 to always fail with ENOSYS. Some functions are actually named
54014 something starting with __ and the normal name is an alias. */
54015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54018 char (*f) () = $ac_func;
54027 return f != $ac_func;
54032 rm -f conftest.$ac_objext conftest$ac_exeext
54033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54034 (eval $ac_link) 2>conftest.er1
54036 grep -v '^ *+' conftest.er1 >conftest.err
54038 cat conftest.err >&5
54039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54040 (exit $ac_status); } &&
54041 { ac_try='test -z "$ac_c_werror_flag"
54042 || test ! -s conftest.err'
54043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54044 (eval $ac_try) 2>&5
54046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54047 (exit $ac_status); }; } &&
54048 { ac_try='test -s conftest$ac_exeext'
54049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54050 (eval $ac_try) 2>&5
54052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54053 (exit $ac_status); }; }; then
54054 eval "$as_ac_var=yes"
54056 echo "$as_me: failed program was:" >&5
54057 sed 's/^/| /' conftest.$ac_ext >&5
54059 eval "$as_ac_var=no"
54061 rm -f conftest.err conftest.$ac_objext \
54062 conftest$ac_exeext conftest.$ac_ext
54064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54066 if test `eval echo '${'$as_ac_var'}'` = yes; then
54067 cat >>confdefs.h <<_ACEOF
54068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54073 "$ac_func.$ac_objext" | \
54074 *" $ac_func.$ac_objext" | \
54075 "$ac_func.$ac_objext "* | \
54076 *" $ac_func.$ac_objext "* ) ;;
54077 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54085 for ac_func in writev
54087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54088 echo "$as_me:$LINENO: checking for $ac_func" >&5
54089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54090 if eval "test \"\${$as_ac_var+set}\" = set"; then
54091 echo $ECHO_N "(cached) $ECHO_C" >&6
54093 cat >conftest.$ac_ext <<_ACEOF
54096 cat confdefs.h >>conftest.$ac_ext
54097 cat >>conftest.$ac_ext <<_ACEOF
54098 /* end confdefs.h. */
54099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54101 #define $ac_func innocuous_$ac_func
54103 /* System header to define __stub macros and hopefully few prototypes,
54104 which can conflict with char $ac_func (); below.
54105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54106 <limits.h> exists even on freestanding compilers. */
54109 # include <limits.h>
54111 # include <assert.h>
54116 /* Override any gcc2 internal prototype to avoid an error. */
54121 /* We use char because int might match the return type of a gcc2
54122 builtin and then its argument prototype would still apply. */
54124 /* The GNU C library defines this for functions which it implements
54125 to always fail with ENOSYS. Some functions are actually named
54126 something starting with __ and the normal name is an alias. */
54127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54130 char (*f) () = $ac_func;
54139 return f != $ac_func;
54144 rm -f conftest.$ac_objext conftest$ac_exeext
54145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54146 (eval $ac_link) 2>conftest.er1
54148 grep -v '^ *+' conftest.er1 >conftest.err
54150 cat conftest.err >&5
54151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54152 (exit $ac_status); } &&
54153 { ac_try='test -z "$ac_c_werror_flag"
54154 || test ! -s conftest.err'
54155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54156 (eval $ac_try) 2>&5
54158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54159 (exit $ac_status); }; } &&
54160 { ac_try='test -s conftest$ac_exeext'
54161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54162 (eval $ac_try) 2>&5
54164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54165 (exit $ac_status); }; }; then
54166 eval "$as_ac_var=yes"
54168 echo "$as_me: failed program was:" >&5
54169 sed 's/^/| /' conftest.$ac_ext >&5
54171 eval "$as_ac_var=no"
54173 rm -f conftest.err conftest.$ac_objext \
54174 conftest$ac_exeext conftest.$ac_ext
54176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54178 if test `eval echo '${'$as_ac_var'}'` = yes; then
54179 cat >>confdefs.h <<_ACEOF
54180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54185 "$ac_func.$ac_objext" | \
54186 *" $ac_func.$ac_objext" | \
54187 "$ac_func.$ac_objext "* | \
54188 *" $ac_func.$ac_objext "* ) ;;
54189 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54199 for ac_func in writev
54201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54202 echo "$as_me:$LINENO: checking for $ac_func" >&5
54203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54204 if eval "test \"\${$as_ac_var+set}\" = set"; then
54205 echo $ECHO_N "(cached) $ECHO_C" >&6
54207 cat >conftest.$ac_ext <<_ACEOF
54210 cat confdefs.h >>conftest.$ac_ext
54211 cat >>conftest.$ac_ext <<_ACEOF
54212 /* end confdefs.h. */
54213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54215 #define $ac_func innocuous_$ac_func
54217 /* System header to define __stub macros and hopefully few prototypes,
54218 which can conflict with char $ac_func (); below.
54219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54220 <limits.h> exists even on freestanding compilers. */
54223 # include <limits.h>
54225 # include <assert.h>
54230 /* Override any gcc2 internal prototype to avoid an error. */
54235 /* We use char because int might match the return type of a gcc2
54236 builtin and then its argument prototype would still apply. */
54238 /* The GNU C library defines this for functions which it implements
54239 to always fail with ENOSYS. Some functions are actually named
54240 something starting with __ and the normal name is an alias. */
54241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54244 char (*f) () = $ac_func;
54253 return f != $ac_func;
54258 rm -f conftest.$ac_objext conftest$ac_exeext
54259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54260 (eval $ac_link) 2>conftest.er1
54262 grep -v '^ *+' conftest.er1 >conftest.err
54264 cat conftest.err >&5
54265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54266 (exit $ac_status); } &&
54267 { ac_try='test -z "$ac_c_werror_flag"
54268 || test ! -s conftest.err'
54269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54270 (eval $ac_try) 2>&5
54272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54273 (exit $ac_status); }; } &&
54274 { ac_try='test -s conftest$ac_exeext'
54275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54276 (eval $ac_try) 2>&5
54278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54279 (exit $ac_status); }; }; then
54280 eval "$as_ac_var=yes"
54282 echo "$as_me: failed program was:" >&5
54283 sed 's/^/| /' conftest.$ac_ext >&5
54285 eval "$as_ac_var=no"
54287 rm -f conftest.err conftest.$ac_objext \
54288 conftest$ac_exeext conftest.$ac_ext
54290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54292 if test `eval echo '${'$as_ac_var'}'` = yes; then
54293 cat >>confdefs.h <<_ACEOF
54294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54296 ice_have_writev=yes
54300 if test "${ice_have_writev}" = yes; then
54301 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
54302 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
54303 if test "${ice_cv_have_writev_decl+set}" = set; then
54304 echo $ECHO_N "(cached) $ECHO_C" >&6
54307 ice_cv_have_writev_decl=no
54308 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54309 ice_re_word='(^|[^a-zA-Z0-9_])'
54310 for header in unistd.h sys/uio.h; do
54311 # Check for ordinary declaration
54312 cat >conftest.$ac_ext <<_ACEOF
54315 cat confdefs.h >>conftest.$ac_ext
54316 cat >>conftest.$ac_ext <<_ACEOF
54317 /* end confdefs.h. */
54321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54322 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then
54323 ice_cv_have_writev_decl=yes
54327 if test "$ice_cv_have_writev_decl" = yes; then
54330 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54331 cat >conftest.$ac_ext <<_ACEOF
54334 cat confdefs.h >>conftest.$ac_ext
54335 cat >>conftest.$ac_ext <<_ACEOF
54336 /* end confdefs.h. */
54340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54341 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54342 ice_cv_have_writev_decl=yes
54346 if test "$ice_cv_have_writev_decl" = yes; then
54353 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
54354 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
54355 if test "$ice_cv_have_writev_decl" = yes; then
54357 cat >>confdefs.h <<_ACEOF
54358 #define HAVE_WRITEV_DECL 1
54365 for ac_func in strcasecmp
54367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54368 echo "$as_me:$LINENO: checking for $ac_func" >&5
54369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54370 if eval "test \"\${$as_ac_var+set}\" = set"; then
54371 echo $ECHO_N "(cached) $ECHO_C" >&6
54373 cat >conftest.$ac_ext <<_ACEOF
54376 cat confdefs.h >>conftest.$ac_ext
54377 cat >>conftest.$ac_ext <<_ACEOF
54378 /* end confdefs.h. */
54379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54381 #define $ac_func innocuous_$ac_func
54383 /* System header to define __stub macros and hopefully few prototypes,
54384 which can conflict with char $ac_func (); below.
54385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54386 <limits.h> exists even on freestanding compilers. */
54389 # include <limits.h>
54391 # include <assert.h>
54396 /* Override any gcc2 internal prototype to avoid an error. */
54401 /* We use char because int might match the return type of a gcc2
54402 builtin and then its argument prototype would still apply. */
54404 /* The GNU C library defines this for functions which it implements
54405 to always fail with ENOSYS. Some functions are actually named
54406 something starting with __ and the normal name is an alias. */
54407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54410 char (*f) () = $ac_func;
54419 return f != $ac_func;
54424 rm -f conftest.$ac_objext conftest$ac_exeext
54425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54426 (eval $ac_link) 2>conftest.er1
54428 grep -v '^ *+' conftest.er1 >conftest.err
54430 cat conftest.err >&5
54431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54432 (exit $ac_status); } &&
54433 { ac_try='test -z "$ac_c_werror_flag"
54434 || test ! -s conftest.err'
54435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54436 (eval $ac_try) 2>&5
54438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54439 (exit $ac_status); }; } &&
54440 { ac_try='test -s conftest$ac_exeext'
54441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54442 (eval $ac_try) 2>&5
54444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54445 (exit $ac_status); }; }; then
54446 eval "$as_ac_var=yes"
54448 echo "$as_me: failed program was:" >&5
54449 sed 's/^/| /' conftest.$ac_ext >&5
54451 eval "$as_ac_var=no"
54453 rm -f conftest.err conftest.$ac_objext \
54454 conftest$ac_exeext conftest.$ac_ext
54456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54458 if test `eval echo '${'$as_ac_var'}'` = yes; then
54459 cat >>confdefs.h <<_ACEOF
54460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54465 "$ac_func.$ac_objext" | \
54466 *" $ac_func.$ac_objext" | \
54467 "$ac_func.$ac_objext "* | \
54468 *" $ac_func.$ac_objext "* ) ;;
54469 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54477 ice_have_strcasecmp=no
54479 for ac_func in strcasecmp
54481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54482 echo "$as_me:$LINENO: checking for $ac_func" >&5
54483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54484 if eval "test \"\${$as_ac_var+set}\" = set"; then
54485 echo $ECHO_N "(cached) $ECHO_C" >&6
54487 cat >conftest.$ac_ext <<_ACEOF
54490 cat confdefs.h >>conftest.$ac_ext
54491 cat >>conftest.$ac_ext <<_ACEOF
54492 /* end confdefs.h. */
54493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54495 #define $ac_func innocuous_$ac_func
54497 /* System header to define __stub macros and hopefully few prototypes,
54498 which can conflict with char $ac_func (); below.
54499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54500 <limits.h> exists even on freestanding compilers. */
54503 # include <limits.h>
54505 # include <assert.h>
54510 /* Override any gcc2 internal prototype to avoid an error. */
54515 /* We use char because int might match the return type of a gcc2
54516 builtin and then its argument prototype would still apply. */
54518 /* The GNU C library defines this for functions which it implements
54519 to always fail with ENOSYS. Some functions are actually named
54520 something starting with __ and the normal name is an alias. */
54521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54524 char (*f) () = $ac_func;
54533 return f != $ac_func;
54538 rm -f conftest.$ac_objext conftest$ac_exeext
54539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54540 (eval $ac_link) 2>conftest.er1
54542 grep -v '^ *+' conftest.er1 >conftest.err
54544 cat conftest.err >&5
54545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54546 (exit $ac_status); } &&
54547 { ac_try='test -z "$ac_c_werror_flag"
54548 || test ! -s conftest.err'
54549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54550 (eval $ac_try) 2>&5
54552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54553 (exit $ac_status); }; } &&
54554 { ac_try='test -s conftest$ac_exeext'
54555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54556 (eval $ac_try) 2>&5
54558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54559 (exit $ac_status); }; }; then
54560 eval "$as_ac_var=yes"
54562 echo "$as_me: failed program was:" >&5
54563 sed 's/^/| /' conftest.$ac_ext >&5
54565 eval "$as_ac_var=no"
54567 rm -f conftest.err conftest.$ac_objext \
54568 conftest$ac_exeext conftest.$ac_ext
54570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54572 if test `eval echo '${'$as_ac_var'}'` = yes; then
54573 cat >>confdefs.h <<_ACEOF
54574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54576 ice_have_strcasecmp=yes
54580 if test "${ice_have_strcasecmp}" = yes; then
54581 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
54582 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
54583 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
54584 echo $ECHO_N "(cached) $ECHO_C" >&6
54587 ice_cv_have_strcasecmp_decl=no
54588 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54589 ice_re_word='(^|[^a-zA-Z0-9_])'
54590 for header in string.h strings.h; do
54591 # Check for ordinary declaration
54592 cat >conftest.$ac_ext <<_ACEOF
54595 cat confdefs.h >>conftest.$ac_ext
54596 cat >>conftest.$ac_ext <<_ACEOF
54597 /* end confdefs.h. */
54601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54602 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
54603 ice_cv_have_strcasecmp_decl=yes
54607 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54610 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54611 cat >conftest.$ac_ext <<_ACEOF
54614 cat confdefs.h >>conftest.$ac_ext
54615 cat >>conftest.$ac_ext <<_ACEOF
54616 /* end confdefs.h. */
54620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54621 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54622 ice_cv_have_strcasecmp_decl=yes
54626 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54633 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
54634 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
54635 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54637 cat >>confdefs.h <<_ACEOF
54638 #define HAVE_STRCASECMP_DECL 1
54646 for ac_func in fnmatch
54648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54649 echo "$as_me:$LINENO: checking for $ac_func" >&5
54650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54651 if eval "test \"\${$as_ac_var+set}\" = set"; then
54652 echo $ECHO_N "(cached) $ECHO_C" >&6
54654 cat >conftest.$ac_ext <<_ACEOF
54657 cat confdefs.h >>conftest.$ac_ext
54658 cat >>conftest.$ac_ext <<_ACEOF
54659 /* end confdefs.h. */
54660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54662 #define $ac_func innocuous_$ac_func
54664 /* System header to define __stub macros and hopefully few prototypes,
54665 which can conflict with char $ac_func (); below.
54666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54667 <limits.h> exists even on freestanding compilers. */
54670 # include <limits.h>
54672 # include <assert.h>
54677 /* Override any gcc2 internal prototype to avoid an error. */
54682 /* We use char because int might match the return type of a gcc2
54683 builtin and then its argument prototype would still apply. */
54685 /* The GNU C library defines this for functions which it implements
54686 to always fail with ENOSYS. Some functions are actually named
54687 something starting with __ and the normal name is an alias. */
54688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54691 char (*f) () = $ac_func;
54700 return f != $ac_func;
54705 rm -f conftest.$ac_objext conftest$ac_exeext
54706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54707 (eval $ac_link) 2>conftest.er1
54709 grep -v '^ *+' conftest.er1 >conftest.err
54711 cat conftest.err >&5
54712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54713 (exit $ac_status); } &&
54714 { ac_try='test -z "$ac_c_werror_flag"
54715 || test ! -s conftest.err'
54716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54717 (eval $ac_try) 2>&5
54719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54720 (exit $ac_status); }; } &&
54721 { ac_try='test -s conftest$ac_exeext'
54722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54723 (eval $ac_try) 2>&5
54725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726 (exit $ac_status); }; }; then
54727 eval "$as_ac_var=yes"
54729 echo "$as_me: failed program was:" >&5
54730 sed 's/^/| /' conftest.$ac_ext >&5
54732 eval "$as_ac_var=no"
54734 rm -f conftest.err conftest.$ac_objext \
54735 conftest$ac_exeext conftest.$ac_ext
54737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54739 if test `eval echo '${'$as_ac_var'}'` = yes; then
54740 cat >>confdefs.h <<_ACEOF
54741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54749 echo "$as_me:$LINENO: checking disk device prefixes" >&5
54750 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
54752 df / | while read line; do
54754 while test $# -gt 0; do
54755 if test "x$1" = "x/"; then
54762 ) | sed 's/(//' | sed 's/)//' `
54766 while test $# -gt 0; do
54767 if expr "$1" : '.*dev' >/dev/null 2>&1; then
54775 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
54776 echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
54777 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
54779 if test -d /dev/dsk; then
54780 DEV_PREFIX=/dev/dsk/
54781 if test -d /dev/rdsk; then
54782 RDEV_PREFIX=/dev/rdsk/
54784 RDEV_PREFIX=/dev/dsk/
54786 elif test -d /dev; then
54789 dev_prefix=/dev/dsk/
54790 rdev_prefix=/dev/rdsk/
54791 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
54792 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
54797 # Some systems, notably Linux, do not have raw disk devices
54798 # names. Check this by trying to see if a raw disk device name
54799 # exists using the normal raw device path prepended to the
54800 # mount point of the root filesystem.
54801 if test "$mount"; then
54802 dev_name="/dev/r`basename $mount`"
54803 if test -b $dev_name -o -c $dev_name; then
54817 echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
54818 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
54822 cat >>confdefs.h <<_ACEOF
54823 #define DEV_PREFIX "${DEV_PREFIX}"
54827 cat >>confdefs.h <<_ACEOF
54828 #define RDEV_PREFIX "${RDEV_PREFIX}"
54834 { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
54835 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
54839 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
54840 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
54841 if test "${amanda_cv_posix_filelocking+set}" = set; then
54842 echo $ECHO_N "(cached) $ECHO_C" >&6
54845 if test "$cross_compiling" = yes; then
54847 amanda_cv_posix_filelocking="no (cannot run test)"
54850 cat >conftest.$ac_ext <<_ACEOF
54853 cat confdefs.h >>conftest.$ac_ext
54854 cat >>conftest.$ac_ext <<_ACEOF
54855 /* end confdefs.h. */
54858 #define CONFIGURE_TEST
54859 #define USE_POSIX_FCNTL
54860 #include "${srcdir-.}/common-src/amflock.c"
54863 rm -f conftest$ac_exeext
54864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54865 (eval $ac_link) 2>&5
54867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54870 (eval $ac_try) 2>&5
54872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54873 (exit $ac_status); }; }; then
54875 amanda_cv_posix_filelocking=yes
54878 echo "$as_me: program exited with status $ac_status" >&5
54879 echo "$as_me: failed program was:" >&5
54880 sed 's/^/| /' conftest.$ac_ext >&5
54882 ( exit $ac_status )
54884 amanda_cv_posix_filelocking="no"
54887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54889 rm -f /tmp/conftest.lock
54892 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
54893 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
54894 if test "x$amanda_cv_posix_filelocking" = xyes; then
54896 cat >>confdefs.h <<\_ACEOF
54897 #define USE_POSIX_FCNTL 1
54900 HAS_WORKING_FILE_LOCK=1
54903 if test -z "$HAS_WORKING_FILE_LOCK"; then
54904 echo "$as_me:$LINENO: checking whether flock locking works" >&5
54905 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
54906 if test "${amanda_cv_flock_filelocking+set}" = set; then
54907 echo $ECHO_N "(cached) $ECHO_C" >&6
54910 if test "$cross_compiling" = yes; then
54912 amanda_cv_flock_filelocking="no (cannot run test)"
54915 cat >conftest.$ac_ext <<_ACEOF
54918 cat confdefs.h >>conftest.$ac_ext
54919 cat >>conftest.$ac_ext <<_ACEOF
54920 /* end confdefs.h. */
54923 #define CONFIGURE_TEST
54925 #include "${srcdir-.}/common-src/amflock.c"
54928 rm -f conftest$ac_exeext
54929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54930 (eval $ac_link) 2>&5
54932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54935 (eval $ac_try) 2>&5
54937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54938 (exit $ac_status); }; }; then
54940 amanda_cv_flock_filelocking="yes"
54943 echo "$as_me: program exited with status $ac_status" >&5
54944 echo "$as_me: failed program was:" >&5
54945 sed 's/^/| /' conftest.$ac_ext >&5
54947 ( exit $ac_status )
54949 amanda_cv_flock_filelocking="no"
54952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54954 rm -f /tmp/conftest.lock
54957 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
54958 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
54959 if test "x$amanda_cv_flock_filelocking" = xyes; then
54961 cat >>confdefs.h <<\_ACEOF
54962 #define USE_FLOCK 1
54965 HAS_WORKING_FILE_LOCK=1
54969 if test -z "$HAS_WORKING_FILE_LOCK"; then
54970 echo "$as_me:$LINENO: checking whether lockf locking works" >&5
54971 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
54972 if test "${amanda_cv_lockf_filelocking+set}" = set; then
54973 echo $ECHO_N "(cached) $ECHO_C" >&6
54976 if test "$cross_compiling" = yes; then
54978 amanda_cv_lockf_filelocking="no (cannot run test)"
54981 cat >conftest.$ac_ext <<_ACEOF
54984 cat confdefs.h >>conftest.$ac_ext
54985 cat >>conftest.$ac_ext <<_ACEOF
54986 /* end confdefs.h. */
54989 #define CONFIGURE_TEST
54991 #include "${srcdir-.}/common-src/amflock.c"
54994 rm -f conftest$ac_exeext
54995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54996 (eval $ac_link) 2>&5
54998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55001 (eval $ac_try) 2>&5
55003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55004 (exit $ac_status); }; }; then
55006 amanda_cv_lockf_filelocking="yes"
55009 echo "$as_me: program exited with status $ac_status" >&5
55010 echo "$as_me: failed program was:" >&5
55011 sed 's/^/| /' conftest.$ac_ext >&5
55013 ( exit $ac_status )
55015 amanda_cv_lockf_filelocking="no"
55018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55020 rm -f /tmp/conftest.lock
55023 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
55024 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
55025 if test "x$amanda_cv_lockf_filelocking" = xyes; then
55027 cat >>confdefs.h <<\_ACEOF
55028 #define USE_LOCKF 1
55031 HAS_WORKING_FILE_LOCK=1
55035 if test -z "$HAS_WORKING_FILE_LOCK"; then
55036 echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
55037 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
55038 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
55039 echo $ECHO_N "(cached) $ECHO_C" >&6
55042 if test "$cross_compiling" = yes; then
55044 amanda_cv_lnlock_filelocking="no (cannot run test)"
55047 cat >conftest.$ac_ext <<_ACEOF
55050 cat confdefs.h >>conftest.$ac_ext
55051 cat >>conftest.$ac_ext <<_ACEOF
55052 /* end confdefs.h. */
55055 #define CONFIGURE_TEST
55057 #include "${srcdir-.}/common-src/amflock.c"
55058 #include "${srcdir-.}/common-src/alloc.c"
55059 #include "${srcdir-.}/common-src/error.c"
55060 #include "${srcdir-.}/common-src/snprintf.c"
55063 rm -f conftest$ac_exeext
55064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55065 (eval $ac_link) 2>&5
55067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55070 (eval $ac_try) 2>&5
55072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55073 (exit $ac_status); }; }; then
55075 amanda_cv_lnlock_filelocking="yes"
55078 echo "$as_me: program exited with status $ac_status" >&5
55079 echo "$as_me: failed program was:" >&5
55080 sed 's/^/| /' conftest.$ac_ext >&5
55082 ( exit $ac_status )
55084 amanda_cv_lnlock_filelocking="no"
55087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55089 rm -f /tmp/conftest.lock
55092 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
55093 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
55094 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
55096 cat >>confdefs.h <<\_ACEOF
55097 #define USE_LNLOCK 1
55100 HAS_WORKING_FILE_LOCK=1
55104 if test -z "$HAS_WORKING_FILE_LOCK"; then
55105 { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
55106 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
55107 { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
55108 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
55119 if test x"$NO_CLIENT_MODE" != x"true"; then
55121 WANT_CLIENT_FALSE='#'
55123 WANT_CLIENT_TRUE='#'
55129 if test ! -z "$SAMBA_CLIENT"; then
55131 WANT_SAMBA_FALSE='#'
55133 WANT_SAMBA_TRUE='#'
55139 if test x"$NO_RESTORE_MODE" != x"true"; then
55141 WANT_RESTORE_FALSE='#'
55143 WANT_RESTORE_TRUE='#'
55144 WANT_RESTORE_FALSE=
55149 if test x"$NO_SERVER_MODE" != x"true"; then
55151 WANT_SERVER_FALSE='#'
55153 WANT_SERVER_TRUE='#'
55159 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
55161 WANT_RECOVER_FALSE='#'
55163 WANT_RECOVER_TRUE='#'
55164 WANT_RECOVER_FALSE=
55169 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
55171 WANT_TAPE_FALSE='#'
55179 if test x"$NO_AMPLOT_MODE" != x"true"; then
55181 WANT_AMPLOT_FALSE='#'
55183 WANT_AMPLOT_TRUE='#'
55189 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
55190 WANT_CHG_SCSI_TRUE=
55191 WANT_CHG_SCSI_FALSE='#'
55193 WANT_CHG_SCSI_TRUE='#'
55194 WANT_CHG_SCSI_FALSE=
55199 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
55200 WANT_CHIO_SCSI_TRUE=
55201 WANT_CHIO_SCSI_FALSE='#'
55203 WANT_CHIO_SCSI_TRUE='#'
55204 WANT_CHIO_SCSI_FALSE=
55209 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
55210 WANT_RUNTIME_PSEUDO_RELOC_TRUE=
55211 WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
55213 WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
55214 WANT_RUNTIME_PSEUDO_RELOC_FALSE=
55219 if test x"$NEED_SETUID_CLIENT" != x"false"; then
55220 WANT_SETUID_CLIENT_TRUE=
55221 WANT_SETUID_CLIENT_FALSE='#'
55223 WANT_SETUID_CLIENT_TRUE='#'
55224 WANT_SETUID_CLIENT_FALSE=
55229 if test x"$SSH_SECURITY_SET" = x"true"; then
55230 WANT_SSH_SECURITY_TRUE=
55231 WANT_SSH_SECURITY_FALSE='#'
55233 WANT_SSH_SECURITY_TRUE='#'
55234 WANT_SSH_SECURITY_FALSE=
55238 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
55240 cat >>confdefs.h <<\_ACEOF
55241 #define USE_RUNDUMP 1
55246 # This is necessary so that .o files in LIBOBJS are also built via
55247 # the ANSI2KNR-filtering rules.
55248 LIBOBJS=`echo "$LIBOBJS" |
55249 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
55250 LTLIBOBJS=`echo "$LIBOBJS" |
55251 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
55254 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
55257 ## This stuff is needed for the documentation.
55258 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
55262 # Check whether --with-built-manpages or --without-built-manpages was given.
55263 if test "${with_built_manpages+set}" = set; then
55264 withval="$with_built_manpages"
55265 BUILDMANPAGES=$withval;
55271 if test "x$BUILDMANPAGES" = "xyes"; then
55272 BUILD_MAN_PAGES_TRUE=
55273 BUILD_MAN_PAGES_FALSE='#'
55275 BUILD_MAN_PAGES_TRUE='#'
55276 BUILD_MAN_PAGES_FALSE=
55280 for ac_prog in xsltproc
55282 # Extract the first word of "$ac_prog", so it can be a program name with args.
55283 set dummy $ac_prog; ac_word=$2
55284 echo "$as_me:$LINENO: checking for $ac_word" >&5
55285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
55286 if test "${ac_cv_path_XSLTPROC+set}" = set; then
55287 echo $ECHO_N "(cached) $ECHO_C" >&6
55291 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
55294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55295 for as_dir in $LOCSYSPATH
55298 test -z "$as_dir" && as_dir=.
55299 for ac_exec_ext in '' $ac_executable_extensions; do
55300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55301 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
55302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55311 XSLTPROC=$ac_cv_path_XSLTPROC
55313 if test -n "$XSLTPROC"; then
55314 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
55315 echo "${ECHO_T}$XSLTPROC" >&6
55317 echo "$as_me:$LINENO: result: no" >&5
55318 echo "${ECHO_T}no" >&6
55321 test -n "$XSLTPROC" && break
55324 if test -z "$XSLTPROC"; then
55326 { echo "$as_me:$LINENO: WARNING: can't find xsltproc, xsltproc support is unavailable" >&5
55327 echo "$as_me: WARNING: can't find xsltproc, xsltproc support is unavailable" >&2;}
55331 cat >>confdefs.h <<\_ACEOF
55332 #define HAVE_XSLTPROC 1
55338 if test "x$USE_XSLTPROC" = "xyes"; then
55339 HAVE_XSLTPROC_TRUE=
55340 HAVE_XSLTPROC_FALSE='#'
55342 HAVE_XSLTPROC_TRUE='#'
55343 HAVE_XSLTPROC_FALSE=
55347 #### Enforce amanda code cleanliness rules.
55348 #### Done here to allow configuration code to remain intact.
55349 if test "x$CC" = "xgcc"; then
55350 AM_CFLAGS="$AM_CFLAGS -Wall"
55351 $CC -v --help 2>&1 | $GREP -- '-Wextra ' 2>&1 > /dev/null
55352 if test $? -eq 0; then
55353 AM_CFLAGS="$AM_CFLAGS -Wextra"
55355 AM_CFLAGS="$AM_CFLAGS -W"
55358 $CC -v --help 2>&1 | $GREP -- '-Wparentheses' 2>&1 > /dev/null
55359 if test $? -eq 0; then
55360 AM_CFLAGS="$AM_CFLAGS -Wparentheses"
55363 $CC -v --help 2>&1 | $GREP -- '-Wdeclaration-after-statement' 2>&1 > /dev/null
55364 if test $? -eq 0; then
55365 AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
55368 $CC -v --help 2>&1 | $GREP -- '-Wmissing-prototypes ' 2>&1 > /dev/null
55369 if test $? -eq 0; then
55370 AM_CFLAGS="$AM_CFLAGS -Wmissing-prototypes"
55373 $CC -v --help 2>&1 | $GREP -- '-Wstrict-prototypes ' 2>&1 > /dev/null
55374 if test $? -eq 0; then
55375 AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"
55378 $CC -v --help 2>&1 | $GREP -- '-Wmissing-declarations ' 2>&1 > /dev/null
55379 if test $? -eq 0; then
55380 AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations"
55383 $CC -v --help 2>&1 | $GREP -- '-Wformat' 2>&1 > /dev/null
55384 if test $? -eq 0; then
55385 AM_CFLAGS="$AM_CFLAGS -Wformat"
55388 $CC -v --help 2>&1 | $GREP -- '-Wsign-compare' 2>&1 > /dev/null
55389 if test $? -eq 0; then
55390 AM_CFLAGS="$AM_CFLAGS -Wsign-compare"
55393 $CC -v --help 2>&1 | $GREP -- '-fno-strict-aliasing' 2>&1 > /dev/null
55394 if test $? -eq 0; then
55395 AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"
55398 $CC -v --help 2>&1 | $GREP -- '-Wfloat-equal' 2>&1 > /dev/null
55399 if test $? -eq 0; then
55400 AM_CFLAGS="$AM_CFLAGS -Wfloat-equal"
55403 $CC -v --help 2>&1 | $GREP -- '-Wold-style-definition' 2>&1 > /dev/null
55404 if test $? -eq 0; then
55405 AM_CFLAGS="$AM_CFLAGS -Wold-style-definition"
55410 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"
55413 cat >confcache <<\_ACEOF
55414 # This file is a shell script that caches the results of configure
55415 # tests run on this system so they can be shared between configure
55416 # scripts and configure runs, see configure's option --config-cache.
55417 # It is not useful on other systems. If it contains results you don't
55418 # want to keep, you may remove or edit it.
55420 # config.status only pays attention to the cache file if you give it
55421 # the --recheck option to rerun configure.
55423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55425 # following values.
55429 # The following way of writing the cache mishandles newlines in values,
55430 # but we know of no workaround that is simple, portable, and efficient.
55431 # So, don't put newlines in cache variables' values.
55432 # Ultrix sh set writes to stderr and can't be redirected directly,
55433 # and sets the high bit in the cache file unless we assign to the vars.
55436 case `(ac_space=' '; set | grep ac_space) 2>&1` in
55438 # `set' does not quote correctly, so add quotes (double-quote
55439 # substitution turns \\\\ into \\, and sed turns \\ into \).
55442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55445 # `set' quotes correctly as required by POSIX, so do not add quotes.
55447 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
55454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55456 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55458 if diff $cache_file confcache >/dev/null 2>&1; then :; else
55459 if test -w $cache_file; then
55460 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
55461 cat confcache >$cache_file
55463 echo "not updating unwritable cache $cache_file"
55468 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55469 # Let make expand exec_prefix.
55470 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55474 # trailing colons and then remove the whole line if VPATH becomes empty
55475 # (actually we leave an empty line to preserve line numbers).
55476 if test "x$srcdir" = x.; then
55477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
55478 s/:*\$(srcdir):*/:/;
55479 s/:*\${srcdir}:*/:/;
55481 s/^\([^=]*=[ ]*\):*/\1/;
55487 DEFS=-DHAVE_CONFIG_H
55491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55492 # 1. Remove the extension, and $U if already installed.
55493 ac_i=`echo "$ac_i" |
55494 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
55496 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
55497 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
55499 LIBOBJS=$ac_libobjs
55501 LTLIBOBJS=$ac_ltlibobjs
55504 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
55505 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
55506 Usually this means the macro was only invoked conditionally." >&5
55507 echo "$as_me: error: conditional \"AMDEP\" was never defined.
55508 Usually this means the macro was only invoked conditionally." >&2;}
55509 { (exit 1); exit 1; }; }
55511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
55512 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
55513 Usually this means the macro was only invoked conditionally." >&5
55514 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
55515 Usually this means the macro was only invoked conditionally." >&2;}
55516 { (exit 1); exit 1; }; }
55518 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
55519 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
55520 Usually this means the macro was only invoked conditionally." >&5
55521 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
55522 Usually this means the macro was only invoked conditionally." >&2;}
55523 { (exit 1); exit 1; }; }
55525 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
55526 { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
55527 Usually this means the macro was only invoked conditionally." >&5
55528 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
55529 Usually this means the macro was only invoked conditionally." >&2;}
55530 { (exit 1); exit 1; }; }
55532 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
55533 { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
55534 Usually this means the macro was only invoked conditionally." >&5
55535 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
55536 Usually this means the macro was only invoked conditionally." >&2;}
55537 { (exit 1); exit 1; }; }
55539 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
55540 { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
55541 Usually this means the macro was only invoked conditionally." >&5
55542 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
55543 Usually this means the macro was only invoked conditionally." >&2;}
55544 { (exit 1); exit 1; }; }
55546 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
55547 { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
55548 Usually this means the macro was only invoked conditionally." >&5
55549 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
55550 Usually this means the macro was only invoked conditionally." >&2;}
55551 { (exit 1); exit 1; }; }
55553 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
55554 { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
55555 Usually this means the macro was only invoked conditionally." >&5
55556 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
55557 Usually this means the macro was only invoked conditionally." >&2;}
55558 { (exit 1); exit 1; }; }
55560 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
55561 { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
55562 Usually this means the macro was only invoked conditionally." >&5
55563 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
55564 Usually this means the macro was only invoked conditionally." >&2;}
55565 { (exit 1); exit 1; }; }
55567 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
55568 { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
55569 Usually this means the macro was only invoked conditionally." >&5
55570 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
55571 Usually this means the macro was only invoked conditionally." >&2;}
55572 { (exit 1); exit 1; }; }
55574 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
55575 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
55576 Usually this means the macro was only invoked conditionally." >&5
55577 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
55578 Usually this means the macro was only invoked conditionally." >&2;}
55579 { (exit 1); exit 1; }; }
55581 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
55582 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55583 Usually this means the macro was only invoked conditionally." >&5
55584 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55585 Usually this means the macro was only invoked conditionally." >&2;}
55586 { (exit 1); exit 1; }; }
55588 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
55589 { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55590 Usually this means the macro was only invoked conditionally." >&5
55591 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55592 Usually this means the macro was only invoked conditionally." >&2;}
55593 { (exit 1); exit 1; }; }
55595 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
55596 { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55597 Usually this means the macro was only invoked conditionally." >&5
55598 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55599 Usually this means the macro was only invoked conditionally." >&2;}
55600 { (exit 1); exit 1; }; }
55602 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
55603 { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55604 Usually this means the macro was only invoked conditionally." >&5
55605 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55606 Usually this means the macro was only invoked conditionally." >&2;}
55607 { (exit 1); exit 1; }; }
55609 if test -z "${BUILD_MAN_PAGES_TRUE}" && test -z "${BUILD_MAN_PAGES_FALSE}"; then
55610 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MAN_PAGES\" was never defined.
55611 Usually this means the macro was only invoked conditionally." >&5
55612 echo "$as_me: error: conditional \"BUILD_MAN_PAGES\" was never defined.
55613 Usually this means the macro was only invoked conditionally." >&2;}
55614 { (exit 1); exit 1; }; }
55616 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
55617 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
55618 Usually this means the macro was only invoked conditionally." >&5
55619 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
55620 Usually this means the macro was only invoked conditionally." >&2;}
55621 { (exit 1); exit 1; }; }
55624 : ${CONFIG_STATUS=./config.status}
55625 ac_clean_files_save=$ac_clean_files
55626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
55627 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
55628 echo "$as_me: creating $CONFIG_STATUS" >&6;}
55629 cat >$CONFIG_STATUS <<_ACEOF
55631 # Generated by $as_me.
55632 # Run this file to recreate the current configuration.
55633 # Compiler output produced by configure, useful for debugging
55634 # configure, is in config.log if it exists.
55637 ac_cs_recheck=false
55639 SHELL=\${CONFIG_SHELL-$SHELL}
55642 cat >>$CONFIG_STATUS <<\_ACEOF
55643 ## --------------------- ##
55644 ## M4sh Initialization. ##
55645 ## --------------------- ##
55647 # Be Bourne compatible
55648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55651 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55652 # is contrary to our usage. Disable this feature.
55653 alias -g '${1+"$@"}'='"$@"'
55654 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
55657 DUALCASE=1; export DUALCASE # for MKS sh
55659 # Support unset when possible.
55660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55667 # Work around bugs in pre-3.0 UWIN ksh.
55668 $as_unset ENV MAIL MAILPATH
55675 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
55676 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
55677 LC_TELEPHONE LC_TIME
55679 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
55680 eval $as_var=C; export $as_var
55686 # Required to use basename.
55687 if expr a : '\(a\)' >/dev/null 2>&1; then
55693 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
55694 as_basename=basename
55700 # Name of the executable.
55701 as_me=`$as_basename "$0" ||
55702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55703 X"$0" : 'X\(//\)$' \| \
55704 X"$0" : 'X\(/\)$' \| \
55705 . : '\(.\)' 2>/dev/null ||
55707 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
55708 /^X\/\(\/\/\)$/{ s//\1/; q; }
55709 /^X\/\(\/\).*/{ s//\1/; q; }
55713 # PATH needs CR, and LINENO needs CR and PATH.
55714 # Avoid depending upon Character Ranges.
55715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55718 as_cr_digits='0123456789'
55719 as_cr_alnum=$as_cr_Letters$as_cr_digits
55721 # The user is always right.
55722 if test "${PATH_SEPARATOR+set}" != set; then
55723 echo "#! /bin/sh" >conf$$.sh
55724 echo "exit 0" >>conf$$.sh
55726 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55735 as_lineno_1=$LINENO
55736 as_lineno_2=$LINENO
55737 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
55738 test "x$as_lineno_1" != "x$as_lineno_2" &&
55739 test "x$as_lineno_3" = "x$as_lineno_2" || {
55740 # Find who we are. Look in the path if we contain no path at all
55743 *[\\/]* ) as_myself=$0 ;;
55744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55745 for as_dir in $PATH
55748 test -z "$as_dir" && as_dir=.
55749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55754 # We did not find ourselves, most probably we were run as `sh COMMAND'
55755 # in which case we are not to be found in the path.
55756 if test "x$as_myself" = x; then
55759 if test ! -f "$as_myself"; then
55760 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
55761 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
55762 { (exit 1); exit 1; }; }
55764 case $CONFIG_SHELL in
55766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55767 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
55770 test -z "$as_dir" && as_dir=.
55771 for as_base in sh bash ksh sh5; do
55774 if ("$as_dir/$as_base" -c '
55775 as_lineno_1=$LINENO
55776 as_lineno_2=$LINENO
55777 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
55778 test "x$as_lineno_1" != "x$as_lineno_2" &&
55779 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
55780 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
55781 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
55782 CONFIG_SHELL=$as_dir/$as_base
55783 export CONFIG_SHELL
55784 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
55792 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
55793 # uniformly replaced by the line number. The first 'sed' inserts a
55794 # line-number line before each line; the second 'sed' does the real
55795 # work. The second script uses 'N' to pair each line-number line
55796 # with the numbered line, and appends trailing '-' during
55797 # substitution so that $LINENO is not a special case at line end.
55798 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
55799 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
55800 sed '=' <$as_myself |
55805 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
55808 s,^['$as_cr_digits']*\n,,
55809 ' >$as_me.lineno &&
55810 chmod +x $as_me.lineno ||
55811 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
55812 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
55813 { (exit 1); exit 1; }; }
55815 # Don't try to exec as it changes $[0], causing all sort of problems
55816 # (the dirname of $[0] is not the place where we might find the
55817 # original and so on. Autoconf is especially sensible to this).
55819 # Exit status is that of the last command.
55824 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
55825 *c*,-n*) ECHO_N= ECHO_C='
55827 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
55828 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
55831 if expr a : '\(a\)' >/dev/null 2>&1; then
55837 rm -f conf$$ conf$$.exe conf$$.file
55839 if ln -s conf$$.file conf$$ 2>/dev/null; then
55840 # We could just check for DJGPP; but this test a) works b) is more generic
55841 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
55842 if test -f conf$$.exe; then
55843 # Don't use ln at all; we don't have any links
55848 elif ln conf$$.file conf$$ 2>/dev/null; then
55853 rm -f conf$$ conf$$.exe conf$$.file
55855 if mkdir -p . 2>/dev/null; then
55858 test -d ./-p && rmdir ./-p
55862 as_executable_p="test -f"
55864 # Sed expression to map a string onto a valid CPP name.
55865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55867 # Sed expression to map a string onto a valid variable name.
55868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55872 # We need space, tab and new line, in precisely that order.
55882 # Open the log real soon, to keep \$[0] and so on meaningful, and to
55883 # report actual input values of CONFIG_FILES etc. instead of their
55884 # values after options handling. Logging --version etc. is OK.
55888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55889 ## Running $as_me. ##
55894 This file was extended by $as_me, which was
55895 generated by GNU Autoconf 2.59. Invocation command line was
55897 CONFIG_FILES = $CONFIG_FILES
55898 CONFIG_HEADERS = $CONFIG_HEADERS
55899 CONFIG_LINKS = $CONFIG_LINKS
55900 CONFIG_COMMANDS = $CONFIG_COMMANDS
55904 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
55908 # Files that config.status was made for.
55909 if test -n "$ac_config_files"; then
55910 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
55913 if test -n "$ac_config_headers"; then
55914 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
55917 if test -n "$ac_config_links"; then
55918 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
55921 if test -n "$ac_config_commands"; then
55922 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
55925 cat >>$CONFIG_STATUS <<\_ACEOF
55928 \`$as_me' instantiates files from templates according to the
55929 current configuration.
55931 Usage: $0 [OPTIONS] [FILE]...
55933 -h, --help print this help, then exit
55934 -V, --version print version number, then exit
55935 -q, --quiet do not print progress messages
55936 -d, --debug don't remove temporary files
55937 --recheck update $as_me by reconfiguring in the same conditions
55938 --file=FILE[:TEMPLATE]
55939 instantiate the configuration file FILE
55940 --header=FILE[:TEMPLATE]
55941 instantiate the configuration header FILE
55943 Configuration files:
55946 Configuration headers:
55949 Configuration commands:
55952 Report bugs to <bug-autoconf@gnu.org>."
55955 cat >>$CONFIG_STATUS <<_ACEOF
55958 configured by $0, generated by GNU Autoconf 2.59,
55959 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
55961 Copyright (C) 2003 Free Software Foundation, Inc.
55962 This config.status script is free software; the Free Software Foundation
55963 gives unlimited permission to copy, distribute and modify it."
55968 cat >>$CONFIG_STATUS <<\_ACEOF
55969 # If no file are specified by the user, then we need to provide default
55970 # value. By we need to know if files were specified by the user.
55976 ac_option=`expr "x$1" : 'x\([^=]*\)='`
55977 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
55985 *) # This is not an option, so the user has probably given explicit
55988 ac_need_defaults=false;;
55992 # Handling of the options.
55994 cat >>$CONFIG_STATUS <<\_ACEOF
55995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55997 --version | --vers* | -V )
55998 echo "$ac_cs_version"; exit 0 ;;
56000 # Conflict between --help and --header
56001 { { echo "$as_me:$LINENO: error: ambiguous option: $1
56002 Try \`$0 --help' for more information." >&5
56003 echo "$as_me: error: ambiguous option: $1
56004 Try \`$0 --help' for more information." >&2;}
56005 { (exit 1); exit 1; }; };;
56006 --help | --hel | -h )
56007 echo "$ac_cs_usage"; exit 0 ;;
56008 --debug | --d* | -d )
56010 --file | --fil | --fi | --f )
56012 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56013 ac_need_defaults=false;;
56014 --header | --heade | --head | --hea )
56016 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56017 ac_need_defaults=false;;
56018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
56022 # This is an error.
56023 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
56024 Try \`$0 --help' for more information." >&5
56025 echo "$as_me: error: unrecognized option: $1
56026 Try \`$0 --help' for more information." >&2;}
56027 { (exit 1); exit 1; }; } ;;
56029 *) ac_config_targets="$ac_config_targets $1" ;;
56035 ac_configure_extra_args=
56037 if $ac_cs_silent; then
56039 ac_configure_extra_args="$ac_configure_extra_args --silent"
56043 cat >>$CONFIG_STATUS <<_ACEOF
56044 if \$ac_cs_recheck; then
56045 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56046 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56051 cat >>$CONFIG_STATUS <<_ACEOF
56053 # INIT-COMMANDS section.
56056 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
56057 # variables for create stdint.h replacement
56060 ac_stdint_h="$ac_stdint_h"
56061 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
56062 ac_cv_stdint_message="$ac_cv_stdint_message"
56063 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
56064 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
56065 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
56066 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
56067 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
56068 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
56069 ac_cv_char_data_model="$ac_cv_char_data_model"
56070 ac_cv_long_data_model="$ac_cv_long_data_model"
56071 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
56072 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
56073 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
56080 cat >>$CONFIG_STATUS <<\_ACEOF
56081 for ac_config_target in $ac_config_targets
56083 case "$ac_config_target" in
56084 # Handling of arguments.
56085 "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
56086 "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
56087 "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
56088 "amandad-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
56089 "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
56090 "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
56091 "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
56092 "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
56093 "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
56094 "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
56095 "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
56096 "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
56097 "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
56098 "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
56099 "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
56100 "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
56101 "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
56102 "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
56103 "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
56104 "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
56105 "dumper-src/gnutar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/gnutar.pl" ;;
56106 "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
56107 "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
56108 "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
56109 "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
56110 "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
56111 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
56112 "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
56113 "example/amanda-client.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
56114 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
56115 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
56116 "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
56117 "oldrecover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
56118 "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
56119 "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
56120 "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
56121 "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
56122 "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
56123 "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
56124 "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
56125 "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
56126 "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
56127 "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
56128 "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
56129 "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
56130 "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
56131 "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
56132 "server-src/amcrypt-ossl.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl.sh" ;;
56133 "server-src/amcrypt-ossl-asym.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl-asym.sh" ;;
56134 "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
56135 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
56136 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56137 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
56138 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
56139 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
56140 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56141 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56142 { (exit 1); exit 1; }; };;
56146 # If the user did not use the arguments to specify the items to instantiate,
56147 # then the envvar interface is used. Set only those that are not.
56148 # We use the long form for the default assignment because of an extremely
56149 # bizarre bug on SunOS 4.1.3.
56150 if $ac_need_defaults; then
56151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56156 # Have a temporary directory for convenience. Make it in the build tree
56157 # simply because there is no reason to put it here, and in addition,
56158 # creating and moving files from /tmp can sometimes cause problems.
56159 # Create a temporary directory, and hook for its removal unless debugging.
56162 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
56163 trap '{ (exit 1); exit 1; }' 1 2 13 15
56166 # Create a (secure) tmp directory for tmp files.
56169 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
56170 test -n "$tmp" && test -d "$tmp"
56173 tmp=./confstat$$-$RANDOM
56174 (umask 077 && mkdir $tmp)
56177 echo "$me: cannot create a temporary directory in ." >&2
56178 { (exit 1); exit 1; }
56183 cat >>$CONFIG_STATUS <<_ACEOF
56186 # CONFIG_FILES section.
56189 # No need to generate the scripts if there are no CONFIG_FILES.
56190 # This happens for instance when ./config.status config.h
56191 if test -n "\$CONFIG_FILES"; then
56192 # Protect against being on the right side of a sed subst in config.status.
56193 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
56194 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
56195 s,@SHELL@,$SHELL,;t t
56196 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
56197 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
56198 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
56199 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
56200 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
56201 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
56202 s,@exec_prefix@,$exec_prefix,;t t
56203 s,@prefix@,$prefix,;t t
56204 s,@program_transform_name@,$program_transform_name,;t t
56205 s,@bindir@,$bindir,;t t
56206 s,@sbindir@,$sbindir,;t t
56207 s,@libexecdir@,$libexecdir,;t t
56208 s,@datadir@,$datadir,;t t
56209 s,@sysconfdir@,$sysconfdir,;t t
56210 s,@sharedstatedir@,$sharedstatedir,;t t
56211 s,@localstatedir@,$localstatedir,;t t
56212 s,@libdir@,$libdir,;t t
56213 s,@includedir@,$includedir,;t t
56214 s,@oldincludedir@,$oldincludedir,;t t
56215 s,@infodir@,$infodir,;t t
56216 s,@mandir@,$mandir,;t t
56217 s,@build_alias@,$build_alias,;t t
56218 s,@host_alias@,$host_alias,;t t
56219 s,@target_alias@,$target_alias,;t t
56220 s,@DEFS@,$DEFS,;t t
56221 s,@ECHO_C@,$ECHO_C,;t t
56222 s,@ECHO_N@,$ECHO_N,;t t
56223 s,@ECHO_T@,$ECHO_T,;t t
56224 s,@LIBS@,$LIBS,;t t
56225 s,@build@,$build,;t t
56226 s,@build_cpu@,$build_cpu,;t t
56227 s,@build_vendor@,$build_vendor,;t t
56228 s,@build_os@,$build_os,;t t
56229 s,@host@,$host,;t t
56230 s,@host_cpu@,$host_cpu,;t t
56231 s,@host_vendor@,$host_vendor,;t t
56232 s,@host_os@,$host_os,;t t
56233 s,@target@,$target,;t t
56234 s,@target_cpu@,$target_cpu,;t t
56235 s,@target_vendor@,$target_vendor,;t t
56236 s,@target_os@,$target_os,;t t
56237 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
56238 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
56239 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
56240 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
56241 s,@CYGPATH_W@,$CYGPATH_W,;t t
56242 s,@PACKAGE@,$PACKAGE,;t t
56243 s,@VERSION@,$VERSION,;t t
56244 s,@ACLOCAL@,$ACLOCAL,;t t
56245 s,@AUTOCONF@,$AUTOCONF,;t t
56246 s,@AUTOMAKE@,$AUTOMAKE,;t t
56247 s,@AUTOHEADER@,$AUTOHEADER,;t t
56248 s,@MAKEINFO@,$MAKEINFO,;t t
56249 s,@install_sh@,$install_sh,;t t
56250 s,@STRIP@,$STRIP,;t t
56251 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
56252 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
56253 s,@mkdir_p@,$mkdir_p,;t t
56255 s,@SET_MAKE@,$SET_MAKE,;t t
56256 s,@am__leading_dot@,$am__leading_dot,;t t
56257 s,@AMTAR@,$AMTAR,;t t
56258 s,@am__tar@,$am__tar,;t t
56259 s,@am__untar@,$am__untar,;t t
56260 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
56261 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
56262 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
56263 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
56264 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
56265 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
56267 s,@CFLAGS@,$CFLAGS,;t t
56268 s,@LDFLAGS@,$LDFLAGS,;t t
56269 s,@CPPFLAGS@,$CPPFLAGS,;t t
56270 s,@ac_ct_CC@,$ac_ct_CC,;t t
56271 s,@EXEEXT@,$EXEEXT,;t t
56272 s,@OBJEXT@,$OBJEXT,;t t
56273 s,@DEPDIR@,$DEPDIR,;t t
56274 s,@am__include@,$am__include,;t t
56275 s,@am__quote@,$am__quote,;t t
56276 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
56277 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
56278 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
56279 s,@CCDEPMODE@,$CCDEPMODE,;t t
56280 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
56281 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
56282 s,@GREP@,$GREP,;t t
56283 s,@EGREP@,$EGREP,;t t
56284 s,@AMLINT@,$AMLINT,;t t
56285 s,@AMLINTFLAGS@,$AMLINTFLAGS,;t t
56286 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
56287 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
56288 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
56289 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
56290 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
56291 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
56292 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
56293 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
56294 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
56295 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
56296 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
56297 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
56298 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
56299 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
56300 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
56301 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
56302 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
56303 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
56304 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
56305 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
56306 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
56309 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
56310 s,@YACC@,$YACC,;t t
56312 s,@COMPRESS@,$COMPRESS,;t t
56314 s,@GETCONF@,$GETCONF,;t t
56315 s,@GNUPLOT@,$GNUPLOT,;t t
56316 s,@GNUTAR@,$GNUTAR,;t t
56317 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
56318 s,@GZIP@,$GZIP,;t t
56319 s,@MAILER@,$MAILER,;t t
56321 s,@CHIO@,$CHIO,;t t
56324 s,@MCUTIL@,$MCUTIL,;t t
56325 s,@PRINT@,$PRINT,;t t
56326 s,@PCAT@,$PCAT,;t t
56327 s,@PERL@,$PERL,;t t
56328 s,@DUMP@,$DUMP,;t t
56329 s,@RESTORE@,$RESTORE,;t t
56330 s,@XFSDUMP@,$XFSDUMP,;t t
56331 s,@XFSRESTORE@,$XFSRESTORE,;t t
56332 s,@VXDUMP@,$VXDUMP,;t t
56333 s,@VXRESTORE@,$VXRESTORE,;t t
56334 s,@VDUMP@,$VDUMP,;t t
56335 s,@VRESTORE@,$VRESTORE,;t t
56336 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
56337 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
56338 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
56339 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
56340 s,@LL_FMT@,$LL_FMT,;t t
56341 s,@LN_S@,$LN_S,;t t
56342 s,@ECHO@,$ECHO,;t t
56343 s,@ac_ct_AR@,$ac_ct_AR,;t t
56344 s,@RANLIB@,$RANLIB,;t t
56345 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
56347 s,@CXXFLAGS@,$CXXFLAGS,;t t
56348 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
56349 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
56350 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
56351 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
56352 s,@CXXCPP@,$CXXCPP,;t t
56354 s,@FFLAGS@,$FFLAGS,;t t
56355 s,@ac_ct_F77@,$ac_ct_F77,;t t
56356 s,@LIBTOOL@,$LIBTOOL,;t t
56357 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
56359 s,@LEXLIB@,$LEXLIB,;t t
56360 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
56361 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
56362 s,@DB_EXT@,$DB_EXT,;t t
56363 s,@ALLOCA@,$ALLOCA,;t t
56364 s,@LIBOBJS@,$LIBOBJS,;t t
56365 s,@ac_n@,$ac_n,;t t
56366 s,@ac_c@,$ac_c,;t t
56367 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
56368 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
56369 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
56370 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
56371 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
56372 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
56373 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
56374 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
56375 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
56376 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
56377 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
56378 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
56379 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
56380 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
56381 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
56382 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
56383 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
56384 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
56385 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
56386 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
56387 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
56388 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
56389 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
56390 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
56391 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
56392 s,@LTALLOCA@,$LTALLOCA,;t t
56393 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
56394 s,@BUILD_MAN_PAGES_TRUE@,$BUILD_MAN_PAGES_TRUE,;t t
56395 s,@BUILD_MAN_PAGES_FALSE@,$BUILD_MAN_PAGES_FALSE,;t t
56396 s,@XSLTPROC@,$XSLTPROC,;t t
56397 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
56398 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
56399 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
56404 cat >>$CONFIG_STATUS <<\_ACEOF
56405 # Split the substitutions into bite-sized pieces for seds with
56406 # small command number limits, like on Digital OSF/1 and HP-UX.
56407 ac_max_sed_lines=48
56408 ac_sed_frag=1 # Number of current file.
56409 ac_beg=1 # First line for current file.
56410 ac_end=$ac_max_sed_lines # Line after last line for current file.
56413 while $ac_more_lines; do
56414 if test $ac_beg -gt 1; then
56415 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56417 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56419 if test ! -s $tmp/subs.frag; then
56420 ac_more_lines=false
56422 # The purpose of the label and of the branching condition is to
56423 # speed up the sed processing (if there are no `@' at all, there
56424 # is no need to browse any of the substitutions).
56425 # These are the two extra sed commands mentioned above.
56427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
56428 if test -z "$ac_sed_cmds"; then
56429 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
56431 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
56433 ac_sed_frag=`expr $ac_sed_frag + 1`
56435 ac_end=`expr $ac_end + $ac_max_sed_lines`
56438 if test -z "$ac_sed_cmds"; then
56441 fi # test -n "$CONFIG_FILES"
56444 cat >>$CONFIG_STATUS <<\_ACEOF
56445 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
56446 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
56448 - | *:- | *:-:* ) # input from stdin
56450 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56452 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56454 * ) ac_file_in=$ac_file.in ;;
56457 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
56458 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
56459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56460 X"$ac_file" : 'X\(//\)[^/]' \| \
56461 X"$ac_file" : 'X\(//\)$' \| \
56462 X"$ac_file" : 'X\(/\)' \| \
56463 . : '\(.\)' 2>/dev/null ||
56465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56467 /^X\(\/\/\)$/{ s//\1/; q; }
56468 /^X\(\/\).*/{ s//\1/; q; }
56470 { if $as_mkdir_p; then
56475 while test ! -d "$as_dir"; do
56476 as_dirs="$as_dir $as_dirs"
56477 as_dir=`(dirname "$as_dir") 2>/dev/null ||
56478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56479 X"$as_dir" : 'X\(//\)[^/]' \| \
56480 X"$as_dir" : 'X\(//\)$' \| \
56481 X"$as_dir" : 'X\(/\)' \| \
56482 . : '\(.\)' 2>/dev/null ||
56484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56486 /^X\(\/\/\)$/{ s//\1/; q; }
56487 /^X\(\/\).*/{ s//\1/; q; }
56490 test ! -n "$as_dirs" || mkdir $as_dirs
56491 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56493 { (exit 1); exit 1; }; }; }
56497 if test "$ac_dir" != .; then
56498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
56499 # A "../" for each directory in $ac_dir_suffix.
56500 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
56502 ac_dir_suffix= ac_top_builddir=
56506 .) # No --srcdir option. We are building in place.
56508 if test -z "$ac_top_builddir"; then
56511 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
56513 [\\/]* | ?:[\\/]* ) # Absolute path.
56514 ac_srcdir=$srcdir$ac_dir_suffix;
56515 ac_top_srcdir=$srcdir ;;
56516 *) # Relative path.
56517 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
56518 ac_top_srcdir=$ac_top_builddir$srcdir ;;
56521 # Do not use `cd foo && pwd` to compute absolute paths, because
56522 # the directories may not exist.
56524 .) ac_abs_builddir="$ac_dir";;
56527 .) ac_abs_builddir=`pwd`;;
56528 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
56529 *) ac_abs_builddir=`pwd`/"$ac_dir";;
56532 case $ac_abs_builddir in
56533 .) ac_abs_top_builddir=${ac_top_builddir}.;;
56535 case ${ac_top_builddir}. in
56536 .) ac_abs_top_builddir=$ac_abs_builddir;;
56537 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
56538 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
56541 case $ac_abs_builddir in
56542 .) ac_abs_srcdir=$ac_srcdir;;
56545 .) ac_abs_srcdir=$ac_abs_builddir;;
56546 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
56547 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
56550 case $ac_abs_builddir in
56551 .) ac_abs_top_srcdir=$ac_top_srcdir;;
56553 case $ac_top_srcdir in
56554 .) ac_abs_top_srcdir=$ac_abs_builddir;;
56555 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
56556 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
56562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
56563 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
56566 if test x"$ac_file" != x-; then
56567 { echo "$as_me:$LINENO: creating $ac_file" >&5
56568 echo "$as_me: creating $ac_file" >&6;}
56571 # Let's still pretend it is `configure' which instantiates (i.e., don't
56572 # use $as_me), people would be surprised to read:
56573 # /* config.h. Generated by config.status. */
56574 if test x"$ac_file" = x-; then
56577 configure_input="$ac_file. "
56579 configure_input=$configure_input"Generated from `echo $ac_file_in |
56580 sed 's,.*/,,'` by configure."
56582 # First look for the input files in the build tree, otherwise in the
56584 ac_file_inputs=`IFS=:
56585 for f in $ac_file_in; do
56587 -) echo $tmp/stdin ;;
56589 # Absolute (can't be DOS-style, as IFS=:)
56590 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56591 echo "$as_me: error: cannot find input file: $f" >&2;}
56592 { (exit 1); exit 1; }; }
56595 if test -f "$f"; then
56598 elif test -f "$srcdir/$f"; then
56603 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56604 echo "$as_me: error: cannot find input file: $f" >&2;}
56605 { (exit 1); exit 1; }; }
56608 done` || { (exit 1); exit 1; }
56610 cat >>$CONFIG_STATUS <<_ACEOF
56614 cat >>$CONFIG_STATUS <<\_ACEOF
56616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56617 s,@configure_input@,$configure_input,;t t
56618 s,@srcdir@,$ac_srcdir,;t t
56619 s,@abs_srcdir@,$ac_abs_srcdir,;t t
56620 s,@top_srcdir@,$ac_top_srcdir,;t t
56621 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
56622 s,@builddir@,$ac_builddir,;t t
56623 s,@abs_builddir@,$ac_abs_builddir,;t t
56624 s,@top_builddir@,$ac_top_builddir,;t t
56625 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
56626 s,@INSTALL@,$ac_INSTALL,;t t
56627 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
56629 if test x"$ac_file" != x-; then
56630 mv $tmp/out $ac_file
56638 cat >>$CONFIG_STATUS <<\_ACEOF
56641 # CONFIG_HEADER section.
56644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
56645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
56647 # ac_d sets the value in "#define NAME VALUE" lines.
56648 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
56649 ac_dB='[ ].*$,\1#\2'
56652 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
56653 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
56654 ac_uB='$,\1#\2define\3'
56658 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
56659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
56661 - | *:- | *:-:* ) # input from stdin
56663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56667 * ) ac_file_in=$ac_file.in ;;
56670 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
56671 echo "$as_me: creating $ac_file" >&6;}
56673 # First look for the input files in the build tree, otherwise in the
56675 ac_file_inputs=`IFS=:
56676 for f in $ac_file_in; do
56678 -) echo $tmp/stdin ;;
56680 # Absolute (can't be DOS-style, as IFS=:)
56681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56682 echo "$as_me: error: cannot find input file: $f" >&2;}
56683 { (exit 1); exit 1; }; }
56684 # Do quote $f, to prevent DOS paths from being IFS'd.
56687 if test -f "$f"; then
56690 elif test -f "$srcdir/$f"; then
56695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56696 echo "$as_me: error: cannot find input file: $f" >&2;}
56697 { (exit 1); exit 1; }; }
56700 done` || { (exit 1); exit 1; }
56701 # Remove the trailing spaces.
56702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
56706 # Transform confdefs.h into two sed scripts, `conftest.defines' and
56707 # `conftest.undefs', that substitutes the proper values into
56708 # config.h.in to produce config.h. The first handles `#define'
56709 # templates, and the second `#undef' templates.
56710 # And first: Protect against being on the right side of a sed subst in
56711 # config.status. Protect against being in an unquoted here document
56712 # in config.status.
56713 rm -f conftest.defines conftest.undefs
56714 # Using a here document instead of a string reduces the quoting nightmare.
56715 # Putting comments in sed scripts is not portable.
56717 # `end' is used to avoid that the second main sed command (meant for
56718 # 0-ary CPP macros) applies to n-ary macro definitions.
56719 # See the Autoconf documentation for `clear'.
56720 cat >confdef2sed.sed <<\_ACEOF
56725 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
56727 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
56730 # If some macros were called several times there might be several times
56731 # the same #defines, which is useless. Nevertheless, we may not want to
56732 # sort them, since we want the *last* AC-DEFINE to be honored.
56733 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
56734 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
56735 rm -f confdef2sed.sed
56737 # This sed command replaces #undef with comments. This is necessary, for
56738 # example, in the case of _POSIX_SOURCE, which is predefined and required
56739 # on some systems where configure will not decide to define it.
56740 cat >>conftest.undefs <<\_ACEOF
56741 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
56744 # Break up conftest.defines because some shells have a limit on the size
56745 # of here documents, and old seds have small limits too (100 cmds).
56746 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
56747 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
56748 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
56749 echo ' :' >>$CONFIG_STATUS
56750 rm -f conftest.tail
56751 while grep . conftest.defines >/dev/null
56753 # Write a limited-size here document to $tmp/defines.sed.
56754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
56755 # Speed up: don't consider the non `#define' lines.
56756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
56757 # Work around the forget-to-reset-the-flag bug.
56758 echo 't clr' >>$CONFIG_STATUS
56759 echo ': clr' >>$CONFIG_STATUS
56760 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
56762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
56764 mv $tmp/out $tmp/in
56766 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
56767 rm -f conftest.defines
56768 mv conftest.tail conftest.defines
56770 rm -f conftest.defines
56771 echo ' fi # grep' >>$CONFIG_STATUS
56772 echo >>$CONFIG_STATUS
56774 # Break up conftest.undefs because some shells have a limit on the size
56775 # of here documents, and old seds have small limits too (100 cmds).
56776 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
56777 rm -f conftest.tail
56778 while grep . conftest.undefs >/dev/null
56780 # Write a limited-size here document to $tmp/undefs.sed.
56781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
56782 # Speed up: don't consider the non `#undef'
56783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
56784 # Work around the forget-to-reset-the-flag bug.
56785 echo 't clr' >>$CONFIG_STATUS
56786 echo ': clr' >>$CONFIG_STATUS
56787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
56789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
56791 mv $tmp/out $tmp/in
56793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
56794 rm -f conftest.undefs
56795 mv conftest.tail conftest.undefs
56797 rm -f conftest.undefs
56799 cat >>$CONFIG_STATUS <<\_ACEOF
56800 # Let's still pretend it is `configure' which instantiates (i.e., don't
56801 # use $as_me), people would be surprised to read:
56802 # /* config.h. Generated by config.status. */
56803 if test x"$ac_file" = x-; then
56804 echo "/* Generated by configure. */" >$tmp/config.h
56806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
56808 cat $tmp/in >>$tmp/config.h
56810 if test x"$ac_file" != x-; then
56811 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
56812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
56813 echo "$as_me: $ac_file is unchanged" >&6;}
56815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
56816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56817 X"$ac_file" : 'X\(//\)[^/]' \| \
56818 X"$ac_file" : 'X\(//\)$' \| \
56819 X"$ac_file" : 'X\(/\)' \| \
56820 . : '\(.\)' 2>/dev/null ||
56822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56824 /^X\(\/\/\)$/{ s//\1/; q; }
56825 /^X\(\/\).*/{ s//\1/; q; }
56827 { if $as_mkdir_p; then
56832 while test ! -d "$as_dir"; do
56833 as_dirs="$as_dir $as_dirs"
56834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
56835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56836 X"$as_dir" : 'X\(//\)[^/]' \| \
56837 X"$as_dir" : 'X\(//\)$' \| \
56838 X"$as_dir" : 'X\(/\)' \| \
56839 . : '\(.\)' 2>/dev/null ||
56841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56843 /^X\(\/\/\)$/{ s//\1/; q; }
56844 /^X\(\/\).*/{ s//\1/; q; }
56847 test ! -n "$as_dirs" || mkdir $as_dirs
56848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56850 { (exit 1); exit 1; }; }; }
56853 mv $tmp/config.h $ac_file
56857 rm -f $tmp/config.h
56859 # Compute $ac_file's index in $config_headers.
56861 for _am_header in $config_headers :; do
56862 case $_am_header in
56863 $ac_file | $ac_file:* )
56866 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
56869 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
56870 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56871 X$ac_file : 'X\(//\)[^/]' \| \
56872 X$ac_file : 'X\(//\)$' \| \
56873 X$ac_file : 'X\(/\)' \| \
56874 . : '\(.\)' 2>/dev/null ||
56876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56878 /^X\(\/\/\)$/{ s//\1/; q; }
56879 /^X\(\/\).*/{ s//\1/; q; }
56880 s/.*/./; q'`/stamp-h$_am_stamp_count
56883 cat >>$CONFIG_STATUS <<\_ACEOF
56886 # CONFIG_COMMANDS section.
56888 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
56889 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
56890 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
56891 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
56892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56893 X"$ac_dest" : 'X\(//\)[^/]' \| \
56894 X"$ac_dest" : 'X\(//\)$' \| \
56895 X"$ac_dest" : 'X\(/\)' \| \
56896 . : '\(.\)' 2>/dev/null ||
56898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56900 /^X\(\/\/\)$/{ s//\1/; q; }
56901 /^X\(\/\).*/{ s//\1/; q; }
56903 { if $as_mkdir_p; then
56908 while test ! -d "$as_dir"; do
56909 as_dirs="$as_dir $as_dirs"
56910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
56911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56912 X"$as_dir" : 'X\(//\)[^/]' \| \
56913 X"$as_dir" : 'X\(//\)$' \| \
56914 X"$as_dir" : 'X\(/\)' \| \
56915 . : '\(.\)' 2>/dev/null ||
56917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56919 /^X\(\/\/\)$/{ s//\1/; q; }
56920 /^X\(\/\).*/{ s//\1/; q; }
56923 test ! -n "$as_dirs" || mkdir $as_dirs
56924 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56926 { (exit 1); exit 1; }; }; }
56930 if test "$ac_dir" != .; then
56931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
56932 # A "../" for each directory in $ac_dir_suffix.
56933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
56935 ac_dir_suffix= ac_top_builddir=
56939 .) # No --srcdir option. We are building in place.
56941 if test -z "$ac_top_builddir"; then
56944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
56946 [\\/]* | ?:[\\/]* ) # Absolute path.
56947 ac_srcdir=$srcdir$ac_dir_suffix;
56948 ac_top_srcdir=$srcdir ;;
56949 *) # Relative path.
56950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
56951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
56954 # Do not use `cd foo && pwd` to compute absolute paths, because
56955 # the directories may not exist.
56957 .) ac_abs_builddir="$ac_dir";;
56960 .) ac_abs_builddir=`pwd`;;
56961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
56962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
56965 case $ac_abs_builddir in
56966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
56968 case ${ac_top_builddir}. in
56969 .) ac_abs_top_builddir=$ac_abs_builddir;;
56970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
56971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
56974 case $ac_abs_builddir in
56975 .) ac_abs_srcdir=$ac_srcdir;;
56978 .) ac_abs_srcdir=$ac_abs_builddir;;
56979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
56980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
56983 case $ac_abs_builddir in
56984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
56986 case $ac_top_srcdir in
56987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
56988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
56989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
56994 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
56995 echo "$as_me: executing $ac_dest commands" >&6;}
56997 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
56998 # Strip MF so we end up with the name of the file.
56999 mf=`echo "$mf" | sed -e 's/:.*$//'`
57000 # Check whether this is an Automake generated Makefile or not.
57001 # We used to match only the files named `Makefile.in', but
57002 # some people rename them; so instead we look at the file content.
57003 # Grep'ing the first line is not enough: some people post-process
57004 # each Makefile.in and add a new line on top of each file to say so.
57005 # So let's grep whole file.
57006 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
57007 dirpart=`(dirname "$mf") 2>/dev/null ||
57008 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57009 X"$mf" : 'X\(//\)[^/]' \| \
57010 X"$mf" : 'X\(//\)$' \| \
57011 X"$mf" : 'X\(/\)' \| \
57012 . : '\(.\)' 2>/dev/null ||
57014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57016 /^X\(\/\/\)$/{ s//\1/; q; }
57017 /^X\(\/\).*/{ s//\1/; q; }
57022 # Extract the definition of DEPDIR, am__include, and am__quote
57023 # from the Makefile without running `make'.
57024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
57025 test -z "$DEPDIR" && continue
57026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
57027 test -z "am__include" && continue
57028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
57029 # When using ansi2knr, U may be empty or an underscore; expand it
57030 U=`sed -n 's/^U = //p' < "$mf"`
57031 # Find all dependency output files, they are included files with
57032 # $(DEPDIR) in their names. We invoke sed twice because it is the
57033 # simplest approach to changing $(DEPDIR) to its actual value in the
57035 for file in `sed -n "
57036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
57037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
57038 # Make sure the directory exists.
57039 test -f "$dirpart/$file" && continue
57040 fdir=`(dirname "$file") 2>/dev/null ||
57041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57042 X"$file" : 'X\(//\)[^/]' \| \
57043 X"$file" : 'X\(//\)$' \| \
57044 X"$file" : 'X\(/\)' \| \
57045 . : '\(.\)' 2>/dev/null ||
57047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57049 /^X\(\/\/\)$/{ s//\1/; q; }
57050 /^X\(\/\).*/{ s//\1/; q; }
57052 { if $as_mkdir_p; then
57053 mkdir -p $dirpart/$fdir
57055 as_dir=$dirpart/$fdir
57057 while test ! -d "$as_dir"; do
57058 as_dirs="$as_dir $as_dirs"
57059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
57060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57061 X"$as_dir" : 'X\(//\)[^/]' \| \
57062 X"$as_dir" : 'X\(//\)$' \| \
57063 X"$as_dir" : 'X\(/\)' \| \
57064 . : '\(.\)' 2>/dev/null ||
57066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57068 /^X\(\/\/\)$/{ s//\1/; q; }
57069 /^X\(\/\).*/{ s//\1/; q; }
57072 test ! -n "$as_dirs" || mkdir $as_dirs
57073 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
57074 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
57075 { (exit 1); exit 1; }; }; }
57077 # echo "creating $dirpart/$file"
57078 echo '# dummy' > "$dirpart/$file"
57083 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
57084 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
57085 ac_stdint=$tmp/_stdint.h
57087 echo "#ifndef" $_ac_stdint_h >$ac_stdint
57088 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
57089 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
57090 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
57091 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
57092 if test "_$ac_cv_header_stdint_t" != "_" ; then
57093 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
57094 echo "#include <stdint.h>" >>$ac_stdint
57095 echo "#endif" >>$ac_stdint
57096 echo "#endif" >>$ac_stdint
57099 cat >>$ac_stdint <<STDINT_EOF
57101 /* ................... shortcircuit part ........................... */
57103 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
57104 #include <stdint.h>
57106 #include <stddef.h>
57108 /* .................... configured part ............................ */
57112 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
57113 if test "_$ac_cv_header_stdint_x" != "_" ; then
57114 ac_header="$ac_cv_header_stdint_x"
57115 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
57117 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
57120 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
57121 if test "_$ac_cv_header_stdint_o" != "_" ; then
57122 ac_header="$ac_cv_header_stdint_o"
57123 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
57125 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
57128 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
57129 if test "_$ac_cv_header_stdint_u" != "_" ; then
57130 ac_header="$ac_cv_header_stdint_u"
57131 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
57133 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
57136 echo "" >>$ac_stdint
57138 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
57139 echo "#include <$ac_header>" >>$ac_stdint
57140 echo "" >>$ac_stdint
57143 echo "/* which 64bit typedef has been found */" >>$ac_stdint
57144 if test "$ac_cv_type_uint64_t" = "yes" ; then
57145 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
57147 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
57149 if test "$ac_cv_type_u_int64_t" = "yes" ; then
57150 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
57152 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
57154 echo "" >>$ac_stdint
57156 echo "/* which type model has been detected */" >>$ac_stdint
57157 if test "_$ac_cv_char_data_model" != "_" ; then
57158 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
57159 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
57161 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
57162 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
57164 echo "" >>$ac_stdint
57166 echo "/* whether int_least types were detected */" >>$ac_stdint
57167 if test "$ac_cv_type_int_least32_t" = "yes"; then
57168 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
57170 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
57172 echo "/* whether int_fast types were detected */" >>$ac_stdint
57173 if test "$ac_cv_type_int_fast32_t" = "yes"; then
57174 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
57176 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
57178 echo "/* whether intmax_t type was detected */" >>$ac_stdint
57179 if test "$ac_cv_type_intmax_t" = "yes"; then
57180 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
57182 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
57184 echo "" >>$ac_stdint
57186 cat >>$ac_stdint <<STDINT_EOF
57187 /* .................... detections part ............................ */
57189 /* whether we need to define bitspecific types from compiler base types */
57190 #ifndef _STDINT_HEADER_INTPTR
57191 #ifndef _STDINT_HEADER_UINT32
57192 #ifndef _STDINT_HEADER_U_INT32
57193 #define _STDINT_NEED_INT_MODEL_T
57195 #define _STDINT_HAVE_U_INT_TYPES
57200 #ifdef _STDINT_HAVE_U_INT_TYPES
57201 #undef _STDINT_NEED_INT_MODEL_T
57204 #ifdef _STDINT_CHAR_MODEL
57205 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
57206 #ifndef _STDINT_BYTE_MODEL
57207 #define _STDINT_BYTE_MODEL 12
57212 #ifndef _STDINT_HAVE_INT_LEAST32_T
57213 #define _STDINT_NEED_INT_LEAST_T
57216 #ifndef _STDINT_HAVE_INT_FAST32_T
57217 #define _STDINT_NEED_INT_FAST_T
57220 #ifndef _STDINT_HEADER_INTPTR
57221 #define _STDINT_NEED_INTPTR_T
57222 #ifndef _STDINT_HAVE_INTMAX_T
57223 #define _STDINT_NEED_INTMAX_T
57228 /* .................... definition part ............................ */
57230 /* some system headers have good uint64_t */
57231 #ifndef _HAVE_UINT64_T
57232 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
57233 #define _HAVE_UINT64_T
57234 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
57235 #define _HAVE_UINT64_T
57236 typedef u_int64_t uint64_t;
57240 #ifndef _HAVE_UINT64_T
57241 /* .. here are some common heuristics using compiler runtime specifics */
57242 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
57243 #define _HAVE_UINT64_T
57244 #define _HAVE_LONGLONG_UINT64_T
57245 typedef long long int64_t;
57246 typedef unsigned long long uint64_t;
57248 #elif !defined __STRICT_ANSI__
57249 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
57250 #define _HAVE_UINT64_T
57251 typedef __int64 int64_t;
57252 typedef unsigned __int64 uint64_t;
57254 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
57255 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
57256 #if !defined _NO_LONGLONG
57257 #define _HAVE_UINT64_T
57258 #define _HAVE_LONGLONG_UINT64_T
57259 typedef long long int64_t;
57260 typedef unsigned long long uint64_t;
57263 #elif defined __alpha || (defined __mips && defined _ABIN32)
57264 #if !defined _NO_LONGLONG
57265 #define _HAVE_UINT64_T
57266 typedef long int64_t;
57267 typedef unsigned long uint64_t;
57269 /* compiler/cpu type to define int64_t */
57274 #if defined _STDINT_HAVE_U_INT_TYPES
57275 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
57276 typedef u_int8_t uint8_t;
57277 typedef u_int16_t uint16_t;
57278 typedef u_int32_t uint32_t;
57280 /* glibc compatibility */
57281 #ifndef __int8_t_defined
57282 #define __int8_t_defined
57286 #ifdef _STDINT_NEED_INT_MODEL_T
57287 /* we must guess all the basic types. Apart from byte-adressable system, */
57288 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
57289 /* (btw, those nibble-addressable systems are way off, or so we assume) */
57292 #if defined _STDINT_BYTE_MODEL
57293 #if _STDINT_LONG_MODEL+0 == 242
57294 /* 2:4:2 = IP16 = a normal 16-bit system */
57295 typedef unsigned char uint8_t;
57296 typedef unsigned short uint16_t;
57297 typedef unsigned long uint32_t;
57298 #ifndef __int8_t_defined
57299 #define __int8_t_defined
57300 typedef char int8_t;
57301 typedef short int16_t;
57302 typedef long int32_t;
57304 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
57305 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
57306 /* 4:4:4 = ILP32 = a normal 32-bit system */
57307 typedef unsigned char uint8_t;
57308 typedef unsigned short uint16_t;
57309 typedef unsigned int uint32_t;
57310 #ifndef __int8_t_defined
57311 #define __int8_t_defined
57312 typedef char int8_t;
57313 typedef short int16_t;
57314 typedef int int32_t;
57316 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
57317 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
57318 /* 4:8:8 = LP64 = a normal 64-bit system */
57319 typedef unsigned char uint8_t;
57320 typedef unsigned short uint16_t;
57321 typedef unsigned int uint32_t;
57322 #ifndef __int8_t_defined
57323 #define __int8_t_defined
57324 typedef char int8_t;
57325 typedef short int16_t;
57326 typedef int int32_t;
57328 /* this system has a "long" of 64bit */
57329 #ifndef _HAVE_UINT64_T
57330 #define _HAVE_UINT64_T
57331 typedef unsigned long uint64_t;
57332 typedef long int64_t;
57334 #elif _STDINT_LONG_MODEL+0 == 448
57335 /* LLP64 a 64-bit system derived from a 32-bit system */
57336 typedef unsigned char uint8_t;
57337 typedef unsigned short uint16_t;
57338 typedef unsigned int uint32_t;
57339 #ifndef __int8_t_defined
57340 #define __int8_t_defined
57341 typedef char int8_t;
57342 typedef short int16_t;
57343 typedef int int32_t;
57345 /* assuming the system has a "long long" */
57346 #ifndef _HAVE_UINT64_T
57347 #define _HAVE_UINT64_T
57348 #define _HAVE_LONGLONG_UINT64_T
57349 typedef unsigned long long uint64_t;
57350 typedef long long int64_t;
57353 #define _STDINT_NO_INT32_T
57356 #define _STDINT_NO_INT8_T
57357 #define _STDINT_NO_INT32_T
57362 * quote from SunOS-5.8 sys/inttypes.h:
57363 * Use at your own risk. As of February 1996, the committee is squarely
57364 * behind the fixed sized types; the "least" and "fast" types are still being
57365 * discussed. The probability that the "fast" types may be removed before
57366 * the standard is finalized is high enough that they are not currently
57370 #if defined _STDINT_NEED_INT_LEAST_T
57371 typedef int8_t int_least8_t;
57372 typedef int16_t int_least16_t;
57373 typedef int32_t int_least32_t;
57374 #ifdef _HAVE_UINT64_T
57375 typedef int64_t int_least64_t;
57378 typedef uint8_t uint_least8_t;
57379 typedef uint16_t uint_least16_t;
57380 typedef uint32_t uint_least32_t;
57381 #ifdef _HAVE_UINT64_T
57382 typedef uint64_t uint_least64_t;
57387 #if defined _STDINT_NEED_INT_FAST_T
57388 typedef int8_t int_fast8_t;
57389 typedef int int_fast16_t;
57390 typedef int32_t int_fast32_t;
57391 #ifdef _HAVE_UINT64_T
57392 typedef int64_t int_fast64_t;
57395 typedef uint8_t uint_fast8_t;
57396 typedef unsigned uint_fast16_t;
57397 typedef uint32_t uint_fast32_t;
57398 #ifdef _HAVE_UINT64_T
57399 typedef uint64_t uint_fast64_t;
57404 #ifdef _STDINT_NEED_INTMAX_T
57405 #ifdef _HAVE_UINT64_T
57406 typedef int64_t intmax_t;
57407 typedef uint64_t uintmax_t;
57409 typedef long intmax_t;
57410 typedef unsigned long uintmax_t;
57414 #ifdef _STDINT_NEED_INTPTR_T
57415 #ifndef __intptr_t_defined
57416 #define __intptr_t_defined
57417 /* we encourage using "long" to store pointer values, never use "int" ! */
57418 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
57419 typedef unsinged int uintptr_t;
57420 typedef int intptr_t;
57421 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
57422 typedef unsigned long uintptr_t;
57423 typedef long intptr_t;
57424 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
57425 typedef uint64_t uintptr_t;
57426 typedef int64_t intptr_t;
57427 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
57428 typedef unsigned long uintptr_t;
57429 typedef long intptr_t;
57434 /* The ISO C99 standard specifies that in C++ implementations these
57435 should only be defined if explicitly requested. */
57436 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
57440 # define INT8_C(c) c
57441 # define INT16_C(c) c
57442 # define INT32_C(c) c
57443 # ifdef _HAVE_LONGLONG_UINT64_T
57444 # define INT64_C(c) c ## L
57446 # define INT64_C(c) c ## LL
57450 # define UINT8_C(c) c ## U
57451 # define UINT16_C(c) c ## U
57452 # define UINT32_C(c) c ## U
57453 # ifdef _HAVE_LONGLONG_UINT64_T
57454 # define UINT64_C(c) c ## UL
57456 # define UINT64_C(c) c ## ULL
57459 /* Maximal type. */
57460 # ifdef _HAVE_LONGLONG_UINT64_T
57461 # define INTMAX_C(c) c ## L
57462 # define UINTMAX_C(c) c ## UL
57464 # define INTMAX_C(c) c ## LL
57465 # define UINTMAX_C(c) c ## ULL
57468 /* literalnumbers */
57472 /* These limits are merily those of a two complement byte-oriented system */
57474 /* Minimum of signed integral types. */
57475 # define INT8_MIN (-128)
57476 # define INT16_MIN (-32767-1)
57477 # define INT32_MIN (-2147483647-1)
57478 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
57479 /* Maximum of signed integral types. */
57480 # define INT8_MAX (127)
57481 # define INT16_MAX (32767)
57482 # define INT32_MAX (2147483647)
57483 # define INT64_MAX (__INT64_C(9223372036854775807))
57485 /* Maximum of unsigned integral types. */
57486 # define UINT8_MAX (255)
57487 # define UINT16_MAX (65535)
57488 # define UINT32_MAX (4294967295U)
57489 # define UINT64_MAX (__UINT64_C(18446744073709551615))
57491 /* Minimum of signed integral types having a minimum size. */
57492 # define INT_LEAST8_MIN INT8_MIN
57493 # define INT_LEAST16_MIN INT16_MIN
57494 # define INT_LEAST32_MIN INT32_MIN
57495 # define INT_LEAST64_MIN INT64_MIN
57496 /* Maximum of signed integral types having a minimum size. */
57497 # define INT_LEAST8_MAX INT8_MAX
57498 # define INT_LEAST16_MAX INT16_MAX
57499 # define INT_LEAST32_MAX INT32_MAX
57500 # define INT_LEAST64_MAX INT64_MAX
57502 /* Maximum of unsigned integral types having a minimum size. */
57503 # define UINT_LEAST8_MAX UINT8_MAX
57504 # define UINT_LEAST16_MAX UINT16_MAX
57505 # define UINT_LEAST32_MAX UINT32_MAX
57506 # define UINT_LEAST64_MAX UINT64_MAX
57515 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
57516 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
57517 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
57519 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
57520 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57521 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
57522 X"$ac_stdint_h" : 'X\(//\)$' \| \
57523 X"$ac_stdint_h" : 'X\(/\)' \| \
57524 . : '\(.\)' 2>/dev/null ||
57525 echo X"$ac_stdint_h" |
57526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57528 /^X\(\/\/\)$/{ s//\1/; q; }
57529 /^X\(\/\).*/{ s//\1/; q; }
57531 { if $as_mkdir_p; then
57536 while test ! -d "$as_dir"; do
57537 as_dirs="$as_dir $as_dirs"
57538 as_dir=`(dirname "$as_dir") 2>/dev/null ||
57539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57540 X"$as_dir" : 'X\(//\)[^/]' \| \
57541 X"$as_dir" : 'X\(//\)$' \| \
57542 X"$as_dir" : 'X\(/\)' \| \
57543 . : '\(.\)' 2>/dev/null ||
57545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57547 /^X\(\/\/\)$/{ s//\1/; q; }
57548 /^X\(\/\).*/{ s//\1/; q; }
57551 test ! -n "$as_dirs" || mkdir $as_dirs
57552 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57554 { (exit 1); exit 1; }; }; }
57557 mv $ac_stdint $ac_stdint_h
57564 cat >>$CONFIG_STATUS <<\_ACEOF
57566 { (exit 0); exit 0; }
57568 chmod +x $CONFIG_STATUS
57569 ac_clean_files=$ac_clean_files_save
57572 # configure is writing to config.log, and then calls config.status.
57573 # config.status does its own redirection, appending to config.log.
57574 # Unfortunately, on DOS this fails, as config.log is still kept open
57575 # by configure, so config.status won't be able to write to it; its
57576 # output is simply discarded. So we exec the FD to /dev/null,
57577 # effectively closing config.log, so it can be properly (re)opened and
57578 # appended to by config.status. When coming back to configure, we
57579 # need to make the FD available again.
57580 if test "$no_create" != yes; then
57582 ac_config_status_args=
57583 test "$silent" = yes &&
57584 ac_config_status_args="$ac_config_status_args --quiet"
57586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57589 # would make configure fail if this is the last instruction.
57590 $ac_cs_success || { (exit 1); exit 1; }