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 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 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 MT_FILE_FLAG CPP EGREP AR AWK_VAR_ASSIGNMENT_OPT YACC CAT COMPRESS DD GETCONF GNUPLOT GREP 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 XSLTPROC HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE'
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 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --disable-largefile omit support for large files
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 --with-gnutar[=PROG] use PROG as GNU tar executable [default: looks for one]
1072 --with-smbclient[=PROG] use PROG as Samba's smbclient executable [default: looks for one]
1073 --with-samba-user was deprecated
1074 --with-gnutar-listdir=DIR gnutar directory lists go in DIR [localstatedir/amanda/gnutar-lists]
1075 --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1076 --without-bsd-security do not use BSD rsh/rlogin style security
1077 --without-amandahosts use .rhosts instead of .amandahosts
1078 --with-dbmalloc=DIR Location of dbmalloc libs and headers
1079 --with-krb4-security=DIR Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1080 --with-rsh-security use rsh as a transport
1081 --with-ssh-security use ssh as a transport
1082 --with-server-principal=ARG server host principal ["amanda"]
1083 --with-server-instance=ARG server host instance ["amanda"]
1084 --with-server-keyfile=ARG server host key file ["/.amanda"]
1085 --with-client-principal=ARG client host principal ["rcmd"]
1086 --with-client-instance=ARG client host instance [HOSTNAME_INSTANCE]
1087 --with-client-keyfile=ARG client host key file [KEYFILE]
1088 --with-ticket-lifetime=ARG ticket lifetime [128]
1089 --with-krb5-security=DIR Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1090 --with-portrange=low,high bind unreserved TCP server sockets to ports within this range [unlimited]
1091 --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range [unlimited]
1092 --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range [unlimited]
1093 --with-maxtapeblocksize=kb Maximum size of a tape block
1094 --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1095 --with-mmap force use of mmap instead of shared memory support
1096 --with-buffered-dump buffer the dumping sockets on the server for speed
1097 --with-assertions compile assertions into code
1098 --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1099 --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1100 --with-debug-days=NN number of days to keep debugging files [default=4]
1101 --with-testing[=suffix] use alternate service names
1102 --with-dump-honor-nodump if dump supports -h, use it for level0s too
1103 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1104 --with-pic try to use only PIC/non-PIC objects [default=use
1107 include additional configurations [automatic]
1108 --without-built-manpages Do not build manpages from XML source.
1110 Some influential environment variables:
1111 CC C compiler command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1114 nonstandard directory <lib dir>
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
1118 CXX C++ compiler command
1119 CXXFLAGS C++ compiler flags
1120 CXXCPP C++ preprocessor
1121 F77 Fortran 77 compiler command
1122 FFLAGS Fortran 77 compiler flags
1124 Use these variables to override the choices made by `configure' or to help
1125 it to find libraries and programs with nonstandard names/locations.
1130 if test "$ac_init_help" = "recursive"; then
1131 # If there are subdirs, report their specific --help.
1133 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1134 test -d $ac_dir || continue
1137 if test "$ac_dir" != .; then
1138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1139 # A "../" for each directory in $ac_dir_suffix.
1140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1142 ac_dir_suffix= ac_top_builddir=
1146 .) # No --srcdir option. We are building in place.
1148 if test -z "$ac_top_builddir"; then
1151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1153 [\\/]* | ?:[\\/]* ) # Absolute path.
1154 ac_srcdir=$srcdir$ac_dir_suffix;
1155 ac_top_srcdir=$srcdir ;;
1157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1161 # Do not use `cd foo && pwd` to compute absolute paths, because
1162 # the directories may not exist.
1164 .) ac_abs_builddir="$ac_dir";;
1167 .) ac_abs_builddir=`pwd`;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1172 case $ac_abs_builddir in
1173 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1175 case ${ac_top_builddir}. in
1176 .) ac_abs_top_builddir=$ac_abs_builddir;;
1177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1181 case $ac_abs_builddir in
1182 .) ac_abs_srcdir=$ac_srcdir;;
1185 .) ac_abs_srcdir=$ac_abs_builddir;;
1186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1190 case $ac_abs_builddir in
1191 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1193 case $ac_top_srcdir in
1194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1201 # Check for guested configure; otherwise get Cygnus style configure.
1202 if test -f $ac_srcdir/configure.gnu; then
1204 $SHELL $ac_srcdir/configure.gnu --help=recursive
1205 elif test -f $ac_srcdir/configure; then
1207 $SHELL $ac_srcdir/configure --help=recursive
1208 elif test -f $ac_srcdir/configure.ac ||
1209 test -f $ac_srcdir/configure.in; then
1211 $ac_configure --help
1213 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1219 test -n "$ac_init_help" && exit 0
1220 if $ac_init_version; then
1223 Copyright (C) 2003 Free Software Foundation, Inc.
1224 This configure script is free software; the Free Software Foundation
1225 gives unlimited permission to copy, distribute and modify it.
1231 This file contains any messages produced by compilers while
1232 running configure, to aid debugging if configure makes a mistake.
1234 It was created by $as_me, which was
1235 generated by GNU Autoconf 2.59. Invocation command line was
1246 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1252 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1255 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1256 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1257 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1259 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1260 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1261 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269 test -z "$as_dir" && as_dir=.
1270 echo "PATH: $as_dir"
1285 # Keep a trace of the command line.
1286 # Strip out --no-create and --no-recursion so they do not pile up.
1287 # Strip out --silent because we don't want to record it for future runs.
1288 # Also quote any args containing shell meta-characters.
1289 # Make two passes to allow for proper duplicate-argument suppression.
1294 ac_must_keep_next=false
1300 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302 | -silent | --silent | --silen | --sile | --sil)
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1308 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1310 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311 if test $ac_must_keep_next = true; then
1312 ac_must_keep_next=false # Got value, back to normal.
1315 *=* | --config-cache | -C | -disable-* | --disable-* \
1316 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318 | -with-* | --with-* | -without-* | --without-* | --x)
1319 case "$ac_configure_args0 " in
1320 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1323 -* ) ac_must_keep_next=true ;;
1326 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327 # Get rid of the leading space.
1333 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1336 # When interrupted or exit'd, cleanup temporary files, and complete
1337 # config.log. We remove comments because anyway the quotes in there
1338 # would cause problems or look ugly.
1339 # WARNING: Be sure not to use single quotes in there, as some shells,
1340 # such as our DU 5.0 friend, will then `close' the trap.
1341 trap 'exit_status=$?
1342 # Save into config.log some information that might help in debugging.
1347 ## ---------------- ##
1348 ## Cache variables. ##
1349 ## ---------------- ##
1352 # The following way of writing the cache mishandles newlines in values,
1355 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1358 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1363 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1370 ## ----------------- ##
1371 ## Output variables. ##
1372 ## ----------------- ##
1375 for ac_var in $ac_subst_vars
1377 eval ac_val=$`echo $ac_var`
1378 echo "$ac_var='"'"'$ac_val'"'"'"
1382 if test -n "$ac_subst_files"; then
1389 for ac_var in $ac_subst_files
1391 eval ac_val=$`echo $ac_var`
1392 echo "$ac_var='"'"'$ac_val'"'"'"
1397 if test -s confdefs.h; then
1404 sed "/^$/d" confdefs.h | sort
1407 test "$ac_signal" != 0 &&
1408 echo "$as_me: caught signal $ac_signal"
1409 echo "$as_me: exit $exit_status"
1411 rm -f core *.core &&
1412 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1415 for ac_signal in 1 2 13 15; do
1416 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1421 rm -rf conftest* confdefs.h
1422 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1425 # Predefined preprocessor variables.
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_NAME "$PACKAGE_NAME"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_STRING "$PACKAGE_STRING"
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1452 # Let the site file select an alternate cache file if it wants to.
1453 # Prefer explicitly selected file to automatically selected ones.
1454 if test -z "$CONFIG_SITE"; then
1455 if test "x$prefix" != xNONE; then
1456 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1458 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1461 for ac_site_file in $CONFIG_SITE; do
1462 if test -r "$ac_site_file"; then
1463 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464 echo "$as_me: loading site script $ac_site_file" >&6;}
1465 sed 's/^/| /' "$ac_site_file" >&5
1470 if test -r "$cache_file"; then
1471 # Some versions of bash will fail to source /dev/null (special
1472 # files actually), so we avoid doing that.
1473 if test -f "$cache_file"; then
1474 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475 echo "$as_me: loading cache $cache_file" >&6;}
1477 [\\/]* | ?:[\\/]* ) . $cache_file;;
1478 *) . ./$cache_file;;
1482 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483 echo "$as_me: creating cache $cache_file" >&6;}
1487 # Check that the precious variables saved in the cache have kept the same
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493 eval ac_new_set=\$ac_env_${ac_var}_set
1494 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495 eval ac_new_val="\$ac_env_${ac_var}_value"
1496 case $ac_old_set,$ac_new_set in
1498 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1502 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504 ac_cache_corrupted=: ;;
1507 if test "x$ac_old_val" != "x$ac_new_val"; then
1508 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1511 echo "$as_me: former value: $ac_old_val" >&2;}
1512 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1513 echo "$as_me: current value: $ac_new_val" >&2;}
1514 ac_cache_corrupted=:
1517 # Pass precious variables to config.status.
1518 if test "$ac_new_set" = set; then
1520 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 *) ac_arg=$ac_var=$ac_new_val ;;
1524 case " $ac_configure_args " in
1525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1526 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530 if $ac_cache_corrupted; then
1531 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535 { (exit 1); exit 1; }; }
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564 for ac_dir in config $srcdir/config; do
1565 if test -f $ac_dir/install-sh; then
1567 ac_install_sh="$ac_aux_dir/install-sh -c"
1569 elif test -f $ac_dir/install.sh; then
1571 ac_install_sh="$ac_aux_dir/install.sh -c"
1573 elif test -f $ac_dir/shtool; then
1575 ac_install_sh="$ac_aux_dir/shtool install -c"
1579 if test -z "$ac_aux_dir"; then
1580 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1581 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1582 { (exit 1); exit 1; }; }
1584 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1585 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1586 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1588 # Make sure we can run config.sub.
1589 $ac_config_sub sun4 >/dev/null 2>&1 ||
1590 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1591 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1592 { (exit 1); exit 1; }; }
1594 echo "$as_me:$LINENO: checking build system type" >&5
1595 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1596 if test "${ac_cv_build+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 ac_cv_build_alias=$build_alias
1600 test -z "$ac_cv_build_alias" &&
1601 ac_cv_build_alias=`$ac_config_guess`
1602 test -z "$ac_cv_build_alias" &&
1603 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1604 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1605 { (exit 1); exit 1; }; }
1606 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1608 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1612 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1613 echo "${ECHO_T}$ac_cv_build" >&6
1615 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620 echo "$as_me:$LINENO: checking host system type" >&5
1621 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1622 if test "${ac_cv_host+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 ac_cv_host_alias=$host_alias
1626 test -z "$ac_cv_host_alias" &&
1627 ac_cv_host_alias=$ac_cv_build_alias
1628 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1634 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1635 echo "${ECHO_T}$ac_cv_host" >&6
1637 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642 echo "$as_me:$LINENO: checking target system type" >&5
1643 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1644 if test "${ac_cv_target+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_target_alias=$target_alias
1648 test "x$ac_cv_target_alias" = "x" &&
1649 ac_cv_target_alias=$ac_cv_host_alias
1650 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1657 echo "${ECHO_T}$ac_cv_target" >&6
1658 target=$ac_cv_target
1659 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664 # The aliases save the names the user supplied, while $host etc.
1665 # will get canonicalized.
1666 test -n "$target_alias" &&
1667 test "$program_prefix$program_suffix$program_transform_name" = \
1669 program_prefix=${target_alias}-
1672 CONFIGURE_COMMAND="'$0'"
1674 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1677 cat >>confdefs.h <<_ACEOF
1678 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1683 am__api_version="1.9"
1684 # Find a good install program. We prefer a C program (faster),
1685 # so one script is as good as another. But avoid the broken or
1686 # incompatible versions:
1687 # SysV /etc/install, /usr/sbin/install
1688 # SunOS /usr/etc/install
1689 # IRIX /sbin/install
1691 # AmigaOS /C/install, which installs bootblocks on floppy discs
1692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1695 # OS/2's system install, which has a completely different semantic
1696 # ./install, which can be erroneously created by make from ./install.sh.
1697 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1698 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1699 if test -z "$INSTALL"; then
1700 if test "${ac_cv_path_install+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 # Account for people who put trailing slashes in PATH elements.
1710 ./ | .// | /cC/* | \
1711 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1712 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1715 # OSF1 and SCO ODT 3.0 have their own names for install.
1716 # Don't use installbsd from OSF since it installs stuff as root
1718 for ac_prog in ginstall scoinst install; do
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721 if test $ac_prog = install &&
1722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # AIX install. It has an incompatible calling convention.
1725 elif test $ac_prog = install &&
1726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727 # program-specific install script used by HP pwplus--don't use.
1730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742 if test "${ac_cv_path_install+set}" = set; then
1743 INSTALL=$ac_cv_path_install
1745 # As a last resort, use the slow shell script. We don't cache a
1746 # path for INSTALL within a source directory, because that will
1747 # break other packages using the cache if that directory is
1748 # removed, or if the path is relative.
1749 INSTALL=$ac_install_sh
1752 echo "$as_me:$LINENO: result: $INSTALL" >&5
1753 echo "${ECHO_T}$INSTALL" >&6
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1763 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1764 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1767 echo timestamp > conftest.file
1768 # Do `set' in a subshell so we don't clobber the current shell's
1769 # arguments. Must try -L first in case configure is actually a
1770 # symlink; some systems play weird games with the mod time of symlinks
1771 # (eg FreeBSD returns the mod time of the symlink's containing
1774 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1775 if test "$*" = "X"; then
1777 set X `ls -t $srcdir/configure conftest.file`
1780 if test "$*" != "X $srcdir/configure conftest.file" \
1781 && test "$*" != "X conftest.file $srcdir/configure"; then
1783 # If neither matched, then we have a broken ls. This can happen
1784 # if, for instance, CONFIG_SHELL is bash and it inherits a
1785 # broken ls alias from the environment. This has actually
1786 # happened. Such a system could not be considered "sane".
1787 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1788 alias in your environment" >&5
1789 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1790 alias in your environment" >&2;}
1791 { (exit 1); exit 1; }; }
1794 test "$2" = conftest.file
1800 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1801 Check your system clock" >&5
1802 echo "$as_me: error: newly created file is older than distributed files!
1803 Check your system clock" >&2;}
1804 { (exit 1); exit 1; }; }
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808 test "$program_prefix" != NONE &&
1809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1810 # Use a double $ so make ignores it.
1811 test "$program_suffix" != NONE &&
1812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1813 # Double any \ or $. echo might interpret backslashes.
1814 # By default was `s,x,x', remove it if useless.
1815 cat <<\_ACEOF >conftest.sed
1816 s/[\\$]/&&/g;s/;s,x,x,$//
1818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1821 # expand $ac_aux_dir to an absolute path
1822 am_aux_dir=`cd $ac_aux_dir && pwd`
1824 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1825 # Use eval to expand $SHELL
1826 if eval "$MISSING --run true"; then
1827 am_missing_run="$MISSING --run "
1830 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1831 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1834 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1835 # We used to keeping the `.' as first argument, in order to
1836 # allow $(mkdir_p) to be used without argument. As in
1837 # $(mkdir_p) $(somedir)
1838 # where $(somedir) is conditionally defined. However this is wrong
1840 # 1. if the package is installed by a user who cannot write `.'
1841 # make install will fail,
1842 # 2. the above comment should most certainly read
1843 # $(mkdir_p) $(DESTDIR)$(somedir)
1844 # so it does not work when $(somedir) is undefined and
1845 # $(DESTDIR) is not.
1846 # To support the latter case, we have to write
1847 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1848 # so the `.' trick is pointless.
1849 mkdir_p='mkdir -p --'
1851 # On NextStep and OpenStep, the `mkdir' command does not
1852 # recognize any option. It will interpret all options as
1853 # directories to create, and then abort because `.' already
1855 for d in ./-p ./--version;
1857 test -d $d && rmdir $d
1859 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1860 if test -f "$ac_aux_dir/mkinstalldirs"; then
1861 mkdir_p='$(mkinstalldirs)'
1863 mkdir_p='$(install_sh) -d'
1867 for ac_prog in gawk mawk nawk awk
1869 # Extract the first word of "$ac_prog", so it can be a program name with args.
1870 set dummy $ac_prog; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_AWK+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test -n "$AWK"; then
1877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_AWK="$ac_prog"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 if test -n "$AWK"; then
1897 echo "$as_me:$LINENO: result: $AWK" >&5
1898 echo "${ECHO_T}$AWK" >&6
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1904 test -n "$AWK" && break
1907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 cat >conftest.make <<\_ACEOF
1915 @echo 'ac_maketemp="$(MAKE)"'
1917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1919 if test -n "$ac_maketemp"; then
1920 eval ac_cv_prog_make_${ac_make}_set=yes
1922 eval ac_cv_prog_make_${ac_make}_set=no
1926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1927 echo "$as_me:$LINENO: result: yes" >&5
1928 echo "${ECHO_T}yes" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 SET_MAKE="MAKE=${MAKE-make}"
1936 rm -rf .tst 2>/dev/null
1937 mkdir .tst 2>/dev/null
1938 if test -d .tst; then
1943 rmdir .tst 2>/dev/null
1945 # test to see if srcdir already configured
1946 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1947 test -f $srcdir/config.status; then
1948 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1949 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # test whether we have cygpath
1954 if test -z "$CYGPATH_W"; then
1955 if (cygpath --version) >/dev/null 2>/dev/null; then
1956 CYGPATH_W='cygpath -w'
1963 # Define the identity of the package.
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE "$PACKAGE"
1973 cat >>confdefs.h <<_ACEOF
1974 #define VERSION "$VERSION"
1977 # Some tools Automake needs.
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'. However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000 if test -n "$ac_tool_prefix"; then
2001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$STRIP"; then
2009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029 echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2037 if test -z "$ac_cv_prog_STRIP"; then
2039 # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$ac_ct_STRIP"; then
2047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_STRIP="strip"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2077 STRIP="$ac_cv_prog_STRIP"
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083 # We need awk for the "check" target. The system "awk" is bad on
2085 # Always define AMTAR for backward compatibility.
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095 ac_config_headers="$ac_config_headers config/config.h"
2099 if test -f "$srcdir/SNAPSHOT"; then
2100 cat < "$srcdir/SNAPSHOT"
2102 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2104 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2105 SNAPSHOT_STAMP=SNAPSHOT
2111 if test -f config.local; then
2112 echo "running local script ./config.local"
2117 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2118 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2119 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2120 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2123 VERSION_SUFFIX="$VERSION"
2130 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2133 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2134 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2136 SYSLOCPATH="$SYSPATH:$LOCPATH"
2137 LOCSYSPATH="$LOCPATH:$SYSPATH"
2140 # Check whether --with-cflags or --without-cflags was given.
2141 if test "${with_cflags+set}" = set; then
2142 withval="$with_cflags"
2145 "" | y | ye | yes | n | no)
2146 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2147 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2148 { (exit 1); exit 1; }; }
2156 # Check whether --with-includes or --without-includes was given.
2157 if test "${with_includes+set}" = set; then
2158 withval="$with_includes"
2161 "" | y | ye | yes | n | no)
2162 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2163 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2164 { (exit 1); exit 1; }; }
2167 INCLUDE_DIRS="$withval"
2171 if test "$INCLUDE_DIRS"; then
2172 for dir in $INCLUDE_DIRS; do
2173 if test -d "$dir"; then
2174 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
2176 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2177 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2183 # Check whether --with-libraries or --without-libraries was given.
2184 if test "${with_libraries+set}" = set; then
2185 withval="$with_libraries"
2188 "" | y | ye | yes | n | no)
2189 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
2190 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
2191 { (exit 1); exit 1; }; }
2194 LIBRARY_DIRS="$withval"
2198 if test "$LIBRARY_DIRS"; then
2199 for dir in $LIBRARY_DIRS; do
2200 if test -d "$dir"; then
2202 *-solaris2*,*-netbsd*)
2203 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
2206 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
2208 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2209 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2215 # Check whether --with-dumperdir or --without-dumperdir was given.
2216 if test "${with_dumperdir+set}" = set; then
2217 withval="$with_dumperdir"
2220 "" | y | ye | yes | n | no)
2221 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
2222 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
2223 { (exit 1); exit 1; }; }
2226 DUMPER_DIR="$withval"
2230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2231 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2232 DUMPER_DIR=$exec_prefix/dumper
2237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2238 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2239 eval echo "$DUMPER_DIR"
2242 cat >>confdefs.h <<_ACEOF
2243 #define DUMPER_DIR "$DUMPER_DIR"
2249 # Check whether --with-configdir or --without-configdir was given.
2250 if test "${with_configdir+set}" = set; then
2251 withval="$with_configdir"
2254 "" | y | ye | yes | n | no)
2255 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
2256 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
2257 { (exit 1); exit 1; }; }
2259 *) CONFIG_DIR="$withval"
2264 : ${CONFIG_DIR="$sysconfdir/amanda"}
2268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2269 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2270 eval echo "$CONFIG_DIR"
2273 cat >>confdefs.h <<_ACEOF
2274 #define CONFIG_DIR "$CONFIG_DIR"
2280 # Check whether --with-indexdir or --without-indexdir was given.
2281 if test "${with_indexdir+set}" = set; then
2282 withval="$with_indexdir"
2283 { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
2284 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
2285 { (exit 1); exit 1; }; }
2290 # Check whether --with-dbdir or --without-dbdir was given.
2291 if test "${with_dbdir+set}" = set; then
2292 withval="$with_dbdir"
2293 { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
2294 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
2295 { (exit 1); exit 1; }; }
2300 # Check whether --with-logdir or --without-logdir was given.
2301 if test "${with_logdir+set}" = set; then
2302 withval="$with_logdir"
2303 { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
2304 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
2305 { (exit 1); exit 1; }; }
2310 # Check whether --with-suffixes or --without-suffixes was given.
2311 if test "${with_suffixes+set}" = set; then
2312 withval="$with_suffixes"
2313 USE_VERSION_SUFFIXES=$withval
2315 : ${USE_VERSION_SUFFIXES=no}
2318 case "$USE_VERSION_SUFFIXES" in
2321 cat >>confdefs.h <<\_ACEOF
2322 #define USE_VERSION_SUFFIXES 1
2326 program_suffix="-$VERSION"
2327 # This is from the output of configure.in.
2328 if test "x$program_transform_name" = xs,x,x,; then
2329 program_transform_name=
2331 # Double any \ or $. echo might interpret backslashes.
2332 cat <<\EOF_SED > conftestsed
2333 s,\\,\\\\,g; s,\$,$$,g
2335 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2338 test "x$program_prefix" != xNONE &&
2339 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2340 # Use a double $ so make ignores it.
2341 test "x$program_suffix" != xNONE &&
2342 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2344 # sed with no file args requires a program.
2345 test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
2346 # Remove empty command
2347 cat <<\EOF_SED > conftestsed
2348 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
2350 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2353 n | no) USE_VERSION_SUFFIXES=no
2355 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
2356 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
2357 { (exit 1); exit 1; }; }
2364 CLIENT_SCRIPTS_OPT=amhpfixdevs
2367 CLIENT_SCRIPTS_OPT=amsinixfixdevs
2377 # Check whether --with-client-only or --without-client-only was given.
2378 if test "${with_client_only+set}" = set; then
2379 withval="$with_client_only"
2380 { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
2381 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
2382 { (exit 1); exit 1; }; }
2386 # Check whether --with-server-only or --without-server-only was given.
2387 if test "${with_server_only+set}" = set; then
2388 withval="$with_server_only"
2389 { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
2390 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
2391 { (exit 1); exit 1; }; }
2396 # Check whether --with-client or --without-client was given.
2397 if test "${with_client+set}" = set; then
2398 withval="$with_client"
2401 y | ye | yes) NO_CLIENT_MODE=false;;
2402 n | no) NO_CLIENT_MODE=true;;
2404 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
2405 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
2406 { (exit 1); exit 1; }; }
2414 # Check whether --with-server or --without-server was given.
2415 if test "${with_server+set}" = set; then
2416 withval="$with_server"
2419 y | ye | yes) NO_SERVER_MODE=false ;;
2420 n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
2422 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&5
2423 echo "$as_me: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&2;}
2424 { (exit 1); exit 1; }; }
2430 if test "x${NO_SERVER_MODE+set}" != xset ; then
2431 NO_SERVER_MODE=false
2435 # Check whether --with-restore or --without-restore was given.
2436 if test "${with_restore+set}" = set; then
2437 withval="$with_restore"
2440 y | ye | yes) NO_RESTORE_MODE=false;;
2441 n | no) NO_RESTORE_MODE=true;;
2443 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
2444 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
2445 { (exit 1); exit 1; }; }
2451 if test "x${NO_RESTORE_MODE+set}" != xset ; then
2452 NO_RESTORE_MODE=${NO_SERVER_MODE-false}
2455 if ${NO_SERVER_MODE-false}; then
2456 if ${NO_RESTORE_MODE-false}; then
2459 { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
2460 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
2461 { (exit 1); exit 1; }; }
2466 # Check whether --with-amrecover or --without-amrecover was given.
2467 if test "${with_amrecover+set}" = set; then
2468 withval="$with_amrecover"
2472 if ${NO_CLIENT_MODE-false}; then
2473 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
2474 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
2475 { (exit 1); exit 1; }; }
2477 NO_RECOVER_MODE=false;;
2478 n | no) NO_RECOVER_MODE=true;;
2480 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
2481 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
2482 { (exit 1); exit 1; }; }
2490 # Check whether --with-index-server or --without-index-server was given.
2491 if test "${with_index_server+set}" = set; then
2492 withval="$with_index_server"
2495 "" | y | ye | yes | n | no)
2496 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
2497 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
2498 { (exit 1); exit 1; }; }
2500 *) DEFAULT_SERVER="$withval"
2505 : ${DEFAULT_SERVER=`uname -n`}
2509 cat >>confdefs.h <<_ACEOF
2510 #define DEFAULT_SERVER "$DEFAULT_SERVER"
2516 # Check whether --with-force-uid or --without-force-uid was given.
2517 if test "${with_force_uid+set}" = set; then
2518 withval="$with_force_uid"
2519 FORCE_USERID="$withval"
2521 : ${FORCE_USERID=yes}
2524 case "$FORCE_USERID" in
2526 cat >>confdefs.h <<\_ACEOF
2527 #define FORCE_USERID 1
2533 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
2534 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
2535 { (exit 1); exit 1; }; }
2539 # Check whether --with-user or --without-user was given.
2540 if test "${with_user+set}" = set; then
2541 withval="$with_user"
2544 "" | y | ye | yes | n | no)
2545 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
2546 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
2547 { (exit 1); exit 1; }; }
2549 *) CLIENT_LOGIN="$withval"
2555 if test "x${CLIENT_LOGIN+set}" != xset; then
2556 { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
2557 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
2558 { (exit 1); exit 1; }; }
2561 cat >>confdefs.h <<_ACEOF
2562 #define CLIENT_LOGIN "$CLIENT_LOGIN"
2568 # Check whether --with-group or --without-group was given.
2569 if test "${with_group+set}" = set; then
2570 withval="$with_group"
2573 "" | y | ye | yes | n | no)
2574 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
2575 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
2576 { (exit 1); exit 1; }; }
2578 *) SETUID_GROUP="$withval"
2584 if test "x${SETUID_GROUP+set}" != xset; then
2585 { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
2586 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
2587 { (exit 1); exit 1; }; }
2592 # Check whether --with-owner or --without-owner was given.
2593 if test "${with_owner+set}" = set; then
2594 withval="$with_owner"
2597 "" | y | ye | yes | n | no)
2598 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
2599 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
2600 { (exit 1); exit 1; }; }
2602 *) BINARY_OWNER="$withval"
2608 if test "x${BINARY_OWNER+set}" != xset ; then
2609 BINARY_OWNER=$CLIENT_LOGIN
2612 cat >>confdefs.h <<_ACEOF
2613 #define BINARY_OWNER "$BINARY_OWNER"
2619 # Check whether --with-rundump or --without-rundump was given.
2620 if test "${with_rundump+set}" = set; then
2621 withval="$with_rundump"
2624 n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
2625 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
2626 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
2627 { (exit 1); exit 1; }; };;
2634 # Check whether --with-config or --without-config was given.
2635 if test "${with_config+set}" = set; then
2636 withval="$with_config"
2639 "" | y | ye | yes | n | no)
2640 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
2641 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
2642 { (exit 1); exit 1; }; }
2644 *) DEFAULT_CONFIG="$withval"
2649 : ${DEFAULT_CONFIG=DailySet1}
2653 cat >>confdefs.h <<_ACEOF
2654 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
2660 # Check whether --with-tape-server or --without-tape-server was given.
2661 if test "${with_tape_server+set}" = set; then
2662 withval="$with_tape_server"
2665 "" | y | ye | yes | n | no)
2666 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
2667 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
2668 { (exit 1); exit 1; }; }
2670 *) DEFAULT_TAPE_SERVER="$withval"
2675 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
2679 cat >>confdefs.h <<_ACEOF
2680 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
2686 # Check whether --with-tape-device or --without-tape-device was given.
2687 if test "${with_tape_device+set}" = set; then
2688 withval="$with_tape_device"
2691 "" | y | ye | yes | n | no)
2692 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
2693 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
2694 { (exit 1); exit 1; }; }
2696 *) DEFAULT_TAPE_DEVICE="$withval"
2702 if test -z "$DEFAULT_TAPE_DEVICE"; then
2703 echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
2704 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
2707 if test -d /dev/rmt; then
2710 for num in 9 8 7 6 5 4 3 2 1 0; do
2712 ntd=/dev/rmt/${num}bn
2713 if test -r $td -a -r $ntd; then
2719 for num in 9 8 7 6 5 4 3 2 1 0; do
2722 if test -r $td -a -r $ntd; then
2728 DEFAULT_TAPE_DEVICE=$nr_tape_dev
2729 echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
2730 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
2736 if test -z "$DEFAULT_TAPE_DEVICE"; then
2737 DEFAULT_TAPE_DEVICE=/dev/null
2741 cat >>confdefs.h <<_ACEOF
2742 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
2748 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
2749 if test "${with_ftape_raw_device+set}" = set; then
2750 withval="$with_ftape_raw_device"
2753 "" | y | ye | yes | n | no)
2754 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
2755 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
2756 { (exit 1); exit 1; }; }
2758 *) DEFAULT_RAW_TAPE_DEVICE="$withval"
2764 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2765 echo "$as_me:$LINENO: checking for raw ftape device" >&5
2766 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
2767 raw_tape_dev=/dev/null
2768 for num in 3 2 1 0 ; do
2770 if test -r $td; then
2774 DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
2775 echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
2776 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
2782 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2783 DEFAULT_RAW_TAPE_DEVICE=/dev/null
2787 cat >>confdefs.h <<_ACEOF
2788 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
2794 # Check whether --with-rew-tape or --without-rew-tape was given.
2795 if test "${with_rew_tape+set}" = set; then
2796 withval="$with_rew_tape"
2797 { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
2798 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
2799 { (exit 1); exit 1; }; }
2804 # Check whether --with-norew-tape or --without-norew-tape was given.
2805 if test "${with_norew_tape+set}" = set; then
2806 withval="$with_norew_tape"
2807 { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
2808 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
2809 { (exit 1); exit 1; }; }
2814 # Check whether --with-changer-device or --without-changer-device was given.
2815 if test "${with_changer_device+set}" = set; then
2816 withval="$with_changer_device"
2819 "" | y | ye | yes | n | no)
2820 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
2821 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
2822 { (exit 1); exit 1; }; }
2824 *) DEFAULT_CHANGER_DEVICE="$withval"
2830 if test -z "$DEFAULT_CHANGER_DEVICE" &&
2831 test -f /dev/ch0; then
2832 DEFAULT_CHANGER_DEVICE=/dev/ch0
2838 if test -z "$DEFAULT_CHANGER_DEVICE"; then
2839 DEFAULT_CHANGER_DEVICE=/dev/null
2843 cat >>confdefs.h <<_ACEOF
2844 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
2850 # Check whether --with-fqdn or --without-fqdn was given.
2851 if test "${with_fqdn+set}" = set; then
2852 withval="$with_fqdn"
2861 cat >>confdefs.h <<\_ACEOF
2866 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
2867 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
2868 { (exit 1); exit 1; }; }
2873 # Check whether --with-broken-fsf or --without-broken-fsf was given.
2874 if test "${with_broken_fsf+set}" = set; then
2875 withval="$with_broken_fsf"
2876 HAVE_BROKEN_FSF=$withval
2878 : ${HAVE_BROKEN_FSF=no}
2881 case "$HAVE_BROKEN_FSF" in
2884 cat >>confdefs.h <<\_ACEOF
2885 #define HAVE_BROKEN_FSF 1
2889 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
2890 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
2891 { (exit 1); exit 1; }; }
2896 # Check whether --with-gnutar or --without-gnutar was given.
2897 if test "${with_gnutar+set}" = set; then
2898 withval="$with_gnutar"
2901 /*) GNUTAR="$withval";;
2904 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
2905 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
2906 { (exit 1); exit 1; }; };;
2913 # Check whether --with-smbclient or --without-smbclient was given.
2914 if test "${with_smbclient+set}" = set; then
2915 withval="$with_smbclient"
2918 /*) SAMBA_CLIENT="$withval";;
2920 n|no) SAMBA_CLIENT=;;
2921 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
2922 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
2923 { (exit 1); exit 1; }; };;
2930 # Check whether --with-samba-user or --without-samba-user was given.
2931 if test "${with_samba_user+set}" = set; then
2932 withval="$with_samba_user"
2933 { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
2934 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
2935 { (exit 1); exit 1; }; }
2941 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
2942 if test "${with_gnutar_listdir+set}" = set; then
2943 withval="$with_gnutar_listdir"
2946 n | no) unset GNUTAR_LISTDIR ;;
2947 y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
2948 /*) GNUTAR_LISTDIR="$withval" ;;
2949 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
2950 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
2951 { (exit 1); exit 1; }; }
2955 : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
2958 if test "$GNUTAR_LISTDIR"; then
2960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2961 eval echo "$GNUTAR_LISTDIR"
2964 cat >>confdefs.h <<_ACEOF
2965 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
2968 GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
2970 GNUTAR_LISTED_INCREMENTAL_DIRX=
2975 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
2976 if test "${with_gnutar_listed_incremental+set}" = set; then
2977 withval="$with_gnutar_listed_incremental"
2978 { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
2979 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
2980 { (exit 1); exit 1; }; }
2984 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
2988 # Check whether --with-bsd-security or --without-bsd-security was given.
2989 if test "${with_bsd_security+set}" = set; then
2990 withval="$with_bsd_security"
2991 BSD_SECURITY=$withval
2993 : ${BSD_SECURITY=yes}
2996 case "$BSD_SECURITY" in
2999 cat >>confdefs.h <<\_ACEOF
3000 #define BSD_SECURITY 1
3004 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
3005 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
3006 { (exit 1); exit 1; }; }
3011 # Check whether --with-amandahosts or --without-amandahosts was given.
3012 if test "${with_amandahosts+set}" = set; then
3013 withval="$with_amandahosts"
3014 USE_AMANDAHOSTS=$withval
3016 : ${USE_AMANDAHOSTS=yes}
3019 case "$USE_AMANDAHOSTS" in
3022 case "$BSD_SECURITY" in
3024 cat >>confdefs.h <<\_ACEOF
3025 #define USE_AMANDAHOSTS 1
3031 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
3032 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
3033 { (exit 1); exit 1; }; }
3039 # Check whether --with-dbmalloc or --without-dbmalloc was given.
3040 if test "${with_dbmalloc+set}" = set; then
3041 withval="$with_dbmalloc"
3054 DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
3055 DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
3060 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
3063 # Check whether --with-krb4-security or --without-krb4-security was given.
3064 if test "${with_krb4_security+set}" = set; then
3065 withval="$with_krb4_security"
3066 KRB4_SECURITY="$withval"
3068 : ${KRB4_SECURITY=no}
3072 case "$KRB4_SECURITY" in
3073 n | no) KRB4_SECURITY=no ;;
3075 *) KRB4_SPOTS="$KRB4_SECURITY"
3080 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
3081 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
3082 if test "x${KRB4_SECURITY}" = xyes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
3083 for dir in $KRB4_SPOTS; do
3084 if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
3086 # This is the original Kerberos 4.
3088 echo "$as_me:$LINENO: result: found in $dir" >&5
3089 echo "${ECHO_T}found in $dir" >&6
3092 cat >>confdefs.h <<\_ACEOF
3093 #define KRB4_SECURITY 1
3096 if test -d $dir/include/kerberosIV ; then
3098 # This handles BSD/OS.
3100 KRB4INCLUDES=-I$dir/include/kerberosIV
3102 KRB4INCLUDES=-I$dir/include
3104 KRB4LDFLAGS=-L$dir/lib
3105 KRB4LIBS="-lkrb -ldes"
3106 if test -f ${dir}/lib/libcom_err.a; then
3107 KRB4LIBS="$KRB4LIBS -lcom_err"
3110 elif test -f ${dir}/lib/libkrb4.a &&
3111 test -f ${dir}/lib/libcrypto.a &&
3112 test -f ${dir}/lib/libdes425.a ; then
3114 # This is Kerberos 5 with Kerberos 4 back-support.
3116 echo "$as_me:$LINENO: result: found in $dir" >&5
3117 echo "${ECHO_T}found in $dir" >&6
3120 cat >>confdefs.h <<\_ACEOF
3121 #define KRB4_SECURITY 1
3124 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3125 KRB4LDFLAGS=-L$dir/lib
3126 if test -f ${dir}/lib/libkrb5.a &&
3127 test -f ${dir}/lib/libcom_err.a; then
3128 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3130 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3136 if test "x$KRB4LDFLAGS" = "x" ; then
3137 echo "$as_me:$LINENO: result: no libraries found" >&5
3138 echo "${ECHO_T}no libraries found" >&6
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3146 # Check whether --with-rsh-security or --without-rsh-security was given.
3147 if test "${with_rsh_security+set}" = set; then
3148 withval="$with_rsh_security"
3149 RSH_SECURITY=$withval
3151 : ${RSH_SECURITY=yes}
3154 case "$RSH_SECURITY" in
3157 cat >>confdefs.h <<\_ACEOF
3158 #define RSH_SECURITY 1
3162 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
3163 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
3164 { (exit 1); exit 1; }; }
3169 # Check whether --with-ssh-security or --without-ssh-security was given.
3170 if test "${with_ssh_security+set}" = set; then
3171 withval="$with_ssh_security"
3172 SSH_SECURITY=$withval
3174 : ${SSH_SECURITY=no}
3177 case "$SSH_SECURITY" in
3180 cat >>confdefs.h <<\_ACEOF
3181 #define SSH_SECURITY 1
3184 SSH_SECURITY_SET=true
3186 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-ssh-security option." >&5
3187 echo "$as_me: error: *** You must not supply an argument the to --with-ssh-security option." >&2;}
3188 { (exit 1); exit 1; }; }
3193 # Check whether --with-server-principal or --without-server-principal was given.
3194 if test "${with_server_principal+set}" = set; then
3195 withval="$with_server_principal"
3198 "" | y | ye | yes | n | no)
3199 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
3200 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
3201 { (exit 1); exit 1; }; }
3204 SERVER_HOST_PRINCIPLE="$withval"
3209 : ${SERVER_HOST_PRINCIPLE="amanda"}
3213 cat >>confdefs.h <<_ACEOF
3214 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
3219 # Check whether --with-server-instance or --without-server-instance was given.
3220 if test "${with_server_instance+set}" = set; then
3221 withval="$with_server_instance"
3224 "" | y | ye | yes | n | no)
3225 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
3226 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
3227 { (exit 1); exit 1; }; }
3229 *) SERVER_HOST_INSTANCE="$withval"
3234 : ${SERVER_HOST_INSTANCE="amanda"}
3238 cat >>confdefs.h <<_ACEOF
3239 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
3244 # Check whether --with-server-keyfile or --without-server-keyfile was given.
3245 if test "${with_server_keyfile+set}" = set; then
3246 withval="$with_server_keyfile"
3249 "" | y | ye | yes | n | no)
3250 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
3251 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
3252 { (exit 1); exit 1; }; }
3254 *) SERVER_HOST_KEY_FILE="$withval"
3259 : ${SERVER_HOST_KEY_FILE="/.amanda"}
3263 cat >>confdefs.h <<_ACEOF
3264 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
3269 # Check whether --with-client-principal or --without-client-principal was given.
3270 if test "${with_client_principal+set}" = set; then
3271 withval="$with_client_principal"
3274 "" | y | ye | yes | n | no)
3275 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
3276 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
3277 { (exit 1); exit 1; }; }
3279 *) CLIENT_HOST_PRINCIPLE="$withval"
3284 : ${CLIENT_HOST_PRINCIPLE="rcmd"}
3288 cat >>confdefs.h <<_ACEOF
3289 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
3294 # Check whether --with-client-instance or --without-client-instance was given.
3295 if test "${with_client_instance+set}" = set; then
3296 withval="$with_client_instance"
3299 "" | y | ye | yes | n | no)
3300 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
3301 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
3302 { (exit 1); exit 1; }; }
3304 *) CLIENT_HOST_INSTANCE="$withval"
3309 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
3313 cat >>confdefs.h <<_ACEOF
3314 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
3319 # Check whether --with-client-keyfile or --without-client-keyfile was given.
3320 if test "${with_client_keyfile+set}" = set; then
3321 withval="$with_client_keyfile"
3324 "" | y | ye | yes | n | no)
3325 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
3326 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
3327 { (exit 1); exit 1; }; }
3329 *) CLIENT_HOST_KEY_FILE="$withval"
3334 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
3338 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
3339 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
3340 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
3344 cat >>confdefs.h <<_ACEOF
3345 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
3350 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
3351 if test "${with_ticket_lifetime+set}" = set; then
3352 withval="$with_ticket_lifetime"
3355 "" | y | ye | yes | n | no)
3356 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
3357 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
3358 { (exit 1); exit 1; }; }
3360 *) TICKET_LIFETIME="$withval"
3365 : ${TICKET_LIFETIME=128}
3369 cat >>confdefs.h <<_ACEOF
3370 #define TICKET_LIFETIME $TICKET_LIFETIME
3375 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
3378 # Check whether --with-krb5-security or --without-krb5-security was given.
3379 if test "${with_krb5_security+set}" = set; then
3380 withval="$with_krb5_security"
3381 KRB5_SECURITY="$withval"
3383 : ${KRB5_SECURITY=no}
3387 case "$KRB5_SECURITY" in
3388 n | no) KRB5_SECURITY=no
3392 *) KRB5_SPOTS="$KRB5_SECURITY"
3397 # if found, force the static versions of these libs (.a) by linking directly
3398 # with the .a files. I don't know how to get -R dependancies checked
3399 # in autoconf at this time. -kashmir
3400 echo "$as_me:$LINENO: checking for Kerberos V" >&5
3401 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
3404 for dir in $KRB5_SPOTS; do
3406 if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
3407 if test -f ${k5libdir}/libcrypto.a; then
3408 K5CRYPTO=${k5libdir}/libcrypto.a
3409 elif test -f ${k5libdir}/libk5crypto.a; then
3410 K5CRYPTO=${k5libdir}/libk5crypto.a
3415 KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO ${k5libdir}/libcom_err.a"
3418 elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
3420 KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
3421 KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
3426 if test "$KRB5_DIR_FOUND"; then
3427 echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
3428 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
3431 cat >>confdefs.h <<\_ACEOF
3432 #define KRB5_SECURITY 1
3436 # some OS's, such as NetBSD, stick krb5 includes out of the way...
3437 # should probably just use autoconf to look for various include
3438 # options and set them, but don't quite want to do that until I've
3439 # dug into it a bit more.
3441 if test -d "$KRB5_DIR_FOUND/krb5" ; then
3442 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
3444 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
3446 if test "$KRB5_CFLAGS" ; then
3447 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
3449 KRB5LDFLAGS=-L$k5libdir
3453 if test "x$KRB5LDFLAGS" = "x" ; then
3454 echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
3455 echo "${ECHO_T}no krb5 system libraries found" >&6
3460 # Check whether --with-portrange or --without-portrange was given.
3461 if test "${with_portrange+set}" = set; then
3462 withval="$with_portrange"
3464 TCPPORTRANGE="$withval"
3469 # Check whether --with-tcpportrange or --without-tcpportrange was given.
3470 if test "${with_tcpportrange+set}" = set; then
3471 withval="$with_tcpportrange"
3473 TCPPORTRANGE="$withval"
3477 if test x"${TCPPORTRANGE+set}" = x"set"; then
3478 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3479 { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
3480 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
3481 { (exit 1); exit 1; }; }
3483 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
3484 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
3485 if test $min_tcp_port -gt $max_tcp_port; then
3486 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
3487 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
3488 { (exit 1); exit 1; }; }
3490 if test $min_tcp_port -lt 1024; then
3491 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
3492 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
3494 if test $max_tcp_port -ge 65536; then
3495 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
3496 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
3499 cat >>confdefs.h <<_ACEOF
3500 #define TCPPORTRANGE $TCPPORTRANGE
3506 # Check whether --with-udpportrange or --without-udpportrange was given.
3507 if test "${with_udpportrange+set}" = set; then
3508 withval="$with_udpportrange"
3510 UDPPORTRANGE="$withval"
3514 if test x"${UDPPORTRANGE+set}" = x"set"; then
3515 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3516 { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
3517 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
3518 { (exit 1); exit 1; }; }
3520 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
3521 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
3522 if test $min_udp_port -gt $max_udp_port; then
3523 { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
3524 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
3525 { (exit 1); exit 1; }; }
3527 if test $max_udp_port -ge 1024; then
3528 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
3529 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
3531 if test $min_udp_port -le 0; then
3532 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
3533 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
3536 cat >>confdefs.h <<_ACEOF
3537 #define UDPPORTRANGE $UDPPORTRANGE
3543 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
3544 if test "${with_maxtapeblocksize+set}" = set; then
3545 withval="$with_maxtapeblocksize"
3547 MAXTAPEBLOCKSIZE="$withval"
3550 : ${MAXTAPEBLOCKSIZE=32}
3555 cat >>confdefs.h <<_ACEOF
3556 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
3562 # Check whether --with-db or --without-db was given.
3563 if test "${with_db+set}" = set; then
3567 "" | y | ye | yes | n | no)
3568 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
3569 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
3570 { (exit 1); exit 1; }; }
3572 *) DB_STYLE="$withval"
3578 if test "$DB_STYLE"; then
3580 db | dbm | gdbm | ndbm | text) ;;
3582 { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&5
3583 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&2;}
3584 { (exit 1); exit 1; }; }
3591 # Check whether --with-mmap or --without-mmap was given.
3592 if test "${with_mmap+set}" = set; then
3593 withval="$with_mmap"
3599 case "$FORCE_MMAP" in
3600 y | ye | yes | n | no) : ;;
3601 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
3602 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
3603 { (exit 1); exit 1; }; }
3608 # Check whether --with-buffered-dump or --without-buffered-dump was given.
3609 if test "${with_buffered_dump+set}" = set; then
3610 withval="$with_buffered_dump"
3611 DUMPER_SOCKET_BUFFERING=$withval
3613 : ${DUMPER_SOCKET_BUFFERING=no}
3616 case "$DUMPER_SOCKET_BUFFERING" in
3620 cat >>confdefs.h <<\_ACEOF
3621 #define DUMPER_SOCKET_BUFFERING 1
3625 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
3626 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
3627 { (exit 1); exit 1; }; }
3632 # Check whether --with-assertions or --without-assertions was given.
3633 if test "${with_assertions+set}" = set; then
3634 withval="$with_assertions"
3635 ASSERTIONS="$withval"
3640 case "$ASSERTIONS" in
3643 cat >>confdefs.h <<\_ACEOF
3644 #define ASSERTIONS 1
3648 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
3649 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
3650 { (exit 1); exit 1; }; }
3655 # Check whether --with-tmpdir or --without-tmpdir was given.
3656 if test "${with_tmpdir+set}" = set; then
3657 withval="$with_tmpdir"
3664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3665 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3669 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
3670 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
3671 { (exit 1); exit 1; }; };;
3673 AMANDA_TMPDIR="/tmp/amanda";;
3675 AMANDA_TMPDIR="$tmpdir";;
3676 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
3677 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
3678 { (exit 1); exit 1; }; };;
3681 cat >>confdefs.h <<_ACEOF
3682 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
3688 # Check whether --with-debugging or --without-debugging was given.
3689 if test "${with_debugging+set}" = set; then
3690 withval="$with_debugging"
3691 debugging="$withval"
3697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3698 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3699 eval echo "$debugging"
3701 case "$debugging" in
3702 n | no) AMANDA_DBGDIR="";;
3703 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
3704 /*) AMANDA_DBGDIR="$debugging";;
3705 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
3706 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
3707 { (exit 1); exit 1; }; }
3710 case "$AMANDA_DBGDIR" in
3713 cat >>confdefs.h <<\_ACEOF
3714 #define DEBUG_CODE 1
3718 cat >>confdefs.h <<_ACEOF
3719 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
3726 # Check whether --with-debug_days or --without-debug_days was given.
3727 if test "${with_debug_days+set}" = set; then
3728 withval="$with_debug_days"
3729 debug_days="$withval"
3734 case "$debug_days" in
3735 n | no) AMANDA_DEBUG_DAYS=0 ;;
3736 y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
3737 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
3738 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
3739 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
3740 { (exit 1); exit 1; }; }
3744 cat >>confdefs.h <<_ACEOF
3745 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
3751 # Check whether --with-testing or --without-testing was given.
3752 if test "${with_testing+set}" = set; then
3753 withval="$with_testing"
3760 n | no) SERVICE_SUFFIX="";;
3761 y | ye | yes) SERVICE_SUFFIX="-test";;
3762 *) SERVICE_SUFFIX="-$TESTING";;
3764 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
3765 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
3768 cat >>confdefs.h <<_ACEOF
3769 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
3773 cat >>confdefs.h <<_ACEOF
3774 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
3778 cat >>confdefs.h <<_ACEOF
3779 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
3784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3785 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3787 tmp=`eval echo "$bindir"`
3789 cat >>confdefs.h <<_ACEOF
3790 #define bindir "$tmp"
3794 tmp=`eval echo "$sbindir"`
3796 cat >>confdefs.h <<_ACEOF
3797 #define sbindir "$tmp"
3801 tmp=`eval echo "$libexecdir"`
3803 cat >>confdefs.h <<_ACEOF
3804 #define libexecdir "$tmp"
3808 tmp=`eval echo $mandir`
3810 cat >>confdefs.h <<_ACEOF
3811 #define mandir "$tmp"
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_CC+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 if test -n "$CC"; then
3850 echo "$as_me:$LINENO: result: $CC" >&5
3851 echo "${ECHO_T}$CC" >&6
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3858 if test -z "$ac_cv_prog_CC"; then
3860 # Extract the first word of "gcc", so it can be a program name with args.
3861 set dummy gcc; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 if test -n "$ac_ct_CC"; then
3868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_CC="gcc"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887 if test -n "$ac_ct_CC"; then
3888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3889 echo "${ECHO_T}$ac_ct_CC" >&6
3891 echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3900 if test -z "$CC"; then
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}cc; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_CC+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_CC="${ac_tool_prefix}cc"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 if test -n "$CC"; then
3930 echo "$as_me:$LINENO: result: $CC" >&5
3931 echo "${ECHO_T}$CC" >&6
3933 echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6
3938 if test -z "$ac_cv_prog_CC"; then
3940 # Extract the first word of "cc", so it can be a program name with args.
3941 set dummy cc; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 if test -n "$ac_ct_CC"; then
3948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_prog_ac_ct_CC="cc"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967 if test -n "$ac_ct_CC"; then
3968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3969 echo "${ECHO_T}$ac_ct_CC" >&6
3971 echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3981 if test -z "$CC"; then
3982 # Extract the first word of "cc", so it can be a program name with args.
3983 set dummy cc; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_CC+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4001 ac_prog_rejected=yes
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 if test $ac_prog_rejected = yes; then
4012 # We found a bogon in the path, so make sure we never use it.
4013 set dummy $ac_cv_prog_CC
4015 if test $# != 0; then
4016 # We chose a different compiler from the bogus one.
4017 # However, it has the same basename, so the bogon will be chosen
4018 # first if we set CC to just the basename; use the full file name.
4020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4026 if test -n "$CC"; then
4027 echo "$as_me:$LINENO: result: $CC" >&5
4028 echo "${ECHO_T}$CC" >&6
4030 echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4035 if test -z "$CC"; then
4036 if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_CC+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 if test -n "$CC"; then
4067 echo "$as_me:$LINENO: result: $CC" >&5
4068 echo "${ECHO_T}$CC" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4074 test -n "$CC" && break
4077 if test -z "$CC"; then
4081 # Extract the first word of "$ac_prog", so it can be a program name with args.
4082 set dummy $ac_prog; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="$ac_prog"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4110 echo "${ECHO_T}$ac_ct_CC" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4116 test -n "$ac_ct_CC" && break
4125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4126 See \`config.log' for more details." >&5
4127 echo "$as_me: error: no acceptable C compiler found in \$PATH
4128 See \`config.log' for more details." >&2;}
4129 { (exit 1); exit 1; }; }
4131 # Provide some information about the compiler.
4132 echo "$as_me:$LINENO:" \
4133 "checking for C compiler version" >&5
4134 ac_compiler=`set X $ac_compile; echo $2`
4135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4136 (eval $ac_compiler --version </dev/null >&5) 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }
4140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4141 (eval $ac_compiler -v </dev/null >&5) 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }
4145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4146 (eval $ac_compiler -V </dev/null >&5) 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4166 ac_clean_files_save=$ac_clean_files
4167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4168 # Try to create an executable without -o first, disregard a.out.
4169 # It will help us diagnose broken compilers, and finding out an intuition
4171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4175 (eval $ac_link_default) 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; then
4179 # Find the output, starting from the most likely. This scheme is
4180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4183 # Be careful to initialize this variable, since it used to be cached.
4184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4186 # b.out is created by i960 compilers.
4187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4189 test -f "$ac_file" || continue
4191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4194 # This is the source file.
4197 # We found the default executable, but exeext='' is most
4201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4202 # FIXME: I believe we export ac_cv_exeext for Libtool,
4203 # but it would be cool to find out if it's true. Does anybody
4204 # maintain Libtool? --akim.
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4216 See \`config.log' for more details." >&5
4217 echo "$as_me: error: C compiler cannot create executables
4218 See \`config.log' for more details." >&2;}
4219 { (exit 77); exit 77; }; }
4222 ac_exeext=$ac_cv_exeext
4223 echo "$as_me:$LINENO: result: $ac_file" >&5
4224 echo "${ECHO_T}$ac_file" >&6
4226 # Check the compiler produces executables we can run. If not, either
4227 # the compiler is broken, or we cross compile.
4228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4231 # If not cross compiling, check that we can run a simple program.
4232 if test "$cross_compiling" != yes; then
4233 if { ac_try='./$ac_file'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4241 if test "$cross_compiling" = maybe; then
4244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4245 If you meant to cross compile, use \`--host'.
4246 See \`config.log' for more details." >&5
4247 echo "$as_me: error: cannot run C compiled programs.
4248 If you meant to cross compile, use \`--host'.
4249 See \`config.log' for more details." >&2;}
4250 { (exit 1); exit 1; }; }
4254 echo "$as_me:$LINENO: result: yes" >&5
4255 echo "${ECHO_T}yes" >&6
4257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4258 ac_clean_files=$ac_clean_files_save
4259 # Check the compiler produces executables we can run. If not, either
4260 # the compiler is broken, or we cross compile.
4261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4264 echo "${ECHO_T}$cross_compiling" >&6
4266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; then
4273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4275 # work properly (i.e., refer to `conftest.exe'), while it won't with
4277 for ac_file in conftest.exe conftest conftest.*; do
4278 test -f "$ac_file" || continue
4280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4289 See \`config.log' for more details." >&5
4290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4291 See \`config.log' for more details." >&2;}
4292 { (exit 1); exit 1; }; }
4295 rm -f conftest$ac_cv_exeext
4296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4297 echo "${ECHO_T}$ac_cv_exeext" >&6
4299 rm -f conftest.$ac_ext
4300 EXEEXT=$ac_cv_exeext
4302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4304 if test "${ac_cv_objext+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4322 rm -f conftest.o conftest.obj
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; then
4328 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4340 See \`config.log' for more details." >&5
4341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4342 See \`config.log' for more details." >&2;}
4343 { (exit 1); exit 1; }; }
4346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4349 echo "${ECHO_T}$ac_cv_objext" >&6
4350 OBJEXT=$ac_cv_objext
4352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4375 rm -f conftest.$ac_objext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4410 GCC=`test $ac_compiler_gnu = yes && echo yes`
4411 ac_test_CFLAGS=${CFLAGS+set}
4412 ac_save_CFLAGS=$CFLAGS
4414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4416 if test "${ac_cv_prog_cc_g+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4434 rm -f conftest.$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -z "$ac_c_werror_flag"
4444 || test ! -s conftest.err'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4467 if test "$ac_test_CFLAGS" = set; then
4468 CFLAGS=$ac_save_CFLAGS
4469 elif test $ac_cv_prog_cc_g = yes; then
4470 if test "$GCC" = yes; then
4476 if test "$GCC" = yes; then
4482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 ac_cv_prog_cc_stdc=no
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4497 #include <sys/types.h>
4498 #include <sys/stat.h>
4499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4500 struct buf { int x; };
4501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4502 static char *e (p, i)
4508 static char *f (char * (*g) (char **, int), char **p, ...)
4513 s = g (p, va_arg (v,int));
4518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4519 function prototypes and stuff, but not '\xHH' hex character constants.
4520 These don't provoke an error unfortunately, instead are silently treated
4521 as 'x'. The following induces an error, until -std1 is added to get
4522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4523 array size at least. It's necessary to write '\x00'==0 to get something
4524 that's true only with -std1. */
4525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4527 int test (int i, double x);
4528 struct s1 {int (*f) (int a);};
4529 struct s2 {int (*f) (double a);};
4530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4541 # Don't try gcc -ansi; that turns off useful extensions and
4542 # breaks some systems' header files.
4543 # AIX -qlanglvl=ansi
4544 # Ultrix and OSF/1 -std1
4545 # HP-UX 10.20 and later -Ae
4546 # HP-UX older versions -Aa -D_HPUX_SOURCE
4547 # SVR4 -Xc -D__EXTENSIONS__
4548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4550 CC="$ac_save_CC $ac_arg"
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4555 grep -v '^ *+' conftest.er1 >conftest.err
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag"
4561 || test ! -s conftest.err'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_cv_prog_cc_stdc=$ac_arg
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4580 rm -f conftest.err conftest.$ac_objext
4582 rm -f conftest.$ac_ext conftest.$ac_objext
4587 case "x$ac_cv_prog_cc_stdc" in
4589 echo "$as_me:$LINENO: result: none needed" >&5
4590 echo "${ECHO_T}none needed" >&6 ;;
4592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4594 CC="$CC $ac_cv_prog_cc_stdc" ;;
4597 # Some people use a C++ compiler to compile C. Since we use `exit',
4598 # in C++ we need to declare it. In case someone uses the same compiler
4599 # for both compiling C and C++ we need to have the C++ compiler decide
4600 # the declaration of exit, since it's the most demanding environment.
4601 cat >conftest.$ac_ext <<_ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_c_werror_flag"
4616 || test ! -s conftest.err'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; } &&
4622 { ac_try='test -s conftest.$ac_objext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4628 for ac_declaration in \
4630 'extern "C" void std::exit (int) throw (); using std::exit;' \
4631 'extern "C" void std::exit (int); using std::exit;' \
4632 'extern "C" void exit (int) throw ();' \
4633 'extern "C" void exit (int);' \
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -z "$ac_c_werror_flag"
4707 || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4728 if test -n "$ac_declaration"; then
4729 echo '#ifdef __cplusplus' >>confdefs.h
4730 echo $ac_declaration >>confdefs.h
4731 echo '#endif' >>confdefs.h
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 DEPDIR="${am__leading_dot}deps"
4747 ac_config_commands="$ac_config_commands depfiles"
4750 am_make=${MAKE-make}
4751 cat > confinc << 'END'
4756 # If we don't find an include directive, just comment out the code.
4757 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4762 # First try GNU make style include.
4763 echo "include confinc" > confmf
4764 # We grep out `Entering directory' and `Leaving directory'
4765 # messages which can occur if `w' ends up in MAKEFLAGS.
4766 # In particular we don't look at `^make:' because GNU make might
4767 # be invoked under some other name (usually "gmake"), in which
4768 # case it prints its new name instead of `make'.
4769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4774 # Now try BSD make style include.
4775 if test "$am__include" = "#"; then
4776 echo '.include "confinc"' > confmf
4777 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4778 am__include=.include
4785 echo "$as_me:$LINENO: result: $_am_result" >&5
4786 echo "${ECHO_T}$_am_result" >&6
4787 rm -f confinc confmf
4789 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4790 if test "${enable_dependency_tracking+set}" = set; then
4791 enableval="$enable_dependency_tracking"
4794 if test "x$enable_dependency_tracking" != xno; then
4795 am_depcomp="$ac_aux_dir/depcomp"
4800 if test "x$enable_dependency_tracking" != xno; then
4811 depcc="$CC" am_compiler_list=
4813 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4814 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4815 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819 # We make a subdir and do the tests there. Otherwise we can end up
4820 # making bogus files that we don't know about and never remove. For
4821 # instance it was reported that on HP-UX the gcc test will end up
4822 # making a dummy file named `D' -- because `-MD' means `put the output
4825 # Copy depcomp to subdir because otherwise we won't find it if we're
4826 # using a relative directory.
4827 cp "$am_depcomp" conftest.dir
4829 # We will build objects and dependencies in a subdirectory because
4830 # it helps to detect inapplicable dependency modes. For instance
4831 # both Tru64's cc and ICC support -MD to output dependencies as a
4832 # side effect of compilation, but ICC will put the dependencies in
4833 # the current directory while Tru64 will put them in the object
4837 am_cv_CC_dependencies_compiler_type=none
4838 if test "$am_compiler_list" = ""; then
4839 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4841 for depmode in $am_compiler_list; do
4842 # Setup a source with many dependencies, because some compilers
4843 # like to wrap large dependency lists on column 80 (with \), and
4844 # we should not choose a depcomp mode which is confused by this.
4846 # We need to recreate these files for each test, as the compiler may
4847 # overwrite some of them when testing with obscure command lines.
4848 # This happens at least with the AIX C compiler.
4850 for i in 1 2 3 4 5 6; do
4851 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4852 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4853 # Solaris 8's {/usr,}/bin/sh.
4854 touch sub/conftst$i.h
4856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4860 # after this tag, mechanisms are not by side-effect, so they'll
4861 # only be used when explicitly requested
4862 if test "x$enable_dependency_tracking" = xyes; then
4870 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4871 # mode. It turns out that the SunPro C++ compiler does not properly
4872 # handle `-M -o', and we need to detect this.
4873 if depmode=$depmode \
4874 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4876 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4877 >/dev/null 2>conftest.err &&
4878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881 # icc doesn't choke on unknown options, it will just issue warnings
4882 # or remarks (even with -Werror). So we grep stderr for any message
4883 # that says an option was ignored or not supported.
4884 # When given -MP, icc 7.0 and 7.1 complain thusly:
4885 # icc: Command line warning: ignoring option '-M'; no argument required
4886 # The diagnosis changed in icc 8.0:
4887 # icc: Command line remark: option '-MP' not supported
4888 if (grep 'ignoring option' conftest.err ||
4889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890 am_cv_CC_dependencies_compiler_type=$depmode
4899 am_cv_CC_dependencies_compiler_type=none
4903 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4904 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4905 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4910 test "x$enable_dependency_tracking" != xno \
4911 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4913 am__fastdepCC_FALSE='#'
4915 am__fastdepCC_TRUE='#'
4916 am__fastdepCC_FALSE=
4923 DUMP_PROGRAMS="ufsdump dump backup"
4931 cat >>confdefs.h <<\_ACEOF
4932 #define STATFS_OSF1 1
4937 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
4938 : ${USE_RUNDUMP=yes}
4949 GETCONF_LFS="XBS5_ILP32_OFFBIG"
4952 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
4955 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
4960 GETCONF_LFS="XBS5_ILP32_OFFBIG"
4961 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
4963 cat >>confdefs.h <<\_ACEOF
4964 #define AIX_TAPEIO 1
4968 cat >>confdefs.h <<\_ACEOF
4969 #define AIX_BACKUP 1
4973 m88k-motorola-sysv4)
5003 : ${USE_RUNDUMP=yes}
5005 cat >>confdefs.h <<\_ACEOF
5006 #define STATFS_ULTRIX 1
5013 cat >>confdefs.h <<\_ACEOF
5014 #define UWARE_TAPEIO 1
5025 cat >>confdefs.h <<\_ACEOF
5026 #define STATFS_SCO_OS5 1
5037 cat >>confdefs.h <<\_ACEOF
5038 #define IGNORE_TAR_ERRORS 1
5041 # Cygwin needs PATH to find cygwin1.dll
5043 cat >>confdefs.h <<\_ACEOF
5044 #define NEED_PATH_ENV 1
5048 cat >>confdefs.h <<\_ACEOF
5049 #define IGNORE_UID_CHECK 1
5053 cat >>confdefs.h <<\_ACEOF
5054 #define IGNORE_FSTAB 1
5058 cat >>confdefs.h <<\_ACEOF
5059 #define DONT_SUID_ROOT 1
5062 NEED_SETUID_CLIENT=false
5063 NEED_RUNTIME_PSEUDO_RELOC=true
5069 This machine, target type $target, is not known
5070 to be fully supported by this configure script. If the
5071 installation of Amanda on this system succeeds or needed
5072 any patches, please email amanda-hackers@amanda.org with
5073 the patches or an indication of the sucess or failure of
5074 the Amanda installation on your system.
5081 if test -n "$dump_returns_1"; then
5083 cat >>confdefs.h <<\_ACEOF
5084 #define DUMP_RETURNS_1 1
5089 if test -n "$xenix_tapeio"; then
5091 cat >>confdefs.h <<\_ACEOF
5092 #define XENIX_TAPEIO 1
5097 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
5098 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
5099 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
5100 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
5101 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
5102 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
5103 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
5104 LIBS="$AMANDA_LIBS $LIBS"
5107 : ${MT_FILE_FLAG="-f"}
5110 cat >>confdefs.h <<_ACEOF
5111 #define MT_FILE_FLAG "$MT_FILE_FLAG"
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5122 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5123 # On Suns, sometimes $CPP names a directory.
5124 if test -n "$CPP" && test -d "$CPP"; then
5127 if test -z "$CPP"; then
5128 if test "${ac_cv_prog_CPP+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 # Double quotes because CPP needs to be expanded
5132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5135 for ac_c_preproc_warn_flag in '' yes
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5150 # include <limits.h>
5152 # include <assert.h>
5156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } >/dev/null; then
5164 if test -s conftest.err; then
5165 ac_cpp_err=$ac_c_preproc_warn_flag
5166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5173 if test -z "$ac_cpp_err"; then
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Broken: fails on valid input.
5182 rm -f conftest.err conftest.$ac_ext
5184 # OK, works on sane cases. Now check whether non-existent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null; then
5202 if test -s conftest.err; then
5203 ac_cpp_err=$ac_c_preproc_warn_flag
5204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5211 if test -z "$ac_cpp_err"; then
5212 # Broken: success on invalid input.
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 # Passes both tests.
5222 rm -f conftest.err conftest.$ac_ext
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then
5239 echo "$as_me:$LINENO: result: $CPP" >&5
5240 echo "${ECHO_T}$CPP" >&6
5242 for ac_c_preproc_warn_flag in '' yes
5244 # Use a header file that comes with gcc, so configuring glibc
5245 # with a fresh cross-compiler works.
5246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247 # <limits.h> exists even on freestanding compilers.
5248 # On the NeXT, cc -E runs the code through the compiler's parser,
5249 # not just through cpp. "Syntax error" is here to catch this case.
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5257 # include <limits.h>
5259 # include <assert.h>
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_c_preproc_warn_flag
5273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280 if test -z "$ac_cpp_err"; then
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Broken: fails on valid input.
5289 rm -f conftest.err conftest.$ac_ext
5291 # OK, works on sane cases. Now check whether non-existent headers
5292 # can be detected and how.
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <ac_nonexistent.h>
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_c_preproc_warn_flag
5311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5318 if test -z "$ac_cpp_err"; then
5319 # Broken: success on invalid input.
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 # Passes both tests.
5329 rm -f conftest.err conftest.$ac_ext
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5337 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5340 See \`config.log' for more details." >&2;}
5341 { (exit 1); exit 1; }; }
5345 ac_cpp='$CPP $CPPFLAGS'
5346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351 echo "$as_me:$LINENO: checking for egrep" >&5
5352 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5353 if test "${ac_cv_prog_egrep+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5357 then ac_cv_prog_egrep='grep -E'
5358 else ac_cv_prog_egrep='egrep'
5361 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5362 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5363 EGREP=$ac_cv_prog_egrep
5366 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5368 if test "${ac_cv_header_stdc+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_cv_header_stdc=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_cv_header_stdc=no
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421 if test $ac_cv_header_stdc = yes; then
5422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433 $EGREP "memchr" >/dev/null 2>&1; then
5436 ac_cv_header_stdc=no
5442 if test $ac_cv_header_stdc = yes; then
5443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "free" >/dev/null 2>&1; then
5457 ac_cv_header_stdc=no
5463 if test $ac_cv_header_stdc = yes; then
5464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5465 if test "$cross_compiling" = yes; then
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5475 #if ((' ' & 0x0FF) == 0x020)
5476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5479 # define ISLOWER(c) \
5480 (('a' <= (c) && (c) <= 'i') \
5481 || ('j' <= (c) && (c) <= 'r') \
5482 || ('s' <= (c) && (c) <= 'z'))
5483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5491 for (i = 0; i < 256; i++)
5492 if (XOR (islower (i), ISLOWER (i))
5493 || toupper (i) != TOUPPER (i))
5498 rm -f conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5511 echo "$as_me: program exited with status $ac_status" >&5
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5516 ac_cv_header_stdc=no
5518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5522 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5523 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5524 if test $ac_cv_header_stdc = yes; then
5526 cat >>confdefs.h <<\_ACEOF
5527 #define STDC_HEADERS 1
5532 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5542 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5543 inttypes.h stdint.h unistd.h
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 $ac_includes_default
5559 #include <$ac_header>
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -z "$ac_c_werror_flag"
5571 || test ! -s conftest.err'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; } &&
5577 { ac_try='test -s conftest.$ac_objext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 eval "$as_ac_Header=yes"
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 eval "$as_ac_Header=no"
5590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595 cat >>confdefs.h <<_ACEOF
5596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5604 # ------ AX CREATE STDINT H -------------------------------------
5605 echo "$as_me:$LINENO: checking for stdint types" >&5
5606 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
5607 ac_stdint_h=`echo common-src/amanda-int.h`
5608 # try to shortcircuit - if the default include path of the compiler
5609 # can find a "stdint.h" header then we assume that all compilers can.
5610 if test "${ac_cv_header_stdint_t+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5615 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5616 old_CFLAGS="$CFLAGS" ; CFLAGS=""
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5627 int_least32_t v = 0;
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag"
5642 || test ! -s conftest.err'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_stdint_result="(assuming C99 compatible system)"
5655 ac_cv_header_stdint_t="stdint.h";
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_cv_header_stdint_t=""
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 CXXFLAGS="$old_CXXFLAGS"
5664 CPPFLAGS="$old_CPPFLAGS"
5665 CFLAGS="$old_CFLAGS"
5669 v="... $ac_cv_header_stdint_h"
5670 if test "$ac_stdint_h" = "stdint.h" ; then
5671 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
5672 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
5673 elif test "$ac_stdint_h" = "inttypes.h" ; then
5674 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
5675 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
5676 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5677 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
5678 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
5680 ac_cv_header_stdint="$ac_cv_header_stdint_t"
5681 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
5682 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
5685 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5688 inttype_headers=`echo | sed -e 's/,/ /g'`
5690 ac_cv_stdint_result="(no helpful system typedefs seen)"
5692 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5693 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5694 if test "${ac_cv_header_stdint_x+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5699 echo "$as_me:$LINENO: result: (..)" >&5
5700 echo "${ECHO_T}(..)" >&6
5701 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5702 unset ac_cv_type_uintptr_t
5703 unset ac_cv_type_uint64_t
5704 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5705 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5706 if test "${ac_cv_type_uintptr_t+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5720 if ((uintptr_t *) 0)
5722 if (sizeof (uintptr_t))
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_type_uintptr_t=yes
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_cv_type_uintptr_t=no
5757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5760 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5761 if test $ac_cv_type_uintptr_t = yes; then
5762 ac_cv_header_stdint_x=$i
5767 echo "$as_me:$LINENO: checking for uint64_t" >&5
5768 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5769 if test "${ac_cv_type_uint64_t+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5785 if (sizeof (uint64_t))
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_type_uint64_t=yes
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_cv_type_uint64_t=no
5820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5823 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5824 if test $ac_cv_type_uint64_t = yes; then
5830 stdint.h inttypes.h sys/inttypes.h $inttype_headers
5833 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5834 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5837 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5838 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5841 if test "_$ac_cv_header_stdint_x" = "_" ; then
5843 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5844 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5845 if test "${ac_cv_header_stdint_o+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5850 echo "$as_me:$LINENO: result: (..)" >&5
5851 echo "${ECHO_T}(..)" >&6
5852 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5853 unset ac_cv_type_uint32_t
5854 unset ac_cv_type_uint64_t
5855 echo "$as_me:$LINENO: checking for uint32_t" >&5
5856 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5857 if test "${ac_cv_type_uint32_t+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5873 if (sizeof (uint32_t))
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_type_uint32_t=yes
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 ac_cv_type_uint32_t=no
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5911 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5912 if test $ac_cv_type_uint32_t = yes; then
5913 ac_cv_header_stdint_o=$i
5918 echo "$as_me:$LINENO: checking for uint64_t" >&5
5919 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5920 if test "${ac_cv_type_uint64_t+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 cat >conftest.$ac_ext <<_ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5936 if (sizeof (uint64_t))
5942 rm -f conftest.$ac_objext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944 (eval $ac_compile) 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -z "$ac_c_werror_flag"
5952 || test ! -s conftest.err'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 ac_cv_type_uint64_t=yes
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_cv_type_uint64_t=no
5971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5973 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5974 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5975 if test $ac_cv_type_uint64_t = yes; then
5981 inttypes.h sys/inttypes.h stdint.h $inttype_headers
5985 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5986 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5989 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5990 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5994 if test "_$ac_cv_header_stdint_x" = "_" ; then
5995 if test "_$ac_cv_header_stdint_o" = "_" ; then
5997 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5998 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5999 if test "${ac_cv_header_stdint_u+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6004 echo "$as_me:$LINENO: result: (..)" >&5
6005 echo "${ECHO_T}(..)" >&6
6006 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6007 unset ac_cv_type_u_int32_t
6008 unset ac_cv_type_u_int64_t
6009 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6010 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6011 if test "${ac_cv_type_u_int32_t+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6025 if ((u_int32_t *) 0)
6027 if (sizeof (u_int32_t))
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>conftest.er1
6037 grep -v '^ *+' conftest.er1 >conftest.err
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -z "$ac_c_werror_flag"
6043 || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_type_u_int32_t=yes
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_cv_type_u_int32_t=no
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6064 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6065 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6066 if test $ac_cv_type_u_int32_t = yes; then
6067 ac_cv_header_stdint_u=$i
6072 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6073 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6074 if test "${ac_cv_type_u_int64_t+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6088 if ((u_int64_t *) 0)
6090 if (sizeof (u_int64_t))
6096 rm -f conftest.$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag"
6106 || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_type_u_int64_t=yes
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ac_cv_type_u_int64_t=no
6125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6128 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6129 if test $ac_cv_type_u_int64_t = yes; then
6135 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
6139 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
6140 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
6143 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
6144 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
6148 if test "_$ac_cv_header_stdint_x" = "_" ; then
6149 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
6150 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
6151 echo "$as_me:$LINENO: result: (..)" >&5
6152 echo "${ECHO_T}(..)" >&6
6154 echo "$as_me:$LINENO: checking for char" >&5
6155 echo $ECHO_N "checking for char... $ECHO_C" >&6
6156 if test "${ac_cv_type_char+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 $ac_includes_default
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6209 echo "${ECHO_T}$ac_cv_type_char" >&6
6211 echo "$as_me:$LINENO: checking size of char" >&5
6212 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6213 if test "${ac_cv_sizeof_char+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test "$ac_cv_type_char" = yes; then
6217 # The cast to unsigned long works around a bug in the HP C Compiler
6218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6220 # This bug is HP SR number 8606223364.
6221 if test "$cross_compiling" = yes; then
6222 # Depending upon the size, compute the lo and hi bounds.
6223 cat >conftest.$ac_ext <<_ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 $ac_includes_default
6233 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6240 rm -f conftest.$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242 (eval $ac_compile) 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -z "$ac_c_werror_flag"
6250 || test ! -s conftest.err'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6274 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_hi=$ac_mid; break
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_lo=`expr $ac_mid + 1`
6309 if test $ac_lo -le $ac_mid; then
6313 ac_mid=`expr 2 '*' $ac_mid + 1`
6315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6331 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 $ac_includes_default
6372 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381 (eval $ac_compile) 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_c_werror_flag"
6389 || test ! -s conftest.err'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_lo=$ac_mid; break
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_hi=`expr '(' $ac_mid ')' - 1`
6407 if test $ac_mid -le $ac_hi; then
6411 ac_mid=`expr 2 '*' $ac_mid`
6413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 # Binary search between lo and hi bounds.
6425 while test "x$ac_lo" != "x$ac_hi"; do
6426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 $ac_includes_default
6437 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6444 rm -f conftest.$ac_objext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest.$ac_objext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_lo=`expr '(' $ac_mid ')' + 1`
6473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476 ?*) ac_cv_sizeof_char=$ac_lo;;
6477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: cannot compute sizeof (char), 77
6480 See \`config.log' for more details." >&2;}
6481 { (exit 1); exit 1; }; } ;;
6484 if test "$cross_compiling" = yes; then
6485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6486 See \`config.log' for more details." >&5
6487 echo "$as_me: error: cannot run test program while cross compiling
6488 See \`config.log' for more details." >&2;}
6489 { (exit 1); exit 1; }; }
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 $ac_includes_default
6498 long longval () { return (long) (sizeof (char)); }
6499 unsigned long ulongval () { return (long) (sizeof (char)); }
6506 FILE *f = fopen ("conftest.val", "w");
6509 if (((long) (sizeof (char))) < 0)
6511 long i = longval ();
6512 if (i != ((long) (sizeof (char))))
6514 fprintf (f, "%ld\n", i);
6518 unsigned long i = ulongval ();
6519 if (i != ((long) (sizeof (char))))
6521 fprintf (f, "%lu\n", i);
6523 exit (ferror (f) || fclose (f) != 0);
6529 rm -f conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_sizeof_char=`cat conftest.val`
6542 echo "$as_me: program exited with status $ac_status" >&5
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6548 See \`config.log' for more details." >&5
6549 echo "$as_me: error: cannot compute sizeof (char), 77
6550 See \`config.log' for more details." >&2;}
6551 { (exit 1); exit 1; }; }
6553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6562 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6563 cat >>confdefs.h <<_ACEOF
6564 #define SIZEOF_CHAR $ac_cv_sizeof_char
6568 echo "$as_me:$LINENO: checking for short" >&5
6569 echo $ECHO_N "checking for short... $ECHO_C" >&6
6570 if test "${ac_cv_type_short+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_type_short=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6623 echo "${ECHO_T}$ac_cv_type_short" >&6
6625 echo "$as_me:$LINENO: checking size of short" >&5
6626 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6627 if test "${ac_cv_sizeof_short+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 if test "$ac_cv_type_short" = yes; then
6631 # The cast to unsigned long works around a bug in the HP C Compiler
6632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6634 # This bug is HP SR number 8606223364.
6635 if test "$cross_compiling" = yes; then
6636 # Depending upon the size, compute the lo and hi bounds.
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 $ac_includes_default
6647 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6654 rm -f conftest.$ac_objext
6655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656 (eval $ac_compile) 2>conftest.er1
6658 grep -v '^ *+' conftest.er1 >conftest.err
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -z "$ac_c_werror_flag"
6664 || test ! -s conftest.err'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; } &&
6670 { ac_try='test -s conftest.$ac_objext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6678 cat >conftest.$ac_ext <<_ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 $ac_includes_default
6688 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6695 rm -f conftest.$ac_objext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697 (eval $ac_compile) 2>conftest.er1
6699 grep -v '^ *+' conftest.er1 >conftest.err
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -z "$ac_c_werror_flag"
6705 || test ! -s conftest.err'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; } &&
6711 { ac_try='test -s conftest.$ac_objext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_hi=$ac_mid; break
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_lo=`expr $ac_mid + 1`
6723 if test $ac_lo -le $ac_mid; then
6727 ac_mid=`expr 2 '*' $ac_mid + 1`
6729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 cat >conftest.$ac_ext <<_ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6745 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6752 rm -f conftest.$ac_objext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6754 (eval $ac_compile) 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -z "$ac_c_werror_flag"
6762 || test ! -s conftest.err'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try='test -s conftest.$ac_objext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 $ac_includes_default
6786 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>conftest.er1
6797 grep -v '^ *+' conftest.er1 >conftest.err
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest.$ac_objext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_lo=$ac_mid; break
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 ac_hi=`expr '(' $ac_mid ')' - 1`
6821 if test $ac_mid -le $ac_hi; then
6825 ac_mid=`expr 2 '*' $ac_mid`
6827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6838 # Binary search between lo and hi bounds.
6839 while test "x$ac_lo" != "x$ac_hi"; do
6840 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6841 cat >conftest.$ac_ext <<_ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6851 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_lo=`expr '(' $ac_mid ')' + 1`
6887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 ?*) ac_cv_sizeof_short=$ac_lo;;
6891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6892 See \`config.log' for more details." >&5
6893 echo "$as_me: error: cannot compute sizeof (short), 77
6894 See \`config.log' for more details." >&2;}
6895 { (exit 1); exit 1; }; } ;;
6898 if test "$cross_compiling" = yes; then
6899 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6900 See \`config.log' for more details." >&5
6901 echo "$as_me: error: cannot run test program while cross compiling
6902 See \`config.log' for more details." >&2;}
6903 { (exit 1); exit 1; }; }
6905 cat >conftest.$ac_ext <<_ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6911 $ac_includes_default
6912 long longval () { return (long) (sizeof (short)); }
6913 unsigned long ulongval () { return (long) (sizeof (short)); }
6920 FILE *f = fopen ("conftest.val", "w");
6923 if (((long) (sizeof (short))) < 0)
6925 long i = longval ();
6926 if (i != ((long) (sizeof (short))))
6928 fprintf (f, "%ld\n", i);
6932 unsigned long i = ulongval ();
6933 if (i != ((long) (sizeof (short))))
6935 fprintf (f, "%lu\n", i);
6937 exit (ferror (f) || fclose (f) != 0);
6943 rm -f conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 ac_cv_sizeof_short=`cat conftest.val`
6956 echo "$as_me: program exited with status $ac_status" >&5
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6962 See \`config.log' for more details." >&5
6963 echo "$as_me: error: cannot compute sizeof (short), 77
6964 See \`config.log' for more details." >&2;}
6965 { (exit 1); exit 1; }; }
6967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6972 ac_cv_sizeof_short=0
6975 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6976 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6977 cat >>confdefs.h <<_ACEOF
6978 #define SIZEOF_SHORT $ac_cv_sizeof_short
6982 echo "$as_me:$LINENO: checking for int" >&5
6983 echo $ECHO_N "checking for int... $ECHO_C" >&6
6984 if test "${ac_cv_type_int+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest.$ac_objext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7036 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7037 echo "${ECHO_T}$ac_cv_type_int" >&6
7039 echo "$as_me:$LINENO: checking size of int" >&5
7040 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7041 if test "${ac_cv_sizeof_int+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 if test "$ac_cv_type_int" = yes; then
7045 # The cast to unsigned long works around a bug in the HP C Compiler
7046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7048 # This bug is HP SR number 8606223364.
7049 if test "$cross_compiling" = yes; then
7050 # Depending upon the size, compute the lo and hi bounds.
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 $ac_includes_default
7061 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7068 rm -f conftest.$ac_objext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 (eval $ac_compile) 2>conftest.er1
7072 grep -v '^ *+' conftest.er1 >conftest.err
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -z "$ac_c_werror_flag"
7078 || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7092 cat >conftest.$ac_ext <<_ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7102 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_hi=$ac_mid; break
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_lo=`expr $ac_mid + 1`
7137 if test $ac_lo -le $ac_mid; then
7141 ac_mid=`expr 2 '*' $ac_mid + 1`
7143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 cat >conftest.$ac_ext <<_ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7159 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7166 rm -f conftest.$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168 (eval $ac_compile) 2>conftest.er1
7170 grep -v '^ *+' conftest.er1 >conftest.err
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try='test -z "$ac_c_werror_flag"
7176 || test ! -s conftest.err'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7190 cat >conftest.$ac_ext <<_ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 $ac_includes_default
7200 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7207 rm -f conftest.$ac_objext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>conftest.er1
7211 grep -v '^ *+' conftest.er1 >conftest.err
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -z "$ac_c_werror_flag"
7217 || test ! -s conftest.err'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_lo=$ac_mid; break
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 ac_hi=`expr '(' $ac_mid ')' - 1`
7235 if test $ac_mid -le $ac_hi; then
7239 ac_mid=`expr 2 '*' $ac_mid`
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7252 # Binary search between lo and hi bounds.
7253 while test "x$ac_lo" != "x$ac_hi"; do
7254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7265 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7276 grep -v '^ *+' conftest.er1 >conftest.err
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_c_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_lo=`expr '(' $ac_mid ')' + 1`
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304 ?*) ac_cv_sizeof_int=$ac_lo;;
7305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7306 See \`config.log' for more details." >&5
7307 echo "$as_me: error: cannot compute sizeof (int), 77
7308 See \`config.log' for more details." >&2;}
7309 { (exit 1); exit 1; }; } ;;
7312 if test "$cross_compiling" = yes; then
7313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7314 See \`config.log' for more details." >&5
7315 echo "$as_me: error: cannot run test program while cross compiling
7316 See \`config.log' for more details." >&2;}
7317 { (exit 1); exit 1; }; }
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 $ac_includes_default
7326 long longval () { return (long) (sizeof (int)); }
7327 unsigned long ulongval () { return (long) (sizeof (int)); }
7334 FILE *f = fopen ("conftest.val", "w");
7337 if (((long) (sizeof (int))) < 0)
7339 long i = longval ();
7340 if (i != ((long) (sizeof (int))))
7342 fprintf (f, "%ld\n", i);
7346 unsigned long i = ulongval ();
7347 if (i != ((long) (sizeof (int))))
7349 fprintf (f, "%lu\n", i);
7351 exit (ferror (f) || fclose (f) != 0);
7357 rm -f conftest$ac_exeext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7359 (eval $ac_link) 2>&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_cv_sizeof_int=`cat conftest.val`
7370 echo "$as_me: program exited with status $ac_status" >&5
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7376 See \`config.log' for more details." >&5
7377 echo "$as_me: error: cannot compute sizeof (int), 77
7378 See \`config.log' for more details." >&2;}
7379 { (exit 1); exit 1; }; }
7381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7390 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7391 cat >>confdefs.h <<_ACEOF
7392 #define SIZEOF_INT $ac_cv_sizeof_int
7396 echo "$as_me:$LINENO: checking for long" >&5
7397 echo $ECHO_N "checking for long... $ECHO_C" >&6
7398 if test "${ac_cv_type_long+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7450 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7451 echo "${ECHO_T}$ac_cv_type_long" >&6
7453 echo "$as_me:$LINENO: checking size of long" >&5
7454 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7455 if test "${ac_cv_sizeof_long+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 if test "$ac_cv_type_long" = yes; then
7459 # The cast to unsigned long works around a bug in the HP C Compiler
7460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7462 # This bug is HP SR number 8606223364.
7463 if test "$cross_compiling" = yes; then
7464 # Depending upon the size, compute the lo and hi bounds.
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7475 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7486 grep -v '^ *+' conftest.er1 >conftest.err
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest.$ac_objext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7506 cat >conftest.$ac_ext <<_ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 $ac_includes_default
7516 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7523 rm -f conftest.$ac_objext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_hi=$ac_mid; break
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_lo=`expr $ac_mid + 1`
7551 if test $ac_lo -le $ac_mid; then
7555 ac_mid=`expr 2 '*' $ac_mid + 1`
7557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 $ac_includes_default
7573 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7584 grep -v '^ *+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 $ac_includes_default
7614 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_lo=$ac_mid; break
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_hi=`expr '(' $ac_mid ')' - 1`
7649 if test $ac_mid -le $ac_hi; then
7653 ac_mid=`expr 2 '*' $ac_mid`
7655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 # Binary search between lo and hi bounds.
7667 while test "x$ac_lo" != "x$ac_hi"; do
7668 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7679 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>conftest.er1
7690 grep -v '^ *+' conftest.er1 >conftest.err
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
7695 { ac_try='test -z "$ac_c_werror_flag"
7696 || test ! -s conftest.err'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest.$ac_objext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 ac_lo=`expr '(' $ac_mid ')' + 1`
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718 ?*) ac_cv_sizeof_long=$ac_lo;;
7719 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7720 See \`config.log' for more details." >&5
7721 echo "$as_me: error: cannot compute sizeof (long), 77
7722 See \`config.log' for more details." >&2;}
7723 { (exit 1); exit 1; }; } ;;
7726 if test "$cross_compiling" = yes; then
7727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7728 See \`config.log' for more details." >&5
7729 echo "$as_me: error: cannot run test program while cross compiling
7730 See \`config.log' for more details." >&2;}
7731 { (exit 1); exit 1; }; }
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 $ac_includes_default
7740 long longval () { return (long) (sizeof (long)); }
7741 unsigned long ulongval () { return (long) (sizeof (long)); }
7748 FILE *f = fopen ("conftest.val", "w");
7751 if (((long) (sizeof (long))) < 0)
7753 long i = longval ();
7754 if (i != ((long) (sizeof (long))))
7756 fprintf (f, "%ld\n", i);
7760 unsigned long i = ulongval ();
7761 if (i != ((long) (sizeof (long))))
7763 fprintf (f, "%lu\n", i);
7765 exit (ferror (f) || fclose (f) != 0);
7771 rm -f conftest$ac_exeext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_sizeof_long=`cat conftest.val`
7784 echo "$as_me: program exited with status $ac_status" >&5
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7790 See \`config.log' for more details." >&5
7791 echo "$as_me: error: cannot compute sizeof (long), 77
7792 See \`config.log' for more details." >&2;}
7793 { (exit 1); exit 1; }; }
7795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7803 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7804 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7805 cat >>confdefs.h <<_ACEOF
7806 #define SIZEOF_LONG $ac_cv_sizeof_long
7810 echo "$as_me:$LINENO: checking for void*" >&5
7811 echo $ECHO_N "checking for void*... $ECHO_C" >&6
7812 if test "${ac_cv_type_voidp+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>conftest.er1
7837 grep -v '^ *+' conftest.er1 >conftest.err
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_type_voidp=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7865 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7867 echo "$as_me:$LINENO: checking size of void*" >&5
7868 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
7869 if test "${ac_cv_sizeof_voidp+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 if test "$ac_cv_type_voidp" = yes; then
7873 # The cast to unsigned long works around a bug in the HP C Compiler
7874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7876 # This bug is HP SR number 8606223364.
7877 if test "$cross_compiling" = yes; then
7878 # Depending upon the size, compute the lo and hi bounds.
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7889 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 $ac_includes_default
7930 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_hi=$ac_mid; break
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_lo=`expr $ac_mid + 1`
7965 if test $ac_lo -le $ac_mid; then
7969 ac_mid=`expr 2 '*' $ac_mid + 1`
7971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7987 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7994 rm -f conftest.$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>conftest.er1
7998 grep -v '^ *+' conftest.er1 >conftest.err
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 $ac_includes_default
8028 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037 (eval $ac_compile) 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -z "$ac_c_werror_flag"
8045 || test ! -s conftest.err'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest.$ac_objext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_lo=$ac_mid; break
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_hi=`expr '(' $ac_mid ')' - 1`
8063 if test $ac_mid -le $ac_hi; then
8067 ac_mid=`expr 2 '*' $ac_mid`
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080 # Binary search between lo and hi bounds.
8081 while test "x$ac_lo" != "x$ac_hi"; do
8082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 $ac_includes_default
8093 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8100 rm -f conftest.$ac_objext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag"
8110 || test ! -s conftest.err'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 ac_lo=`expr '(' $ac_mid ')' + 1`
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8132 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8134 See \`config.log' for more details." >&5
8135 echo "$as_me: error: cannot compute sizeof (void*), 77
8136 See \`config.log' for more details." >&2;}
8137 { (exit 1); exit 1; }; } ;;
8140 if test "$cross_compiling" = yes; then
8141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8142 See \`config.log' for more details." >&5
8143 echo "$as_me: error: cannot run test program while cross compiling
8144 See \`config.log' for more details." >&2;}
8145 { (exit 1); exit 1; }; }
8147 cat >conftest.$ac_ext <<_ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 long longval () { return (long) (sizeof (void*)); }
8155 unsigned long ulongval () { return (long) (sizeof (void*)); }
8162 FILE *f = fopen ("conftest.val", "w");
8165 if (((long) (sizeof (void*))) < 0)
8167 long i = longval ();
8168 if (i != ((long) (sizeof (void*))))
8170 fprintf (f, "%ld\n", i);
8174 unsigned long i = ulongval ();
8175 if (i != ((long) (sizeof (void*))))
8177 fprintf (f, "%lu\n", i);
8179 exit (ferror (f) || fclose (f) != 0);
8185 rm -f conftest$ac_exeext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8187 (eval $ac_link) 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_cv_sizeof_voidp=`cat conftest.val`
8198 echo "$as_me: program exited with status $ac_status" >&5
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8204 See \`config.log' for more details." >&5
8205 echo "$as_me: error: cannot compute sizeof (void*), 77
8206 See \`config.log' for more details." >&2;}
8207 { (exit 1); exit 1; }; }
8209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8214 ac_cv_sizeof_voidp=0
8217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8218 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
8219 cat >>confdefs.h <<_ACEOF
8220 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8224 ac_cv_char_data_model=""
8225 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
8226 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
8227 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
8228 ac_cv_long_data_model=""
8229 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
8230 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
8231 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
8232 echo "$as_me:$LINENO: checking data model" >&5
8233 echo $ECHO_N "checking data model... $ECHO_C" >&6
8234 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
8235 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
8236 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
8237 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
8238 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
8239 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
8240 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
8241 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
8242 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
8243 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
8244 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
8245 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
8246 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
8247 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
8248 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
8249 222/*|333/*|444/*|666/*|888/*) :
8250 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
8251 *) ac_cv_data_model="none" ; n="very unusual model" ;;
8253 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
8254 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
8258 if test "_$ac_cv_header_stdint_x" != "_" ; then
8259 ac_cv_header_stdint="$ac_cv_header_stdint_x"
8260 elif test "_$ac_cv_header_stdint_o" != "_" ; then
8261 ac_cv_header_stdint="$ac_cv_header_stdint_o"
8262 elif test "_$ac_cv_header_stdint_u" != "_" ; then
8263 ac_cv_header_stdint="$ac_cv_header_stdint_u"
8265 ac_cv_header_stdint="stddef.h"
8268 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
8269 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
8270 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
8271 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
8272 unset ac_cv_type_int_least32_t
8273 unset ac_cv_type_int_fast32_t
8274 echo "$as_me:$LINENO: checking for int_least32_t" >&5
8275 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
8276 if test "${ac_cv_type_int_least32_t+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 #include <$ac_cv_header_stdint>
8290 if ((int_least32_t *) 0)
8292 if (sizeof (int_least32_t))
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag"
8308 || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_type_int_least32_t=yes
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_cv_type_int_least32_t=no
8327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8329 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8330 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8332 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
8333 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
8334 if test "${ac_cv_type_int_fast32_t+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 #include<$ac_cv_header_stdint>
8348 if ((int_fast32_t *) 0)
8350 if (sizeof (int_fast32_t))
8356 rm -f conftest.$ac_objext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358 (eval $ac_compile) 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_type_int_fast32_t=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_type_int_fast32_t=no
8385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8388 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8390 echo "$as_me:$LINENO: checking for intmax_t" >&5
8391 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8392 if test "${ac_cv_type_intmax_t+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 #include <$ac_cv_header_stdint>
8408 if (sizeof (intmax_t))
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_type_intmax_t=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_type_intmax_t=no
8443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8445 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8446 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8449 fi # shortcircut to system "stdint.h"
8450 # ------------------ PREPARE VARIABLES ------------------------------
8451 if test "$GCC" = "yes" ; then
8452 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
8454 ac_cv_stdint_message="using $CC"
8457 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
8458 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
8460 # ----------------- DONE inttypes.h checks START header -------------
8461 ac_config_commands="$ac_config_commands $ac_stdint_h"
8467 # Extract the first word of "$ac_prog", so it can be a program name with args.
8468 set dummy $ac_prog; ac_word=$2
8469 echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8471 if test "${ac_cv_path_AR+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 ac_cv_path_AR="$AR" # Let the user override the test with a path.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $LOCSYSPATH
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
8487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 if test -n "$AR"; then
8499 echo "$as_me:$LINENO: result: $AR" >&5
8500 echo "${ECHO_T}$AR" >&6
8502 echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6
8506 test -n "$AR" && break
8510 for ac_prog in gawk mawk nawk awk
8512 # Extract the first word of "$ac_prog", so it can be a program name with args.
8513 set dummy $ac_prog; ac_word=$2
8514 echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8516 if test "${ac_cv_prog_AWK+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 if test -n "$AWK"; then
8520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_AWK="$ac_prog"
8530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 if test -n "$AWK"; then
8540 echo "$as_me:$LINENO: result: $AWK" >&5
8541 echo "${ECHO_T}$AWK" >&6
8543 echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6
8547 test -n "$AWK" && break
8552 echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
8553 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
8554 if test "${amanda_cv_awk_var_assignment+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 echo 'BEGIN{print i; exit}' > conftest.awk
8559 result=`$AWK -f conftest.awk i=xx | wc -c`
8560 if test "$result" -le 1; then
8561 result=`$AWK -f conftest.awk -v i=xx | wc -c`
8562 if test "$result" -le 1; then
8563 amanda_cv_awk_var_assignment=no
8565 amanda_cv_awk_var_assignment="yes with -v"
8568 amanda_cv_awk_var_assignment="yes"
8574 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
8575 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
8576 AWK_VAR_ASSIGNMENT_OPT=
8577 case "$amanda_cv_awk_var_assignment" in
8579 HAVE_AWK_WITH_VAR=no
8582 HAVE_AWK_WITH_VAR=yes
8585 HAVE_AWK_WITH_VAR=yes
8586 AWK_VAR_ASSIGNMENT_OPT=-v
8592 if test "x$amanda_cv_awk_var_assignment" = xno; then
8594 { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&5
8595 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&2;}
8598 for ac_prog in 'bison -y' byacc
8600 # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy $ac_prog; ac_word=$2
8602 echo "$as_me:$LINENO: checking for $ac_word" >&5
8603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8604 if test "${ac_cv_prog_YACC+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 if test -n "$YACC"; then
8608 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_prog_YACC="$ac_prog"
8618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 YACC=$ac_cv_prog_YACC
8627 if test -n "$YACC"; then
8628 echo "$as_me:$LINENO: result: $YACC" >&5
8629 echo "${ECHO_T}$YACC" >&6
8631 echo "$as_me:$LINENO: result: no" >&5
8632 echo "${ECHO_T}no" >&6
8635 test -n "$YACC" && break
8637 test -n "$YACC" || YACC="yacc"
8641 # Extract the first word of "$ac_prog", so it can be a program name with args.
8642 set dummy $ac_prog; ac_word=$2
8643 echo "$as_me:$LINENO: checking for $ac_word" >&5
8644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8645 if test "${ac_cv_path_CAT+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $LOCSYSPATH
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 if test -n "$CAT"; then
8673 echo "$as_me:$LINENO: result: $CAT" >&5
8674 echo "${ECHO_T}$CAT" >&6
8676 echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6
8680 test -n "$CAT" && break
8683 if test -z "$CAT"; then
8686 for ac_prog in compress
8688 # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 echo "$as_me:$LINENO: checking for $ac_word" >&5
8691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8692 if test "${ac_cv_path_COMPRESS+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $LOCSYSPATH
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
8708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 COMPRESS=$ac_cv_path_COMPRESS
8719 if test -n "$COMPRESS"; then
8720 echo "$as_me:$LINENO: result: $COMPRESS" >&5
8721 echo "${ECHO_T}$COMPRESS" >&6
8723 echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6
8727 test -n "$COMPRESS" && break
8732 # Extract the first word of "$ac_prog", so it can be a program name with args.
8733 set dummy $ac_prog; ac_word=$2
8734 echo "$as_me:$LINENO: checking for $ac_word" >&5
8735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736 if test "${ac_cv_path_DD+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 ac_cv_path_DD="$DD" # Let the user override the test with a path.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $LOCSYSPATH
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
8752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 if test -n "$DD"; then
8764 echo "$as_me:$LINENO: result: $DD" >&5
8765 echo "${ECHO_T}$DD" >&6
8767 echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8771 test -n "$DD" && break
8774 for ac_prog in egrep
8776 # Extract the first word of "$ac_prog", so it can be a program name with args.
8777 set dummy $ac_prog; ac_word=$2
8778 echo "$as_me:$LINENO: checking for $ac_word" >&5
8779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780 if test "${ac_cv_path_EGREP+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $LOCSYSPATH
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
8796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 EGREP=$ac_cv_path_EGREP
8807 if test -n "$EGREP"; then
8808 echo "$as_me:$LINENO: result: $EGREP" >&5
8809 echo "${ECHO_T}$EGREP" >&6
8811 echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6
8815 test -n "$EGREP" && break
8818 for ac_prog in getconf
8820 # Extract the first word of "$ac_prog", so it can be a program name with args.
8821 set dummy $ac_prog; ac_word=$2
8822 echo "$as_me:$LINENO: checking for $ac_word" >&5
8823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8824 if test "${ac_cv_path_GETCONF+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $SYSPATH
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
8840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 GETCONF=$ac_cv_path_GETCONF
8851 if test -n "$GETCONF"; then
8852 echo "$as_me:$LINENO: result: $GETCONF" >&5
8853 echo "${ECHO_T}$GETCONF" >&6
8855 echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6
8859 test -n "$GETCONF" && break
8863 for ac_prog in gnuplot
8865 # Extract the first word of "$ac_prog", so it can be a program name with args.
8866 set dummy $ac_prog; ac_word=$2
8867 echo "$as_me:$LINENO: checking for $ac_word" >&5
8868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8869 if test "${ac_cv_path_GNUPLOT+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $LOCSYSPATH
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
8885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 GNUPLOT=$ac_cv_path_GNUPLOT
8896 if test -n "$GNUPLOT"; then
8897 echo "$as_me:$LINENO: result: $GNUPLOT" >&5
8898 echo "${ECHO_T}$GNUPLOT" >&6
8900 echo "$as_me:$LINENO: result: no" >&5
8901 echo "${ECHO_T}no" >&6
8904 test -n "$GNUPLOT" && break
8907 if test -z "$GNUPLOT"; then
8909 { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&5
8910 echo "$as_me: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&2;}
8915 # Extract the first word of "$ac_prog", so it can be a program name with args.
8916 set dummy $ac_prog; ac_word=$2
8917 echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8919 if test "${ac_cv_path_GREP+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $LOCSYSPATH
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
8935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 GREP=$ac_cv_path_GREP
8946 if test -n "$GREP"; then
8947 echo "$as_me:$LINENO: result: $GREP" >&5
8948 echo "${ECHO_T}$GREP" >&6
8950 echo "$as_me:$LINENO: result: no" >&5
8951 echo "${ECHO_T}no" >&6
8954 test -n "$GREP" && break
8957 if test -z "$GREP"; then
8961 cat >>confdefs.h <<_ACEOF
8962 #define GREP "$GREP"
8966 for ac_prog in gtar gnutar tar
8968 # Extract the first word of "$ac_prog", so it can be a program name with args.
8969 set dummy $ac_prog; ac_word=$2
8970 echo "$as_me:$LINENO: checking for $ac_word" >&5
8971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8972 if test "${ac_cv_path_GNUTAR+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $LOCSYSPATH
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
8988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 GNUTAR=$ac_cv_path_GNUTAR
8999 if test -n "$GNUTAR"; then
9000 echo "$as_me:$LINENO: result: $GNUTAR" >&5
9001 echo "${ECHO_T}$GNUTAR" >&6
9003 echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9007 test -n "$GNUTAR" && break
9010 if test ! -z "$GNUTAR"; then
9011 case "`\"$GNUTAR\" --version 2>&1`" in
9012 *GNU*tar* | *Free*paxutils* )
9014 cat >>confdefs.h <<_ACEOF
9015 #define GNUTAR "$GNUTAR"
9020 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
9021 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
9027 for ac_prog in smbclient
9029 # Extract the first word of "$ac_prog", so it can be a program name with args.
9030 set dummy $ac_prog; ac_word=$2
9031 echo "$as_me:$LINENO: checking for $ac_word" >&5
9032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9033 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 case $SAMBA_CLIENT in
9038 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $LOCSYSPATH
9045 test -z "$as_dir" && as_dir=.
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9048 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
9049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
9060 if test -n "$SAMBA_CLIENT"; then
9061 echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
9062 echo "${ECHO_T}$SAMBA_CLIENT" >&6
9064 echo "$as_me:$LINENO: result: no" >&5
9065 echo "${ECHO_T}no" >&6
9068 test -n "$SAMBA_CLIENT" && break
9071 if test ! -z "$SAMBA_CLIENT"; then
9072 case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
9076 *"Connection to not.a.host.name failed"*)
9080 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
9081 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
9085 if test -n "$SAMBA_CLIENT"; then
9087 cat >>confdefs.h <<_ACEOF
9088 #define SAMBA_CLIENT "$SAMBA_CLIENT"
9092 cat >>confdefs.h <<_ACEOF
9093 #define SAMBA_VERSION $smbversion
9101 # Extract the first word of "$ac_prog", so it can be a program name with args.
9102 set dummy $ac_prog; ac_word=$2
9103 echo "$as_me:$LINENO: checking for $ac_word" >&5
9104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9105 if test "${ac_cv_path_GZIP+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $LOCSYSPATH
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9120 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
9121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 GZIP=$ac_cv_path_GZIP
9132 if test -n "$GZIP"; then
9133 echo "$as_me:$LINENO: result: $GZIP" >&5
9134 echo "${ECHO_T}$GZIP" >&6
9136 echo "$as_me:$LINENO: result: no" >&5
9137 echo "${ECHO_T}no" >&6
9140 test -n "$GZIP" && break
9143 if test "$GZIP"; then
9145 cat >>confdefs.h <<\_ACEOF
9149 COMPRESS_PATH="$GZIP"
9150 COMPRESS_SUFFIX=".gz"
9151 COMPRESS_FAST_OPT="--fast"
9152 COMPRESS_BEST_OPT="--best"
9153 UNCOMPRESS_PATH="$GZIP"
9154 UNCOMPRESS_OPT="-dc"
9156 if test "$COMPRESS"; then
9157 COMPRESS_PATH="$COMPRESS"
9158 COMPRESS_SUFFIX=".Z"
9159 COMPRESS_FAST_OPT="-f"
9160 COMPRESS_BEST_OPT="-f"
9161 UNCOMPRESS_PATH="$COMPRESS"
9162 UNCOMPRESS_OPT="-dc"
9164 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&5
9165 echo "$as_me: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&2;}
9166 COMPRESS_PATH="$CAT"
9168 COMPRESS_FAST_OPT=""
9169 COMPRESS_BEST_OPT=""
9170 UNCOMPRESS_PATH="$CAT"
9175 cat >>confdefs.h <<_ACEOF
9176 #define COMPRESS_PATH "$COMPRESS_PATH"
9180 cat >>confdefs.h <<_ACEOF
9181 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9185 cat >>confdefs.h <<_ACEOF
9186 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9190 cat >>confdefs.h <<_ACEOF
9191 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9195 cat >>confdefs.h <<_ACEOF
9196 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9200 cat >>confdefs.h <<_ACEOF
9201 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9205 for ac_prog in Mail mailx mail
9207 # Extract the first word of "$ac_prog", so it can be a program name with args.
9208 set dummy $ac_prog; ac_word=$2
9209 echo "$as_me:$LINENO: checking for $ac_word" >&5
9210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211 if test "${ac_cv_path_MAILER+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
9227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9236 MAILER=$ac_cv_path_MAILER
9238 if test -n "$MAILER"; then
9239 echo "$as_me:$LINENO: result: $MAILER" >&5
9240 echo "${ECHO_T}$MAILER" >&6
9242 echo "$as_me:$LINENO: result: no" >&5
9243 echo "${ECHO_T}no" >&6
9246 test -n "$MAILER" && break
9249 if test -z "$MAILER"; then
9250 if $NO_SERVER_MODE; then
9252 { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
9253 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
9255 { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
9256 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
9257 { (exit 1); exit 1; }; }
9261 cat >>confdefs.h <<_ACEOF
9262 #define MAILER "$MAILER"
9268 # Extract the first word of "$ac_prog", so it can be a program name with args.
9269 set dummy $ac_prog; ac_word=$2
9270 echo "$as_me:$LINENO: checking for $ac_word" >&5
9271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9272 if test "${ac_cv_path_MT+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 ac_cv_path_MT="$MT" # Let the user override the test with a path.
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $LOCSYSPATH
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
9288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 if test -n "$MT"; then
9300 echo "$as_me:$LINENO: result: $MT" >&5
9301 echo "${ECHO_T}$MT" >&6
9303 echo "$as_me:$LINENO: result: no" >&5
9304 echo "${ECHO_T}no" >&6
9307 test -n "$MT" && break
9309 test -n "$MT" || MT="mt"
9314 # Extract the first word of "$ac_prog", so it can be a program name with args.
9315 set dummy $ac_prog; ac_word=$2
9316 echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9318 if test "${ac_cv_path_CHIO+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $LOCSYSPATH
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
9334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 CHIO=$ac_cv_path_CHIO
9345 if test -n "$CHIO"; then
9346 echo "$as_me:$LINENO: result: $CHIO" >&5
9347 echo "${ECHO_T}$CHIO" >&6
9349 echo "$as_me:$LINENO: result: no" >&5
9350 echo "${ECHO_T}no" >&6
9353 test -n "$CHIO" && break
9355 test -n "$CHIO" || CHIO="chio"
9360 # Extract the first word of "$ac_prog", so it can be a program name with args.
9361 set dummy $ac_prog; ac_word=$2
9362 echo "$as_me:$LINENO: checking for $ac_word" >&5
9363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9364 if test "${ac_cv_path_CHS+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $LOCSYSPATH
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
9380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 if test -n "$CHS"; then
9392 echo "$as_me:$LINENO: result: $CHS" >&5
9393 echo "${ECHO_T}$CHS" >&6
9395 echo "$as_me:$LINENO: result: no" >&5
9396 echo "${ECHO_T}no" >&6
9399 test -n "$CHS" && break
9401 test -n "$CHS" || CHS="chs"
9406 # Extract the first word of "$ac_prog", so it can be a program name with args.
9407 set dummy $ac_prog; ac_word=$2
9408 echo "$as_me:$LINENO: checking for $ac_word" >&5
9409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9410 if test "${ac_cv_path_MTX+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
9418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419 for as_dir in $LOCSYSPATH
9422 test -z "$as_dir" && as_dir=.
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9425 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
9426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 if test -n "$MTX"; then
9438 echo "$as_me:$LINENO: result: $MTX" >&5
9439 echo "${ECHO_T}$MTX" >&6
9441 echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6
9445 test -n "$MTX" && break
9447 test -n "$MTX" || MTX="mtx"
9450 for ac_prog in mcutil
9452 # Extract the first word of "$ac_prog", so it can be a program name with args.
9453 set dummy $ac_prog; ac_word=$2
9454 echo "$as_me:$LINENO: checking for $ac_word" >&5
9455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9456 if test "${ac_cv_path_MCUTIL+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $LOCSYSPATH
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9471 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
9472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 MCUTIL=$ac_cv_path_MCUTIL
9483 if test -n "$MCUTIL"; then
9484 echo "$as_me:$LINENO: result: $MCUTIL" >&5
9485 echo "${ECHO_T}$MCUTIL" >&6
9487 echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6
9491 test -n "$MCUTIL" && break
9493 test -n "$MCUTIL" || MCUTIL="mcutil"
9496 for ac_prog in lpr lp
9498 # Extract the first word of "$ac_prog", so it can be a program name with args.
9499 set dummy $ac_prog; ac_word=$2
9500 echo "$as_me:$LINENO: checking for $ac_word" >&5
9501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9502 if test "${ac_cv_path_PRINT+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9517 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
9518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 PRINT=$ac_cv_path_PRINT
9529 if test -n "$PRINT"; then
9530 echo "$as_me:$LINENO: result: $PRINT" >&5
9531 echo "${ECHO_T}$PRINT" >&6
9533 echo "$as_me:$LINENO: result: no" >&5
9534 echo "${ECHO_T}no" >&6
9537 test -n "$PRINT" && break
9540 if test ! -z "$PRINT"; then
9542 cat >>confdefs.h <<_ACEOF
9543 #define LPRCMD "$PRINT"
9546 echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
9547 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
9548 if test "${amanda_cv_printer_flag+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 amanda_cv_printer_flag=$PRINTER_FLAG
9554 lpr|*/lpr) amanda_cv_printer_flag="-P";;
9555 lp|*/lp) amanda_cv_printer_flag="-d";;
9559 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
9560 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
9561 if test ! -z "$amanda_cv_printer_flag"; then
9563 cat >>confdefs.h <<_ACEOF
9564 #define LPRFLAG "$amanda_cv_printer_flag"
9568 { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
9569 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
9575 # Extract the first word of "$ac_prog", so it can be a program name with args.
9576 set dummy $ac_prog; ac_word=$2
9577 echo "$as_me:$LINENO: checking for $ac_word" >&5
9578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9579 if test "${ac_cv_path_PCAT+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $LOCSYSPATH
9591 test -z "$as_dir" && as_dir=.
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9594 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
9595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 PCAT=$ac_cv_path_PCAT
9606 if test -n "$PCAT"; then
9607 echo "$as_me:$LINENO: result: $PCAT" >&5
9608 echo "${ECHO_T}$PCAT" >&6
9610 echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6
9614 test -n "$PCAT" && break
9617 for ac_prog in perl5 perl
9619 # Extract the first word of "$ac_prog", so it can be a program name with args.
9620 set dummy $ac_prog; ac_word=$2
9621 echo "$as_me:$LINENO: checking for $ac_word" >&5
9622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9623 if test "${ac_cv_path_PERL+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $LOCSYSPATH
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 PERL=$ac_cv_path_PERL
9650 if test -n "$PERL"; then
9651 echo "$as_me:$LINENO: result: $PERL" >&5
9652 echo "${ECHO_T}$PERL" >&6
9654 echo "$as_me:$LINENO: result: no" >&5
9655 echo "${ECHO_T}no" >&6
9658 test -n "$PERL" && break
9663 for ac_prog in $DUMP_PROGRAMS
9665 # Extract the first word of "$ac_prog", so it can be a program name with args.
9666 set dummy $ac_prog; ac_word=$2
9667 echo "$as_me:$LINENO: checking for $ac_word" >&5
9668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9669 if test "${ac_cv_path_DUMP+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $SYSLOCPATH
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
9685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 DUMP=$ac_cv_path_DUMP
9696 if test -n "$DUMP"; then
9697 echo "$as_me:$LINENO: result: $DUMP" >&5
9698 echo "${ECHO_T}$DUMP" >&6
9700 echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9704 test -n "$DUMP" && break
9707 for ac_prog in ufsrestore restore
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_RESTORE+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $SYSLOCPATH
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_RESTORE="$as_dir/$ac_word$ac_exec_ext"
9729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 RESTORE=$ac_cv_path_RESTORE
9740 if test -n "$RESTORE"; then
9741 echo "$as_me:$LINENO: result: $RESTORE" >&5
9742 echo "${ECHO_T}$RESTORE" >&6
9744 echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9748 test -n "$RESTORE" && break
9751 if test "$DUMP" -a "$RESTORE"; then
9753 cat >>confdefs.h <<_ACEOF
9754 #define DUMP "$DUMP"
9758 cat >>confdefs.h <<_ACEOF
9759 #define RESTORE "$RESTORE"
9762 if test -x $DUMP; then
9763 echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
9764 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
9765 if test "${amanda_cv_dump_estimate+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
9774 | $GREP -v Label >conftest.d-E 2>&1'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }
9780 cat conftest.d-E >&5
9781 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
9784 | $GREP -v Label >conftest.d-S 2>&1'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }
9790 cat conftest.d-S >&5
9791 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9794 | $GREP -v Label >conftest.d 2>&1'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }
9801 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 amanda_cv_dump_estimate=E
9808 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 amanda_cv_dump_estimate=S
9816 amanda_cv_dump_estimate=no
9818 rm -f conftest.d conftest.d-E conftest.d-S
9820 *) amanda_cv_dump_estimate=no
9825 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
9826 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
9828 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
9829 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
9830 amanda_cv_dump_estimate=no
9832 if test "x$amanda_cv_dump_estimate" != xno; then
9834 cat >>confdefs.h <<_ACEOF
9835 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
9841 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
9842 if test "${with_dump_honor_nodump+set}" = set; then
9843 withval="$with_dump_honor_nodump"
9844 if test -x $DUMP; then
9845 echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
9846 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
9847 if test "${amanda_cv_honor_nodump+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
9856 | $GREP -v Label >conftest.d-h 2>&1'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }
9862 cat conftest.d-h >&5
9863 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9866 | $GREP -v Label >conftest.d 2>&1'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }
9873 if { ac_try='diff conftest.d-h conftest.d 1>&2'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 amanda_cv_honor_nodump=yes
9881 amanda_cv_honor_nodump=no
9883 rm -f conftest.d conftest.d-h
9885 *) amanda_cv_honor_nodump=no
9890 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
9891 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
9893 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
9894 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
9895 amanda_cv_honor_nodump=no
9897 if test "x$amanda_cv_honor_nodump" = xyes; then
9899 cat >>confdefs.h <<\_ACEOF
9900 #define HAVE_HONOR_NODUMP 1
9908 for ac_prog in xfsdump
9910 # Extract the first word of "$ac_prog", so it can be a program name with args.
9911 set dummy $ac_prog; ac_word=$2
9912 echo "$as_me:$LINENO: checking for $ac_word" >&5
9913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9914 if test "${ac_cv_path_XFSDUMP+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $SYSLOCPATH
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
9930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 XFSDUMP=$ac_cv_path_XFSDUMP
9941 if test -n "$XFSDUMP"; then
9942 echo "$as_me:$LINENO: result: $XFSDUMP" >&5
9943 echo "${ECHO_T}$XFSDUMP" >&6
9945 echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6
9949 test -n "$XFSDUMP" && break
9952 for ac_prog in xfsrestore
9954 # Extract the first word of "$ac_prog", so it can be a program name with args.
9955 set dummy $ac_prog; ac_word=$2
9956 echo "$as_me:$LINENO: checking for $ac_word" >&5
9957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9958 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 for as_dir in $SYSLOCPATH
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
9974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 XFSRESTORE=$ac_cv_path_XFSRESTORE
9985 if test -n "$XFSRESTORE"; then
9986 echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
9987 echo "${ECHO_T}$XFSRESTORE" >&6
9989 echo "$as_me:$LINENO: result: no" >&5
9990 echo "${ECHO_T}no" >&6
9993 test -n "$XFSRESTORE" && break
9996 if test "$XFSDUMP" -a "$XFSRESTORE"; then
9998 cat >>confdefs.h <<_ACEOF
9999 #define XFSDUMP "$XFSDUMP"
10003 cat >>confdefs.h <<_ACEOF
10004 #define XFSRESTORE "$XFSRESTORE"
10007 { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
10008 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
10010 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
10013 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
10014 for ac_prog in vxdump
10016 # Extract the first word of "$ac_prog", so it can be a program name with args.
10017 set dummy $ac_prog; ac_word=$2
10018 echo "$as_me:$LINENO: checking for $ac_word" >&5
10019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10020 if test "${ac_cv_path_VXDUMP+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $VXSYSLOCPATH
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
10036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 VXDUMP=$ac_cv_path_VXDUMP
10047 if test -n "$VXDUMP"; then
10048 echo "$as_me:$LINENO: result: $VXDUMP" >&5
10049 echo "${ECHO_T}$VXDUMP" >&6
10051 echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6
10055 test -n "$VXDUMP" && break
10058 for ac_prog in vxrestore
10060 # Extract the first word of "$ac_prog", so it can be a program name with args.
10061 set dummy $ac_prog; ac_word=$2
10062 echo "$as_me:$LINENO: checking for $ac_word" >&5
10063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10064 if test "${ac_cv_path_VXRESTORE+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $VXSYSLOCPATH
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10079 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
10080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 VXRESTORE=$ac_cv_path_VXRESTORE
10091 if test -n "$VXRESTORE"; then
10092 echo "$as_me:$LINENO: result: $VXRESTORE" >&5
10093 echo "${ECHO_T}$VXRESTORE" >&6
10095 echo "$as_me:$LINENO: result: no" >&5
10096 echo "${ECHO_T}no" >&6
10099 test -n "$VXRESTORE" && break
10102 if test "$VXDUMP" -a "$VXRESTORE"; then
10104 cat >>confdefs.h <<_ACEOF
10105 #define VXDUMP "$VXDUMP"
10109 cat >>confdefs.h <<_ACEOF
10110 #define VXRESTORE "$VXRESTORE"
10115 for ac_prog in vdump
10117 # Extract the first word of "$ac_prog", so it can be a program name with args.
10118 set dummy $ac_prog; ac_word=$2
10119 echo "$as_me:$LINENO: checking for $ac_word" >&5
10120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10121 if test "${ac_cv_path_VDUMP+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $SYSLOCPATH
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
10137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 VDUMP=$ac_cv_path_VDUMP
10148 if test -n "$VDUMP"; then
10149 echo "$as_me:$LINENO: result: $VDUMP" >&5
10150 echo "${ECHO_T}$VDUMP" >&6
10152 echo "$as_me:$LINENO: result: no" >&5
10153 echo "${ECHO_T}no" >&6
10156 test -n "$VDUMP" && break
10159 for ac_prog in vrestore
10161 # Extract the first word of "$ac_prog", so it can be a program name with args.
10162 set dummy $ac_prog; ac_word=$2
10163 echo "$as_me:$LINENO: checking for $ac_word" >&5
10164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10165 if test "${ac_cv_path_VRESTORE+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $SYSLOCPATH
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
10181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 VRESTORE=$ac_cv_path_VRESTORE
10192 if test -n "$VRESTORE"; then
10193 echo "$as_me:$LINENO: result: $VRESTORE" >&5
10194 echo "${ECHO_T}$VRESTORE" >&6
10196 echo "$as_me:$LINENO: result: no" >&5
10197 echo "${ECHO_T}no" >&6
10200 test -n "$VRESTORE" && break
10203 if test "$VDUMP" -a "$VRESTORE"; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define VDUMP "$VDUMP"
10210 cat >>confdefs.h <<_ACEOF
10211 #define VRESTORE "$VRESTORE"
10216 if test "$PCAT"; then
10217 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
10221 if test "$COMPRESS"; then
10222 AMPLOT_COMPRESS=$COMPRESS
10223 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
10225 AMPLOT_CAT_COMPRESS=
10227 if test "$GZIP"; then
10228 AMPLOT_COMPRESS=$GZIP
10229 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
10238 # Determine the printf format characters to use when printing
10239 # values of type long long. This will normally be "ll", but where
10240 # the compiler treats "long long" as a alias for "long" and printf
10241 # doesn't know about "long long" use "l". Hopefully the sprintf
10242 # will produce a inconsistant result in the later case. If the compiler
10243 # fails due to seeing "%lld" we fall back to "l".
10245 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
10246 # configure on Win32.
10248 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
10249 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
10250 if test "$cross_compiling" = yes; then
10251 echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
10252 echo "${ECHO_T}assuming target platform uses ll" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10264 long long int j = 0;
10267 sprintf(buf, "%lld", j);
10268 exit((sizeof(long long int) != sizeof(long int))? 0 :
10269 (strcmp(buf, "0") != 0));
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 echo "$as_me:$LINENO: result: ll" >&5
10285 echo "${ECHO_T}ll" >&6
10288 echo "$as_me: program exited with status $ac_status" >&5
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ( exit $ac_status )
10293 echo "$as_me:$LINENO: result: l" >&5
10294 echo "${ECHO_T}l" >&6
10297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10300 cat >>confdefs.h <<_ACEOF
10301 #define LL_FMT "$LL_FMT"
10309 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
10310 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
10311 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 amanda_cv_LFS_CFLAGS=
10316 if test "$GETCONF"; then
10317 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
10318 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
10325 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
10326 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
10327 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
10328 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
10329 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 amanda_cv_LFS_LDFLAGS=
10334 if test "$GETCONF"; then
10335 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
10336 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
10343 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
10344 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
10345 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
10346 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
10347 if test "${amanda_cv_LFS_LIBS+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 amanda_cv_LFS_LIBS=
10352 if test "$GETCONF"; then
10353 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
10354 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
10361 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
10362 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
10363 if test "x$need_resetofs" = xyes; then
10365 cat >>confdefs.h <<\_ACEOF
10366 #define NEED_RESETOFS 1
10370 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
10371 CPPFLAGS="$amanda_cv_LFS_CFLAGS $CPPFLAGS"
10372 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
10373 LIBS="$amanda_cv_LFS_LIBS $LIBS"
10375 echo "$as_me:$LINENO: checking for int" >&5
10376 echo $ECHO_N "checking for int... $ECHO_C" >&6
10377 if test "${ac_cv_type_int+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 $ac_includes_default
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -z "$ac_c_werror_flag"
10408 || test ! -s conftest.err'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; } &&
10414 { ac_try='test -s conftest.$ac_objext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10430 echo "${ECHO_T}$ac_cv_type_int" >&6
10432 echo "$as_me:$LINENO: checking size of int" >&5
10433 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10434 if test "${ac_cv_sizeof_int+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 if test "$ac_cv_type_int" = yes; then
10438 # The cast to unsigned long works around a bug in the HP C Compiler
10439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10441 # This bug is HP SR number 8606223364.
10442 if test "$cross_compiling" = yes; then
10443 # Depending upon the size, compute the lo and hi bounds.
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10454 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 $ac_includes_default
10495 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10502 rm -f conftest.$ac_objext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>conftest.er1
10506 grep -v '^ *+' conftest.er1 >conftest.err
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag"
10512 || test ! -s conftest.err'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_hi=$ac_mid; break
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_lo=`expr $ac_mid + 1`
10530 if test $ac_lo -le $ac_mid; then
10534 ac_mid=`expr 2 '*' $ac_mid + 1`
10536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 cat >conftest.$ac_ext <<_ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548 $ac_includes_default
10552 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10559 rm -f conftest.$ac_objext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10561 (eval $ac_compile) 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag"
10569 || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589 $ac_includes_default
10593 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10600 rm -f conftest.$ac_objext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602 (eval $ac_compile) 2>conftest.er1
10604 grep -v '^ *+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -z "$ac_c_werror_flag"
10610 || test ! -s conftest.err'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest.$ac_objext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 ac_lo=$ac_mid; break
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ac_hi=`expr '(' $ac_mid ')' - 1`
10628 if test $ac_mid -le $ac_hi; then
10632 ac_mid=`expr 2 '*' $ac_mid`
10634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10645 # Binary search between lo and hi bounds.
10646 while test "x$ac_lo" != "x$ac_hi"; do
10647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 $ac_includes_default
10658 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10665 rm -f conftest.$ac_objext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667 (eval $ac_compile) 2>conftest.er1
10669 grep -v '^ *+' conftest.er1 >conftest.err
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } &&
10674 { ac_try='test -z "$ac_c_werror_flag"
10675 || test ! -s conftest.err'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; } &&
10681 { ac_try='test -s conftest.$ac_objext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 ac_lo=`expr '(' $ac_mid ')' + 1`
10694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10697 ?*) ac_cv_sizeof_int=$ac_lo;;
10698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
10699 See \`config.log' for more details." >&5
10700 echo "$as_me: error: cannot compute sizeof (int), 77
10701 See \`config.log' for more details." >&2;}
10702 { (exit 1); exit 1; }; } ;;
10705 if test "$cross_compiling" = yes; then
10706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10707 See \`config.log' for more details." >&5
10708 echo "$as_me: error: cannot run test program while cross compiling
10709 See \`config.log' for more details." >&2;}
10710 { (exit 1); exit 1; }; }
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 long longval () { return (long) (sizeof (int)); }
10720 unsigned long ulongval () { return (long) (sizeof (int)); }
10722 #include <stdlib.h>
10727 FILE *f = fopen ("conftest.val", "w");
10730 if (((long) (sizeof (int))) < 0)
10732 long i = longval ();
10733 if (i != ((long) (sizeof (int))))
10735 fprintf (f, "%ld\n", i);
10739 unsigned long i = ulongval ();
10740 if (i != ((long) (sizeof (int))))
10742 fprintf (f, "%lu\n", i);
10744 exit (ferror (f) || fclose (f) != 0);
10750 rm -f conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_sizeof_int=`cat conftest.val`
10763 echo "$as_me: program exited with status $ac_status" >&5
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ( exit $ac_status )
10768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
10769 See \`config.log' for more details." >&5
10770 echo "$as_me: error: cannot compute sizeof (int), 77
10771 See \`config.log' for more details." >&2;}
10772 { (exit 1); exit 1; }; }
10774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10783 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10784 cat >>confdefs.h <<_ACEOF
10785 #define SIZEOF_INT $ac_cv_sizeof_int
10789 echo "$as_me:$LINENO: checking for long" >&5
10790 echo $ECHO_N "checking for long... $ECHO_C" >&6
10791 if test "${ac_cv_type_long+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 $ac_includes_default
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_cv_type_long=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10843 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10844 echo "${ECHO_T}$ac_cv_type_long" >&6
10846 echo "$as_me:$LINENO: checking size of long" >&5
10847 echo $ECHO_N "checking size of long... $ECHO_C" >&6
10848 if test "${ac_cv_sizeof_long+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 if test "$ac_cv_type_long" = yes; then
10852 # The cast to unsigned long works around a bug in the HP C Compiler
10853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10855 # This bug is HP SR number 8606223364.
10856 if test "$cross_compiling" = yes; then
10857 # Depending upon the size, compute the lo and hi bounds.
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 $ac_includes_default
10868 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
10875 rm -f conftest.$ac_objext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10877 (eval $ac_compile) 2>conftest.er1
10879 grep -v '^ *+' conftest.er1 >conftest.err
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -z "$ac_c_werror_flag"
10885 || test ! -s conftest.err'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10909 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10916 rm -f conftest.$ac_objext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918 (eval $ac_compile) 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag"
10926 || test ! -s conftest.err'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_hi=$ac_mid; break
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_lo=`expr $ac_mid + 1`
10944 if test $ac_lo -le $ac_mid; then
10948 ac_mid=`expr 2 '*' $ac_mid + 1`
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 $ac_includes_default
10966 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
10973 rm -f conftest.$ac_objext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>conftest.er1
10977 grep -v '^ *+' conftest.er1 >conftest.err
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } &&
10982 { ac_try='test -z "$ac_c_werror_flag"
10983 || test ! -s conftest.err'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 $ac_includes_default
11007 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11014 rm -f conftest.$ac_objext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11016 (eval $ac_compile) 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -z "$ac_c_werror_flag"
11024 || test ! -s conftest.err'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest.$ac_objext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_lo=$ac_mid; break
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_hi=`expr '(' $ac_mid ')' - 1`
11042 if test $ac_mid -le $ac_hi; then
11046 ac_mid=`expr 2 '*' $ac_mid`
11048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11059 # Binary search between lo and hi bounds.
11060 while test "x$ac_lo" != "x$ac_hi"; do
11061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11062 cat >conftest.$ac_ext <<_ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 $ac_includes_default
11072 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11079 rm -f conftest.$ac_objext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11081 (eval $ac_compile) 2>conftest.er1
11083 grep -v '^ *+' conftest.er1 >conftest.err
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag"
11089 || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest.$ac_objext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 ac_lo=`expr '(' $ac_mid ')' + 1`
11108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11111 ?*) ac_cv_sizeof_long=$ac_lo;;
11112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11113 See \`config.log' for more details." >&5
11114 echo "$as_me: error: cannot compute sizeof (long), 77
11115 See \`config.log' for more details." >&2;}
11116 { (exit 1); exit 1; }; } ;;
11119 if test "$cross_compiling" = yes; then
11120 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11121 See \`config.log' for more details." >&5
11122 echo "$as_me: error: cannot run test program while cross compiling
11123 See \`config.log' for more details." >&2;}
11124 { (exit 1); exit 1; }; }
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 $ac_includes_default
11133 long longval () { return (long) (sizeof (long)); }
11134 unsigned long ulongval () { return (long) (sizeof (long)); }
11136 #include <stdlib.h>
11141 FILE *f = fopen ("conftest.val", "w");
11144 if (((long) (sizeof (long))) < 0)
11146 long i = longval ();
11147 if (i != ((long) (sizeof (long))))
11149 fprintf (f, "%ld\n", i);
11153 unsigned long i = ulongval ();
11154 if (i != ((long) (sizeof (long))))
11156 fprintf (f, "%lu\n", i);
11158 exit (ferror (f) || fclose (f) != 0);
11164 rm -f conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 ac_cv_sizeof_long=`cat conftest.val`
11177 echo "$as_me: program exited with status $ac_status" >&5
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 ( exit $ac_status )
11182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11183 See \`config.log' for more details." >&5
11184 echo "$as_me: error: cannot compute sizeof (long), 77
11185 See \`config.log' for more details." >&2;}
11186 { (exit 1); exit 1; }; }
11188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11193 ac_cv_sizeof_long=0
11196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11197 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11198 cat >>confdefs.h <<_ACEOF
11199 #define SIZEOF_LONG $ac_cv_sizeof_long
11203 echo "$as_me:$LINENO: checking for long long" >&5
11204 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11205 if test "${ac_cv_type_long_long+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 $ac_includes_default
11218 if ((long long *) 0)
11220 if (sizeof (long long))
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228 (eval $ac_compile) 2>conftest.er1
11230 grep -v '^ *+' conftest.er1 >conftest.err
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -z "$ac_c_werror_flag"
11236 || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest.$ac_objext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_type_long_long=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_cv_type_long_long=no
11255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11258 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11260 echo "$as_me:$LINENO: checking size of long long" >&5
11261 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11262 if test "${ac_cv_sizeof_long_long+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 if test "$ac_cv_type_long_long" = yes; then
11266 # The cast to unsigned long works around a bug in the HP C Compiler
11267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11269 # This bug is HP SR number 8606223364.
11270 if test "$cross_compiling" = yes; then
11271 # Depending upon the size, compute the lo and hi bounds.
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_hi=$ac_mid; break
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 ac_lo=`expr $ac_mid + 1`
11358 if test $ac_lo -le $ac_mid; then
11362 ac_mid=`expr 2 '*' $ac_mid + 1`
11364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 $ac_includes_default
11380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11387 rm -f conftest.$ac_objext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389 (eval $ac_compile) 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag"
11397 || test ! -s conftest.err'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 $ac_includes_default
11421 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag"
11438 || test ! -s conftest.err'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest.$ac_objext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_lo=$ac_mid; break
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_hi=`expr '(' $ac_mid ')' - 1`
11456 if test $ac_mid -le $ac_hi; then
11460 ac_mid=`expr 2 '*' $ac_mid`
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11473 # Binary search between lo and hi bounds.
11474 while test "x$ac_lo" != "x$ac_hi"; do
11475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11476 cat >conftest.$ac_ext <<_ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 $ac_includes_default
11486 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11493 rm -f conftest.$ac_objext
11494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11495 (eval $ac_compile) 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -z "$ac_c_werror_flag"
11503 || test ! -s conftest.err'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; } &&
11509 { ac_try='test -s conftest.$ac_objext'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 ac_lo=`expr '(' $ac_mid ')' + 1`
11522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11527 See \`config.log' for more details." >&5
11528 echo "$as_me: error: cannot compute sizeof (long long), 77
11529 See \`config.log' for more details." >&2;}
11530 { (exit 1); exit 1; }; } ;;
11533 if test "$cross_compiling" = yes; then
11534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11535 See \`config.log' for more details." >&5
11536 echo "$as_me: error: cannot run test program while cross compiling
11537 See \`config.log' for more details." >&2;}
11538 { (exit 1); exit 1; }; }
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11547 long longval () { return (long) (sizeof (long long)); }
11548 unsigned long ulongval () { return (long) (sizeof (long long)); }
11550 #include <stdlib.h>
11555 FILE *f = fopen ("conftest.val", "w");
11558 if (((long) (sizeof (long long))) < 0)
11560 long i = longval ();
11561 if (i != ((long) (sizeof (long long))))
11563 fprintf (f, "%ld\n", i);
11567 unsigned long i = ulongval ();
11568 if (i != ((long) (sizeof (long long))))
11570 fprintf (f, "%lu\n", i);
11572 exit (ferror (f) || fclose (f) != 0);
11578 rm -f conftest$ac_exeext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580 (eval $ac_link) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 ac_cv_sizeof_long_long=`cat conftest.val`
11591 echo "$as_me: program exited with status $ac_status" >&5
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ( exit $ac_status )
11596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11597 See \`config.log' for more details." >&5
11598 echo "$as_me: error: cannot compute sizeof (long long), 77
11599 See \`config.log' for more details." >&2;}
11600 { (exit 1); exit 1; }; }
11602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11607 ac_cv_sizeof_long_long=0
11610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11611 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11612 cat >>confdefs.h <<_ACEOF
11613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11617 echo "$as_me:$LINENO: checking for intmax_t" >&5
11618 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
11619 if test "${ac_cv_type_intmax_t+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 $ac_includes_default
11632 if ((intmax_t *) 0)
11634 if (sizeof (intmax_t))
11640 rm -f conftest.$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642 (eval $ac_compile) 2>conftest.er1
11644 grep -v '^ *+' conftest.er1 >conftest.err
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -z "$ac_c_werror_flag"
11650 || test ! -s conftest.err'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest.$ac_objext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_type_intmax_t=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_cv_type_intmax_t=no
11669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11671 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
11672 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
11674 echo "$as_me:$LINENO: checking size of intmax_t" >&5
11675 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
11676 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 if test "$ac_cv_type_intmax_t" = yes; then
11680 # The cast to unsigned long works around a bug in the HP C Compiler
11681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11683 # This bug is HP SR number 8606223364.
11684 if test "$cross_compiling" = yes; then
11685 # Depending upon the size, compute the lo and hi bounds.
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11696 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
11703 rm -f conftest.$ac_objext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705 (eval $ac_compile) 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag"
11713 || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 $ac_includes_default
11737 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
11744 rm -f conftest.$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746 (eval $ac_compile) 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_hi=$ac_mid; break
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_lo=`expr $ac_mid + 1`
11772 if test $ac_lo -le $ac_mid; then
11776 ac_mid=`expr 2 '*' $ac_mid + 1`
11778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 cat >conftest.$ac_ext <<_ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 $ac_includes_default
11794 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
11801 rm -f conftest.$ac_objext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11803 (eval $ac_compile) 2>conftest.er1
11805 grep -v '^ *+' conftest.er1 >conftest.err
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -z "$ac_c_werror_flag"
11811 || test ! -s conftest.err'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 $ac_includes_default
11835 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>conftest.er1
11846 grep -v '^ *+' conftest.er1 >conftest.err
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try='test -z "$ac_c_werror_flag"
11852 || test ! -s conftest.err'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; } &&
11858 { ac_try='test -s conftest.$ac_objext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 ac_lo=$ac_mid; break
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ac_hi=`expr '(' $ac_mid ')' - 1`
11870 if test $ac_mid -le $ac_hi; then
11874 ac_mid=`expr 2 '*' $ac_mid`
11876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11887 # Binary search between lo and hi bounds.
11888 while test "x$ac_lo" != "x$ac_hi"; do
11889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11900 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
11907 rm -f conftest.$ac_objext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909 (eval $ac_compile) 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag"
11917 || test ! -s conftest.err'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest.$ac_objext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ac_lo=`expr '(' $ac_mid ')' + 1`
11936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11939 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
11940 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
11941 See \`config.log' for more details." >&5
11942 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
11943 See \`config.log' for more details." >&2;}
11944 { (exit 1); exit 1; }; } ;;
11947 if test "$cross_compiling" = yes; then
11948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11949 See \`config.log' for more details." >&5
11950 echo "$as_me: error: cannot run test program while cross compiling
11951 See \`config.log' for more details." >&2;}
11952 { (exit 1); exit 1; }; }
11954 cat >conftest.$ac_ext <<_ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11961 long longval () { return (long) (sizeof (intmax_t)); }
11962 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
11964 #include <stdlib.h>
11969 FILE *f = fopen ("conftest.val", "w");
11972 if (((long) (sizeof (intmax_t))) < 0)
11974 long i = longval ();
11975 if (i != ((long) (sizeof (intmax_t))))
11977 fprintf (f, "%ld\n", i);
11981 unsigned long i = ulongval ();
11982 if (i != ((long) (sizeof (intmax_t))))
11984 fprintf (f, "%lu\n", i);
11986 exit (ferror (f) || fclose (f) != 0);
11992 rm -f conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 ac_cv_sizeof_intmax_t=`cat conftest.val`
12005 echo "$as_me: program exited with status $ac_status" >&5
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ( exit $ac_status )
12010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12011 See \`config.log' for more details." >&5
12012 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12013 See \`config.log' for more details." >&2;}
12014 { (exit 1); exit 1; }; }
12016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12021 ac_cv_sizeof_intmax_t=0
12024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
12025 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
12026 cat >>confdefs.h <<_ACEOF
12027 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
12031 echo "$as_me:$LINENO: checking for off_t" >&5
12032 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12033 if test "${ac_cv_type_off_t+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 $ac_includes_default
12048 if (sizeof (off_t))
12054 rm -f conftest.$ac_objext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12056 (eval $ac_compile) 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_c_werror_flag"
12064 || test ! -s conftest.err'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest.$ac_objext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_type_off_t=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_cv_type_off_t=no
12083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12085 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12086 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12088 echo "$as_me:$LINENO: checking size of off_t" >&5
12089 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12090 if test "${ac_cv_sizeof_off_t+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 if test "$ac_cv_type_off_t" = yes; then
12094 # The cast to unsigned long works around a bug in the HP C Compiler
12095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12097 # This bug is HP SR number 8606223364.
12098 if test "$cross_compiling" = yes; then
12099 # Depending upon the size, compute the lo and hi bounds.
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 $ac_includes_default
12110 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag"
12127 || test ! -s conftest.err'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; } &&
12133 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12141 cat >conftest.$ac_ext <<_ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12151 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12162 grep -v '^ *+' conftest.er1 >conftest.err
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_hi=$ac_mid; break
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 ac_lo=`expr $ac_mid + 1`
12186 if test $ac_lo -le $ac_mid; then
12190 ac_mid=`expr 2 '*' $ac_mid + 1`
12192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12208 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217 (eval $ac_compile) 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try='test -z "$ac_c_werror_flag"
12225 || test ! -s conftest.err'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; } &&
12231 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 $ac_includes_default
12249 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
12256 rm -f conftest.$ac_objext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12258 (eval $ac_compile) 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest.$ac_objext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_lo=$ac_mid; break
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_hi=`expr '(' $ac_mid ')' - 1`
12284 if test $ac_mid -le $ac_hi; then
12288 ac_mid=`expr 2 '*' $ac_mid`
12290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301 # Binary search between lo and hi bounds.
12302 while test "x$ac_lo" != "x$ac_hi"; do
12303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12304 cat >conftest.$ac_ext <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12314 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
12321 rm -f conftest.$ac_objext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323 (eval $ac_compile) 2>conftest.er1
12325 grep -v '^ *+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag"
12331 || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest.$ac_objext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_lo=`expr '(' $ac_mid ')' + 1`
12350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353 ?*) ac_cv_sizeof_off_t=$ac_lo;;
12354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
12355 See \`config.log' for more details." >&5
12356 echo "$as_me: error: cannot compute sizeof (off_t), 77
12357 See \`config.log' for more details." >&2;}
12358 { (exit 1); exit 1; }; } ;;
12361 if test "$cross_compiling" = yes; then
12362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12363 See \`config.log' for more details." >&5
12364 echo "$as_me: error: cannot run test program while cross compiling
12365 See \`config.log' for more details." >&2;}
12366 { (exit 1); exit 1; }; }
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12375 long longval () { return (long) (sizeof (off_t)); }
12376 unsigned long ulongval () { return (long) (sizeof (off_t)); }
12378 #include <stdlib.h>
12383 FILE *f = fopen ("conftest.val", "w");
12386 if (((long) (sizeof (off_t))) < 0)
12388 long i = longval ();
12389 if (i != ((long) (sizeof (off_t))))
12391 fprintf (f, "%ld\n", i);
12395 unsigned long i = ulongval ();
12396 if (i != ((long) (sizeof (off_t))))
12398 fprintf (f, "%lu\n", i);
12400 exit (ferror (f) || fclose (f) != 0);
12406 rm -f conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408 (eval $ac_link) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 ac_cv_sizeof_off_t=`cat conftest.val`
12419 echo "$as_me: program exited with status $ac_status" >&5
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 ( exit $ac_status )
12424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
12425 See \`config.log' for more details." >&5
12426 echo "$as_me: error: cannot compute sizeof (off_t), 77
12427 See \`config.log' for more details." >&2;}
12428 { (exit 1); exit 1; }; }
12430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12435 ac_cv_sizeof_off_t=0
12438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12439 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12440 cat >>confdefs.h <<_ACEOF
12441 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12446 # Check whether --enable-shared or --disable-shared was given.
12447 if test "${enable_shared+set}" = set; then
12448 enableval="$enable_shared"
12449 p=${PACKAGE-default}
12451 yes) enable_shared=yes ;;
12452 no) enable_shared=no ;;
12455 # Look at the argument we got. We use all the common list separators.
12456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12457 for pkg in $enableval; do
12459 if test "X$pkg" = "X$p"; then
12470 # Check whether --enable-static or --disable-static was given.
12471 if test "${enable_static+set}" = set; then
12472 enableval="$enable_static"
12473 p=${PACKAGE-default}
12475 yes) enable_static=yes ;;
12476 no) enable_static=no ;;
12479 # Look at the argument we got. We use all the common list separators.
12480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12481 for pkg in $enableval; do
12483 if test "X$pkg" = "X$p"; then
12494 # Check whether --enable-fast-install or --disable-fast-install was given.
12495 if test "${enable_fast_install+set}" = set; then
12496 enableval="$enable_fast_install"
12497 p=${PACKAGE-default}
12499 yes) enable_fast_install=yes ;;
12500 no) enable_fast_install=no ;;
12502 enable_fast_install=no
12503 # Look at the argument we got. We use all the common list separators.
12504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12505 for pkg in $enableval; do
12507 if test "X$pkg" = "X$p"; then
12508 enable_fast_install=yes
12515 enable_fast_install=yes
12518 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12519 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
12520 if test "${lt_cv_path_SED+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 # Loop through the user's path and test for sed and gsed.
12524 # Then use that list of sed's as ones to test for truncation.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12529 test -z "$as_dir" && as_dir=.
12530 for lt_ac_prog in sed gsed; do
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12533 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12540 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12541 # along with /bin/sed that truncates output.
12542 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12543 test ! -f $lt_ac_sed && continue
12544 cat /dev/null > conftest.in
12546 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12547 # Check for GNU sed and select it if it is found.
12548 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12549 lt_cv_path_SED=$lt_ac_sed
12553 cat conftest.in conftest.in >conftest.tmp
12554 mv conftest.tmp conftest.in
12555 cp conftest.in conftest.nl
12557 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12558 cmp -s conftest.out conftest.nl || break
12559 # 10000 chars as input seems more than enough
12560 test $lt_ac_count -gt 10 && break
12561 lt_ac_count=`expr $lt_ac_count + 1`
12562 if test $lt_ac_count -gt $lt_ac_max; then
12563 lt_ac_max=$lt_ac_count
12564 lt_cv_path_SED=$lt_ac_sed
12571 SED=$lt_cv_path_SED
12572 echo "$as_me:$LINENO: result: $SED" >&5
12573 echo "${ECHO_T}$SED" >&6
12576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12577 if test "${with_gnu_ld+set}" = set; then
12578 withval="$with_gnu_ld"
12579 test "$withval" = no || with_gnu_ld=yes
12584 if test "$GCC" = yes; then
12585 # Check if gcc -print-prog-name=ld gives a path.
12586 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12587 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12590 # gcc leaves a trailing carriage return which upsets mingw
12591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12596 # Accept absolute paths.
12598 re_direlt='/[^/][^/]*/\.\./'
12599 # Canonicalize the pathname of ld
12600 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12602 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12604 test -z "$LD" && LD="$ac_prog"
12607 # If it fails, then pretend we aren't using GCC.
12611 # If it is relative, then search for the first ld in PATH.
12612 with_gnu_ld=unknown
12615 elif test "$with_gnu_ld" = yes; then
12616 echo "$as_me:$LINENO: checking for GNU ld" >&5
12617 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12619 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12620 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12622 if test "${lt_cv_path_LD+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 if test -z "$LD"; then
12626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12627 for ac_dir in $PATH; do
12629 test -z "$ac_dir" && ac_dir=.
12630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12631 lt_cv_path_LD="$ac_dir/$ac_prog"
12632 # Check to see if the program is GNU ld. I'd rather use --version,
12633 # but apparently some variants of GNU ld only accept -v.
12634 # Break only if it was the GNU/non-GNU ld that we prefer.
12635 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12636 *GNU* | *'with BFD'*)
12637 test "$with_gnu_ld" != no && break
12640 test "$with_gnu_ld" != yes && break
12647 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12651 LD="$lt_cv_path_LD"
12652 if test -n "$LD"; then
12653 echo "$as_me:$LINENO: result: $LD" >&5
12654 echo "${ECHO_T}$LD" >&6
12656 echo "$as_me:$LINENO: result: no" >&5
12657 echo "${ECHO_T}no" >&6
12659 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12660 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12661 { (exit 1); exit 1; }; }
12662 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12663 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12664 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12668 case `$LD -v 2>&1 </dev/null` in
12669 *GNU* | *'with BFD'*)
12670 lt_cv_prog_gnu_ld=yes
12673 lt_cv_prog_gnu_ld=no
12677 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12678 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12679 with_gnu_ld=$lt_cv_prog_gnu_ld
12682 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12683 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
12684 if test "${lt_cv_ld_reload_flag+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 lt_cv_ld_reload_flag='-r'
12689 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12690 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
12691 reload_flag=$lt_cv_ld_reload_flag
12692 case $reload_flag in
12694 *) reload_flag=" $reload_flag" ;;
12696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12699 if test "$GCC" = yes; then
12700 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
12702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12707 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12708 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
12709 if test "${lt_cv_path_NM+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 if test -n "$NM"; then
12713 # Let the user override the test.
12714 lt_cv_path_NM="$NM"
12716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12717 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
12719 test -z "$ac_dir" && ac_dir=.
12720 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
12721 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12722 # Check to see if the nm accepts a BSD-compat flag.
12723 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12724 # nm: unknown option "B" ignored
12725 # Tru64's nm complains that /dev/null is an invalid object file
12726 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12727 */dev/null* | *'Invalid file or object type'*)
12728 lt_cv_path_NM="$tmp_nm -B"
12732 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12734 lt_cv_path_NM="$tmp_nm -p"
12738 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12739 continue # so that we can try to find one that supports BSD flags
12746 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12749 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12750 echo "${ECHO_T}$lt_cv_path_NM" >&6
12751 NM="$lt_cv_path_NM"
12753 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12754 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12756 if test "$LN_S" = "ln -s"; then
12757 echo "$as_me:$LINENO: result: yes" >&5
12758 echo "${ECHO_T}yes" >&6
12760 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12761 echo "${ECHO_T}no, using $LN_S" >&6
12764 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12765 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
12766 if test "${lt_cv_deplibs_check_method+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 lt_cv_file_magic_cmd='$MAGIC_CMD'
12770 lt_cv_file_magic_test_file=
12771 lt_cv_deplibs_check_method='unknown'
12772 # Need to set the preceding variable on all platforms that support
12773 # interlibrary dependencies.
12774 # 'none' -- dependencies not supported.
12775 # `unknown' -- same as none, but documents that we really don't know.
12776 # 'pass_all' -- all dependencies passed with no checks.
12777 # 'test_compile' -- check by making test program.
12778 # 'file_magic [[regex]]' -- check by looking for files in library path
12779 # which responds to the $file_magic_cmd with a given extended regex.
12780 # If you have `file' or equivalent on your system and you're not sure
12781 # whether `pass_all' will *always* work, you probably want this one.
12785 lt_cv_deplibs_check_method=pass_all
12789 lt_cv_deplibs_check_method=pass_all
12793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12794 lt_cv_file_magic_cmd='/usr/bin/file -L'
12795 lt_cv_file_magic_test_file=/shlib/libc.so
12799 # func_win32_libid is a shell function defined in ltmain.sh
12800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12801 lt_cv_file_magic_cmd='func_win32_libid'
12805 # Base MSYS/MinGW do not provide the 'file' command needed by
12806 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12807 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12808 lt_cv_file_magic_cmd='$OBJDUMP -f'
12811 darwin* | rhapsody*)
12812 lt_cv_deplibs_check_method=pass_all
12815 freebsd* | kfreebsd*-gnu | dragonfly*)
12816 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12819 # Not sure whether the presence of OpenBSD here was a mistake.
12820 # Let's accept both of them until this is cleared up.
12821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12822 lt_cv_file_magic_cmd=/usr/bin/file
12823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12827 lt_cv_deplibs_check_method=pass_all
12832 lt_cv_deplibs_check_method=pass_all
12835 hpux10.20* | hpux11*)
12836 lt_cv_file_magic_cmd=/usr/bin/file
12839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12843 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]'
12844 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12848 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12853 irix5* | irix6* | nonstopux*)
12855 *-32|*"-32 ") libmagic=32-bit;;
12856 *-n32|*"-n32 ") libmagic=N32;;
12857 *-64|*"-64 ") libmagic=64-bit;;
12858 *) libmagic=never-match;;
12860 lt_cv_deplibs_check_method=pass_all
12863 # This must be Linux ELF.
12865 lt_cv_deplibs_check_method=pass_all
12869 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12878 lt_cv_file_magic_cmd=/usr/bin/file
12879 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12883 lt_cv_deplibs_check_method=unknown
12887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12894 osf3* | osf4* | osf5*)
12895 lt_cv_deplibs_check_method=pass_all
12899 lt_cv_deplibs_check_method=pass_all
12903 lt_cv_deplibs_check_method=pass_all
12906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12907 case $host_vendor in
12909 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]'
12910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12913 lt_cv_deplibs_check_method=pass_all
12916 lt_cv_file_magic_cmd='/bin/file'
12917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12920 lt_cv_file_magic_cmd='/bin/file'
12921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12922 lt_cv_file_magic_test_file=/lib/libc.so
12925 lt_cv_deplibs_check_method=pass_all
12930 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
12931 lt_cv_deplibs_check_method=pass_all
12936 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12937 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
12938 file_magic_cmd=$lt_cv_file_magic_cmd
12939 deplibs_check_method=$lt_cv_deplibs_check_method
12940 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12943 # If no C compiler was specified, use CC.
12946 # Allow CC to be a program name with arguments.
12949 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12950 if test "${enable_libtool_lock+set}" = set; then
12951 enableval="$enable_libtool_lock"
12954 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12956 # Some flags need to be propagated to the compiler or linker for good
12960 # Find out which ABI we are using.
12961 echo 'int i;' > conftest.$ac_ext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; then
12967 case `/usr/bin/file conftest.$ac_objext` in
12969 HPUX_IA64_MODE="32"
12972 HPUX_IA64_MODE="64"
12979 # Find out which ABI we are using.
12980 echo '#line 12980 "configure"' > conftest.$ac_ext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; then
12986 if test "$lt_cv_prog_gnu_ld" = yes; then
12987 case `/usr/bin/file conftest.$ac_objext` in
12989 LD="${LD-ld} -melf32bsmip"
12992 LD="${LD-ld} -melf32bmipn32"
12995 LD="${LD-ld} -melf64bmip"
12999 case `/usr/bin/file conftest.$ac_objext` in
13015 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13016 # Find out which ABI we are using.
13017 echo 'int i;' > conftest.$ac_ext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019 (eval $ac_compile) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; then
13023 case `/usr/bin/file conftest.o` in
13027 LD="${LD-ld} -m elf_i386"
13029 ppc64-*linux*|powerpc64-*linux*)
13030 LD="${LD-ld} -m elf32ppclinux"
13033 LD="${LD-ld} -m elf_s390"
13036 LD="${LD-ld} -m elf32_sparc"
13043 LD="${LD-ld} -m elf_x86_64"
13045 ppc*-*linux*|powerpc*-*linux*)
13046 LD="${LD-ld} -m elf64ppc"
13049 LD="${LD-ld} -m elf64_s390"
13052 LD="${LD-ld} -m elf64_sparc"
13062 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13063 SAVE_CFLAGS="$CFLAGS"
13064 CFLAGS="$CFLAGS -belf"
13065 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13066 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
13067 if test "${lt_cv_cc_needs_belf+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_cpp='$CPP $CPPFLAGS'
13072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13076 cat >conftest.$ac_ext <<_ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13091 rm -f conftest.$ac_objext conftest$ac_exeext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13093 (eval $ac_link) 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -z "$ac_c_werror_flag"
13101 || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 lt_cv_cc_needs_belf=yes
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 lt_cv_cc_needs_belf=no
13120 rm -f conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13123 ac_cpp='$CPP $CPPFLAGS'
13124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13130 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
13131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13133 CFLAGS="$SAVE_CFLAGS"
13139 need_locks="$enable_libtool_lock"
13143 for ac_header in dlfcn.h
13145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13147 echo "$as_me:$LINENO: checking for $ac_header" >&5
13148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13155 # Is the header compilable?
13156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 $ac_includes_default
13165 #include <$ac_header>
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 (eval $ac_compile) 2>conftest.er1
13171 grep -v '^ *+' conftest.er1 >conftest.err
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag"
13177 || test ! -s conftest.err'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest.$ac_objext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_header_compiler=yes
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_header_compiler=no
13196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13198 echo "${ECHO_T}$ac_header_compiler" >&6
13200 # Is the header present?
13201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13203 cat >conftest.$ac_ext <<_ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <$ac_header>
13211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } >/dev/null; then
13219 if test -s conftest.err; then
13220 ac_cpp_err=$ac_c_preproc_warn_flag
13221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13228 if test -z "$ac_cpp_err"; then
13229 ac_header_preproc=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ac_header_preproc=no
13236 rm -f conftest.err conftest.$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13238 echo "${ECHO_T}$ac_header_preproc" >&6
13240 # So? What about this header?
13241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13247 ac_header_preproc=yes
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13264 ## ------------------------------------------ ##
13265 ## Report this to the AC_PACKAGE_NAME lists. ##
13266 ## ------------------------------------------ ##
13269 sed "s/^/$as_me: WARNING: /" >&2
13272 echo "$as_me:$LINENO: checking for $ac_header" >&5
13273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 eval "$as_ac_Header=\$ac_header_preproc"
13279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13284 cat >>confdefs.h <<_ACEOF
13285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13293 ac_cpp='$CXXCPP $CPPFLAGS'
13294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13297 if test -n "$ac_tool_prefix"; then
13298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13302 echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13304 if test "${ac_cv_prog_CXX+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 if test -n "$CXX"; then
13308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13314 test -z "$as_dir" && as_dir=.
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13326 CXX=$ac_cv_prog_CXX
13327 if test -n "$CXX"; then
13328 echo "$as_me:$LINENO: result: $CXX" >&5
13329 echo "${ECHO_T}$CXX" >&6
13331 echo "$as_me:$LINENO: result: no" >&5
13332 echo "${ECHO_T}no" >&6
13335 test -n "$CXX" && break
13338 if test -z "$CXX"; then
13340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13342 # Extract the first word of "$ac_prog", so it can be a program name with args.
13343 set dummy $ac_prog; ac_word=$2
13344 echo "$as_me:$LINENO: checking for $ac_word" >&5
13345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 if test -n "$ac_ct_CXX"; then
13350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13359 ac_cv_prog_ac_ct_CXX="$ac_prog"
13360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13369 if test -n "$ac_ct_CXX"; then
13370 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13371 echo "${ECHO_T}$ac_ct_CXX" >&6
13373 echo "$as_me:$LINENO: result: no" >&5
13374 echo "${ECHO_T}no" >&6
13377 test -n "$ac_ct_CXX" && break
13379 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13385 # Provide some information about the compiler.
13386 echo "$as_me:$LINENO:" \
13387 "checking for C++ compiler version" >&5
13388 ac_compiler=`set X $ac_compile; echo $2`
13389 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13390 (eval $ac_compiler --version </dev/null >&5) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }
13394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13395 (eval $ac_compiler -v </dev/null >&5) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }
13399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13400 (eval $ac_compiler -V </dev/null >&5) 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }
13405 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13406 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13407 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>conftest.er1
13432 grep -v '^ *+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -z "$ac_cxx_werror_flag"
13438 || test ! -s conftest.err'
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); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_compiler_gnu=yes
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13461 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13462 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13463 GXX=`test $ac_compiler_gnu = yes && echo yes`
13464 ac_test_CXXFLAGS=${CXXFLAGS+set}
13465 ac_save_CXXFLAGS=$CXXFLAGS
13467 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13469 if test "${ac_cv_prog_cxx_g+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_cxx_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_prog_cxx_g=yes
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_prog_cxx_g=no
13516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13518 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13519 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13520 if test "$ac_test_CXXFLAGS" = set; then
13521 CXXFLAGS=$ac_save_CXXFLAGS
13522 elif test $ac_cv_prog_cxx_g = yes; then
13523 if test "$GXX" = yes; then
13529 if test "$GXX" = yes; then
13535 for ac_declaration in \
13537 'extern "C" void std::exit (int) throw (); using std::exit;' \
13538 'extern "C" void std::exit (int); using std::exit;' \
13539 'extern "C" void exit (int) throw ();' \
13540 'extern "C" void exit (int);' \
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13550 #include <stdlib.h>
13559 rm -f conftest.$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561 (eval $ac_compile) 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_cxx_werror_flag"
13569 || test ! -s conftest.err'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } &&
13575 { ac_try='test -s conftest.$ac_objext'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_cxx_werror_flag"
13614 || test ! -s conftest.err'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; } &&
13620 { ac_try='test -s conftest.$ac_objext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13635 if test -n "$ac_declaration"; then
13636 echo '#ifdef __cplusplus' >>confdefs.h
13637 echo $ac_declaration >>confdefs.h
13638 echo '#endif' >>confdefs.h
13642 ac_cpp='$CXXCPP $CPPFLAGS'
13643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13647 depcc="$CXX" am_compiler_list=
13649 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13650 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13651 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13655 # We make a subdir and do the tests there. Otherwise we can end up
13656 # making bogus files that we don't know about and never remove. For
13657 # instance it was reported that on HP-UX the gcc test will end up
13658 # making a dummy file named `D' -- because `-MD' means `put the output
13661 # Copy depcomp to subdir because otherwise we won't find it if we're
13662 # using a relative directory.
13663 cp "$am_depcomp" conftest.dir
13665 # We will build objects and dependencies in a subdirectory because
13666 # it helps to detect inapplicable dependency modes. For instance
13667 # both Tru64's cc and ICC support -MD to output dependencies as a
13668 # side effect of compilation, but ICC will put the dependencies in
13669 # the current directory while Tru64 will put them in the object
13673 am_cv_CXX_dependencies_compiler_type=none
13674 if test "$am_compiler_list" = ""; then
13675 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13677 for depmode in $am_compiler_list; do
13678 # Setup a source with many dependencies, because some compilers
13679 # like to wrap large dependency lists on column 80 (with \), and
13680 # we should not choose a depcomp mode which is confused by this.
13682 # We need to recreate these files for each test, as the compiler may
13683 # overwrite some of them when testing with obscure command lines.
13684 # This happens at least with the AIX C compiler.
13686 for i in 1 2 3 4 5 6; do
13687 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13688 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13689 # Solaris 8's {/usr,}/bin/sh.
13690 touch sub/conftst$i.h
13692 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13696 # after this tag, mechanisms are not by side-effect, so they'll
13697 # only be used when explicitly requested
13698 if test "x$enable_dependency_tracking" = xyes; then
13706 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13707 # mode. It turns out that the SunPro C++ compiler does not properly
13708 # handle `-M -o', and we need to detect this.
13709 if depmode=$depmode \
13710 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13712 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13713 >/dev/null 2>conftest.err &&
13714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13715 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13717 # icc doesn't choke on unknown options, it will just issue warnings
13718 # or remarks (even with -Werror). So we grep stderr for any message
13719 # that says an option was ignored or not supported.
13720 # When given -MP, icc 7.0 and 7.1 complain thusly:
13721 # icc: Command line warning: ignoring option '-M'; no argument required
13722 # The diagnosis changed in icc 8.0:
13723 # icc: Command line remark: option '-MP' not supported
13724 if (grep 'ignoring option' conftest.err ||
13725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13726 am_cv_CXX_dependencies_compiler_type=$depmode
13733 rm -rf conftest.dir
13735 am_cv_CXX_dependencies_compiler_type=none
13739 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13740 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
13741 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13746 test "x$enable_dependency_tracking" != xno \
13747 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13748 am__fastdepCXX_TRUE=
13749 am__fastdepCXX_FALSE='#'
13751 am__fastdepCXX_TRUE='#'
13752 am__fastdepCXX_FALSE=
13758 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13759 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13760 (test "X$CXX" != "Xg++"))) ; then
13762 ac_cpp='$CXXCPP $CPPFLAGS'
13763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13766 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13767 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
13768 if test -z "$CXXCPP"; then
13769 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 # Double quotes because CXXCPP needs to be expanded
13773 for CXXCPP in "$CXX -E" "/lib/cpp"
13775 ac_preproc_ok=false
13776 for ac_cxx_preproc_warn_flag in '' yes
13778 # Use a header file that comes with gcc, so configuring glibc
13779 # with a fresh cross-compiler works.
13780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13781 # <limits.h> exists even on freestanding compilers.
13782 # On the NeXT, cc -E runs the code through the compiler's parser,
13783 # not just through cpp. "Syntax error" is here to catch this case.
13784 cat >conftest.$ac_ext <<_ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13791 # include <limits.h>
13793 # include <assert.h>
13797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } >/dev/null; then
13805 if test -s conftest.err; then
13806 ac_cpp_err=$ac_cxx_preproc_warn_flag
13807 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13814 if test -z "$ac_cpp_err"; then
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 # Broken: fails on valid input.
13823 rm -f conftest.err conftest.$ac_ext
13825 # OK, works on sane cases. Now check whether non-existent headers
13826 # can be detected and how.
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 #include <ac_nonexistent.h>
13835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13838 grep -v '^ *+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } >/dev/null; then
13843 if test -s conftest.err; then
13844 ac_cpp_err=$ac_cxx_preproc_warn_flag
13845 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13852 if test -z "$ac_cpp_err"; then
13853 # Broken: success on invalid input.
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 # Passes both tests.
13863 rm -f conftest.err conftest.$ac_ext
13866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13867 rm -f conftest.err conftest.$ac_ext
13868 if $ac_preproc_ok; then
13873 ac_cv_prog_CXXCPP=$CXXCPP
13876 CXXCPP=$ac_cv_prog_CXXCPP
13878 ac_cv_prog_CXXCPP=$CXXCPP
13880 echo "$as_me:$LINENO: result: $CXXCPP" >&5
13881 echo "${ECHO_T}$CXXCPP" >&6
13882 ac_preproc_ok=false
13883 for ac_cxx_preproc_warn_flag in '' yes
13885 # Use a header file that comes with gcc, so configuring glibc
13886 # with a fresh cross-compiler works.
13887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 # <limits.h> exists even on freestanding compilers.
13889 # On the NeXT, cc -E runs the code through the compiler's parser,
13890 # not just through cpp. "Syntax error" is here to catch this case.
13891 cat >conftest.$ac_ext <<_ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13898 # include <limits.h>
13900 # include <assert.h>
13904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13907 grep -v '^ *+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } >/dev/null; then
13912 if test -s conftest.err; then
13913 ac_cpp_err=$ac_cxx_preproc_warn_flag
13914 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13921 if test -z "$ac_cpp_err"; then
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 # Broken: fails on valid input.
13930 rm -f conftest.err conftest.$ac_ext
13932 # OK, works on sane cases. Now check whether non-existent headers
13933 # can be detected and how.
13934 cat >conftest.$ac_ext <<_ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 #include <ac_nonexistent.h>
13942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13945 grep -v '^ *+' conftest.er1 >conftest.err
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } >/dev/null; then
13950 if test -s conftest.err; then
13951 ac_cpp_err=$ac_cxx_preproc_warn_flag
13952 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13959 if test -z "$ac_cpp_err"; then
13960 # Broken: success on invalid input.
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 # Passes both tests.
13970 rm -f conftest.err conftest.$ac_ext
13973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13974 rm -f conftest.err conftest.$ac_ext
13975 if $ac_preproc_ok; then
13978 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13979 See \`config.log' for more details." >&5
13980 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13981 See \`config.log' for more details." >&2;}
13982 { (exit 1); exit 1; }; }
13986 ac_cpp='$CXXCPP $CPPFLAGS'
13987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13995 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13996 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13998 if test -n "$ac_tool_prefix"; then
13999 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
14001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14003 echo "$as_me:$LINENO: checking for $ac_word" >&5
14004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14005 if test "${ac_cv_prog_F77+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 if test -n "$F77"; then
14009 ac_cv_prog_F77="$F77" # Let the user override the test.
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14018 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 F77=$ac_cv_prog_F77
14028 if test -n "$F77"; then
14029 echo "$as_me:$LINENO: result: $F77" >&5
14030 echo "${ECHO_T}$F77" >&6
14032 echo "$as_me:$LINENO: result: no" >&5
14033 echo "${ECHO_T}no" >&6
14036 test -n "$F77" && break
14039 if test -z "$F77"; then
14041 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
14043 # Extract the first word of "$ac_prog", so it can be a program name with args.
14044 set dummy $ac_prog; ac_word=$2
14045 echo "$as_me:$LINENO: checking for $ac_word" >&5
14046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14047 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 if test -n "$ac_ct_F77"; then
14051 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060 ac_cv_prog_ac_ct_F77="$ac_prog"
14061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14070 if test -n "$ac_ct_F77"; then
14071 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14072 echo "${ECHO_T}$ac_ct_F77" >&6
14074 echo "$as_me:$LINENO: result: no" >&5
14075 echo "${ECHO_T}no" >&6
14078 test -n "$ac_ct_F77" && break
14085 # Provide some information about the compiler.
14086 echo "$as_me:14086:" \
14087 "checking for Fortran 77 compiler version" >&5
14088 ac_compiler=`set X $ac_compile; echo $2`
14089 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14090 (eval $ac_compiler --version </dev/null >&5) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }
14094 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14095 (eval $ac_compiler -v </dev/null >&5) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }
14099 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14100 (eval $ac_compiler -V </dev/null >&5) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }
14106 # If we don't use `.F' as extension, the preprocessor is not run on the
14107 # input file. (Note that this only needs to work for GNU compilers.)
14108 ac_save_ext=$ac_ext
14110 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14111 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
14112 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 cat >conftest.$ac_ext <<_ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14125 (eval $ac_compile) 2>conftest.er1
14127 grep -v '^ *+' conftest.er1 >conftest.err
14129 cat conftest.err >&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try='test -z "$ac_f77_werror_flag"
14133 || test ! -s conftest.err'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; } &&
14139 { ac_try='test -s conftest.$ac_objext'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
14145 ac_compiler_gnu=yes
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14153 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14156 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14157 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
14158 ac_ext=$ac_save_ext
14159 ac_test_FFLAGS=${FFLAGS+set}
14160 ac_save_FFLAGS=$FFLAGS
14162 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14163 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
14164 if test "${ac_cv_prog_f77_g+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 cat >conftest.$ac_ext <<_ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175 (eval $ac_compile) 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_f77_werror_flag"
14183 || test ! -s conftest.err'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest.$ac_objext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_prog_f77_g=yes
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 ac_cv_prog_f77_g=no
14202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14205 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14206 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
14207 if test "$ac_test_FFLAGS" = set; then
14208 FFLAGS=$ac_save_FFLAGS
14209 elif test $ac_cv_prog_f77_g = yes; then
14210 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14216 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14223 G77=`test $ac_compiler_gnu = yes && echo yes`
14225 ac_cpp='$CPP $CPPFLAGS'
14226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14234 # find the maximum length of command line arguments
14235 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14236 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14237 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 # On DJGPP, this test can blow up pretty badly due to problems in libc
14246 # (any single argument exceeding 2000 bytes causes a buffer overrun
14247 # during glob expansion). Even if it were fixed, the result of this
14248 # check would be larger than it should be.
14249 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14253 # Under GNU Hurd, this test is not required because there is
14254 # no limit to the length of command line arguments.
14255 # Libtool will interpret -1 as no limit whatsoever
14256 lt_cv_sys_max_cmd_len=-1;
14260 # On Win9x/ME, this test blows up -- it succeeds, but takes
14261 # about 5 minutes as the teststring grows exponentially.
14262 # Worse, since 9x/ME are not pre-emptively multitasking,
14263 # you end up with a "frozen" computer, even though with patience
14264 # the test eventually succeeds (with a max line length of 256k).
14265 # Instead, let's just punt: use the minimum linelength reported by
14266 # all of the supported platforms: 8192 (on NT/2K/XP).
14267 lt_cv_sys_max_cmd_len=8192;
14271 # On AmigaOS with pdksh, this test takes hours, literally.
14272 # So we just punt and use a minimum line length of 8192.
14273 lt_cv_sys_max_cmd_len=8192;
14276 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14277 # This has been around since 386BSD, at least. Likely further.
14278 if test -x /sbin/sysctl; then
14279 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14280 elif test -x /usr/sbin/sysctl; then
14281 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14283 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14285 # And add a safety zone
14286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14292 # nice to cause kernel panics so lets avoid the loop below.
14293 # First set a reasonable default.
14294 lt_cv_sys_max_cmd_len=16384
14296 if test -x /sbin/sysconfig; then
14297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14298 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14303 # If test is not a shell built-in, we'll probably end up computing a
14304 # maximum length that is only half of the actual maximum length, but
14306 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14307 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14308 = "XX$teststring") >/dev/null 2>&1 &&
14309 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14310 lt_cv_sys_max_cmd_len=$new_result &&
14311 test $i != 17 # 1/2 MB should be enough
14314 teststring=$teststring$teststring
14317 # Add a significant safety factor because C++ compilers can tack on massive
14318 # amounts of additional arguments before passing them to the linker.
14319 # It appears as though 1/2 is a usable value.
14320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14326 if test -n $lt_cv_sys_max_cmd_len ; then
14327 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14328 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14330 echo "$as_me:$LINENO: result: none" >&5
14331 echo "${ECHO_T}none" >&6
14337 # Check for command to grab the raw symbol name followed by C symbol from nm.
14338 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14339 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
14340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 # These are sane defaults that work on at least a few old systems.
14345 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14347 # Character class describing NM global symbol codes.
14348 symcode='[BCDEGRST]'
14350 # Regexp to match symbols that can be accessed directly from C.
14351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14353 # Transform an extracted symbol line into a proper C declaration
14354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14356 # Transform an extracted symbol line into symbol name and symbol address
14357 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'"
14359 # Define system-specific variables.
14364 cygwin* | mingw* | pw32*)
14365 symcode='[ABCDGISTW]'
14367 hpux*) # Its linker distinguishes data from code symbols
14368 if test "$host_cpu" = ia64; then
14369 symcode='[ABCDEGRST]'
14371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14372 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'"
14375 if test "$host_cpu" = ia64; then
14376 symcode='[ABCDGIRSTW]'
14377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14378 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'"
14381 irix* | nonstopux*)
14382 symcode='[BCDEGRST]'
14385 symcode='[BCDEGQRST]'
14395 # Handle CRLF in mingw tool chain
14399 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14403 # If we're using GNU nm, then use its standard symbol codes.
14404 case `$NM -V 2>&1` in
14405 *GNU* | *'with BFD'*)
14406 symcode='[ABCDGIRSTW]' ;;
14409 # Try without a prefix undercore, then with it.
14410 for ac_symprfx in "" "_"; do
14412 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14413 symxfrm="\\1 $ac_symprfx\\2 \\2"
14415 # Write the raw and C identifiers.
14416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14418 # Check to see that the pipe works correctly.
14422 cat > conftest.$ac_ext <<EOF
14427 void nm_test_func(){}
14431 int main(){nm_test_var='a';nm_test_func();return(0);}
14434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14435 (eval $ac_compile) 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; then
14439 # Now try to grab the symbols.
14441 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14442 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } && test -s "$nlist"; then
14446 # Try sorting and uniquifying the output.
14447 if sort "$nlist" | uniq > "$nlist"T; then
14448 mv -f "$nlist"T "$nlist"
14453 # Make sure that we snagged all the symbols we need.
14454 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14455 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14456 cat <<EOF > conftest.$ac_ext
14462 # Now generate the symbol file.
14463 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14465 cat <<EOF >> conftest.$ac_ext
14466 #if defined (__STDC__) && __STDC__
14467 # define lt_ptr_t void *
14469 # define lt_ptr_t char *
14473 /* The mapping between symbol names and symbols. */
14478 lt_preloaded_symbols[] =
14481 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14482 cat <<\EOF >> conftest.$ac_ext
14490 # Now try linking the two files.
14491 mv conftest.$ac_objext conftstm.$ac_objext
14492 lt_save_LIBS="$LIBS"
14493 lt_save_CFLAGS="$CFLAGS"
14494 LIBS="conftstm.$ac_objext"
14495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14497 (eval $ac_link) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14503 LIBS="$lt_save_LIBS"
14504 CFLAGS="$lt_save_CFLAGS"
14506 echo "cannot find nm_test_func in $nlist" >&5
14509 echo "cannot find nm_test_var in $nlist" >&5
14512 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14515 echo "$progname: failed program was:" >&5
14516 cat conftest.$ac_ext >&5
14518 rm -f conftest* conftst*
14520 # Do not use the global_symbol_pipe unless it works.
14521 if test "$pipe_works" = yes; then
14524 lt_cv_sys_global_symbol_pipe=
14530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14531 lt_cv_sys_global_symbol_to_cdecl=
14533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14534 echo "$as_me:$LINENO: result: failed" >&5
14535 echo "${ECHO_T}failed" >&6
14537 echo "$as_me:$LINENO: result: ok" >&5
14538 echo "${ECHO_T}ok" >&6
14541 echo "$as_me:$LINENO: checking for objdir" >&5
14542 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
14543 if test "${lt_cv_objdir+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 rm -f .libs 2>/dev/null
14547 mkdir .libs 2>/dev/null
14548 if test -d .libs; then
14551 # MS-DOS does not allow filenames that begin with a dot.
14554 rmdir .libs 2>/dev/null
14556 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14557 echo "${ECHO_T}$lt_cv_objdir" >&6
14558 objdir=$lt_cv_objdir
14566 # AIX sometimes has problems with the GCC collect2 program. For some
14567 # reason, if we set the COLLECT_NAMES environment variable, the problems
14568 # vanish in a puff of smoke.
14569 if test "X${COLLECT_NAMES+set}" != Xset; then
14571 export COLLECT_NAMES
14576 # Sed substitution that helps us do robust quoting. It backslashifies
14577 # metacharacters that are still active within double-quoted strings.
14578 Xsed='sed -e 1s/^X//'
14579 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14581 # Same as above, but do not quote variable references.
14582 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14584 # Sed substitution to delay expansion of an escaped shell variable in a
14585 # double_quote_subst'ed string.
14586 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14588 # Sed substitution to avoid accidental globbing in evaled expressions
14589 no_glob_subst='s/\*/\\\*/g'
14594 # Global variables:
14595 default_ofile=libtool
14596 can_build_shared=yes
14598 # All known linkers require a `.a' archive for static linking (except MSVC,
14599 # which needs '.lib').
14601 ltmain="$ac_aux_dir/ltmain.sh"
14602 ofile="$default_ofile"
14603 with_gnu_ld="$lt_cv_prog_gnu_ld"
14605 if test -n "$ac_tool_prefix"; then
14606 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14607 set dummy ${ac_tool_prefix}ar; ac_word=$2
14608 echo "$as_me:$LINENO: checking for $ac_word" >&5
14609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14610 if test "${ac_cv_prog_AR+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 if test -n "$AR"; then
14614 ac_cv_prog_AR="$AR" # Let the user override the test.
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_AR="${ac_tool_prefix}ar"
14624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 if test -n "$AR"; then
14634 echo "$as_me:$LINENO: result: $AR" >&5
14635 echo "${ECHO_T}$AR" >&6
14637 echo "$as_me:$LINENO: result: no" >&5
14638 echo "${ECHO_T}no" >&6
14642 if test -z "$ac_cv_prog_AR"; then
14644 # Extract the first word of "ar", so it can be a program name with args.
14645 set dummy ar; ac_word=$2
14646 echo "$as_me:$LINENO: checking for $ac_word" >&5
14647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14648 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 if test -n "$ac_ct_AR"; then
14652 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14658 test -z "$as_dir" && as_dir=.
14659 for ac_exec_ext in '' $ac_executable_extensions; do
14660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14661 ac_cv_prog_ac_ct_AR="ar"
14662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14668 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
14671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14672 if test -n "$ac_ct_AR"; then
14673 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14674 echo "${ECHO_T}$ac_ct_AR" >&6
14676 echo "$as_me:$LINENO: result: no" >&5
14677 echo "${ECHO_T}no" >&6
14682 AR="$ac_cv_prog_AR"
14685 if test -n "$ac_tool_prefix"; then
14686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14688 echo "$as_me:$LINENO: checking for $ac_word" >&5
14689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14690 if test "${ac_cv_prog_RANLIB+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 if test -n "$RANLIB"; then
14694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697 for as_dir in $PATH
14700 test -z "$as_dir" && as_dir=.
14701 for ac_exec_ext in '' $ac_executable_extensions; do
14702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14712 RANLIB=$ac_cv_prog_RANLIB
14713 if test -n "$RANLIB"; then
14714 echo "$as_me:$LINENO: result: $RANLIB" >&5
14715 echo "${ECHO_T}$RANLIB" >&6
14717 echo "$as_me:$LINENO: result: no" >&5
14718 echo "${ECHO_T}no" >&6
14722 if test -z "$ac_cv_prog_RANLIB"; then
14723 ac_ct_RANLIB=$RANLIB
14724 # Extract the first word of "ranlib", so it can be a program name with args.
14725 set dummy ranlib; ac_word=$2
14726 echo "$as_me:$LINENO: checking for $ac_word" >&5
14727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14728 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 if test -n "$ac_ct_RANLIB"; then
14732 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14738 test -z "$as_dir" && as_dir=.
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14741 ac_cv_prog_ac_ct_RANLIB="ranlib"
14742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14748 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14752 if test -n "$ac_ct_RANLIB"; then
14753 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14754 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14756 echo "$as_me:$LINENO: result: no" >&5
14757 echo "${ECHO_T}no" >&6
14760 RANLIB=$ac_ct_RANLIB
14762 RANLIB="$ac_cv_prog_RANLIB"
14765 if test -n "$ac_tool_prefix"; then
14766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14767 set dummy ${ac_tool_prefix}strip; ac_word=$2
14768 echo "$as_me:$LINENO: checking for $ac_word" >&5
14769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14770 if test "${ac_cv_prog_STRIP+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 if test -n "$STRIP"; then
14774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14780 test -z "$as_dir" && as_dir=.
14781 for ac_exec_ext in '' $ac_executable_extensions; do
14782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14792 STRIP=$ac_cv_prog_STRIP
14793 if test -n "$STRIP"; then
14794 echo "$as_me:$LINENO: result: $STRIP" >&5
14795 echo "${ECHO_T}$STRIP" >&6
14797 echo "$as_me:$LINENO: result: no" >&5
14798 echo "${ECHO_T}no" >&6
14802 if test -z "$ac_cv_prog_STRIP"; then
14804 # Extract the first word of "strip", so it can be a program name with args.
14805 set dummy strip; ac_word=$2
14806 echo "$as_me:$LINENO: checking for $ac_word" >&5
14807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 if test -n "$ac_ct_STRIP"; then
14812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14815 for as_dir in $PATH
14818 test -z "$as_dir" && as_dir=.
14819 for ac_exec_ext in '' $ac_executable_extensions; do
14820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14821 ac_cv_prog_ac_ct_STRIP="strip"
14822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14828 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
14831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14832 if test -n "$ac_ct_STRIP"; then
14833 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14834 echo "${ECHO_T}$ac_ct_STRIP" >&6
14836 echo "$as_me:$LINENO: result: no" >&5
14837 echo "${ECHO_T}no" >&6
14842 STRIP="$ac_cv_prog_STRIP"
14847 old_CFLAGS="$CFLAGS"
14849 # Set sane defaults for various variables
14850 test -z "$AR" && AR=ar
14851 test -z "$AR_FLAGS" && AR_FLAGS=cru
14852 test -z "$AS" && AS=as
14853 test -z "$CC" && CC=cc
14854 test -z "$LTCC" && LTCC=$CC
14855 test -z "$DLLTOOL" && DLLTOOL=dlltool
14856 test -z "$LD" && LD=ld
14857 test -z "$LN_S" && LN_S="ln -s"
14858 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14859 test -z "$NM" && NM=nm
14860 test -z "$SED" && SED=sed
14861 test -z "$OBJDUMP" && OBJDUMP=objdump
14862 test -z "$RANLIB" && RANLIB=:
14863 test -z "$STRIP" && STRIP=:
14864 test -z "$ac_objext" && ac_objext=o
14866 # Determine commands to create old-style static archives.
14867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14868 old_postinstall_cmds='chmod 644 $oldlib'
14869 old_postuninstall_cmds=
14871 if test -n "$RANLIB"; then
14874 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
14877 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
14880 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14883 for cc_temp in $compiler""; do
14885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14894 # Only perform the check for file, if the check method requires it
14895 case $deplibs_check_method in
14897 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14898 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14899 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
14900 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14908 lt_save_MAGIC_CMD="$MAGIC_CMD"
14909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14911 for ac_dir in $ac_dummy; do
14913 test -z "$ac_dir" && ac_dir=.
14914 if test -f $ac_dir/${ac_tool_prefix}file; then
14915 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14916 if test -n "$file_magic_test_file"; then
14917 case $deplibs_check_method in
14919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14922 $EGREP "$file_magic_regex" > /dev/null; then
14927 *** Warning: the command libtool uses to detect shared libraries,
14928 *** $file_magic_cmd, produces output that libtool cannot recognize.
14929 *** The result is that libtool may fail to recognize shared libraries
14930 *** as such. This will affect the creation of libtool libraries that
14931 *** depend on shared libraries, but programs linked with such libtool
14932 *** libraries will work regardless of this problem. Nevertheless, you
14933 *** may want to report the problem to your system manager and/or to
14934 *** bug-libtool@gnu.org
14944 MAGIC_CMD="$lt_save_MAGIC_CMD"
14949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14950 if test -n "$MAGIC_CMD"; then
14951 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14952 echo "${ECHO_T}$MAGIC_CMD" >&6
14954 echo "$as_me:$LINENO: result: no" >&5
14955 echo "${ECHO_T}no" >&6
14958 if test -z "$lt_cv_path_MAGIC_CMD"; then
14959 if test -n "$ac_tool_prefix"; then
14960 echo "$as_me:$LINENO: checking for file" >&5
14961 echo $ECHO_N "checking for file... $ECHO_C" >&6
14962 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14970 lt_save_MAGIC_CMD="$MAGIC_CMD"
14971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14972 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14973 for ac_dir in $ac_dummy; do
14975 test -z "$ac_dir" && ac_dir=.
14976 if test -f $ac_dir/file; then
14977 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14978 if test -n "$file_magic_test_file"; then
14979 case $deplibs_check_method in
14981 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14984 $EGREP "$file_magic_regex" > /dev/null; then
14989 *** Warning: the command libtool uses to detect shared libraries,
14990 *** $file_magic_cmd, produces output that libtool cannot recognize.
14991 *** The result is that libtool may fail to recognize shared libraries
14992 *** as such. This will affect the creation of libtool libraries that
14993 *** depend on shared libraries, but programs linked with such libtool
14994 *** libraries will work regardless of this problem. Nevertheless, you
14995 *** may want to report the problem to your system manager and/or to
14996 *** bug-libtool@gnu.org
15006 MAGIC_CMD="$lt_save_MAGIC_CMD"
15011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15012 if test -n "$MAGIC_CMD"; then
15013 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15014 echo "${ECHO_T}$MAGIC_CMD" >&6
15016 echo "$as_me:$LINENO: result: no" >&5
15017 echo "${ECHO_T}no" >&6
15030 enable_win32_dll=no
15032 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15033 if test "${enable_libtool_lock+set}" = set; then
15034 enableval="$enable_libtool_lock"
15037 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15040 # Check whether --with-pic or --without-pic was given.
15041 if test "${with_pic+set}" = set; then
15042 withval="$with_pic"
15043 pic_mode="$withval"
15047 test -z "$pic_mode" && pic_mode=default
15049 # Use C for the default configuration in the libtool script
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15059 # Source file extension for C test sources.
15062 # Object file extension for compiled C test sources.
15066 # Code to be used in simple compile tests
15067 lt_simple_compile_test_code="int some_variable = 0;\n"
15069 # Code to be used in simple link tests
15070 lt_simple_link_test_code='int main(){return(0);}\n'
15073 # If no C compiler was specified, use CC.
15076 # Allow CC to be a program name with arguments.
15080 # save warnings/boilerplate of simple test code
15081 ac_outfile=conftest.$ac_objext
15082 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15084 _lt_compiler_boilerplate=`cat conftest.err`
15087 ac_outfile=conftest.$ac_objext
15088 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15090 _lt_linker_boilerplate=`cat conftest.err`
15095 # Check for any special shared library compilation flags.
15098 if test "$GCC" = no; then
15101 lt_prog_cc_shlib='-belf'
15105 if test -n "$lt_prog_cc_shlib"; then
15106 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
15107 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
15108 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
15110 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
15111 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
15112 lt_cv_prog_cc_can_build_shared=no
15118 # Check to make sure the static flag actually works.
15120 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
15121 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
15122 if test "${lt_prog_compiler_static_works+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 lt_prog_compiler_static_works=no
15126 save_LDFLAGS="$LDFLAGS"
15127 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
15128 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15129 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15130 # The linker can only warn and ignore the option if not recognized
15131 # So say no if there are warnings
15132 if test -s conftest.err; then
15133 # Append any errors to the config.log.
15134 cat conftest.err 1>&5
15135 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
15136 $SED '/^$/d' conftest.err >conftest.er2
15137 if diff conftest.exp conftest.er2 >/dev/null; then
15138 lt_prog_compiler_static_works=yes
15141 lt_prog_compiler_static_works=yes
15145 LDFLAGS="$save_LDFLAGS"
15148 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15149 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
15151 if test x"$lt_prog_compiler_static_works" = xyes; then
15154 lt_prog_compiler_static=
15160 ## There is no encapsulation within the following macros, do not change
15161 ## the running order or otherwise move them around unless you know exactly
15162 ## what you are doing...
15164 lt_prog_compiler_no_builtin_flag=
15166 if test "$GCC" = yes; then
15167 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15170 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15171 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15172 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 lt_cv_prog_compiler_rtti_exceptions=no
15176 ac_outfile=conftest.$ac_objext
15177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15178 lt_compiler_flag="-fno-rtti -fno-exceptions"
15179 # Insert the option either (1) after the last *FLAGS variable, or
15180 # (2) before a word containing "conftest.", or (3) at the end.
15181 # Note that $ac_compile itself does not contain backslashes and begins
15182 # with a dollar sign (not a hyphen), so the echo should work correctly.
15183 # The option is referenced via a variable to avoid confusing sed.
15184 lt_compile=`echo "$ac_compile" | $SED \
15185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15187 -e 's:$: $lt_compiler_flag:'`
15188 (eval echo "\"\$as_me:15188: $lt_compile\"" >&5)
15189 (eval "$lt_compile" 2>conftest.err)
15191 cat conftest.err >&5
15192 echo "$as_me:15192: \$? = $ac_status" >&5
15193 if (exit $ac_status) && test -s "$ac_outfile"; then
15194 # The compiler can only warn and ignore the option if not recognized
15195 # So say no if there are warnings other than the usual output.
15196 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15197 $SED '/^$/d' conftest.err >conftest.er2
15198 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15199 lt_cv_prog_compiler_rtti_exceptions=yes
15205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15206 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15208 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15209 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15216 lt_prog_compiler_wl=
15217 lt_prog_compiler_pic=
15218 lt_prog_compiler_static=
15220 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15223 if test "$GCC" = yes; then
15224 lt_prog_compiler_wl='-Wl,'
15225 lt_prog_compiler_static='-static'
15229 # All AIX code is PIC.
15230 if test "$host_cpu" = ia64; then
15231 # AIX 5 now supports IA64 processor
15232 lt_prog_compiler_static='-Bstatic'
15237 # FIXME: we need at least 68020 code to build shared libraries, but
15238 # adding the `-m68020' flag to GCC prevents building anything better,
15240 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15243 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15244 # PIC is the default for these OSes.
15247 mingw* | pw32* | os2*)
15248 # This hack is so that the source file can tell whether it is being
15249 # built for inclusion in a dll (and should export symbols for example).
15250 lt_prog_compiler_pic='-DDLL_EXPORT'
15253 darwin* | rhapsody*)
15254 # PIC is the default on this platform
15255 # Common symbols not allowed in MH_DYLIB files
15256 lt_prog_compiler_pic='-fno-common'
15260 # Just because we use GCC doesn't mean we suddenly get shared libraries
15261 # on systems that don't support them.
15262 lt_prog_compiler_can_build_shared=no
15267 if test -d /usr/nec; then
15268 lt_prog_compiler_pic=-Kconform_pic
15273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15274 # not for PA HP-UX.
15280 lt_prog_compiler_pic='-fPIC'
15286 lt_prog_compiler_pic='-fPIC'
15290 # PORTME Check for flag to pass linker flags through the system compiler.
15293 lt_prog_compiler_wl='-Wl,'
15294 if test "$host_cpu" = ia64; then
15295 # AIX 5 now supports IA64 processor
15296 lt_prog_compiler_static='-Bstatic'
15298 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15302 # PIC is the default on this platform
15303 # Common symbols not allowed in MH_DYLIB files
15304 case $cc_basename in
15306 lt_prog_compiler_pic='-qnocommon'
15307 lt_prog_compiler_wl='-Wl,'
15312 mingw* | pw32* | os2*)
15313 # This hack is so that the source file can tell whether it is being
15314 # built for inclusion in a dll (and should export symbols for example).
15315 lt_prog_compiler_pic='-DDLL_EXPORT'
15318 hpux9* | hpux10* | hpux11*)
15319 lt_prog_compiler_wl='-Wl,'
15320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15321 # not for PA HP-UX.
15327 lt_prog_compiler_pic='+Z'
15330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15331 lt_prog_compiler_static='${wl}-a ${wl}archive'
15334 irix5* | irix6* | nonstopux*)
15335 lt_prog_compiler_wl='-Wl,'
15336 # PIC (with -KPIC) is the default.
15337 lt_prog_compiler_static='-non_shared'
15341 lt_prog_compiler_pic='-KPIC'
15342 lt_prog_compiler_static='-Bstatic'
15346 case $cc_basename in
15348 lt_prog_compiler_wl='-Wl,'
15349 lt_prog_compiler_pic='-KPIC'
15350 lt_prog_compiler_static='-static'
15352 pgcc* | pgf77* | pgf90* | pgf95*)
15353 # Portland Group compilers (*not* the Pentium gcc compiler,
15354 # which looks to be a dead project)
15355 lt_prog_compiler_wl='-Wl,'
15356 lt_prog_compiler_pic='-fpic'
15357 lt_prog_compiler_static='-Bstatic'
15360 lt_prog_compiler_wl='-Wl,'
15361 # All Alpha code is PIC.
15362 lt_prog_compiler_static='-non_shared'
15367 osf3* | osf4* | osf5*)
15368 lt_prog_compiler_wl='-Wl,'
15369 # All OSF/1 code is PIC.
15370 lt_prog_compiler_static='-non_shared'
15374 lt_prog_compiler_pic='-Kpic'
15375 lt_prog_compiler_static='-dn'
15379 lt_prog_compiler_pic='-KPIC'
15380 lt_prog_compiler_static='-Bstatic'
15381 case $cc_basename in
15382 f77* | f90* | f95*)
15383 lt_prog_compiler_wl='-Qoption ld ';;
15385 lt_prog_compiler_wl='-Wl,';;
15390 lt_prog_compiler_wl='-Qoption ld '
15391 lt_prog_compiler_pic='-PIC'
15392 lt_prog_compiler_static='-Bstatic'
15395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15396 lt_prog_compiler_wl='-Wl,'
15397 lt_prog_compiler_pic='-KPIC'
15398 lt_prog_compiler_static='-Bstatic'
15402 if test -d /usr/nec ;then
15403 lt_prog_compiler_pic='-Kconform_pic'
15404 lt_prog_compiler_static='-Bstatic'
15409 lt_prog_compiler_wl='-Wl,'
15410 lt_prog_compiler_can_build_shared=no
15414 lt_prog_compiler_pic='-pic'
15415 lt_prog_compiler_static='-Bstatic'
15419 lt_prog_compiler_can_build_shared=no
15424 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15425 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
15428 # Check to make sure the PIC flag actually works.
15430 if test -n "$lt_prog_compiler_pic"; then
15432 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15433 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
15434 if test "${lt_prog_compiler_pic_works+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 lt_prog_compiler_pic_works=no
15438 ac_outfile=conftest.$ac_objext
15439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15440 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15441 # Insert the option either (1) after the last *FLAGS variable, or
15442 # (2) before a word containing "conftest.", or (3) at the end.
15443 # Note that $ac_compile itself does not contain backslashes and begins
15444 # with a dollar sign (not a hyphen), so the echo should work correctly.
15445 # The option is referenced via a variable to avoid confusing sed.
15446 lt_compile=`echo "$ac_compile" | $SED \
15447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15449 -e 's:$: $lt_compiler_flag:'`
15450 (eval echo "\"\$as_me:15450: $lt_compile\"" >&5)
15451 (eval "$lt_compile" 2>conftest.err)
15453 cat conftest.err >&5
15454 echo "$as_me:15454: \$? = $ac_status" >&5
15455 if (exit $ac_status) && test -s "$ac_outfile"; then
15456 # The compiler can only warn and ignore the option if not recognized
15457 # So say no if there are warnings other than the usual output.
15458 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15459 $SED '/^$/d' conftest.err >conftest.er2
15460 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15461 lt_prog_compiler_pic_works=yes
15467 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15468 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
15470 if test x"$lt_prog_compiler_pic_works" = xyes; then
15471 case $lt_prog_compiler_pic in
15473 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15476 lt_prog_compiler_pic=
15477 lt_prog_compiler_can_build_shared=no
15482 # For platforms which do not support PIC, -DPIC is meaningless:
15484 lt_prog_compiler_pic=
15487 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15491 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 lt_cv_prog_compiler_c_o=no
15497 $rm -r conftest 2>/dev/null
15501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15503 lt_compiler_flag="-o out/conftest2.$ac_objext"
15504 # Insert the option either (1) after the last *FLAGS variable, or
15505 # (2) before a word containing "conftest.", or (3) at the end.
15506 # Note that $ac_compile itself does not contain backslashes and begins
15507 # with a dollar sign (not a hyphen), so the echo should work correctly.
15508 lt_compile=`echo "$ac_compile" | $SED \
15509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511 -e 's:$: $lt_compiler_flag:'`
15512 (eval echo "\"\$as_me:15512: $lt_compile\"" >&5)
15513 (eval "$lt_compile" 2>out/conftest.err)
15515 cat out/conftest.err >&5
15516 echo "$as_me:15516: \$? = $ac_status" >&5
15517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15519 # The compiler can only warn and ignore the option if not recognized
15520 # So say no if there are warnings
15521 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15522 $SED '/^$/d' out/conftest.err >out/conftest.er2
15523 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15524 lt_cv_prog_compiler_c_o=yes
15529 # SGI C++ compiler will create directory out/ii_files/ for
15530 # template instantiation
15531 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15532 $rm out/* && rmdir out
15538 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15539 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
15542 hard_links="nottested"
15543 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15544 # do not overwrite the value of need_locks provided by the user
15545 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15546 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15551 ln conftest.a conftest.b 2>&5 || hard_links=no
15552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15553 echo "$as_me:$LINENO: result: $hard_links" >&5
15554 echo "${ECHO_T}$hard_links" >&6
15555 if test "$hard_links" = no; then
15556 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15557 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15564 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15565 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15568 allow_undefined_flag=
15569 enable_shared_with_static_runtimes=no
15571 archive_expsym_cmds=
15572 old_archive_From_new_cmds=
15573 old_archive_from_expsyms_cmds=
15574 export_dynamic_flag_spec=
15575 whole_archive_flag_spec=
15576 thread_safe_flag_spec=
15577 hardcode_libdir_flag_spec=
15578 hardcode_libdir_flag_spec_ld=
15579 hardcode_libdir_separator=
15581 hardcode_minus_L=no
15582 hardcode_shlibpath_var=unsupported
15583 link_all_deplibs=unknown
15584 hardcode_automatic=no
15586 module_expsym_cmds=
15587 always_export_symbols=no
15588 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15589 # include_expsyms should be a list of space-separated symbols to be *always*
15590 # included in the symbol list
15592 # exclude_expsyms can be an extended regexp of symbols to exclude
15593 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15594 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15595 # as well as any symbol that contains `d'.
15596 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15597 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15598 # platforms (ab)use it in PIC code, but their linkers get confused if
15599 # the symbol is explicitly referenced. Since portable code cannot
15600 # rely on this symbol name, it's probably fine to never include it in
15601 # preloaded symbol tables.
15602 extract_expsyms_cmds=
15603 # Just being paranoid about ensuring that cc_basename is set.
15604 for cc_temp in $compiler""; do
15606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15612 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15615 cygwin* | mingw* | pw32*)
15616 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15617 # When not using gcc, we currently assume that we are using
15618 # Microsoft Visual C++.
15619 if test "$GCC" != yes; then
15629 if test "$with_gnu_ld" = yes; then
15630 # If archive_cmds runs LD, not CC, wlarc should be empty
15633 # Set some defaults for GNU ld with shared library support. These
15634 # are reset later if shared libraries are not supported. Putting them
15635 # here allows them to be overridden if necessary.
15636 runpath_var=LD_RUN_PATH
15637 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15638 export_dynamic_flag_spec='${wl}--export-dynamic'
15639 # ancient GNU ld didn't support --whole-archive et. al.
15640 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15641 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15643 whole_archive_flag_spec=
15645 supports_anon_versioning=no
15646 case `$LD -v 2>/dev/null` in
15647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15650 *\ 2.11.*) ;; # other 2.11 versions
15651 *) supports_anon_versioning=yes ;;
15654 # See if GNU ld supports shared libraries.
15656 aix3* | aix4* | aix5*)
15657 # On AIX/PPC, the GNU linker is very broken
15658 if test "$host_cpu" != ia64; then
15662 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15663 *** to be unable to reliably create shared libraries on AIX.
15664 *** Therefore, libtool is disabling shared libraries support. If you
15665 *** really care for shared libraries, you may want to modify your PATH
15666 *** so that a non-GNU linker is found, and then restart.
15673 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)'
15674 hardcode_libdir_flag_spec='-L$libdir'
15675 hardcode_minus_L=yes
15677 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15678 # that the semantics of dynamic libraries on AmigaOS, at least up
15679 # to version 4, is to share data among multiple programs linked
15680 # with the same dynamic library. Since this doesn't match the
15681 # behavior of shared libraries on other platforms, we can't use
15687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15688 allow_undefined_flag=unsupported
15689 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15690 # support --undefined. This deserves some investigation. FIXME
15691 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15697 cygwin* | mingw* | pw32*)
15698 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15699 # as there is no search path for DLLs.
15700 hardcode_libdir_flag_spec='-L$libdir'
15701 allow_undefined_flag=unsupported
15702 always_export_symbols=no
15703 enable_shared_with_static_runtimes=yes
15704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15706 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15708 # If the export-symbols file already is a .def file (1st line
15709 # is EXPORTS), use it as is; otherwise, prepend...
15710 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15711 cp $export_symbols $output_objdir/$soname.def;
15713 echo EXPORTS > $output_objdir/$soname.def;
15714 cat $export_symbols >> $output_objdir/$soname.def;
15716 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15725 case $cc_basename,$host_cpu in
15726 pgcc*) # Portland Group C compiler
15727 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'
15728 tmp_addflag=' $pic_flag'
15730 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15731 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'
15732 tmp_addflag=' $pic_flag -Mnomain' ;;
15733 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15734 tmp_addflag=' -i_dynamic' ;;
15735 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15736 tmp_addflag=' -i_dynamic -nofor_main' ;;
15737 ifc* | ifort*) # Intel Fortran compiler
15738 tmp_addflag=' -nofor_main' ;;
15740 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15742 if test $supports_anon_versioning = yes; then
15743 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15745 $echo "local: *; };" >> $output_objdir/$libname.ver~
15746 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15755 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15764 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15769 *** create shared libraries on Solaris systems. Therefore, libtool
15770 *** is disabling shared libraries support. We urge you to upgrade GNU
15771 *** binutils to release 2.9.1 or newer. Another option is to modify
15772 *** your PATH or compiler configuration so that the native linker is
15773 *** used, and then restart.
15776 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15785 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15787 hardcode_direct=yes
15788 hardcode_shlibpath_var=no
15792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15801 if test "$ld_shlibs" = no; then
15803 hardcode_libdir_flag_spec=
15804 export_dynamic_flag_spec=
15805 whole_archive_flag_spec=
15808 # PORTME fill in a description of your system's linker (not GNU ld)
15811 allow_undefined_flag=unsupported
15812 always_export_symbols=yes
15813 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'
15814 # Note: this linker hardcodes the directories in LIBPATH if there
15815 # are no directories specified by -L.
15816 hardcode_minus_L=yes
15817 if test "$GCC" = yes && test -z "$link_static_flag"; then
15818 # Neither direct hardcoding nor static linking is supported with a
15820 hardcode_direct=unsupported
15825 if test "$host_cpu" = ia64; then
15826 # On IA64, the linker does run time linking by default, so we don't
15827 # have to do anything special.
15828 aix_use_runtimelinking=no
15829 exp_sym_flag='-Bexport'
15832 # If we're using GNU nm, then we don't want the "-C" option.
15833 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15834 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15835 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'
15837 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'
15839 aix_use_runtimelinking=no
15841 # Test if we are trying to use run time linking or normal
15842 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15843 # need to do runtime linking.
15844 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15845 for ld_flag in $LDFLAGS; do
15846 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15847 aix_use_runtimelinking=yes
15853 exp_sym_flag='-bexport'
15854 no_entry_flag='-bnoentry'
15857 # When large executables or shared objects are built, AIX ld can
15858 # have problems creating the table of contents. If linking a library
15859 # or program results in "error TOC overflow" add -mminimal-toc to
15860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15864 hardcode_direct=yes
15865 hardcode_libdir_separator=':'
15866 link_all_deplibs=yes
15868 if test "$GCC" = yes; then
15869 case $host_os in aix4.[012]|aix4.[012].*)
15870 # We only want to do this on AIX 4.2 and lower, the check
15871 # below for broken collect2 doesn't work under 4.3+
15872 collect2name=`${CC} -print-prog-name=collect2`
15873 if test -f "$collect2name" && \
15874 strings "$collect2name" | grep resolve_lib_name >/dev/null
15876 # We have reworked collect2
15877 hardcode_direct=yes
15879 # We have old collect2
15880 hardcode_direct=unsupported
15881 # It fails to find uninstalled libraries when the uninstalled
15882 # path is not listed in the libpath. Setting hardcode_minus_L
15883 # to unsupported forces relinking
15884 hardcode_minus_L=yes
15885 hardcode_libdir_flag_spec='-L$libdir'
15886 hardcode_libdir_separator=
15889 shared_flag='-shared'
15890 if test "$aix_use_runtimelinking" = yes; then
15891 shared_flag="$shared_flag "'${wl}-G'
15895 if test "$host_cpu" = ia64; then
15896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15897 # chokes on -Wl,-G. The following line is correct:
15900 if test "$aix_use_runtimelinking" = yes; then
15901 shared_flag='${wl}-G'
15903 shared_flag='${wl}-bM:SRE'
15908 # It seems that -bexpall does not export symbols beginning with
15909 # underscore (_), so it is better to generate a list of symbols to export.
15910 always_export_symbols=yes
15911 if test "$aix_use_runtimelinking" = yes; then
15912 # Warning - without using the other runtime loading flags (-brtl),
15913 # -berok will link without error, but may produce a broken library.
15914 allow_undefined_flag='-berok'
15915 # Determine the default libpath from the value encoded in an empty executable.
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15933 (eval $ac_link) 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest$ac_exeext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15956 # Check for a 64-bit object if we didn't find anything.
15957 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; }
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15964 rm -f conftest.err conftest.$ac_objext \
15965 conftest$ac_exeext conftest.$ac_ext
15966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15968 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15969 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"
15971 if test "$host_cpu" = ia64; then
15972 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15973 allow_undefined_flag="-z nodefs"
15974 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"
15976 # Determine the default libpath from the value encoded in an empty executable.
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest$ac_exeext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16017 # Check for a 64-bit object if we didn't find anything.
16018 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; }
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16025 rm -f conftest.err conftest.$ac_objext \
16026 conftest$ac_exeext conftest.$ac_ext
16027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16030 # Warning - without using the other run time loading flags,
16031 # -berok will link without error, but may produce a broken library.
16032 no_undefined_flag=' ${wl}-bernotok'
16033 allow_undefined_flag=' ${wl}-berok'
16034 # -bexpall does not export symbols beginning with underscore (_)
16035 always_export_symbols=yes
16036 # Exported symbols can be pulled into shared objects from archives
16037 whole_archive_flag_spec=' '
16038 archive_cmds_need_lc=yes
16039 # This is similar to how AIX traditionally builds its shared libraries.
16040 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'
16046 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)'
16047 hardcode_libdir_flag_spec='-L$libdir'
16048 hardcode_minus_L=yes
16049 # see comment about different semantics on the GNU ld section
16054 export_dynamic_flag_spec=-rdynamic
16057 cygwin* | mingw* | pw32*)
16058 # When not using gcc, we currently assume that we are using
16059 # Microsoft Visual C++.
16060 # hardcode_libdir_flag_spec is actually meaningless, as there is
16061 # no search path for DLLs.
16062 hardcode_libdir_flag_spec=' '
16063 allow_undefined_flag=unsupported
16064 # Tell ltmain to make .lib files, not .a files.
16066 # Tell ltmain to make .dll files, not .so files.
16068 # FIXME: Setting linknames here is a bad hack.
16069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16070 # The linker will automatically build a .lib file if we build a DLL.
16071 old_archive_From_new_cmds='true'
16072 # FIXME: Should let the user specify the lib program.
16073 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
16074 fix_srcfile_path='`cygpath -w "$srcfile"`'
16075 enable_shared_with_static_runtimes=yes
16078 darwin* | rhapsody*)
16080 rhapsody* | darwin1.[012])
16081 allow_undefined_flag='${wl}-undefined ${wl}suppress'
16084 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16085 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16087 case ${MACOSX_DEPLOYMENT_TARGET} in
16089 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16092 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16098 archive_cmds_need_lc=no
16100 hardcode_automatic=yes
16101 hardcode_shlibpath_var=unsupported
16102 whole_archive_flag_spec=''
16103 link_all_deplibs=yes
16104 if test "$GCC" = yes ; then
16105 output_verbose_link_cmd='echo'
16106 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16107 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16109 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}'
16110 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}'
16112 case $cc_basename in
16114 output_verbose_link_cmd='echo'
16115 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16116 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16118 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}'
16119 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}'
16129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_libdir_flag_spec='-L$libdir'
16131 hardcode_shlibpath_var=no
16138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16139 # support. Future versions do this automatically, but an explicit c++rt0.o
16140 # does not break anything, and helps significantly (at the cost of a little
16143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16144 hardcode_libdir_flag_spec='-R$libdir'
16145 hardcode_direct=yes
16146 hardcode_shlibpath_var=no
16149 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_direct=yes
16153 hardcode_minus_L=yes
16154 hardcode_shlibpath_var=no
16157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16158 freebsd* | kfreebsd*-gnu | dragonfly*)
16159 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16160 hardcode_libdir_flag_spec='-R$libdir'
16161 hardcode_direct=yes
16162 hardcode_shlibpath_var=no
16166 if test "$GCC" = yes; then
16167 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'
16169 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'
16171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16172 hardcode_libdir_separator=:
16173 hardcode_direct=yes
16175 # hardcode_minus_L: Not really in the search PATH,
16176 # but as the default location of the library.
16177 hardcode_minus_L=yes
16178 export_dynamic_flag_spec='${wl}-E'
16182 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16185 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16201 if test "$with_gnu_ld" = no; then
16204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16205 hardcode_libdir_flag_spec_ld='+b $libdir'
16206 hardcode_libdir_separator=:
16208 hardcode_shlibpath_var=no
16211 hardcode_libdir_flag_spec='-L$libdir'
16213 hardcode_shlibpath_var=no
16215 # hardcode_minus_L: Not really in the search PATH,
16216 # but as the default location of the library.
16217 hardcode_minus_L=yes
16220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16221 hardcode_libdir_separator=:
16222 hardcode_direct=yes
16223 export_dynamic_flag_spec='${wl}-E'
16225 # hardcode_minus_L: Not really in the search PATH,
16226 # but as the default location of the library.
16227 hardcode_minus_L=yes
16233 irix5* | irix6* | nonstopux*)
16234 if test "$GCC" = yes; then
16235 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'
16237 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'
16238 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16241 hardcode_libdir_separator=:
16242 link_all_deplibs=yes
16246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16249 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16251 hardcode_libdir_flag_spec='-R$libdir'
16252 hardcode_direct=yes
16253 hardcode_shlibpath_var=no
16257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258 hardcode_direct=yes
16259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16260 hardcode_libdir_separator=:
16261 hardcode_shlibpath_var=no
16265 hardcode_direct=yes
16266 hardcode_shlibpath_var=no
16267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16271 export_dynamic_flag_spec='${wl}-E'
16274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16276 hardcode_libdir_flag_spec='-R$libdir'
16279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16287 hardcode_libdir_flag_spec='-L$libdir'
16288 hardcode_minus_L=yes
16289 allow_undefined_flag=unsupported
16290 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'
16291 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16295 if test "$GCC" = yes; then
16296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16297 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'
16299 allow_undefined_flag=' -expect_unresolved \*'
16300 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'
16302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16303 hardcode_libdir_separator=:
16306 osf4* | osf5*) # as osf3* with the addition of -msym flag
16307 if test "$GCC" = yes; then
16308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16309 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'
16310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16312 allow_undefined_flag=' -expect_unresolved \*'
16313 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'
16314 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16315 $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'
16317 # Both c and cxx compiler support -rpath directly
16318 hardcode_libdir_flag_spec='-rpath $libdir'
16320 hardcode_libdir_separator=:
16324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325 hardcode_shlibpath_var=no
16326 export_dynamic_flag_spec='${wl}-Bexport'
16327 runpath_var=LD_RUN_PATH
16328 hardcode_runpath_var=yes
16332 no_undefined_flag=' -z text'
16333 if test "$GCC" = yes; then
16335 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16336 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16337 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16340 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16344 hardcode_libdir_flag_spec='-R$libdir'
16345 hardcode_shlibpath_var=no
16347 solaris2.[0-5] | solaris2.[0-5].*) ;;
16349 # The compiler driver will combine linker options so we
16350 # cannot just pass the convience library names through
16351 # without $wl, iff we do not link with $LD.
16352 # Luckily, gcc supports the same syntax we need for Sun Studio.
16353 # Supported since Solaris 2.6 (maybe 2.5.1?)
16356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16358 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' ;;
16361 link_all_deplibs=yes
16365 if test "x$host_vendor" = xsequent; then
16366 # Use $CC to link under sequent, because it throws in some extra .o
16367 # files that make .init and .fini sections work.
16368 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16372 hardcode_libdir_flag_spec='-L$libdir'
16373 hardcode_direct=yes
16374 hardcode_minus_L=yes
16375 hardcode_shlibpath_var=no
16379 case $host_vendor in
16381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16382 hardcode_direct=yes # is this really true???
16385 ## LD is ld it makes a PLAMLIB
16386 ## CC just makes a GrossModule.
16387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16388 reload_cmds='$CC -r -o $output$reload_objs'
16392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16396 runpath_var='LD_RUN_PATH'
16397 hardcode_shlibpath_var=no
16401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_shlibpath_var=no
16403 export_dynamic_flag_spec='-Bexport'
16407 if test -d /usr/nec; then
16408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409 hardcode_shlibpath_var=no
16410 runpath_var=LD_RUN_PATH
16411 hardcode_runpath_var=yes
16417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16418 hardcode_direct=yes
16419 hardcode_minus_L=no
16420 hardcode_shlibpath_var=no
16421 hardcode_runpath_var=yes
16422 runpath_var=LD_RUN_PATH
16425 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16426 no_undefined_flag='${wl}-z ${wl}text'
16427 if test "$GCC" = yes; then
16428 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16430 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16432 runpath_var='LD_RUN_PATH'
16433 hardcode_shlibpath_var=no
16437 no_undefined_flag=' -z text'
16438 # $CC -shared without GNU ld will not create a library from C++
16439 # object files and a static libstdc++, better avoid it by now
16440 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16442 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16443 hardcode_libdir_flag_spec=
16444 hardcode_shlibpath_var=no
16445 runpath_var='LD_RUN_PATH'
16449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_libdir_flag_spec='-L$libdir'
16451 hardcode_shlibpath_var=no
16460 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16461 echo "${ECHO_T}$ld_shlibs" >&6
16462 test "$ld_shlibs" = no && can_build_shared=no
16464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16465 if test "$GCC" = yes; then
16466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16470 # Do we need to explicitly link libc?
16472 case "x$archive_cmds_need_lc" in
16474 # Assume -lc should be added
16475 archive_cmds_need_lc=yes
16477 if test "$enable_shared" = yes && test "$GCC" = yes; then
16478 case $archive_cmds in
16480 # FIXME: we may have to deal with multi-command sequences.
16483 # Test whether the compiler implicitly links with -lc since on some
16484 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16485 # to ld, don't add -lc before -lgcc.
16486 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16487 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } 2>conftest.err; then
16498 libobjs=conftest.$ac_objext
16500 wl=$lt_prog_compiler_wl
16506 lt_save_allow_undefined_flag=$allow_undefined_flag
16507 allow_undefined_flag=
16508 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16509 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }
16514 archive_cmds_need_lc=no
16516 archive_cmds_need_lc=yes
16518 allow_undefined_flag=$lt_save_allow_undefined_flag
16520 cat conftest.err 1>&5
16523 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16524 echo "${ECHO_T}$archive_cmds_need_lc" >&6
16531 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16532 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16533 library_names_spec=
16534 libname_spec='lib$name'
16538 postuninstall_cmds=
16542 shlibpath_overrides_runpath=unknown
16544 dynamic_linker="$host_os ld.so"
16545 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16546 if test "$GCC" = yes; then
16547 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16548 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16549 # if the path contains ";" then we assume it to be the separator
16550 # otherwise default to the standard path separator (i.e. ":") - it is
16551 # assumed that no part of a normal pathname contains ";" but that should
16552 # okay in the real world where ";" in dirpaths is itself problematic.
16553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16558 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16560 need_lib_prefix=unknown
16561 hardcode_into_libs=no
16563 # when you set need_version to no, make sure it does not cause -set_version
16564 # flags to be left without arguments
16565 need_version=unknown
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16571 shlibpath_var=LIBPATH
16573 # AIX 3 has no versioning support, so we append a major version to the name.
16574 soname_spec='${libname}${release}${shared_ext}$major'
16581 hardcode_into_libs=yes
16582 if test "$host_cpu" = ia64; then
16583 # AIX 5 supports IA64
16584 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16585 shlibpath_var=LD_LIBRARY_PATH
16587 # With GCC up to 2.95.x, collect2 would create an import file
16588 # for dependence libraries. The import file would start with
16589 # the line `#! .'. This would cause the generated library to
16590 # depend on `.', always an invalid library. This was fixed in
16591 # development snapshots of GCC prior to 3.0.
16593 aix4 | aix4.[01] | aix4.[01].*)
16594 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16596 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16599 can_build_shared=no
16603 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16604 # soname into executable. Probably we can add versioning support to
16605 # collect2, so additional links can be useful in future.
16606 if test "$aix_use_runtimelinking" = yes; then
16607 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16608 # instead of lib<name>.a to let people know that these are not
16609 # typical AIX shared libraries.
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612 # We preserve .a as extension for shared libraries through AIX4.2
16613 # and later when we are not doing run time linking.
16614 library_names_spec='${libname}${release}.a $libname.a'
16615 soname_spec='${libname}${release}${shared_ext}$major'
16617 shlibpath_var=LIBPATH
16622 library_names_spec='$libname.ixlibrary $libname.a'
16623 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16624 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'
16628 library_names_spec='${libname}${shared_ext}'
16629 dynamic_linker="$host_os ld.so"
16630 shlibpath_var=LIBRARY_PATH
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16642 # the default ld.so.conf also contains /usr/contrib/lib and
16643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16644 # libtool to hard-code these into programs
16647 cygwin* | mingw* | pw32*)
16648 version_type=windows
16653 case $GCC,$host_os in
16654 yes,cygwin* | yes,mingw* | yes,pw32*)
16655 library_names_spec='$libname.dll.a'
16656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16657 postinstall_cmds='base_file=`basename \${file}`~
16658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16659 dldir=$destdir/`dirname \$dlpath`~
16660 test -d \$dldir || mkdir -p \$dldir~
16661 $install_prog $dir/$dlname \$dldir/$dlname~
16662 chmod a+x \$dldir/$dlname'
16663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16664 dlpath=$dir/\$dldll~
16666 shlibpath_overrides_runpath=yes
16670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16672 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16675 # MinGW DLLs use traditional 'lib' prefix
16676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16678 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16679 # It is most probably a Windows format PATH printed by
16680 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16681 # path with ; separators, and with drive letters. We can handle the
16682 # drive letters (cygwin fileutils understands them), so leave them,
16683 # especially as we might pass files found there to a mingw objdump,
16684 # which wouldn't understand a cygwinified path. Ahh.
16685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16691 # pw32 DLLs use 'pw' prefix rather than 'lib'
16692 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16698 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16701 dynamic_linker='Win32 ld.exe'
16702 # FIXME: first we should search . and the directory the executable is in
16706 darwin* | rhapsody*)
16707 dynamic_linker="$host_os dyld"
16708 version_type=darwin
16711 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16712 soname_spec='${libname}${release}${major}$shared_ext'
16713 shlibpath_overrides_runpath=yes
16714 shlibpath_var=DYLD_LIBRARY_PATH
16715 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16716 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16717 if test "$GCC" = yes; then
16718 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"`
16720 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 shlibpath_var=LD_LIBRARY_PATH
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 shlibpath_var=LD_LIBRARY_PATH
16745 shlibpath_overrides_runpath=no
16746 hardcode_into_libs=yes
16747 dynamic_linker='GNU ld.so'
16750 freebsd* | dragonfly*)
16751 # DragonFly does not have aout. When/if they implement a new
16752 # versioning mechanism, adjust this.
16753 if test -x /usr/bin/objformat; then
16754 objformat=`/usr/bin/objformat`
16757 freebsd[123]*) objformat=aout ;;
16758 *) objformat=elf ;;
16761 version_type=freebsd-$objformat
16762 case $version_type in
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16773 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=yes
16778 freebsd3.[01]* | freebsdelf3.[01]*)
16779 shlibpath_overrides_runpath=yes
16780 hardcode_into_libs=yes
16783 shlibpath_overrides_runpath=no
16784 hardcode_into_libs=yes
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16794 soname_spec='${libname}${release}${shared_ext}$major'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 hardcode_into_libs=yes
16799 hpux9* | hpux10* | hpux11*)
16800 # Give a soname corresponding to the major version so that dld.sl refuses to
16801 # link against other versions.
16808 hardcode_into_libs=yes
16809 dynamic_linker="$host_os dld.so"
16810 shlibpath_var=LD_LIBRARY_PATH
16811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 if test "X$HPUX_IA64_MODE" = X32; then
16815 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16823 hardcode_into_libs=yes
16824 dynamic_linker="$host_os dld.sl"
16825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16834 dynamic_linker="$host_os dld.sl"
16835 shlibpath_var=SHLIB_PATH
16836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16841 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16842 postinstall_cmds='chmod 555 $lib'
16845 irix5* | irix6* | nonstopux*)
16847 nonstopux*) version_type=nonstopux ;;
16849 if test "$lt_cv_prog_gnu_ld" = yes; then
16857 soname_spec='${libname}${release}${shared_ext}$major'
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16860 irix5* | nonstopux*)
16861 libsuff= shlibsuff=
16864 case $LD in # libtool.m4 will add one of these switches to LD
16865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16866 libsuff= shlibsuff= libmagic=32-bit;;
16867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16868 libsuff=32 shlibsuff=N32 libmagic=N32;;
16869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16871 *) libsuff= shlibsuff= libmagic=never-match;;
16875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16876 shlibpath_overrides_runpath=no
16877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16879 hardcode_into_libs=yes
16882 # No shared lib support for Linux oldld, aout, or coff.
16883 linux*oldld* | linux*aout* | linux*coff*)
16887 # This must be Linux ELF.
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 shlibpath_overrides_runpath=no
16897 # This implies no fast_install, which is unacceptable.
16898 # Some rework will be needed to allow for fast_install
16899 # before this can be enabled.
16900 hardcode_into_libs=yes
16902 # Append ld.so.conf contents to the search path
16903 if test -f /etc/ld.so.conf; then
16904 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' ' '`
16905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16908 # We used to test for /lib/ld.so.1 and disable shared libraries on
16909 # powerpc, because MkLinux only supported shared libraries with the
16910 # GNU dynamic linker. Since this was broken with cross compilers,
16911 # most powerpc-linux boxes support dynamic linking these days and
16912 # people can always --disable-shared, the test was removed, and we
16913 # assume the GNU/Linux dynamic linker is in use.
16914 dynamic_linker='GNU/Linux ld.so'
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 shlibpath_overrides_runpath=no
16925 hardcode_into_libs=yes
16926 dynamic_linker='GNU ld.so'
16933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16936 dynamic_linker='NetBSD (a.out) ld.so'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 dynamic_linker='NetBSD ld.elf_so'
16942 shlibpath_var=LD_LIBRARY_PATH
16943 shlibpath_overrides_runpath=yes
16944 hardcode_into_libs=yes
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 shlibpath_overrides_runpath=yes
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 shlibpath_var=LD_LIBRARY_PATH
16961 shlibpath_overrides_runpath=yes
16967 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16969 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16970 *) need_version=no ;;
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16974 shlibpath_var=LD_LIBRARY_PATH
16975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16977 openbsd2.[89] | openbsd2.[89].*)
16978 shlibpath_overrides_runpath=no
16981 shlibpath_overrides_runpath=yes
16985 shlibpath_overrides_runpath=yes
16990 libname_spec='$name'
16993 library_names_spec='$libname${shared_ext} $libname.a'
16994 dynamic_linker='OS/2 ld.exe'
16995 shlibpath_var=LIBPATH
16998 osf3* | osf4* | osf5*)
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 shlibpath_var=LD_LIBRARY_PATH
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17024 hardcode_into_libs=yes
17025 # ldd complains unless libraries are executable
17026 postinstall_cmds='chmod +x $lib'
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17033 shlibpath_var=LD_LIBRARY_PATH
17034 shlibpath_overrides_runpath=yes
17035 if test "$with_gnu_ld" = yes; then
17041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 shlibpath_var=LD_LIBRARY_PATH
17046 case $host_vendor in
17048 shlibpath_overrides_runpath=no
17050 export_dynamic_flag_spec='${wl}-Blargedynsym'
17051 runpath_var=LD_RUN_PATH
17059 shlibpath_overrides_runpath=no
17060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17066 if test -d /usr/nec ;then
17068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17069 soname_spec='$libname${shared_ext}.$major'
17070 shlibpath_var=LD_LIBRARY_PATH
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 shlibpath_var=LD_LIBRARY_PATH
17085 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17086 echo "${ECHO_T}$dynamic_linker" >&6
17087 test "$dynamic_linker" = no && can_build_shared=no
17089 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17090 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17092 if test -n "$hardcode_libdir_flag_spec" || \
17093 test -n "$runpath_var" || \
17094 test "X$hardcode_automatic" = "Xyes" ; then
17096 # We can hardcode non-existant directories.
17097 if test "$hardcode_direct" != no &&
17098 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17099 # have to relink, otherwise we might link with an installed library
17100 # when we should be linking with a yet-to-be-installed one
17101 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17102 test "$hardcode_minus_L" != no; then
17103 # Linking always hardcodes the temporary library directory.
17104 hardcode_action=relink
17106 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17107 hardcode_action=immediate
17110 # We cannot hardcode anything, or else we can only hardcode existing
17112 hardcode_action=unsupported
17114 echo "$as_me:$LINENO: result: $hardcode_action" >&5
17115 echo "${ECHO_T}$hardcode_action" >&6
17117 if test "$hardcode_action" = relink; then
17118 # Fast installation is not supported
17119 enable_fast_install=no
17120 elif test "$shlibpath_overrides_runpath" = yes ||
17121 test "$enable_shared" = no; then
17122 # Fast installation is not necessary
17123 enable_fast_install=needless
17128 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17129 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17130 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17133 echo "$as_me:$LINENO: result: yes" >&5
17134 echo "${ECHO_T}yes" >&6
17136 # FIXME - insert some real tests, host_os isn't really good enough
17139 if test -n "$STRIP" ; then
17140 striplib="$STRIP -x"
17141 echo "$as_me:$LINENO: result: yes" >&5
17142 echo "${ECHO_T}yes" >&6
17144 echo "$as_me:$LINENO: result: no" >&5
17145 echo "${ECHO_T}no" >&6
17149 echo "$as_me:$LINENO: result: no" >&5
17150 echo "${ECHO_T}no" >&6
17155 if test "x$enable_dlopen" != xyes; then
17156 enable_dlopen=unknown
17157 enable_dlopen_self=unknown
17158 enable_dlopen_self_static=unknown
17165 lt_cv_dlopen="load_add_on"
17167 lt_cv_dlopen_self=yes
17171 lt_cv_dlopen="LoadLibrary"
17176 lt_cv_dlopen="dlopen"
17181 # if libdl is installed we need to link against it
17182 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17183 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17184 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 ac_check_lib_save_LIBS=$LIBS
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17196 /* Override any gcc2 internal prototype to avoid an error. */
17200 /* We use char because int might match the return type of a gcc2
17201 builtin and then its argument prototype would still apply. */
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17213 (eval $ac_link) 2>conftest.er1
17215 grep -v '^ *+' conftest.er1 >conftest.err
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest$ac_exeext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 ac_cv_lib_dl_dlopen=yes
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17238 ac_cv_lib_dl_dlopen=no
17240 rm -f conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17242 LIBS=$ac_check_lib_save_LIBS
17244 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17245 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17246 if test $ac_cv_lib_dl_dlopen = yes; then
17247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17250 lt_cv_dlopen="dyld"
17252 lt_cv_dlopen_self=yes
17259 echo "$as_me:$LINENO: checking for shl_load" >&5
17260 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17261 if test "${ac_cv_func_shl_load+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17272 #define shl_load innocuous_shl_load
17274 /* System header to define __stub macros and hopefully few prototypes,
17275 which can conflict with char shl_load (); below.
17276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17277 <limits.h> exists even on freestanding compilers. */
17280 # include <limits.h>
17282 # include <assert.h>
17287 /* Override any gcc2 internal prototype to avoid an error. */
17292 /* We use char because int might match the return type of a gcc2
17293 builtin and then its argument prototype would still apply. */
17295 /* The GNU C library defines this for functions which it implements
17296 to always fail with ENOSYS. Some functions are actually named
17297 something starting with __ and the normal name is an alias. */
17298 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17301 char (*f) () = shl_load;
17310 return f != shl_load;
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317 (eval $ac_link) 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag"
17325 || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_func_shl_load=yes
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17342 ac_cv_func_shl_load=no
17344 rm -f conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17347 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17348 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17349 if test $ac_cv_func_shl_load = yes; then
17350 lt_cv_dlopen="shl_load"
17352 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17353 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17354 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 ac_check_lib_save_LIBS=$LIBS
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17366 /* Override any gcc2 internal prototype to avoid an error. */
17370 /* We use char because int might match the return type of a gcc2
17371 builtin and then its argument prototype would still apply. */
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>conftest.er1
17385 grep -v '^ *+' conftest.er1 >conftest.err
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -z "$ac_c_werror_flag"
17391 || test ! -s conftest.err'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try='test -s conftest$ac_exeext'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 ac_cv_lib_dld_shl_load=yes
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17408 ac_cv_lib_dld_shl_load=no
17410 rm -f conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17414 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17416 if test $ac_cv_lib_dld_shl_load = yes; then
17417 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17419 echo "$as_me:$LINENO: checking for dlopen" >&5
17420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17421 if test "${ac_cv_func_dlopen+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17432 #define dlopen innocuous_dlopen
17434 /* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char dlopen (); below.
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437 <limits.h> exists even on freestanding compilers. */
17440 # include <limits.h>
17442 # include <assert.h>
17447 /* Override any gcc2 internal prototype to avoid an error. */
17452 /* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17461 char (*f) () = dlopen;
17470 return f != dlopen;
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17477 (eval $ac_link) 2>conftest.er1
17479 grep -v '^ *+' conftest.er1 >conftest.err
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag"
17485 || test ! -s conftest.err'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest$ac_exeext'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_cv_func_dlopen=yes
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 ac_cv_func_dlopen=no
17504 rm -f conftest.err conftest.$ac_objext \
17505 conftest$ac_exeext conftest.$ac_ext
17507 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17508 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17509 if test $ac_cv_func_dlopen = yes; then
17510 lt_cv_dlopen="dlopen"
17512 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 ac_check_lib_save_LIBS=$LIBS
17519 cat >conftest.$ac_ext <<_ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17526 /* Override any gcc2 internal prototype to avoid an error. */
17530 /* We use char because int might match the return type of a gcc2
17531 builtin and then its argument prototype would still apply. */
17541 rm -f conftest.$ac_objext conftest$ac_exeext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17543 (eval $ac_link) 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag"
17551 || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest$ac_exeext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_lib_dl_dlopen=yes
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_cv_lib_dl_dlopen=no
17570 rm -f conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17572 LIBS=$ac_check_lib_save_LIBS
17574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17576 if test $ac_cv_lib_dl_dlopen = yes; then
17577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17579 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17580 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17581 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-lsvld $LIBS"
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17593 /* Override any gcc2 internal prototype to avoid an error. */
17597 /* We use char because int might match the return type of a gcc2
17598 builtin and then its argument prototype would still apply. */
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17610 (eval $ac_link) 2>conftest.er1
17612 grep -v '^ *+' conftest.er1 >conftest.err
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try='test -z "$ac_c_werror_flag"
17618 || test ! -s conftest.err'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest$ac_exeext'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_lib_svld_dlopen=yes
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17635 ac_cv_lib_svld_dlopen=no
17637 rm -f conftest.err conftest.$ac_objext \
17638 conftest$ac_exeext conftest.$ac_ext
17639 LIBS=$ac_check_lib_save_LIBS
17641 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17642 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17643 if test $ac_cv_lib_svld_dlopen = yes; then
17644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17646 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17647 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17648 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 ac_check_lib_save_LIBS=$LIBS
17653 cat >conftest.$ac_ext <<_ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17660 /* Override any gcc2 internal prototype to avoid an error. */
17664 /* We use char because int might match the return type of a gcc2
17665 builtin and then its argument prototype would still apply. */
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17677 (eval $ac_link) 2>conftest.er1
17679 grep -v '^ *+' conftest.er1 >conftest.err
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest$ac_exeext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ac_cv_lib_dld_dld_link=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 ac_cv_lib_dld_dld_link=no
17704 rm -f conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17706 LIBS=$ac_check_lib_save_LIBS
17708 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17710 if test $ac_cv_lib_dld_dld_link = yes; then
17711 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17732 if test "x$lt_cv_dlopen" != xno; then
17738 case $lt_cv_dlopen in
17740 save_CPPFLAGS="$CPPFLAGS"
17741 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17743 save_LDFLAGS="$LDFLAGS"
17744 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17747 LIBS="$lt_cv_dlopen_libs $LIBS"
17749 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17751 if test "${lt_cv_dlopen_self+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 if test "$cross_compiling" = yes; then :
17755 lt_cv_dlopen_self=cross
17757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17758 lt_status=$lt_dlunknown
17759 cat > conftest.$ac_ext <<EOF
17760 #line 17760 "configure"
17761 #include "confdefs.h"
17770 # define LT_DLGLOBAL RTLD_GLOBAL
17773 # define LT_DLGLOBAL DL_GLOBAL
17775 # define LT_DLGLOBAL 0
17779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17780 find out it does not work in some platform. */
17781 #ifndef LT_DLLAZY_OR_NOW
17783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17786 # define LT_DLLAZY_OR_NOW DL_LAZY
17789 # define LT_DLLAZY_OR_NOW RTLD_NOW
17792 # define LT_DLLAZY_OR_NOW DL_NOW
17794 # define LT_DLLAZY_OR_NOW 0
17802 extern "C" void exit (int);
17805 void fnord() { int i=42;}
17808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17809 int status = $lt_dlunknown;
17813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17814 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17815 /* dlclose (self); */
17821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822 (eval $ac_link) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17826 (./conftest; exit; ) >&5 2>/dev/null
17828 case x$lt_status in
17829 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17830 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17831 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17834 # compilation failed
17835 lt_cv_dlopen_self=no
17842 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17843 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17845 if test "x$lt_cv_dlopen_self" = xyes; then
17846 LDFLAGS="$LDFLAGS $link_static_flag"
17847 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17848 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17849 if test "${lt_cv_dlopen_self_static+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 if test "$cross_compiling" = yes; then :
17853 lt_cv_dlopen_self_static=cross
17855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17856 lt_status=$lt_dlunknown
17857 cat > conftest.$ac_ext <<EOF
17858 #line 17858 "configure"
17859 #include "confdefs.h"
17868 # define LT_DLGLOBAL RTLD_GLOBAL
17871 # define LT_DLGLOBAL DL_GLOBAL
17873 # define LT_DLGLOBAL 0
17877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17878 find out it does not work in some platform. */
17879 #ifndef LT_DLLAZY_OR_NOW
17881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17884 # define LT_DLLAZY_OR_NOW DL_LAZY
17887 # define LT_DLLAZY_OR_NOW RTLD_NOW
17890 # define LT_DLLAZY_OR_NOW DL_NOW
17892 # define LT_DLLAZY_OR_NOW 0
17900 extern "C" void exit (int);
17903 void fnord() { int i=42;}
17906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17907 int status = $lt_dlunknown;
17911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17913 /* dlclose (self); */
17919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17920 (eval $ac_link) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17924 (./conftest; exit; ) >&5 2>/dev/null
17926 case x$lt_status in
17927 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17928 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17929 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17932 # compilation failed
17933 lt_cv_dlopen_self_static=no
17940 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17941 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17944 CPPFLAGS="$save_CPPFLAGS"
17945 LDFLAGS="$save_LDFLAGS"
17950 case $lt_cv_dlopen_self in
17951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17952 *) enable_dlopen_self=unknown ;;
17955 case $lt_cv_dlopen_self_static in
17956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17957 *) enable_dlopen_self_static=unknown ;;
17962 # Report which librarie types wil actually be built
17963 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17964 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17965 echo "$as_me:$LINENO: result: $can_build_shared" >&5
17966 echo "${ECHO_T}$can_build_shared" >&6
17968 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17969 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17970 test "$can_build_shared" = "no" && enable_shared=no
17972 # On AIX, shared libraries and static libraries use the same namespace, and
17973 # are all built from PIC.
17976 test "$enable_shared" = yes && enable_static=no
17977 if test -n "$RANLIB"; then
17978 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17979 postinstall_cmds='$RANLIB $lib'
17984 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17985 test "$enable_shared" = yes && enable_static=no
17989 echo "$as_me:$LINENO: result: $enable_shared" >&5
17990 echo "${ECHO_T}$enable_shared" >&6
17992 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17993 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17994 # Make sure either enable_shared or enable_static is yes.
17995 test "$enable_shared" = yes || enable_static=yes
17996 echo "$as_me:$LINENO: result: $enable_static" >&5
17997 echo "${ECHO_T}$enable_static" >&6
17999 # The else clause should only fire when bootstrapping the
18000 # libtool distribution, otherwise you forgot to ship ltmain.sh
18001 # with your package, and you will get complaints that there are
18002 # no rules to generate ltmain.sh.
18003 if test -f "$ltmain"; then
18004 # See if we are running on zsh, and set the options which allow our commands through
18005 # without removal of \ escapes.
18006 if test -n "${ZSH_VERSION+set}" ; then
18007 setopt NO_GLOB_SUBST
18009 # Now quote all the things that may contain metacharacters while being
18010 # careful not to overquote the AC_SUBSTed values. We take copies of the
18011 # variables and quote the copies for generation of the libtool script.
18012 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18014 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18015 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18016 deplibs_check_method reload_flag reload_cmds need_locks \
18017 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18018 lt_cv_sys_global_symbol_to_c_name_address \
18019 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18020 old_postinstall_cmds old_postuninstall_cmds \
18024 lt_prog_compiler_wl \
18025 lt_prog_compiler_pic \
18026 lt_prog_compiler_static \
18027 lt_prog_compiler_no_builtin_flag \
18028 export_dynamic_flag_spec \
18029 thread_safe_flag_spec \
18030 whole_archive_flag_spec \
18031 enable_shared_with_static_runtimes \
18033 old_archive_from_new_cmds \
18038 compiler_lib_search_path \
18040 archive_expsym_cmds \
18042 postuninstall_cmds \
18043 old_archive_from_expsyms_cmds \
18044 allow_undefined_flag \
18045 no_undefined_flag \
18046 export_symbols_cmds \
18047 hardcode_libdir_flag_spec \
18048 hardcode_libdir_flag_spec_ld \
18049 hardcode_libdir_separator \
18050 hardcode_automatic \
18052 module_expsym_cmds \
18053 lt_cv_prog_compiler_c_o \
18055 include_expsyms; do
18058 old_archive_cmds | \
18059 old_archive_from_new_cmds | \
18061 archive_expsym_cmds | \
18063 module_expsym_cmds | \
18064 old_archive_from_expsyms_cmds | \
18065 export_symbols_cmds | \
18066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18067 postinstall_cmds | postuninstall_cmds | \
18068 old_postinstall_cmds | old_postuninstall_cmds | \
18069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18070 # Double-quote double-evaled strings.
18071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18080 *'\$0 --fallback-echo"')
18081 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18085 cfgfile="${ofile}T"
18086 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18088 { echo "$as_me:$LINENO: creating $ofile" >&5
18089 echo "$as_me: creating $ofile" >&6;}
18091 cat <<__EOF__ >> "$cfgfile"
18094 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18095 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18096 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18098 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18099 # Free Software Foundation, Inc.
18101 # This file is part of GNU Libtool:
18102 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18104 # This program is free software; you can redistribute it and/or modify
18105 # it under the terms of the GNU General Public License as published by
18106 # the Free Software Foundation; either version 2 of the License, or
18107 # (at your option) any later version.
18109 # This program is distributed in the hope that it will be useful, but
18110 # WITHOUT ANY WARRANTY; without even the implied warranty of
18111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18112 # General Public License for more details.
18114 # You should have received a copy of the GNU General Public License
18115 # along with this program; if not, write to the Free Software
18116 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18118 # As a special exception to the GNU General Public License, if you
18119 # distribute this file as part of a program that contains a
18120 # configuration script generated by Autoconf, you may include it under
18121 # the same distribution terms that you use for the rest of that program.
18123 # A sed program that does not truncate output.
18126 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18127 Xsed="$SED -e 1s/^X//"
18129 # The HP-UX ksh and POSIX shell print the target directory to stdout
18130 # if CDPATH is set.
18131 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18133 # The names of the tagged configurations supported by this script.
18136 # ### BEGIN LIBTOOL CONFIG
18138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18140 # Shell to use when invoking shell scripts.
18143 # Whether or not to build shared libraries.
18144 build_libtool_libs=$enable_shared
18146 # Whether or not to build static libraries.
18147 build_old_libs=$enable_static
18149 # Whether or not to add -lc for building shared libraries.
18150 build_libtool_need_lc=$archive_cmds_need_lc
18152 # Whether or not to disallow shared libs when runtime libs are static
18153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18155 # Whether or not to optimize for fast installation.
18156 fast_install=$enable_fast_install
18159 host_alias=$host_alias
18163 # The build system.
18164 build_alias=$build_alias
18168 # An echo program that does not interpret backslashes.
18173 AR_FLAGS=$lt_AR_FLAGS
18178 # A language-specific compiler.
18181 # Is the compiler the GNU C compiler?
18187 # The linker used to build libraries.
18190 # Whether we need hard or soft links.
18193 # A BSD-compatible nm program.
18196 # A symbol stripping program
18199 # Used to examine libraries when file_magic_cmd begins "file"
18200 MAGIC_CMD=$MAGIC_CMD
18202 # Used on cygwin: DLL creation program.
18205 # Used on cygwin: object dumper.
18208 # Used on cygwin: assembler.
18211 # The name of the directory that contains temporary libtool files.
18214 # How to create reloadable object files.
18215 reload_flag=$lt_reload_flag
18216 reload_cmds=$lt_reload_cmds
18218 # How to pass a linker flag through the compiler.
18219 wl=$lt_lt_prog_compiler_wl
18221 # Object file suffix (normally "o").
18222 objext="$ac_objext"
18224 # Old archive suffix (normally "a").
18227 # Shared library suffix (normally ".so").
18228 shrext_cmds='$shrext_cmds'
18230 # Executable file suffix (normally "").
18233 # Additional compiler flags for building library objects.
18234 pic_flag=$lt_lt_prog_compiler_pic
18237 # What is the maximum length of a command?
18238 max_cmd_len=$lt_cv_sys_max_cmd_len
18240 # Does compiler simultaneously support -c and -o options?
18241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18243 # Must we lock files when doing compilation?
18244 need_locks=$lt_need_locks
18246 # Do we need the lib prefix for modules?
18247 need_lib_prefix=$need_lib_prefix
18249 # Do we need a version for libraries?
18250 need_version=$need_version
18252 # Whether dlopen is supported.
18253 dlopen_support=$enable_dlopen
18255 # Whether dlopen of programs is supported.
18256 dlopen_self=$enable_dlopen_self
18258 # Whether dlopen of statically linked programs is supported.
18259 dlopen_self_static=$enable_dlopen_self_static
18261 # Compiler flag to prevent dynamic linking.
18262 link_static_flag=$lt_lt_prog_compiler_static
18264 # Compiler flag to turn off builtin functions.
18265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18267 # Compiler flag to allow reflexive dlopens.
18268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18270 # Compiler flag to generate shared objects directly from archives.
18271 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18273 # Compiler flag to generate thread-safe objects.
18274 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18276 # Library versioning type.
18277 version_type=$version_type
18279 # Format of library name prefix.
18280 libname_spec=$lt_libname_spec
18282 # List of archive names. First name is the real one, the rest are links.
18283 # The last name is the one that the linker finds with -lNAME.
18284 library_names_spec=$lt_library_names_spec
18286 # The coded name of the library, if different from the real name.
18287 soname_spec=$lt_soname_spec
18289 # Commands used to build and install an old-style archive.
18291 old_archive_cmds=$lt_old_archive_cmds
18292 old_postinstall_cmds=$lt_old_postinstall_cmds
18293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18295 # Create an old-style archive from a shared archive.
18296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18298 # Create a temporary old-style archive to link instead of a shared archive.
18299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18301 # Commands used to build and install a shared archive.
18302 archive_cmds=$lt_archive_cmds
18303 archive_expsym_cmds=$lt_archive_expsym_cmds
18304 postinstall_cmds=$lt_postinstall_cmds
18305 postuninstall_cmds=$lt_postuninstall_cmds
18307 # Commands used to build a loadable module (assumed same as above if empty)
18308 module_cmds=$lt_module_cmds
18309 module_expsym_cmds=$lt_module_expsym_cmds
18311 # Commands to strip libraries.
18312 old_striplib=$lt_old_striplib
18313 striplib=$lt_striplib
18315 # Dependencies to place before the objects being linked to create a
18317 predep_objects=$lt_predep_objects
18319 # Dependencies to place after the objects being linked to create a
18321 postdep_objects=$lt_postdep_objects
18323 # Dependencies to place before the objects being linked to create a
18325 predeps=$lt_predeps
18327 # Dependencies to place after the objects being linked to create a
18329 postdeps=$lt_postdeps
18331 # The library search path used internally by the compiler when linking
18332 # a shared library.
18333 compiler_lib_search_path=$lt_compiler_lib_search_path
18335 # Method to check whether dependent libraries are shared objects.
18336 deplibs_check_method=$lt_deplibs_check_method
18338 # Command to use when deplibs_check_method == file_magic.
18339 file_magic_cmd=$lt_file_magic_cmd
18341 # Flag that allows shared libraries with undefined symbols to be built.
18342 allow_undefined_flag=$lt_allow_undefined_flag
18344 # Flag that forces no undefined symbols.
18345 no_undefined_flag=$lt_no_undefined_flag
18347 # Commands used to finish a libtool library installation in a directory.
18348 finish_cmds=$lt_finish_cmds
18350 # Same as above, but a single script fragment to be evaled but not shown.
18351 finish_eval=$lt_finish_eval
18353 # Take the output of nm and produce a listing of raw symbols and C names.
18354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18356 # Transform the output of nm in a proper C declaration
18357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18359 # Transform the output of nm in a C name address pair
18360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18362 # This is the shared library runtime path variable.
18363 runpath_var=$runpath_var
18365 # This is the shared library path variable.
18366 shlibpath_var=$shlibpath_var
18368 # Is shlibpath searched before the hard-coded library search path?
18369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18371 # How to hardcode a shared library path into an executable.
18372 hardcode_action=$hardcode_action
18374 # Whether we should hardcode library paths into libraries.
18375 hardcode_into_libs=$hardcode_into_libs
18377 # Flag to hardcode \$libdir into a binary during linking.
18378 # This must work even if \$libdir does not exist.
18379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18381 # If ld is used when linking, flag to hardcode \$libdir into
18382 # a binary during linking. This must work even if \$libdir does
18384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18386 # Whether we need a single -rpath flag with a separated argument.
18387 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18390 # resulting binary.
18391 hardcode_direct=$hardcode_direct
18393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18394 # resulting binary.
18395 hardcode_minus_L=$hardcode_minus_L
18397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18398 # the resulting binary.
18399 hardcode_shlibpath_var=$hardcode_shlibpath_var
18401 # Set to yes if building a shared library automatically hardcodes DIR into the library
18402 # and all subsequent libraries and executables linked against it.
18403 hardcode_automatic=$hardcode_automatic
18405 # Variables whose values should be saved in libtool wrapper scripts and
18406 # restored at relink time.
18407 variables_saved_for_relink="$variables_saved_for_relink"
18409 # Whether libtool must link a program against all its dependency libraries.
18410 link_all_deplibs=$link_all_deplibs
18412 # Compile-time system search path for libraries
18413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18415 # Run-time system search path for libraries
18416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18418 # Fix the shell variable \$srcfile for the compiler.
18419 fix_srcfile_path="$fix_srcfile_path"
18421 # Set to yes if exported symbols are required.
18422 always_export_symbols=$always_export_symbols
18424 # The commands to list exported symbols.
18425 export_symbols_cmds=$lt_export_symbols_cmds
18427 # The commands to extract the exported symbol list from a shared archive.
18428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18430 # Symbols that should not be listed in the preloaded symbols.
18431 exclude_expsyms=$lt_exclude_expsyms
18433 # Symbols that must always be exported.
18434 include_expsyms=$lt_include_expsyms
18436 # ### END LIBTOOL CONFIG
18443 cat <<\EOF >> "$cfgfile"
18445 # AIX sometimes has problems with the GCC collect2 program. For some
18446 # reason, if we set the COLLECT_NAMES environment variable, the problems
18447 # vanish in a puff of smoke.
18448 if test "X${COLLECT_NAMES+set}" != Xset; then
18450 export COLLECT_NAMES
18456 # We use sed instead of cat because bash on DJGPP gets confused if
18457 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18458 # text mode, it properly converts lines to CR/LF. This bash problem
18459 # is reportedly fixed, but why not run on old versions too?
18460 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18462 mv -f "$cfgfile" "$ofile" || \
18463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18467 # If there is no Makefile yet, we rely on a make rule to execute
18468 # `config.status --recheck' to rerun these tests and create the
18469 # libtool script then.
18470 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18471 if test -f "$ltmain_in"; then
18472 test -f Makefile && make "$ltmain"
18478 ac_cpp='$CPP $CPPFLAGS'
18479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486 # Check whether --with-tags or --without-tags was given.
18487 if test "${with_tags+set}" = set; then
18488 withval="$with_tags"
18489 tagnames="$withval"
18492 if test -f "$ltmain" && test -n "$tagnames"; then
18493 if test ! -f "${ofile}"; then
18494 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18495 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18498 if test -z "$LTCC"; then
18499 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18500 if test -z "$LTCC"; then
18501 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18502 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18505 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18509 # Extract list of available tagged configurations in $ofile.
18510 # Note that this assumes the entire list is on one line.
18511 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18514 for tagname in $tagnames; do
18516 # Check whether tagname contains only valid characters
18517 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18519 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18520 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18521 { (exit 1); exit 1; }; }
18525 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18527 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18528 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18529 { (exit 1); exit 1; }; }
18532 # Update the list of available tags.
18533 if test -n "$tagname"; then
18534 echo appending configuration tag \"$tagname\" to $ofile
18538 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18540 (test "X$CXX" != "Xg++"))) ; then
18542 ac_cpp='$CXXCPP $CPPFLAGS'
18543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18550 archive_cmds_need_lc_CXX=no
18551 allow_undefined_flag_CXX=
18552 always_export_symbols_CXX=no
18553 archive_expsym_cmds_CXX=
18554 export_dynamic_flag_spec_CXX=
18555 hardcode_direct_CXX=no
18556 hardcode_libdir_flag_spec_CXX=
18557 hardcode_libdir_flag_spec_ld_CXX=
18558 hardcode_libdir_separator_CXX=
18559 hardcode_minus_L_CXX=no
18560 hardcode_automatic_CXX=no
18562 module_expsym_cmds_CXX=
18563 link_all_deplibs_CXX=unknown
18564 old_archive_cmds_CXX=$old_archive_cmds
18565 no_undefined_flag_CXX=
18566 whole_archive_flag_spec_CXX=
18567 enable_shared_with_static_runtimes_CXX=no
18569 # Dependencies to place before and after the object being linked:
18570 predep_objects_CXX=
18571 postdep_objects_CXX=
18574 compiler_lib_search_path_CXX=
18576 # Source file extension for C++ test sources.
18579 # Object file extension for compiled C++ test sources.
18583 # Code to be used in simple compile tests
18584 lt_simple_compile_test_code="int some_variable = 0;\n"
18586 # Code to be used in simple link tests
18587 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
18589 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18591 # If no C compiler was specified, use CC.
18594 # Allow CC to be a program name with arguments.
18598 # save warnings/boilerplate of simple test code
18599 ac_outfile=conftest.$ac_objext
18600 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18602 _lt_compiler_boilerplate=`cat conftest.err`
18605 ac_outfile=conftest.$ac_objext
18606 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18608 _lt_linker_boilerplate=`cat conftest.err`
18612 # Allow CC to be a program name with arguments.
18617 lt_save_with_gnu_ld=$with_gnu_ld
18618 lt_save_path_LD=$lt_cv_path_LD
18619 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18620 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18622 unset lt_cv_prog_gnu_ld
18624 if test -n "${lt_cv_path_LDCXX+set}"; then
18625 lt_cv_path_LD=$lt_cv_path_LDCXX
18627 unset lt_cv_path_LD
18629 test -z "${LDCXX+set}" || LD=$LDCXX
18633 for cc_temp in $compiler""; do
18635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18644 # We don't want -fno-exception wen compiling C++ code, so set the
18645 # no_builtin_flag separately
18646 if test "$GXX" = yes; then
18647 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18649 lt_prog_compiler_no_builtin_flag_CXX=
18652 if test "$GXX" = yes; then
18653 # Set up default GNU C++ configuration
18656 # Check whether --with-gnu-ld or --without-gnu-ld was given.
18657 if test "${with_gnu_ld+set}" = set; then
18658 withval="$with_gnu_ld"
18659 test "$withval" = no || with_gnu_ld=yes
18664 if test "$GCC" = yes; then
18665 # Check if gcc -print-prog-name=ld gives a path.
18666 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18667 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
18670 # gcc leaves a trailing carriage return which upsets mingw
18671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18676 # Accept absolute paths.
18678 re_direlt='/[^/][^/]*/\.\./'
18679 # Canonicalize the pathname of ld
18680 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18681 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18682 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18684 test -z "$LD" && LD="$ac_prog"
18687 # If it fails, then pretend we aren't using GCC.
18691 # If it is relative, then search for the first ld in PATH.
18692 with_gnu_ld=unknown
18695 elif test "$with_gnu_ld" = yes; then
18696 echo "$as_me:$LINENO: checking for GNU ld" >&5
18697 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18699 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18700 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18702 if test "${lt_cv_path_LD+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 if test -z "$LD"; then
18706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18707 for ac_dir in $PATH; do
18709 test -z "$ac_dir" && ac_dir=.
18710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18711 lt_cv_path_LD="$ac_dir/$ac_prog"
18712 # Check to see if the program is GNU ld. I'd rather use --version,
18713 # but apparently some variants of GNU ld only accept -v.
18714 # Break only if it was the GNU/non-GNU ld that we prefer.
18715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18716 *GNU* | *'with BFD'*)
18717 test "$with_gnu_ld" != no && break
18720 test "$with_gnu_ld" != yes && break
18727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18731 LD="$lt_cv_path_LD"
18732 if test -n "$LD"; then
18733 echo "$as_me:$LINENO: result: $LD" >&5
18734 echo "${ECHO_T}$LD" >&6
18736 echo "$as_me:$LINENO: result: no" >&5
18737 echo "${ECHO_T}no" >&6
18739 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18740 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18741 { (exit 1); exit 1; }; }
18742 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18743 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18744 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18748 case `$LD -v 2>&1 </dev/null` in
18749 *GNU* | *'with BFD'*)
18750 lt_cv_prog_gnu_ld=yes
18753 lt_cv_prog_gnu_ld=no
18757 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18758 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
18759 with_gnu_ld=$lt_cv_prog_gnu_ld
18763 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18764 # archiving commands below assume that GNU ld is being used.
18765 if test "$with_gnu_ld" = yes; then
18766 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18767 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'
18769 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18770 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18772 # If archive_cmds runs LD, not CC, wlarc should be empty
18773 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18774 # investigate it a little bit more. (MM)
18777 # ancient GNU ld didn't support --whole-archive et. al.
18778 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18779 grep 'no-whole-archive' > /dev/null; then
18780 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18782 whole_archive_flag_spec_CXX=
18788 # A generic and very simple default shared library creation
18789 # command for GNU C++ for the case where it uses the native
18790 # linker, instead of GNU ld. If possible, this setting should
18791 # overridden to take advantage of the native linker features on
18792 # the platform it is being used on.
18793 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18807 # PORTME: fill in a description of your system's C++ link characteristics
18808 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18809 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18813 # FIXME: insert proper C++ library support
18817 if test "$host_cpu" = ia64; then
18818 # On IA64, the linker does run time linking by default, so we don't
18819 # have to do anything special.
18820 aix_use_runtimelinking=no
18821 exp_sym_flag='-Bexport'
18824 aix_use_runtimelinking=no
18826 # Test if we are trying to use run time linking or normal
18827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18828 # need to do runtime linking.
18829 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18830 for ld_flag in $LDFLAGS; do
18833 aix_use_runtimelinking=yes
18840 exp_sym_flag='-bexport'
18841 no_entry_flag='-bnoentry'
18844 # When large executables or shared objects are built, AIX ld can
18845 # have problems creating the table of contents. If linking a library
18846 # or program results in "error TOC overflow" add -mminimal-toc to
18847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18850 archive_cmds_CXX=''
18851 hardcode_direct_CXX=yes
18852 hardcode_libdir_separator_CXX=':'
18853 link_all_deplibs_CXX=yes
18855 if test "$GXX" = yes; then
18856 case $host_os in aix4.[012]|aix4.[012].*)
18857 # We only want to do this on AIX 4.2 and lower, the check
18858 # below for broken collect2 doesn't work under 4.3+
18859 collect2name=`${CC} -print-prog-name=collect2`
18860 if test -f "$collect2name" && \
18861 strings "$collect2name" | grep resolve_lib_name >/dev/null
18863 # We have reworked collect2
18864 hardcode_direct_CXX=yes
18866 # We have old collect2
18867 hardcode_direct_CXX=unsupported
18868 # It fails to find uninstalled libraries when the uninstalled
18869 # path is not listed in the libpath. Setting hardcode_minus_L
18870 # to unsupported forces relinking
18871 hardcode_minus_L_CXX=yes
18872 hardcode_libdir_flag_spec_CXX='-L$libdir'
18873 hardcode_libdir_separator_CXX=
18876 shared_flag='-shared'
18877 if test "$aix_use_runtimelinking" = yes; then
18878 shared_flag="$shared_flag "'${wl}-G'
18882 if test "$host_cpu" = ia64; then
18883 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18884 # chokes on -Wl,-G. The following line is correct:
18887 if test "$aix_use_runtimelinking" = yes; then
18888 shared_flag='${wl}-G'
18890 shared_flag='${wl}-bM:SRE'
18895 # It seems that -bexpall does not export symbols beginning with
18896 # underscore (_), so it is better to generate a list of symbols to export.
18897 always_export_symbols_CXX=yes
18898 if test "$aix_use_runtimelinking" = yes; then
18899 # Warning - without using the other runtime loading flags (-brtl),
18900 # -berok will link without error, but may produce a broken library.
18901 allow_undefined_flag_CXX='-berok'
18902 # Determine the default libpath from the value encoded in an empty executable.
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18920 (eval $ac_link) 2>conftest.er1
18922 grep -v '^ *+' conftest.er1 >conftest.err
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_cxx_werror_flag"
18928 || test ! -s conftest.err'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } &&
18934 { ac_try='test -s conftest$ac_exeext'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18943 # Check for a 64-bit object if we didn't find anything.
18944 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; }
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18951 rm -f conftest.err conftest.$ac_objext \
18952 conftest$ac_exeext conftest.$ac_ext
18953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18955 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18957 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"
18959 if test "$host_cpu" = ia64; then
18960 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18961 allow_undefined_flag_CXX="-z nodefs"
18962 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"
18964 # Determine the default libpath from the value encoded in an empty executable.
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18982 (eval $ac_link) 2>conftest.er1
18984 grep -v '^ *+' conftest.er1 >conftest.err
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_cxx_werror_flag"
18990 || test ! -s conftest.err'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest$ac_exeext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19005 # Check for a 64-bit object if we didn't find anything.
19006 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; }
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19013 rm -f conftest.err conftest.$ac_objext \
19014 conftest$ac_exeext conftest.$ac_ext
19015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19018 # Warning - without using the other run time loading flags,
19019 # -berok will link without error, but may produce a broken library.
19020 no_undefined_flag_CXX=' ${wl}-bernotok'
19021 allow_undefined_flag_CXX=' ${wl}-berok'
19022 # -bexpall does not export symbols beginning with underscore (_)
19023 always_export_symbols_CXX=yes
19024 # Exported symbols can be pulled into shared objects from archives
19025 whole_archive_flag_spec_CXX=' '
19026 archive_cmds_need_lc_CXX=yes
19027 # This is similar to how AIX traditionally builds its shared libraries.
19028 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'
19033 case $cc_basename in
19035 # FIXME: insert proper C++ library support
19042 cygwin* | mingw* | pw32*)
19043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19044 # as there is no search path for DLLs.
19045 hardcode_libdir_flag_spec_CXX='-L$libdir'
19046 allow_undefined_flag_CXX=unsupported
19047 always_export_symbols_CXX=no
19048 enable_shared_with_static_runtimes_CXX=yes
19050 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19051 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'
19052 # If the export-symbols file already is a .def file (1st line
19053 # is EXPORTS), use it as is; otherwise, prepend...
19054 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19055 cp $export_symbols $output_objdir/$soname.def;
19057 echo EXPORTS > $output_objdir/$soname.def;
19058 cat $export_symbols >> $output_objdir/$soname.def;
19060 $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'
19065 darwin* | rhapsody*)
19067 rhapsody* | darwin1.[012])
19068 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19071 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19072 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19074 case ${MACOSX_DEPLOYMENT_TARGET} in
19076 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19079 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19085 archive_cmds_need_lc_CXX=no
19086 hardcode_direct_CXX=no
19087 hardcode_automatic_CXX=yes
19088 hardcode_shlibpath_var_CXX=unsupported
19089 whole_archive_flag_spec_CXX=''
19090 link_all_deplibs_CXX=yes
19092 if test "$GXX" = yes ; then
19093 lt_int_apple_cc_single_mod=no
19094 output_verbose_link_cmd='echo'
19095 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19096 lt_int_apple_cc_single_mod=yes
19098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19099 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19101 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'
19103 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19105 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19106 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}'
19108 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}'
19110 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}'
19112 case $cc_basename in
19114 output_verbose_link_cmd='echo'
19115 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'
19116 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19118 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}'
19119 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}'
19129 case $cc_basename in
19131 # FIXME: insert proper C++ library support
19135 # Green Hills C++ Compiler
19136 # FIXME: insert proper C++ library support
19140 # FIXME: insert proper C++ library support
19146 # C++ shared libraries reported to be fairly broken before switch to ELF
19150 archive_cmds_need_lc_CXX=no
19152 freebsd* | kfreebsd*-gnu | dragonfly*)
19153 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19160 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19161 hardcode_libdir_separator_CXX=:
19162 export_dynamic_flag_spec_CXX='${wl}-E'
19163 hardcode_direct_CXX=yes
19164 hardcode_minus_L_CXX=yes # Not in the search PATH,
19165 # but as the default
19166 # location of the library.
19168 case $cc_basename in
19170 # FIXME: insert proper C++ library support
19174 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'
19175 # Commands to make compiler produce verbose output that lists
19176 # what "hidden" libraries, object files and flags are used when
19177 # linking a shared library.
19179 # There doesn't appear to be a way to prevent this compiler from
19180 # explicitly linking system object files so we need to strip them
19181 # from the output so that they don't get included in the library
19183 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'
19186 if test "$GXX" = yes; then
19187 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'
19189 # FIXME: insert proper C++ library support
19196 if test $with_gnu_ld = no; then
19199 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19200 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19201 hardcode_libdir_separator_CXX=:
19204 hardcode_libdir_flag_spec_CXX='-L$libdir'
19207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19208 hardcode_libdir_separator_CXX=:
19209 export_dynamic_flag_spec_CXX='${wl}-E'
19215 hardcode_direct_CXX=no
19216 hardcode_shlibpath_var_CXX=no
19219 hardcode_direct_CXX=no
19220 hardcode_shlibpath_var_CXX=no
19221 hardcode_minus_L_CXX=yes # Not in the search PATH,
19222 # but as the default
19223 # location of the library.
19226 hardcode_direct_CXX=yes
19227 hardcode_minus_L_CXX=yes # Not in the search PATH,
19228 # but as the default
19229 # location of the library.
19233 case $cc_basename in
19235 # FIXME: insert proper C++ library support
19241 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19247 # Commands to make compiler produce verbose output that lists
19248 # what "hidden" libraries, object files and flags are used when
19249 # linking a shared library.
19251 # There doesn't appear to be a way to prevent this compiler from
19252 # explicitly linking system object files so we need to strip them
19253 # from the output so that they don't get included in the library
19255 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'
19258 if test "$GXX" = yes; then
19259 if test $with_gnu_ld = no; then
19262 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19265 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'
19270 # FIXME: insert proper C++ library support
19277 case $cc_basename in
19280 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'
19282 # Archives containing C++ object files must be created using
19283 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19284 # necessary to make sure instantiated templates are included
19286 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19289 if test "$GXX" = yes; then
19290 if test "$with_gnu_ld" = no; then
19291 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'
19293 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'
19296 link_all_deplibs_CXX=yes
19299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19300 hardcode_libdir_separator_CXX=:
19303 case $cc_basename in
19305 # Kuck and Associates, Inc. (KAI) C++ Compiler
19307 # KCC will only create a shared library if the output file
19308 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19309 # to its proper name (with version) after linking.
19310 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'
19311 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'
19312 # Commands to make compiler produce verbose output that lists
19313 # what "hidden" libraries, object files and flags are used when
19314 # linking a shared library.
19316 # There doesn't appear to be a way to prevent this compiler from
19317 # explicitly linking system object files so we need to strip them
19318 # from the output so that they don't get included in the library
19320 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'
19322 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19325 # Archives containing C++ object files must be created using
19326 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19327 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19332 # version 8.0 and above of icpc choke on multiply defined symbols
19333 # if we add $predep_objects and $postdep_objects, however 7.1 and
19334 # earlier do not add the objects themselves.
19335 case `$CC -V 2>&1` in
19337 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338 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'
19340 *) # Version 8.0 or newer
19343 ia64*) tmp_idyn=' -i_dynamic';;
19345 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 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'
19349 archive_cmds_need_lc_CXX=no
19350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19352 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19355 # Portland Group C++ compiler
19356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19357 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'
19359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19361 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'
19365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19366 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'
19368 runpath_var=LD_RUN_PATH
19369 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19370 hardcode_libdir_separator_CXX=:
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19376 # There doesn't appear to be a way to prevent this compiler from
19377 # explicitly linking system object files so we need to strip them
19378 # from the output so that they don't get included in the library
19380 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'
19385 # FIXME: insert proper C++ library support
19389 # FIXME: insert proper C++ library support
19393 case $cc_basename in
19395 # FIXME: insert proper C++ library support
19399 # FIXME: insert proper C++ library support
19405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19406 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19408 hardcode_libdir_flag_spec_CXX='-R$libdir'
19409 hardcode_direct_CXX=yes
19410 hardcode_shlibpath_var_CXX=no
19412 # Workaround some broken pre-1.5 toolchains
19413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19416 # C++ shared libraries are fairly broken
19420 hardcode_direct_CXX=yes
19421 hardcode_shlibpath_var_CXX=no
19422 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19425 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19426 export_dynamic_flag_spec_CXX='${wl}-E'
19427 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19429 output_verbose_link_cmd='echo'
19432 case $cc_basename in
19434 # Kuck and Associates, Inc. (KAI) C++ Compiler
19436 # KCC will only create a shared library if the output file
19437 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19438 # to its proper name (with version) after linking.
19439 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'
19441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19442 hardcode_libdir_separator_CXX=:
19444 # Archives containing C++ object files must be created using
19445 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19446 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19450 # Rational C++ 2.4.1
19451 # FIXME: insert proper C++ library support
19455 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19456 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'
19458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19459 hardcode_libdir_separator_CXX=:
19461 # Commands to make compiler produce verbose output that lists
19462 # what "hidden" libraries, object files and flags are used when
19463 # linking a shared library.
19465 # There doesn't appear to be a way to prevent this compiler from
19466 # explicitly linking system object files so we need to strip them
19467 # from the output so that they don't get included in the library
19469 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'
19472 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19473 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19474 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'
19476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19477 hardcode_libdir_separator_CXX=:
19479 # Commands to make compiler produce verbose output that lists
19480 # what "hidden" libraries, object files and flags are used when
19481 # linking a shared library.
19482 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19485 # FIXME: insert proper C++ library support
19492 case $cc_basename in
19494 # Kuck and Associates, Inc. (KAI) C++ Compiler
19496 # KCC will only create a shared library if the output file
19497 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19498 # to its proper name (with version) after linking.
19499 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'
19501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19502 hardcode_libdir_separator_CXX=:
19504 # Archives containing C++ object files must be created using
19505 # the KAI C++ compiler.
19506 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19509 # Rational C++ 2.4.1
19510 # FIXME: insert proper C++ library support
19514 allow_undefined_flag_CXX=' -expect_unresolved \*'
19515 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'
19516 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19517 echo "-hidden">> $lib.exp~
19518 $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~
19521 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19522 hardcode_libdir_separator_CXX=:
19524 # Commands to make compiler produce verbose output that lists
19525 # what "hidden" libraries, object files and flags are used when
19526 # linking a shared library.
19528 # There doesn't appear to be a way to prevent this compiler from
19529 # explicitly linking system object files so we need to strip them
19530 # from the output so that they don't get included in the library
19532 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'
19535 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19536 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19537 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'
19539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19540 hardcode_libdir_separator_CXX=:
19542 # Commands to make compiler produce verbose output that lists
19543 # what "hidden" libraries, object files and flags are used when
19544 # linking a shared library.
19545 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19548 # FIXME: insert proper C++ library support
19555 # FIXME: insert proper C++ library support
19559 archive_cmds_need_lc_CXX=no
19560 case $cc_basename in
19562 # FIXME: insert proper C++ library support
19566 # FIXME: insert proper C++ library support
19572 case $cc_basename in
19575 # FIXME: insert proper C++ library support
19580 # FIXME: insert proper C++ library support
19584 # FIXME: insert proper C++ library support
19590 case $cc_basename in
19592 # Sun C++ 4.2, 5.x and Centerline C++
19593 archive_cmds_need_lc_CXX=yes
19594 no_undefined_flag_CXX=' -zdefs'
19595 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19596 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19597 $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'
19599 hardcode_libdir_flag_spec_CXX='-R$libdir'
19600 hardcode_shlibpath_var_CXX=no
19602 solaris2.[0-5] | solaris2.[0-5].*) ;;
19604 # The C++ compiler is used as linker so we must use $wl
19605 # flag to pass the commands to the underlying system
19606 # linker. We must also pass each convience library through
19607 # to the system linker between allextract/defaultextract.
19608 # The C++ compiler will combine linker options so we
19609 # cannot just pass the convience library names through
19611 # Supported since Solaris 2.6 (maybe 2.5.1?)
19612 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'
19615 link_all_deplibs_CXX=yes
19617 output_verbose_link_cmd='echo'
19619 # Archives containing C++ object files must be created using
19620 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19621 # necessary to make sure instantiated templates are included
19623 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19626 # Green Hills C++ Compiler
19627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19629 # The C++ compiler must be used to create the archive.
19630 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19633 # GNU C++ compiler with Solaris linker
19634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19635 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19636 if $CC --version | grep -v '^2\.7' > /dev/null; then
19637 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19638 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19639 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19641 # Commands to make compiler produce verbose output that lists
19642 # what "hidden" libraries, object files and flags are used when
19643 # linking a shared library.
19644 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19646 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19648 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19649 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19650 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19652 # Commands to make compiler produce verbose output that lists
19653 # what "hidden" libraries, object files and flags are used when
19654 # linking a shared library.
19655 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19658 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19663 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19664 archive_cmds_need_lc_CXX=no
19667 case $cc_basename in
19669 # NonStop-UX NCC 3.20
19670 # FIXME: insert proper C++ library support
19674 # FIXME: insert proper C++ library support
19680 # FIXME: insert proper C++ library support
19684 # FIXME: insert proper C++ library support
19688 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19689 echo "${ECHO_T}$ld_shlibs_CXX" >&6
19690 test "$ld_shlibs_CXX" = no && can_build_shared=no
19696 ## There is no encapsulation within the following macros, do not change
19697 ## the running order or otherwise move them around unless you know exactly
19698 ## what you are doing...
19700 cat > conftest.$ac_ext <<EOF
19704 Foo (void) { a = 0; }
19710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19711 (eval $ac_compile) 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; then
19715 # Parse the compiler output and extract the necessary
19716 # objects, libraries and library flags.
19718 # Sentinel used to keep track of whether or not we are before
19719 # the conftest object file.
19720 pre_test_object_deps_done=no
19722 # The `*' in the case matches for architectures that use `case' in
19723 # $output_verbose_cmd can trigger glob expansion during the loop
19724 # eval without this substitution.
19725 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19727 for p in `eval $output_verbose_link_cmd`; do
19731 # Some compilers place space between "-{L,R}" and the path.
19732 # Remove the space.
19733 if test $p = "-L" \
19734 || test $p = "-R"; then
19741 if test "$pre_test_object_deps_done" = no; then
19744 # Internal compiler library paths should come after those
19745 # provided the user. The postdeps already come after the
19746 # user supplied libs so there is no need to process them.
19747 if test -z "$compiler_lib_search_path_CXX"; then
19748 compiler_lib_search_path_CXX="${prev}${p}"
19750 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19753 # The "-l" case would never come before the object being
19754 # linked, so don't bother handling this case.
19757 if test -z "$postdeps_CXX"; then
19758 postdeps_CXX="${prev}${p}"
19760 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19766 # This assumes that the test object file only shows up
19767 # once in the compiler output.
19768 if test "$p" = "conftest.$objext"; then
19769 pre_test_object_deps_done=yes
19773 if test "$pre_test_object_deps_done" = no; then
19774 if test -z "$predep_objects_CXX"; then
19775 predep_objects_CXX="$p"
19777 predep_objects_CXX="$predep_objects_CXX $p"
19780 if test -z "$postdep_objects_CXX"; then
19781 postdep_objects_CXX="$p"
19783 postdep_objects_CXX="$postdep_objects_CXX $p"
19788 *) ;; # Ignore the rest.
19796 echo "libtool.m4: error: problem compiling CXX test program"
19799 $rm -f confest.$objext
19801 # PORTME: override above test on systems where it is broken
19804 case $cc_basename in
19806 # Adding this requires a known-good setup of shared libraries for
19807 # Sun compiler versions before 5.6, else PIC objects from an old
19808 # archive will be linked into the output, leading to subtle bugs.
19809 postdeps_CXX='-lCstd -lCrun'
19815 case " $postdeps_CXX " in
19816 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19819 lt_prog_compiler_wl_CXX=
19820 lt_prog_compiler_pic_CXX=
19821 lt_prog_compiler_static_CXX=
19823 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19824 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19826 # C++ specific cases for pic, static, wl, etc.
19827 if test "$GXX" = yes; then
19828 lt_prog_compiler_wl_CXX='-Wl,'
19829 lt_prog_compiler_static_CXX='-static'
19833 # All AIX code is PIC.
19834 if test "$host_cpu" = ia64; then
19835 # AIX 5 now supports IA64 processor
19836 lt_prog_compiler_static_CXX='-Bstatic'
19840 # FIXME: we need at least 68020 code to build shared libraries, but
19841 # adding the `-m68020' flag to GCC prevents building anything better,
19843 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19845 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19846 # PIC is the default for these OSes.
19848 mingw* | os2* | pw32*)
19849 # This hack is so that the source file can tell whether it is being
19850 # built for inclusion in a dll (and should export symbols for example).
19851 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19853 darwin* | rhapsody*)
19854 # PIC is the default on this platform
19855 # Common symbols not allowed in MH_DYLIB files
19856 lt_prog_compiler_pic_CXX='-fno-common'
19859 # DJGPP does not support shared libraries at all
19860 lt_prog_compiler_pic_CXX=
19863 if test -d /usr/nec; then
19864 lt_prog_compiler_pic_CXX=-Kconform_pic
19868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19869 # not for PA HP-UX.
19874 lt_prog_compiler_pic_CXX='-fPIC'
19879 lt_prog_compiler_pic_CXX='-fPIC'
19885 # All AIX code is PIC.
19886 if test "$host_cpu" = ia64; then
19887 # AIX 5 now supports IA64 processor
19888 lt_prog_compiler_static_CXX='-Bstatic'
19890 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19894 case $cc_basename in
19896 # Green Hills C++ Compiler
19897 # _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"
19902 # PIC is the default on this platform
19903 # Common symbols not allowed in MH_DYLIB files
19904 case $cc_basename in
19906 lt_prog_compiler_pic_CXX='-qnocommon'
19907 lt_prog_compiler_wl_CXX='-Wl,'
19912 case $cc_basename in
19914 lt_prog_compiler_pic_CXX='-KPIC'
19917 # Green Hills C++ Compiler
19918 lt_prog_compiler_pic_CXX='-pic'
19924 freebsd* | kfreebsd*-gnu | dragonfly*)
19925 # FreeBSD uses GNU C++
19927 hpux9* | hpux10* | hpux11*)
19928 case $cc_basename in
19930 lt_prog_compiler_wl_CXX='-Wl,'
19931 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19932 if test "$host_cpu" != ia64; then
19933 lt_prog_compiler_pic_CXX='+Z'
19937 lt_prog_compiler_wl_CXX='-Wl,'
19938 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19944 lt_prog_compiler_pic_CXX='+Z'
19952 irix5* | irix6* | nonstopux*)
19953 case $cc_basename in
19955 lt_prog_compiler_wl_CXX='-Wl,'
19956 lt_prog_compiler_static_CXX='-non_shared'
19957 # CC pic flag -KPIC is the default.
19964 case $cc_basename in
19967 lt_prog_compiler_wl_CXX='--backend -Wl,'
19968 lt_prog_compiler_pic_CXX='-fPIC'
19972 lt_prog_compiler_wl_CXX='-Wl,'
19973 lt_prog_compiler_pic_CXX='-KPIC'
19974 lt_prog_compiler_static_CXX='-static'
19977 # Portland Group C++ compiler.
19978 lt_prog_compiler_wl_CXX='-Wl,'
19979 lt_prog_compiler_pic_CXX='-fpic'
19980 lt_prog_compiler_static_CXX='-Bstatic'
19984 # Make sure the PIC flag is empty. It appears that all Alpha
19985 # Linux and Compaq Tru64 Unix objects are PIC.
19986 lt_prog_compiler_pic_CXX=
19987 lt_prog_compiler_static_CXX='-non_shared'
19998 case $cc_basename in
20000 lt_prog_compiler_pic_CXX='-W c,exportall'
20008 osf3* | osf4* | osf5*)
20009 case $cc_basename in
20011 lt_prog_compiler_wl_CXX='--backend -Wl,'
20014 # Rational C++ 2.4.1
20015 lt_prog_compiler_pic_CXX='-pic'
20018 # Digital/Compaq C++
20019 lt_prog_compiler_wl_CXX='-Wl,'
20020 # Make sure the PIC flag is empty. It appears that all Alpha
20021 # Linux and Compaq Tru64 Unix objects are PIC.
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX='-non_shared'
20032 case $cc_basename in
20034 lt_prog_compiler_pic_CXX='-fPIC'
20041 case $cc_basename in
20043 # Sun C++ 4.2, 5.x and Centerline C++
20044 lt_prog_compiler_pic_CXX='-KPIC'
20045 lt_prog_compiler_static_CXX='-Bstatic'
20046 lt_prog_compiler_wl_CXX='-Qoption ld '
20049 # Green Hills C++ Compiler
20050 lt_prog_compiler_pic_CXX='-PIC'
20057 case $cc_basename in
20060 lt_prog_compiler_pic_CXX='-pic'
20061 lt_prog_compiler_static_CXX='-Bstatic'
20065 lt_prog_compiler_pic_CXX='-pic'
20072 case $cc_basename in
20074 # NonStop-UX NCC 3.20
20075 lt_prog_compiler_pic_CXX='-KPIC'
20086 lt_prog_compiler_can_build_shared_CXX=no
20091 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20092 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
20095 # Check to make sure the PIC flag actually works.
20097 if test -n "$lt_prog_compiler_pic_CXX"; then
20099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
20101 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 lt_prog_compiler_pic_works_CXX=no
20105 ac_outfile=conftest.$ac_objext
20106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20107 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20108 # Insert the option either (1) after the last *FLAGS variable, or
20109 # (2) before a word containing "conftest.", or (3) at the end.
20110 # Note that $ac_compile itself does not contain backslashes and begins
20111 # with a dollar sign (not a hyphen), so the echo should work correctly.
20112 # The option is referenced via a variable to avoid confusing sed.
20113 lt_compile=`echo "$ac_compile" | $SED \
20114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20116 -e 's:$: $lt_compiler_flag:'`
20117 (eval echo "\"\$as_me:20117: $lt_compile\"" >&5)
20118 (eval "$lt_compile" 2>conftest.err)
20120 cat conftest.err >&5
20121 echo "$as_me:20121: \$? = $ac_status" >&5
20122 if (exit $ac_status) && test -s "$ac_outfile"; then
20123 # The compiler can only warn and ignore the option if not recognized
20124 # So say no if there are warnings other than the usual output.
20125 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20126 $SED '/^$/d' conftest.err >conftest.er2
20127 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20128 lt_prog_compiler_pic_works_CXX=yes
20134 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20135 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
20137 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20138 case $lt_prog_compiler_pic_CXX in
20140 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20143 lt_prog_compiler_pic_CXX=
20144 lt_prog_compiler_can_build_shared_CXX=no
20149 # For platforms which do not support PIC, -DPIC is meaningless:
20151 lt_prog_compiler_pic_CXX=
20154 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20158 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20159 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20160 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 lt_cv_prog_compiler_c_o_CXX=no
20164 $rm -r conftest 2>/dev/null
20168 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20170 lt_compiler_flag="-o out/conftest2.$ac_objext"
20171 # Insert the option either (1) after the last *FLAGS variable, or
20172 # (2) before a word containing "conftest.", or (3) at the end.
20173 # Note that $ac_compile itself does not contain backslashes and begins
20174 # with a dollar sign (not a hyphen), so the echo should work correctly.
20175 lt_compile=`echo "$ac_compile" | $SED \
20176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20178 -e 's:$: $lt_compiler_flag:'`
20179 (eval echo "\"\$as_me:20179: $lt_compile\"" >&5)
20180 (eval "$lt_compile" 2>out/conftest.err)
20182 cat out/conftest.err >&5
20183 echo "$as_me:20183: \$? = $ac_status" >&5
20184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20186 # The compiler can only warn and ignore the option if not recognized
20187 # So say no if there are warnings
20188 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
20189 $SED '/^$/d' out/conftest.err >out/conftest.er2
20190 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20191 lt_cv_prog_compiler_c_o_CXX=yes
20196 # SGI C++ compiler will create directory out/ii_files/ for
20197 # template instantiation
20198 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20199 $rm out/* && rmdir out
20205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
20209 hard_links="nottested"
20210 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20211 # do not overwrite the value of need_locks provided by the user
20212 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20218 ln conftest.a conftest.b 2>&5 || hard_links=no
20219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20220 echo "$as_me:$LINENO: result: $hard_links" >&5
20221 echo "${ECHO_T}$hard_links" >&6
20222 if test "$hard_links" = no; then
20223 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20231 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20234 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20237 # If we're using GNU nm, then we don't want the "-C" option.
20238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20240 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'
20242 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'
20246 export_symbols_cmds_CXX="$ltdll_cmds"
20249 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'
20252 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20256 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20257 echo "${ECHO_T}$ld_shlibs_CXX" >&6
20258 test "$ld_shlibs_CXX" = no && can_build_shared=no
20260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20261 if test "$GCC" = yes; then
20262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20266 # Do we need to explicitly link libc?
20268 case "x$archive_cmds_need_lc_CXX" in
20270 # Assume -lc should be added
20271 archive_cmds_need_lc_CXX=yes
20273 if test "$enable_shared" = yes && test "$GCC" = yes; then
20274 case $archive_cmds_CXX in
20276 # FIXME: we may have to deal with multi-command sequences.
20279 # Test whether the compiler implicitly links with -lc since on some
20280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20281 # to ld, don't add -lc before -lgcc.
20282 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288 (eval $ac_compile) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } 2>conftest.err; then
20294 libobjs=conftest.$ac_objext
20296 wl=$lt_prog_compiler_wl_CXX
20302 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20303 allow_undefined_flag_CXX=
20304 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20305 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }
20310 archive_cmds_need_lc_CXX=no
20312 archive_cmds_need_lc_CXX=yes
20314 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20316 cat conftest.err 1>&5
20319 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20320 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
20327 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20329 library_names_spec=
20330 libname_spec='lib$name'
20334 postuninstall_cmds=
20338 shlibpath_overrides_runpath=unknown
20340 dynamic_linker="$host_os ld.so"
20341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20342 if test "$GCC" = yes; then
20343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20344 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20345 # if the path contains ";" then we assume it to be the separator
20346 # otherwise default to the standard path separator (i.e. ":") - it is
20347 # assumed that no part of a normal pathname contains ";" but that should
20348 # okay in the real world where ";" in dirpaths is itself problematic.
20349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20356 need_lib_prefix=unknown
20357 hardcode_into_libs=no
20359 # when you set need_version to no, make sure it does not cause -set_version
20360 # flags to be left without arguments
20361 need_version=unknown
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20367 shlibpath_var=LIBPATH
20369 # AIX 3 has no versioning support, so we append a major version to the name.
20370 soname_spec='${libname}${release}${shared_ext}$major'
20377 hardcode_into_libs=yes
20378 if test "$host_cpu" = ia64; then
20379 # AIX 5 supports IA64
20380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20381 shlibpath_var=LD_LIBRARY_PATH
20383 # With GCC up to 2.95.x, collect2 would create an import file
20384 # for dependence libraries. The import file would start with
20385 # the line `#! .'. This would cause the generated library to
20386 # depend on `.', always an invalid library. This was fixed in
20387 # development snapshots of GCC prior to 3.0.
20389 aix4 | aix4.[01] | aix4.[01].*)
20390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20392 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20395 can_build_shared=no
20399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20400 # soname into executable. Probably we can add versioning support to
20401 # collect2, so additional links can be useful in future.
20402 if test "$aix_use_runtimelinking" = yes; then
20403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20404 # instead of lib<name>.a to let people know that these are not
20405 # typical AIX shared libraries.
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20408 # We preserve .a as extension for shared libraries through AIX4.2
20409 # and later when we are not doing run time linking.
20410 library_names_spec='${libname}${release}.a $libname.a'
20411 soname_spec='${libname}${release}${shared_ext}$major'
20413 shlibpath_var=LIBPATH
20418 library_names_spec='$libname.ixlibrary $libname.a'
20419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20420 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'
20424 library_names_spec='${libname}${shared_ext}'
20425 dynamic_linker="$host_os ld.so"
20426 shlibpath_var=LIBRARY_PATH
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20438 # the default ld.so.conf also contains /usr/contrib/lib and
20439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20440 # libtool to hard-code these into programs
20443 cygwin* | mingw* | pw32*)
20444 version_type=windows
20449 case $GCC,$host_os in
20450 yes,cygwin* | yes,mingw* | yes,pw32*)
20451 library_names_spec='$libname.dll.a'
20452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20453 postinstall_cmds='base_file=`basename \${file}`~
20454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20455 dldir=$destdir/`dirname \$dlpath`~
20456 test -d \$dldir || mkdir -p \$dldir~
20457 $install_prog $dir/$dlname \$dldir/$dlname~
20458 chmod a+x \$dldir/$dlname'
20459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20460 dlpath=$dir/\$dldll~
20462 shlibpath_overrides_runpath=yes
20466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20468 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20471 # MinGW DLLs use traditional 'lib' prefix
20472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20474 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20475 # It is most probably a Windows format PATH printed by
20476 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20477 # path with ; separators, and with drive letters. We can handle the
20478 # drive letters (cygwin fileutils understands them), so leave them,
20479 # especially as we might pass files found there to a mingw objdump,
20480 # which wouldn't understand a cygwinified path. Ahh.
20481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20487 # pw32 DLLs use 'pw' prefix rather than 'lib'
20488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20494 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20497 dynamic_linker='Win32 ld.exe'
20498 # FIXME: first we should search . and the directory the executable is in
20502 darwin* | rhapsody*)
20503 dynamic_linker="$host_os dyld"
20504 version_type=darwin
20507 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20508 soname_spec='${libname}${release}${major}$shared_ext'
20509 shlibpath_overrides_runpath=yes
20510 shlibpath_var=DYLD_LIBRARY_PATH
20511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20512 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20513 if test "$GCC" = yes; then
20514 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"`
20516 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20526 soname_spec='${libname}${release}${shared_ext}$major'
20527 shlibpath_var=LD_LIBRARY_PATH
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 shlibpath_overrides_runpath=no
20542 hardcode_into_libs=yes
20543 dynamic_linker='GNU ld.so'
20546 freebsd* | dragonfly*)
20547 # DragonFly does not have aout. When/if they implement a new
20548 # versioning mechanism, adjust this.
20549 if test -x /usr/bin/objformat; then
20550 objformat=`/usr/bin/objformat`
20553 freebsd[123]*) objformat=aout ;;
20554 *) objformat=elf ;;
20557 version_type=freebsd-$objformat
20558 case $version_type in
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20569 shlibpath_var=LD_LIBRARY_PATH
20572 shlibpath_overrides_runpath=yes
20574 freebsd3.[01]* | freebsdelf3.[01]*)
20575 shlibpath_overrides_runpath=yes
20576 hardcode_into_libs=yes
20579 shlibpath_overrides_runpath=no
20580 hardcode_into_libs=yes
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20591 shlibpath_var=LD_LIBRARY_PATH
20592 hardcode_into_libs=yes
20595 hpux9* | hpux10* | hpux11*)
20596 # Give a soname corresponding to the major version so that dld.sl refuses to
20597 # link against other versions.
20604 hardcode_into_libs=yes
20605 dynamic_linker="$host_os dld.so"
20606 shlibpath_var=LD_LIBRARY_PATH
20607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609 soname_spec='${libname}${release}${shared_ext}$major'
20610 if test "X$HPUX_IA64_MODE" = X32; then
20611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20619 hardcode_into_libs=yes
20620 dynamic_linker="$host_os dld.sl"
20621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20630 dynamic_linker="$host_os dld.sl"
20631 shlibpath_var=SHLIB_PATH
20632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20634 soname_spec='${libname}${release}${shared_ext}$major'
20637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20638 postinstall_cmds='chmod 555 $lib'
20641 irix5* | irix6* | nonstopux*)
20643 nonstopux*) version_type=nonstopux ;;
20645 if test "$lt_cv_prog_gnu_ld" = yes; then
20653 soname_spec='${libname}${release}${shared_ext}$major'
20654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20656 irix5* | nonstopux*)
20657 libsuff= shlibsuff=
20660 case $LD in # libtool.m4 will add one of these switches to LD
20661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20662 libsuff= shlibsuff= libmagic=32-bit;;
20663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20664 libsuff=32 shlibsuff=N32 libmagic=N32;;
20665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20667 *) libsuff= shlibsuff= libmagic=never-match;;
20671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20672 shlibpath_overrides_runpath=no
20673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20675 hardcode_into_libs=yes
20678 # No shared lib support for Linux oldld, aout, or coff.
20679 linux*oldld* | linux*aout* | linux*coff*)
20683 # This must be Linux ELF.
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689 soname_spec='${libname}${release}${shared_ext}$major'
20690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20691 shlibpath_var=LD_LIBRARY_PATH
20692 shlibpath_overrides_runpath=no
20693 # This implies no fast_install, which is unacceptable.
20694 # Some rework will be needed to allow for fast_install
20695 # before this can be enabled.
20696 hardcode_into_libs=yes
20698 # Append ld.so.conf contents to the search path
20699 if test -f /etc/ld.so.conf; then
20700 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' ' '`
20701 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20704 # We used to test for /lib/ld.so.1 and disable shared libraries on
20705 # powerpc, because MkLinux only supported shared libraries with the
20706 # GNU dynamic linker. Since this was broken with cross compilers,
20707 # most powerpc-linux boxes support dynamic linking these days and
20708 # people can always --disable-shared, the test was removed, and we
20709 # assume the GNU/Linux dynamic linker is in use.
20710 dynamic_linker='GNU/Linux ld.so'
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath=no
20721 hardcode_into_libs=yes
20722 dynamic_linker='GNU ld.so'
20729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20732 dynamic_linker='NetBSD (a.out) ld.so'
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20735 soname_spec='${libname}${release}${shared_ext}$major'
20736 dynamic_linker='NetBSD ld.elf_so'
20738 shlibpath_var=LD_LIBRARY_PATH
20739 shlibpath_overrides_runpath=yes
20740 hardcode_into_libs=yes
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20746 shlibpath_var=LD_LIBRARY_PATH
20747 shlibpath_overrides_runpath=yes
20754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20755 soname_spec='${libname}${release}${shared_ext}$major'
20756 shlibpath_var=LD_LIBRARY_PATH
20757 shlibpath_overrides_runpath=yes
20763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20765 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20766 *) need_version=no ;;
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20770 shlibpath_var=LD_LIBRARY_PATH
20771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20773 openbsd2.[89] | openbsd2.[89].*)
20774 shlibpath_overrides_runpath=no
20777 shlibpath_overrides_runpath=yes
20781 shlibpath_overrides_runpath=yes
20786 libname_spec='$name'
20789 library_names_spec='$libname${shared_ext} $libname.a'
20790 dynamic_linker='OS/2 ld.exe'
20791 shlibpath_var=LIBPATH
20794 osf3* | osf4* | osf5*)
20798 soname_spec='${libname}${release}${shared_ext}$major'
20799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800 shlibpath_var=LD_LIBRARY_PATH
20801 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20802 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809 shlibpath_var=LD_LIBRARY_PATH
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817 soname_spec='${libname}${release}${shared_ext}$major'
20818 shlibpath_var=LD_LIBRARY_PATH
20819 shlibpath_overrides_runpath=yes
20820 hardcode_into_libs=yes
20821 # ldd complains unless libraries are executable
20822 postinstall_cmds='chmod +x $lib'
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20828 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20829 shlibpath_var=LD_LIBRARY_PATH
20830 shlibpath_overrides_runpath=yes
20831 if test "$with_gnu_ld" = yes; then
20837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840 soname_spec='${libname}${release}${shared_ext}$major'
20841 shlibpath_var=LD_LIBRARY_PATH
20842 case $host_vendor in
20844 shlibpath_overrides_runpath=no
20846 export_dynamic_flag_spec='${wl}-Blargedynsym'
20847 runpath_var=LD_RUN_PATH
20855 shlibpath_overrides_runpath=no
20856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20862 if test -d /usr/nec ;then
20864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20865 soname_spec='$libname${shared_ext}.$major'
20866 shlibpath_var=LD_LIBRARY_PATH
20872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20873 soname_spec='${libname}${release}${shared_ext}$major'
20874 shlibpath_var=LD_LIBRARY_PATH
20881 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20882 echo "${ECHO_T}$dynamic_linker" >&6
20883 test "$dynamic_linker" = no && can_build_shared=no
20885 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20887 hardcode_action_CXX=
20888 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20889 test -n "$runpath_var_CXX" || \
20890 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20892 # We can hardcode non-existant directories.
20893 if test "$hardcode_direct_CXX" != no &&
20894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20895 # have to relink, otherwise we might link with an installed library
20896 # when we should be linking with a yet-to-be-installed one
20897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20898 test "$hardcode_minus_L_CXX" != no; then
20899 # Linking always hardcodes the temporary library directory.
20900 hardcode_action_CXX=relink
20902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20903 hardcode_action_CXX=immediate
20906 # We cannot hardcode anything, or else we can only hardcode existing
20908 hardcode_action_CXX=unsupported
20910 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20911 echo "${ECHO_T}$hardcode_action_CXX" >&6
20913 if test "$hardcode_action_CXX" = relink; then
20914 # Fast installation is not supported
20915 enable_fast_install=no
20916 elif test "$shlibpath_overrides_runpath" = yes ||
20917 test "$enable_shared" = no; then
20918 # Fast installation is not necessary
20919 enable_fast_install=needless
20924 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20925 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20926 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20927 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20928 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20929 echo "$as_me:$LINENO: result: yes" >&5
20930 echo "${ECHO_T}yes" >&6
20932 # FIXME - insert some real tests, host_os isn't really good enough
20935 if test -n "$STRIP" ; then
20936 striplib="$STRIP -x"
20937 echo "$as_me:$LINENO: result: yes" >&5
20938 echo "${ECHO_T}yes" >&6
20940 echo "$as_me:$LINENO: result: no" >&5
20941 echo "${ECHO_T}no" >&6
20945 echo "$as_me:$LINENO: result: no" >&5
20946 echo "${ECHO_T}no" >&6
20951 if test "x$enable_dlopen" != xyes; then
20952 enable_dlopen=unknown
20953 enable_dlopen_self=unknown
20954 enable_dlopen_self_static=unknown
20961 lt_cv_dlopen="load_add_on"
20963 lt_cv_dlopen_self=yes
20967 lt_cv_dlopen="LoadLibrary"
20972 lt_cv_dlopen="dlopen"
20977 # if libdl is installed we need to link against it
20978 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20979 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20980 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 ac_check_lib_save_LIBS=$LIBS
20985 cat >conftest.$ac_ext <<_ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20992 /* Override any gcc2 internal prototype to avoid an error. */
20996 /* We use char because int might match the return type of a gcc2
20997 builtin and then its argument prototype would still apply. */
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21009 (eval $ac_link) 2>conftest.er1
21011 grep -v '^ *+' conftest.er1 >conftest.err
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -z "$ac_cxx_werror_flag"
21017 || test ! -s conftest.err'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; } &&
21023 { ac_try='test -s conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_lib_dl_dlopen=yes
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ac_cv_lib_dl_dlopen=no
21036 rm -f conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21038 LIBS=$ac_check_lib_save_LIBS
21040 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21041 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21042 if test $ac_cv_lib_dl_dlopen = yes; then
21043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21046 lt_cv_dlopen="dyld"
21048 lt_cv_dlopen_self=yes
21055 echo "$as_me:$LINENO: checking for shl_load" >&5
21056 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
21057 if test "${ac_cv_func_shl_load+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21068 #define shl_load innocuous_shl_load
21070 /* System header to define __stub macros and hopefully few prototypes,
21071 which can conflict with char shl_load (); below.
21072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21073 <limits.h> exists even on freestanding compilers. */
21076 # include <limits.h>
21078 # include <assert.h>
21083 /* Override any gcc2 internal prototype to avoid an error. */
21088 /* We use char because int might match the return type of a gcc2
21089 builtin and then its argument prototype would still apply. */
21091 /* The GNU C library defines this for functions which it implements
21092 to always fail with ENOSYS. Some functions are actually named
21093 something starting with __ and the normal name is an alias. */
21094 #if defined (__stub_shl_load) || defined (__stub___shl_load)
21097 char (*f) () = shl_load;
21106 return f != shl_load;
21111 rm -f conftest.$ac_objext conftest$ac_exeext
21112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21113 (eval $ac_link) 2>conftest.er1
21115 grep -v '^ *+' conftest.er1 >conftest.err
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
21120 { ac_try='test -z "$ac_cxx_werror_flag"
21121 || test ! -s conftest.err'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; } &&
21127 { ac_try='test -s conftest$ac_exeext'
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133 ac_cv_func_shl_load=yes
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ac_cv_func_shl_load=no
21140 rm -f conftest.err conftest.$ac_objext \
21141 conftest$ac_exeext conftest.$ac_ext
21143 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21144 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21145 if test $ac_cv_func_shl_load = yes; then
21146 lt_cv_dlopen="shl_load"
21148 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21149 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21150 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 ac_check_lib_save_LIBS=$LIBS
21155 cat >conftest.$ac_ext <<_ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21162 /* Override any gcc2 internal prototype to avoid an error. */
21166 /* We use char because int might match the return type of a gcc2
21167 builtin and then its argument prototype would still apply. */
21177 rm -f conftest.$ac_objext conftest$ac_exeext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21179 (eval $ac_link) 2>conftest.er1
21181 grep -v '^ *+' conftest.er1 >conftest.err
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -z "$ac_cxx_werror_flag"
21187 || test ! -s conftest.err'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest$ac_exeext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_lib_dld_shl_load=yes
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 ac_cv_lib_dld_shl_load=no
21206 rm -f conftest.err conftest.$ac_objext \
21207 conftest$ac_exeext conftest.$ac_ext
21208 LIBS=$ac_check_lib_save_LIBS
21210 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21211 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21212 if test $ac_cv_lib_dld_shl_load = yes; then
21213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21215 echo "$as_me:$LINENO: checking for dlopen" >&5
21216 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21217 if test "${ac_cv_func_dlopen+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21228 #define dlopen innocuous_dlopen
21230 /* System header to define __stub macros and hopefully few prototypes,
21231 which can conflict with char dlopen (); below.
21232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21233 <limits.h> exists even on freestanding compilers. */
21236 # include <limits.h>
21238 # include <assert.h>
21243 /* Override any gcc2 internal prototype to avoid an error. */
21248 /* We use char because int might match the return type of a gcc2
21249 builtin and then its argument prototype would still apply. */
21251 /* The GNU C library defines this for functions which it implements
21252 to always fail with ENOSYS. Some functions are actually named
21253 something starting with __ and the normal name is an alias. */
21254 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21257 char (*f) () = dlopen;
21266 return f != dlopen;
21271 rm -f conftest.$ac_objext conftest$ac_exeext
21272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21273 (eval $ac_link) 2>conftest.er1
21275 grep -v '^ *+' conftest.er1 >conftest.err
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
21280 { ac_try='test -z "$ac_cxx_werror_flag"
21281 || test ! -s conftest.err'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest$ac_exeext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_cv_func_dlopen=yes
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21298 ac_cv_func_dlopen=no
21300 rm -f conftest.err conftest.$ac_objext \
21301 conftest$ac_exeext conftest.$ac_ext
21303 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21304 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21305 if test $ac_cv_func_dlopen = yes; then
21306 lt_cv_dlopen="dlopen"
21308 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21309 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21310 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 ac_check_lib_save_LIBS=$LIBS
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21322 /* Override any gcc2 internal prototype to avoid an error. */
21326 /* We use char because int might match the return type of a gcc2
21327 builtin and then its argument prototype would still apply. */
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -z "$ac_cxx_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try='test -s conftest$ac_exeext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_lib_dl_dlopen=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_cv_lib_dl_dlopen=no
21366 rm -f conftest.err conftest.$ac_objext \
21367 conftest$ac_exeext conftest.$ac_ext
21368 LIBS=$ac_check_lib_save_LIBS
21370 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21372 if test $ac_cv_lib_dl_dlopen = yes; then
21373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21375 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21376 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21377 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 ac_check_lib_save_LIBS=$LIBS
21381 LIBS="-lsvld $LIBS"
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21389 /* Override any gcc2 internal prototype to avoid an error. */
21393 /* We use char because int might match the return type of a gcc2
21394 builtin and then its argument prototype would still apply. */
21404 rm -f conftest.$ac_objext conftest$ac_exeext
21405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21406 (eval $ac_link) 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } &&
21413 { ac_try='test -z "$ac_cxx_werror_flag"
21414 || test ! -s conftest.err'
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; } &&
21420 { ac_try='test -s conftest$ac_exeext'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 ac_cv_lib_svld_dlopen=yes
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_cv_lib_svld_dlopen=no
21433 rm -f conftest.err conftest.$ac_objext \
21434 conftest$ac_exeext conftest.$ac_ext
21435 LIBS=$ac_check_lib_save_LIBS
21437 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21438 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21439 if test $ac_cv_lib_svld_dlopen = yes; then
21440 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21442 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21443 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21444 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 ac_check_lib_save_LIBS=$LIBS
21449 cat >conftest.$ac_ext <<_ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21456 /* Override any gcc2 internal prototype to avoid an error. */
21460 /* We use char because int might match the return type of a gcc2
21461 builtin and then its argument prototype would still apply. */
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473 (eval $ac_link) 2>conftest.er1
21475 grep -v '^ *+' conftest.er1 >conftest.err
21477 cat conftest.err >&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } &&
21480 { ac_try='test -z "$ac_cxx_werror_flag"
21481 || test ! -s conftest.err'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; } &&
21487 { ac_try='test -s conftest$ac_exeext'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21493 ac_cv_lib_dld_dld_link=yes
21495 echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21498 ac_cv_lib_dld_dld_link=no
21500 rm -f conftest.err conftest.$ac_objext \
21501 conftest$ac_exeext conftest.$ac_ext
21502 LIBS=$ac_check_lib_save_LIBS
21504 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21505 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21506 if test $ac_cv_lib_dld_dld_link = yes; then
21507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21528 if test "x$lt_cv_dlopen" != xno; then
21534 case $lt_cv_dlopen in
21536 save_CPPFLAGS="$CPPFLAGS"
21537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21539 save_LDFLAGS="$LDFLAGS"
21540 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21543 LIBS="$lt_cv_dlopen_libs $LIBS"
21545 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21546 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21547 if test "${lt_cv_dlopen_self+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 if test "$cross_compiling" = yes; then :
21551 lt_cv_dlopen_self=cross
21553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21554 lt_status=$lt_dlunknown
21555 cat > conftest.$ac_ext <<EOF
21556 #line 21556 "configure"
21557 #include "confdefs.h"
21566 # define LT_DLGLOBAL RTLD_GLOBAL
21569 # define LT_DLGLOBAL DL_GLOBAL
21571 # define LT_DLGLOBAL 0
21575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21576 find out it does not work in some platform. */
21577 #ifndef LT_DLLAZY_OR_NOW
21579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21582 # define LT_DLLAZY_OR_NOW DL_LAZY
21585 # define LT_DLLAZY_OR_NOW RTLD_NOW
21588 # define LT_DLLAZY_OR_NOW DL_NOW
21590 # define LT_DLLAZY_OR_NOW 0
21598 extern "C" void exit (int);
21601 void fnord() { int i=42;}
21604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21605 int status = $lt_dlunknown;
21609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21611 /* dlclose (self); */
21617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618 (eval $ac_link) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21622 (./conftest; exit; ) >&5 2>/dev/null
21624 case x$lt_status in
21625 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21626 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21627 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21630 # compilation failed
21631 lt_cv_dlopen_self=no
21638 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21639 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21641 if test "x$lt_cv_dlopen_self" = xyes; then
21642 LDFLAGS="$LDFLAGS $link_static_flag"
21643 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21644 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21645 if test "${lt_cv_dlopen_self_static+set}" = set; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 if test "$cross_compiling" = yes; then :
21649 lt_cv_dlopen_self_static=cross
21651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21652 lt_status=$lt_dlunknown
21653 cat > conftest.$ac_ext <<EOF
21654 #line 21654 "configure"
21655 #include "confdefs.h"
21664 # define LT_DLGLOBAL RTLD_GLOBAL
21667 # define LT_DLGLOBAL DL_GLOBAL
21669 # define LT_DLGLOBAL 0
21673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21674 find out it does not work in some platform. */
21675 #ifndef LT_DLLAZY_OR_NOW
21677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21680 # define LT_DLLAZY_OR_NOW DL_LAZY
21683 # define LT_DLLAZY_OR_NOW RTLD_NOW
21686 # define LT_DLLAZY_OR_NOW DL_NOW
21688 # define LT_DLLAZY_OR_NOW 0
21696 extern "C" void exit (int);
21699 void fnord() { int i=42;}
21702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21703 int status = $lt_dlunknown;
21707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21708 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21709 /* dlclose (self); */
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716 (eval $ac_link) 2>&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21720 (./conftest; exit; ) >&5 2>/dev/null
21722 case x$lt_status in
21723 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21724 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21725 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21728 # compilation failed
21729 lt_cv_dlopen_self_static=no
21736 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21737 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21740 CPPFLAGS="$save_CPPFLAGS"
21741 LDFLAGS="$save_LDFLAGS"
21746 case $lt_cv_dlopen_self in
21747 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21748 *) enable_dlopen_self=unknown ;;
21751 case $lt_cv_dlopen_self_static in
21752 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21753 *) enable_dlopen_self_static=unknown ;;
21758 # The else clause should only fire when bootstrapping the
21759 # libtool distribution, otherwise you forgot to ship ltmain.sh
21760 # with your package, and you will get complaints that there are
21761 # no rules to generate ltmain.sh.
21762 if test -f "$ltmain"; then
21763 # See if we are running on zsh, and set the options which allow our commands through
21764 # without removal of \ escapes.
21765 if test -n "${ZSH_VERSION+set}" ; then
21766 setopt NO_GLOB_SUBST
21768 # Now quote all the things that may contain metacharacters while being
21769 # careful not to overquote the AC_SUBSTed values. We take copies of the
21770 # variables and quote the copies for generation of the libtool script.
21771 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21773 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21774 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21775 deplibs_check_method reload_flag reload_cmds need_locks \
21776 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21777 lt_cv_sys_global_symbol_to_c_name_address \
21778 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21779 old_postinstall_cmds old_postuninstall_cmds \
21783 lt_prog_compiler_wl_CXX \
21784 lt_prog_compiler_pic_CXX \
21785 lt_prog_compiler_static_CXX \
21786 lt_prog_compiler_no_builtin_flag_CXX \
21787 export_dynamic_flag_spec_CXX \
21788 thread_safe_flag_spec_CXX \
21789 whole_archive_flag_spec_CXX \
21790 enable_shared_with_static_runtimes_CXX \
21791 old_archive_cmds_CXX \
21792 old_archive_from_new_cmds_CXX \
21793 predep_objects_CXX \
21794 postdep_objects_CXX \
21797 compiler_lib_search_path_CXX \
21799 archive_expsym_cmds_CXX \
21800 postinstall_cmds_CXX \
21801 postuninstall_cmds_CXX \
21802 old_archive_from_expsyms_cmds_CXX \
21803 allow_undefined_flag_CXX \
21804 no_undefined_flag_CXX \
21805 export_symbols_cmds_CXX \
21806 hardcode_libdir_flag_spec_CXX \
21807 hardcode_libdir_flag_spec_ld_CXX \
21808 hardcode_libdir_separator_CXX \
21809 hardcode_automatic_CXX \
21811 module_expsym_cmds_CXX \
21812 lt_cv_prog_compiler_c_o_CXX \
21813 exclude_expsyms_CXX \
21814 include_expsyms_CXX; do
21817 old_archive_cmds_CXX | \
21818 old_archive_from_new_cmds_CXX | \
21819 archive_cmds_CXX | \
21820 archive_expsym_cmds_CXX | \
21821 module_cmds_CXX | \
21822 module_expsym_cmds_CXX | \
21823 old_archive_from_expsyms_cmds_CXX | \
21824 export_symbols_cmds_CXX | \
21825 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21826 postinstall_cmds | postuninstall_cmds | \
21827 old_postinstall_cmds | old_postuninstall_cmds | \
21828 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21829 # Double-quote double-evaled strings.
21830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21839 *'\$0 --fallback-echo"')
21840 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21846 cat <<__EOF__ >> "$cfgfile"
21847 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21851 # Shell to use when invoking shell scripts.
21854 # Whether or not to build shared libraries.
21855 build_libtool_libs=$enable_shared
21857 # Whether or not to build static libraries.
21858 build_old_libs=$enable_static
21860 # Whether or not to add -lc for building shared libraries.
21861 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21863 # Whether or not to disallow shared libs when runtime libs are static
21864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21866 # Whether or not to optimize for fast installation.
21867 fast_install=$enable_fast_install
21870 host_alias=$host_alias
21874 # The build system.
21875 build_alias=$build_alias
21879 # An echo program that does not interpret backslashes.
21884 AR_FLAGS=$lt_AR_FLAGS
21889 # A language-specific compiler.
21890 CC=$lt_compiler_CXX
21892 # Is the compiler the GNU C compiler?
21898 # The linker used to build libraries.
21901 # Whether we need hard or soft links.
21904 # A BSD-compatible nm program.
21907 # A symbol stripping program
21910 # Used to examine libraries when file_magic_cmd begins "file"
21911 MAGIC_CMD=$MAGIC_CMD
21913 # Used on cygwin: DLL creation program.
21916 # Used on cygwin: object dumper.
21919 # Used on cygwin: assembler.
21922 # The name of the directory that contains temporary libtool files.
21925 # How to create reloadable object files.
21926 reload_flag=$lt_reload_flag
21927 reload_cmds=$lt_reload_cmds
21929 # How to pass a linker flag through the compiler.
21930 wl=$lt_lt_prog_compiler_wl_CXX
21932 # Object file suffix (normally "o").
21933 objext="$ac_objext"
21935 # Old archive suffix (normally "a").
21938 # Shared library suffix (normally ".so").
21939 shrext_cmds='$shrext_cmds'
21941 # Executable file suffix (normally "").
21944 # Additional compiler flags for building library objects.
21945 pic_flag=$lt_lt_prog_compiler_pic_CXX
21948 # What is the maximum length of a command?
21949 max_cmd_len=$lt_cv_sys_max_cmd_len
21951 # Does compiler simultaneously support -c and -o options?
21952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21954 # Must we lock files when doing compilation?
21955 need_locks=$lt_need_locks
21957 # Do we need the lib prefix for modules?
21958 need_lib_prefix=$need_lib_prefix
21960 # Do we need a version for libraries?
21961 need_version=$need_version
21963 # Whether dlopen is supported.
21964 dlopen_support=$enable_dlopen
21966 # Whether dlopen of programs is supported.
21967 dlopen_self=$enable_dlopen_self
21969 # Whether dlopen of statically linked programs is supported.
21970 dlopen_self_static=$enable_dlopen_self_static
21972 # Compiler flag to prevent dynamic linking.
21973 link_static_flag=$lt_lt_prog_compiler_static_CXX
21975 # Compiler flag to turn off builtin functions.
21976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21978 # Compiler flag to allow reflexive dlopens.
21979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21981 # Compiler flag to generate shared objects directly from archives.
21982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21984 # Compiler flag to generate thread-safe objects.
21985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21987 # Library versioning type.
21988 version_type=$version_type
21990 # Format of library name prefix.
21991 libname_spec=$lt_libname_spec
21993 # List of archive names. First name is the real one, the rest are links.
21994 # The last name is the one that the linker finds with -lNAME.
21995 library_names_spec=$lt_library_names_spec
21997 # The coded name of the library, if different from the real name.
21998 soname_spec=$lt_soname_spec
22000 # Commands used to build and install an old-style archive.
22002 old_archive_cmds=$lt_old_archive_cmds_CXX
22003 old_postinstall_cmds=$lt_old_postinstall_cmds
22004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22006 # Create an old-style archive from a shared archive.
22007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22009 # Create a temporary old-style archive to link instead of a shared archive.
22010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22012 # Commands used to build and install a shared archive.
22013 archive_cmds=$lt_archive_cmds_CXX
22014 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22015 postinstall_cmds=$lt_postinstall_cmds
22016 postuninstall_cmds=$lt_postuninstall_cmds
22018 # Commands used to build a loadable module (assumed same as above if empty)
22019 module_cmds=$lt_module_cmds_CXX
22020 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22022 # Commands to strip libraries.
22023 old_striplib=$lt_old_striplib
22024 striplib=$lt_striplib
22026 # Dependencies to place before the objects being linked to create a
22028 predep_objects=$lt_predep_objects_CXX
22030 # Dependencies to place after the objects being linked to create a
22032 postdep_objects=$lt_postdep_objects_CXX
22034 # Dependencies to place before the objects being linked to create a
22036 predeps=$lt_predeps_CXX
22038 # Dependencies to place after the objects being linked to create a
22040 postdeps=$lt_postdeps_CXX
22042 # The library search path used internally by the compiler when linking
22043 # a shared library.
22044 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22046 # Method to check whether dependent libraries are shared objects.
22047 deplibs_check_method=$lt_deplibs_check_method
22049 # Command to use when deplibs_check_method == file_magic.
22050 file_magic_cmd=$lt_file_magic_cmd
22052 # Flag that allows shared libraries with undefined symbols to be built.
22053 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22055 # Flag that forces no undefined symbols.
22056 no_undefined_flag=$lt_no_undefined_flag_CXX
22058 # Commands used to finish a libtool library installation in a directory.
22059 finish_cmds=$lt_finish_cmds
22061 # Same as above, but a single script fragment to be evaled but not shown.
22062 finish_eval=$lt_finish_eval
22064 # Take the output of nm and produce a listing of raw symbols and C names.
22065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22067 # Transform the output of nm in a proper C declaration
22068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22070 # Transform the output of nm in a C name address pair
22071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22073 # This is the shared library runtime path variable.
22074 runpath_var=$runpath_var
22076 # This is the shared library path variable.
22077 shlibpath_var=$shlibpath_var
22079 # Is shlibpath searched before the hard-coded library search path?
22080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22082 # How to hardcode a shared library path into an executable.
22083 hardcode_action=$hardcode_action_CXX
22085 # Whether we should hardcode library paths into libraries.
22086 hardcode_into_libs=$hardcode_into_libs
22088 # Flag to hardcode \$libdir into a binary during linking.
22089 # This must work even if \$libdir does not exist.
22090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22092 # If ld is used when linking, flag to hardcode \$libdir into
22093 # a binary during linking. This must work even if \$libdir does
22095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22097 # Whether we need a single -rpath flag with a separated argument.
22098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22100 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22101 # resulting binary.
22102 hardcode_direct=$hardcode_direct_CXX
22104 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22105 # resulting binary.
22106 hardcode_minus_L=$hardcode_minus_L_CXX
22108 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22109 # the resulting binary.
22110 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22112 # Set to yes if building a shared library automatically hardcodes DIR into the library
22113 # and all subsequent libraries and executables linked against it.
22114 hardcode_automatic=$hardcode_automatic_CXX
22116 # Variables whose values should be saved in libtool wrapper scripts and
22117 # restored at relink time.
22118 variables_saved_for_relink="$variables_saved_for_relink"
22120 # Whether libtool must link a program against all its dependency libraries.
22121 link_all_deplibs=$link_all_deplibs_CXX
22123 # Compile-time system search path for libraries
22124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22126 # Run-time system search path for libraries
22127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22129 # Fix the shell variable \$srcfile for the compiler.
22130 fix_srcfile_path="$fix_srcfile_path_CXX"
22132 # Set to yes if exported symbols are required.
22133 always_export_symbols=$always_export_symbols_CXX
22135 # The commands to list exported symbols.
22136 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22138 # The commands to extract the exported symbol list from a shared archive.
22139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22141 # Symbols that should not be listed in the preloaded symbols.
22142 exclude_expsyms=$lt_exclude_expsyms_CXX
22144 # Symbols that must always be exported.
22145 include_expsyms=$lt_include_expsyms_CXX
22147 # ### END LIBTOOL TAG CONFIG: $tagname
22153 # If there is no Makefile yet, we rely on a make rule to execute
22154 # `config.status --recheck' to rerun these tests and create the
22155 # libtool script then.
22156 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22157 if test -f "$ltmain_in"; then
22158 test -f Makefile && make "$ltmain"
22164 ac_cpp='$CPP $CPPFLAGS'
22165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22173 with_gnu_ldcxx=$with_gnu_ld
22174 with_gnu_ld=$lt_save_with_gnu_ld
22175 lt_cv_path_LDCXX=$lt_cv_path_LD
22176 lt_cv_path_LD=$lt_save_path_LD
22177 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22178 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22186 if test -n "$F77" && test "X$F77" != "Xno"; then
22189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22194 archive_cmds_need_lc_F77=no
22195 allow_undefined_flag_F77=
22196 always_export_symbols_F77=no
22197 archive_expsym_cmds_F77=
22198 export_dynamic_flag_spec_F77=
22199 hardcode_direct_F77=no
22200 hardcode_libdir_flag_spec_F77=
22201 hardcode_libdir_flag_spec_ld_F77=
22202 hardcode_libdir_separator_F77=
22203 hardcode_minus_L_F77=no
22204 hardcode_automatic_F77=no
22206 module_expsym_cmds_F77=
22207 link_all_deplibs_F77=unknown
22208 old_archive_cmds_F77=$old_archive_cmds
22209 no_undefined_flag_F77=
22210 whole_archive_flag_spec_F77=
22211 enable_shared_with_static_runtimes_F77=no
22213 # Source file extension for f77 test sources.
22216 # Object file extension for compiled f77 test sources.
22220 # Code to be used in simple compile tests
22221 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
22223 # Code to be used in simple link tests
22224 lt_simple_link_test_code=" program t\n end\n"
22226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22228 # If no C compiler was specified, use CC.
22231 # Allow CC to be a program name with arguments.
22235 # save warnings/boilerplate of simple test code
22236 ac_outfile=conftest.$ac_objext
22237 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22239 _lt_compiler_boilerplate=`cat conftest.err`
22242 ac_outfile=conftest.$ac_objext
22243 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22245 _lt_linker_boilerplate=`cat conftest.err`
22249 # Allow CC to be a program name with arguments.
22254 for cc_temp in $compiler""; do
22256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22265 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
22266 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
22267 echo "$as_me:$LINENO: result: $can_build_shared" >&5
22268 echo "${ECHO_T}$can_build_shared" >&6
22270 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
22271 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
22272 test "$can_build_shared" = "no" && enable_shared=no
22274 # On AIX, shared libraries and static libraries use the same namespace, and
22275 # are all built from PIC.
22278 test "$enable_shared" = yes && enable_static=no
22279 if test -n "$RANLIB"; then
22280 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22281 postinstall_cmds='$RANLIB $lib'
22285 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22286 test "$enable_shared" = yes && enable_static=no
22290 echo "$as_me:$LINENO: result: $enable_shared" >&5
22291 echo "${ECHO_T}$enable_shared" >&6
22293 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
22294 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
22295 # Make sure either enable_shared or enable_static is yes.
22296 test "$enable_shared" = yes || enable_static=yes
22297 echo "$as_me:$LINENO: result: $enable_static" >&5
22298 echo "${ECHO_T}$enable_static" >&6
22300 test "$ld_shlibs_F77" = no && can_build_shared=no
22305 lt_prog_compiler_wl_F77=
22306 lt_prog_compiler_pic_F77=
22307 lt_prog_compiler_static_F77=
22309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22312 if test "$GCC" = yes; then
22313 lt_prog_compiler_wl_F77='-Wl,'
22314 lt_prog_compiler_static_F77='-static'
22318 # All AIX code is PIC.
22319 if test "$host_cpu" = ia64; then
22320 # AIX 5 now supports IA64 processor
22321 lt_prog_compiler_static_F77='-Bstatic'
22326 # FIXME: we need at least 68020 code to build shared libraries, but
22327 # adding the `-m68020' flag to GCC prevents building anything better,
22329 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22333 # PIC is the default for these OSes.
22336 mingw* | pw32* | os2*)
22337 # This hack is so that the source file can tell whether it is being
22338 # built for inclusion in a dll (and should export symbols for example).
22339 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22342 darwin* | rhapsody*)
22343 # PIC is the default on this platform
22344 # Common symbols not allowed in MH_DYLIB files
22345 lt_prog_compiler_pic_F77='-fno-common'
22349 # Just because we use GCC doesn't mean we suddenly get shared libraries
22350 # on systems that don't support them.
22351 lt_prog_compiler_can_build_shared_F77=no
22356 if test -d /usr/nec; then
22357 lt_prog_compiler_pic_F77=-Kconform_pic
22362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22363 # not for PA HP-UX.
22369 lt_prog_compiler_pic_F77='-fPIC'
22375 lt_prog_compiler_pic_F77='-fPIC'
22379 # PORTME Check for flag to pass linker flags through the system compiler.
22382 lt_prog_compiler_wl_F77='-Wl,'
22383 if test "$host_cpu" = ia64; then
22384 # AIX 5 now supports IA64 processor
22385 lt_prog_compiler_static_F77='-Bstatic'
22387 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22391 # PIC is the default on this platform
22392 # Common symbols not allowed in MH_DYLIB files
22393 case $cc_basename in
22395 lt_prog_compiler_pic_F77='-qnocommon'
22396 lt_prog_compiler_wl_F77='-Wl,'
22401 mingw* | pw32* | os2*)
22402 # This hack is so that the source file can tell whether it is being
22403 # built for inclusion in a dll (and should export symbols for example).
22404 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22407 hpux9* | hpux10* | hpux11*)
22408 lt_prog_compiler_wl_F77='-Wl,'
22409 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22410 # not for PA HP-UX.
22416 lt_prog_compiler_pic_F77='+Z'
22419 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22420 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22423 irix5* | irix6* | nonstopux*)
22424 lt_prog_compiler_wl_F77='-Wl,'
22425 # PIC (with -KPIC) is the default.
22426 lt_prog_compiler_static_F77='-non_shared'
22430 lt_prog_compiler_pic_F77='-KPIC'
22431 lt_prog_compiler_static_F77='-Bstatic'
22435 case $cc_basename in
22437 lt_prog_compiler_wl_F77='-Wl,'
22438 lt_prog_compiler_pic_F77='-KPIC'
22439 lt_prog_compiler_static_F77='-static'
22441 pgcc* | pgf77* | pgf90* | pgf95*)
22442 # Portland Group compilers (*not* the Pentium gcc compiler,
22443 # which looks to be a dead project)
22444 lt_prog_compiler_wl_F77='-Wl,'
22445 lt_prog_compiler_pic_F77='-fpic'
22446 lt_prog_compiler_static_F77='-Bstatic'
22449 lt_prog_compiler_wl_F77='-Wl,'
22450 # All Alpha code is PIC.
22451 lt_prog_compiler_static_F77='-non_shared'
22456 osf3* | osf4* | osf5*)
22457 lt_prog_compiler_wl_F77='-Wl,'
22458 # All OSF/1 code is PIC.
22459 lt_prog_compiler_static_F77='-non_shared'
22463 lt_prog_compiler_pic_F77='-Kpic'
22464 lt_prog_compiler_static_F77='-dn'
22468 lt_prog_compiler_pic_F77='-KPIC'
22469 lt_prog_compiler_static_F77='-Bstatic'
22470 case $cc_basename in
22471 f77* | f90* | f95*)
22472 lt_prog_compiler_wl_F77='-Qoption ld ';;
22474 lt_prog_compiler_wl_F77='-Wl,';;
22479 lt_prog_compiler_wl_F77='-Qoption ld '
22480 lt_prog_compiler_pic_F77='-PIC'
22481 lt_prog_compiler_static_F77='-Bstatic'
22484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22485 lt_prog_compiler_wl_F77='-Wl,'
22486 lt_prog_compiler_pic_F77='-KPIC'
22487 lt_prog_compiler_static_F77='-Bstatic'
22491 if test -d /usr/nec ;then
22492 lt_prog_compiler_pic_F77='-Kconform_pic'
22493 lt_prog_compiler_static_F77='-Bstatic'
22498 lt_prog_compiler_wl_F77='-Wl,'
22499 lt_prog_compiler_can_build_shared_F77=no
22503 lt_prog_compiler_pic_F77='-pic'
22504 lt_prog_compiler_static_F77='-Bstatic'
22508 lt_prog_compiler_can_build_shared_F77=no
22513 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22514 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
22517 # Check to make sure the PIC flag actually works.
22519 if test -n "$lt_prog_compiler_pic_F77"; then
22521 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22522 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
22523 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 lt_prog_compiler_pic_works_F77=no
22527 ac_outfile=conftest.$ac_objext
22528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22529 lt_compiler_flag="$lt_prog_compiler_pic_F77"
22530 # Insert the option either (1) after the last *FLAGS variable, or
22531 # (2) before a word containing "conftest.", or (3) at the end.
22532 # Note that $ac_compile itself does not contain backslashes and begins
22533 # with a dollar sign (not a hyphen), so the echo should work correctly.
22534 # The option is referenced via a variable to avoid confusing sed.
22535 lt_compile=`echo "$ac_compile" | $SED \
22536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22538 -e 's:$: $lt_compiler_flag:'`
22539 (eval echo "\"\$as_me:22539: $lt_compile\"" >&5)
22540 (eval "$lt_compile" 2>conftest.err)
22542 cat conftest.err >&5
22543 echo "$as_me:22543: \$? = $ac_status" >&5
22544 if (exit $ac_status) && test -s "$ac_outfile"; then
22545 # The compiler can only warn and ignore the option if not recognized
22546 # So say no if there are warnings other than the usual output.
22547 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22548 $SED '/^$/d' conftest.err >conftest.er2
22549 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22550 lt_prog_compiler_pic_works_F77=yes
22556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
22557 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
22559 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
22560 case $lt_prog_compiler_pic_F77 in
22562 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22565 lt_prog_compiler_pic_F77=
22566 lt_prog_compiler_can_build_shared_F77=no
22571 # For platforms which do not support PIC, -DPIC is meaningless:
22573 lt_prog_compiler_pic_F77=
22576 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22580 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22582 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 lt_cv_prog_compiler_c_o_F77=no
22586 $rm -r conftest 2>/dev/null
22590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22592 lt_compiler_flag="-o out/conftest2.$ac_objext"
22593 # Insert the option either (1) after the last *FLAGS variable, or
22594 # (2) before a word containing "conftest.", or (3) at the end.
22595 # Note that $ac_compile itself does not contain backslashes and begins
22596 # with a dollar sign (not a hyphen), so the echo should work correctly.
22597 lt_compile=`echo "$ac_compile" | $SED \
22598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22600 -e 's:$: $lt_compiler_flag:'`
22601 (eval echo "\"\$as_me:22601: $lt_compile\"" >&5)
22602 (eval "$lt_compile" 2>out/conftest.err)
22604 cat out/conftest.err >&5
22605 echo "$as_me:22605: \$? = $ac_status" >&5
22606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22608 # The compiler can only warn and ignore the option if not recognized
22609 # So say no if there are warnings
22610 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22611 $SED '/^$/d' out/conftest.err >out/conftest.er2
22612 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22613 lt_cv_prog_compiler_c_o_F77=yes
22618 # SGI C++ compiler will create directory out/ii_files/ for
22619 # template instantiation
22620 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22621 $rm out/* && rmdir out
22627 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22628 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
22631 hard_links="nottested"
22632 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22633 # do not overwrite the value of need_locks provided by the user
22634 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22635 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22640 ln conftest.a conftest.b 2>&5 || hard_links=no
22641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22642 echo "$as_me:$LINENO: result: $hard_links" >&5
22643 echo "${ECHO_T}$hard_links" >&6
22644 if test "$hard_links" = no; then
22645 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22646 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22653 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22657 allow_undefined_flag_F77=
22658 enable_shared_with_static_runtimes_F77=no
22660 archive_expsym_cmds_F77=
22661 old_archive_From_new_cmds_F77=
22662 old_archive_from_expsyms_cmds_F77=
22663 export_dynamic_flag_spec_F77=
22664 whole_archive_flag_spec_F77=
22665 thread_safe_flag_spec_F77=
22666 hardcode_libdir_flag_spec_F77=
22667 hardcode_libdir_flag_spec_ld_F77=
22668 hardcode_libdir_separator_F77=
22669 hardcode_direct_F77=no
22670 hardcode_minus_L_F77=no
22671 hardcode_shlibpath_var_F77=unsupported
22672 link_all_deplibs_F77=unknown
22673 hardcode_automatic_F77=no
22675 module_expsym_cmds_F77=
22676 always_export_symbols_F77=no
22677 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22678 # include_expsyms should be a list of space-separated symbols to be *always*
22679 # included in the symbol list
22680 include_expsyms_F77=
22681 # exclude_expsyms can be an extended regexp of symbols to exclude
22682 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22683 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22684 # as well as any symbol that contains `d'.
22685 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22686 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22687 # platforms (ab)use it in PIC code, but their linkers get confused if
22688 # the symbol is explicitly referenced. Since portable code cannot
22689 # rely on this symbol name, it's probably fine to never include it in
22690 # preloaded symbol tables.
22691 extract_expsyms_cmds=
22692 # Just being paranoid about ensuring that cc_basename is set.
22693 for cc_temp in $compiler""; do
22695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22701 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22704 cygwin* | mingw* | pw32*)
22705 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22706 # When not using gcc, we currently assume that we are using
22707 # Microsoft Visual C++.
22708 if test "$GCC" != yes; then
22718 if test "$with_gnu_ld" = yes; then
22719 # If archive_cmds runs LD, not CC, wlarc should be empty
22722 # Set some defaults for GNU ld with shared library support. These
22723 # are reset later if shared libraries are not supported. Putting them
22724 # here allows them to be overridden if necessary.
22725 runpath_var=LD_RUN_PATH
22726 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22727 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22728 # ancient GNU ld didn't support --whole-archive et. al.
22729 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22730 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22732 whole_archive_flag_spec_F77=
22734 supports_anon_versioning=no
22735 case `$LD -v 2>/dev/null` in
22736 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22737 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22738 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22739 *\ 2.11.*) ;; # other 2.11 versions
22740 *) supports_anon_versioning=yes ;;
22743 # See if GNU ld supports shared libraries.
22745 aix3* | aix4* | aix5*)
22746 # On AIX/PPC, the GNU linker is very broken
22747 if test "$host_cpu" != ia64; then
22751 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22752 *** to be unable to reliably create shared libraries on AIX.
22753 *** Therefore, libtool is disabling shared libraries support. If you
22754 *** really care for shared libraries, you may want to modify your PATH
22755 *** so that a non-GNU linker is found, and then restart.
22762 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)'
22763 hardcode_libdir_flag_spec_F77='-L$libdir'
22764 hardcode_minus_L_F77=yes
22766 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22767 # that the semantics of dynamic libraries on AmigaOS, at least up
22768 # to version 4, is to share data among multiple programs linked
22769 # with the same dynamic library. Since this doesn't match the
22770 # behavior of shared libraries on other platforms, we can't use
22776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22777 allow_undefined_flag_F77=unsupported
22778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22779 # support --undefined. This deserves some investigation. FIXME
22780 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22786 cygwin* | mingw* | pw32*)
22787 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22788 # as there is no search path for DLLs.
22789 hardcode_libdir_flag_spec_F77='-L$libdir'
22790 allow_undefined_flag_F77=unsupported
22791 always_export_symbols_F77=no
22792 enable_shared_with_static_runtimes_F77=yes
22793 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22795 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22797 # If the export-symbols file already is a .def file (1st line
22798 # is EXPORTS), use it as is; otherwise, prepend...
22799 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22800 cp $export_symbols $output_objdir/$soname.def;
22802 echo EXPORTS > $output_objdir/$soname.def;
22803 cat $export_symbols >> $output_objdir/$soname.def;
22805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22814 case $cc_basename,$host_cpu in
22815 pgcc*) # Portland Group C compiler
22816 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'
22817 tmp_addflag=' $pic_flag'
22819 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22820 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'
22821 tmp_addflag=' $pic_flag -Mnomain' ;;
22822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22823 tmp_addflag=' -i_dynamic' ;;
22824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22825 tmp_addflag=' -i_dynamic -nofor_main' ;;
22826 ifc* | ifort*) # Intel Fortran compiler
22827 tmp_addflag=' -nofor_main' ;;
22829 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22831 if test $supports_anon_versioning = yes; then
22832 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22834 $echo "local: *; };" >> $output_objdir/$libname.ver~
22835 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22844 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22853 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22858 *** create shared libraries on Solaris systems. Therefore, libtool
22859 *** is disabling shared libraries support. We urge you to upgrade GNU
22860 *** binutils to release 2.9.1 or newer. Another option is to modify
22861 *** your PATH or compiler configuration so that the native linker is
22862 *** used, and then restart.
22865 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22866 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22867 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22874 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22876 hardcode_direct_F77=yes
22877 hardcode_shlibpath_var_F77=no
22881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22883 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22890 if test "$ld_shlibs_F77" = no; then
22892 hardcode_libdir_flag_spec_F77=
22893 export_dynamic_flag_spec_F77=
22894 whole_archive_flag_spec_F77=
22897 # PORTME fill in a description of your system's linker (not GNU ld)
22900 allow_undefined_flag_F77=unsupported
22901 always_export_symbols_F77=yes
22902 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'
22903 # Note: this linker hardcodes the directories in LIBPATH if there
22904 # are no directories specified by -L.
22905 hardcode_minus_L_F77=yes
22906 if test "$GCC" = yes && test -z "$link_static_flag"; then
22907 # Neither direct hardcoding nor static linking is supported with a
22909 hardcode_direct_F77=unsupported
22914 if test "$host_cpu" = ia64; then
22915 # On IA64, the linker does run time linking by default, so we don't
22916 # have to do anything special.
22917 aix_use_runtimelinking=no
22918 exp_sym_flag='-Bexport'
22921 # If we're using GNU nm, then we don't want the "-C" option.
22922 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22923 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22924 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'
22926 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'
22928 aix_use_runtimelinking=no
22930 # Test if we are trying to use run time linking or normal
22931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22932 # need to do runtime linking.
22933 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22934 for ld_flag in $LDFLAGS; do
22935 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22936 aix_use_runtimelinking=yes
22942 exp_sym_flag='-bexport'
22943 no_entry_flag='-bnoentry'
22946 # When large executables or shared objects are built, AIX ld can
22947 # have problems creating the table of contents. If linking a library
22948 # or program results in "error TOC overflow" add -mminimal-toc to
22949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22952 archive_cmds_F77=''
22953 hardcode_direct_F77=yes
22954 hardcode_libdir_separator_F77=':'
22955 link_all_deplibs_F77=yes
22957 if test "$GCC" = yes; then
22958 case $host_os in aix4.[012]|aix4.[012].*)
22959 # We only want to do this on AIX 4.2 and lower, the check
22960 # below for broken collect2 doesn't work under 4.3+
22961 collect2name=`${CC} -print-prog-name=collect2`
22962 if test -f "$collect2name" && \
22963 strings "$collect2name" | grep resolve_lib_name >/dev/null
22965 # We have reworked collect2
22966 hardcode_direct_F77=yes
22968 # We have old collect2
22969 hardcode_direct_F77=unsupported
22970 # It fails to find uninstalled libraries when the uninstalled
22971 # path is not listed in the libpath. Setting hardcode_minus_L
22972 # to unsupported forces relinking
22973 hardcode_minus_L_F77=yes
22974 hardcode_libdir_flag_spec_F77='-L$libdir'
22975 hardcode_libdir_separator_F77=
22978 shared_flag='-shared'
22979 if test "$aix_use_runtimelinking" = yes; then
22980 shared_flag="$shared_flag "'${wl}-G'
22984 if test "$host_cpu" = ia64; then
22985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22986 # chokes on -Wl,-G. The following line is correct:
22989 if test "$aix_use_runtimelinking" = yes; then
22990 shared_flag='${wl}-G'
22992 shared_flag='${wl}-bM:SRE'
22997 # It seems that -bexpall does not export symbols beginning with
22998 # underscore (_), so it is better to generate a list of symbols to export.
22999 always_export_symbols_F77=yes
23000 if test "$aix_use_runtimelinking" = yes; then
23001 # Warning - without using the other runtime loading flags (-brtl),
23002 # -berok will link without error, but may produce a broken library.
23003 allow_undefined_flag_F77='-berok'
23004 # Determine the default libpath from the value encoded in an empty executable.
23005 cat >conftest.$ac_ext <<_ACEOF
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23012 (eval $ac_link) 2>conftest.er1
23014 grep -v '^ *+' conftest.er1 >conftest.err
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } &&
23019 { ac_try='test -z "$ac_f77_werror_flag"
23020 || test ! -s conftest.err'
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; } &&
23026 { ac_try='test -s conftest$ac_exeext'
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; }; then
23033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23035 # Check for a 64-bit object if we didn't find anything.
23036 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; }
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23043 rm -f conftest.err conftest.$ac_objext \
23044 conftest$ac_exeext conftest.$ac_ext
23045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23047 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23048 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"
23050 if test "$host_cpu" = ia64; then
23051 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23052 allow_undefined_flag_F77="-z nodefs"
23053 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"
23055 # Determine the default libpath from the value encoded in an empty executable.
23056 cat >conftest.$ac_ext <<_ACEOF
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23063 (eval $ac_link) 2>conftest.er1
23065 grep -v '^ *+' conftest.er1 >conftest.err
23067 cat conftest.err >&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } &&
23070 { ac_try='test -z "$ac_f77_werror_flag"
23071 || test ! -s conftest.err'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; } &&
23077 { ac_try='test -s conftest$ac_exeext'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; }; then
23084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23086 # Check for a 64-bit object if we didn't find anything.
23087 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; }
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23094 rm -f conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
23096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23098 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23099 # Warning - without using the other run time loading flags,
23100 # -berok will link without error, but may produce a broken library.
23101 no_undefined_flag_F77=' ${wl}-bernotok'
23102 allow_undefined_flag_F77=' ${wl}-berok'
23103 # -bexpall does not export symbols beginning with underscore (_)
23104 always_export_symbols_F77=yes
23105 # Exported symbols can be pulled into shared objects from archives
23106 whole_archive_flag_spec_F77=' '
23107 archive_cmds_need_lc_F77=yes
23108 # This is similar to how AIX traditionally builds its shared libraries.
23109 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'
23115 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)'
23116 hardcode_libdir_flag_spec_F77='-L$libdir'
23117 hardcode_minus_L_F77=yes
23118 # see comment about different semantics on the GNU ld section
23123 export_dynamic_flag_spec_F77=-rdynamic
23126 cygwin* | mingw* | pw32*)
23127 # When not using gcc, we currently assume that we are using
23128 # Microsoft Visual C++.
23129 # hardcode_libdir_flag_spec is actually meaningless, as there is
23130 # no search path for DLLs.
23131 hardcode_libdir_flag_spec_F77=' '
23132 allow_undefined_flag_F77=unsupported
23133 # Tell ltmain to make .lib files, not .a files.
23135 # Tell ltmain to make .dll files, not .so files.
23137 # FIXME: Setting linknames here is a bad hack.
23138 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23139 # The linker will automatically build a .lib file if we build a DLL.
23140 old_archive_From_new_cmds_F77='true'
23141 # FIXME: Should let the user specify the lib program.
23142 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
23143 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
23144 enable_shared_with_static_runtimes_F77=yes
23147 darwin* | rhapsody*)
23149 rhapsody* | darwin1.[012])
23150 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
23153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23154 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23156 case ${MACOSX_DEPLOYMENT_TARGET} in
23158 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23161 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
23167 archive_cmds_need_lc_F77=no
23168 hardcode_direct_F77=no
23169 hardcode_automatic_F77=yes
23170 hardcode_shlibpath_var_F77=unsupported
23171 whole_archive_flag_spec_F77=''
23172 link_all_deplibs_F77=yes
23173 if test "$GCC" = yes ; then
23174 output_verbose_link_cmd='echo'
23175 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23176 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23178 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}'
23179 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}'
23181 case $cc_basename in
23183 output_verbose_link_cmd='echo'
23184 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23185 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23187 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}'
23188 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}'
23198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23199 hardcode_libdir_flag_spec_F77='-L$libdir'
23200 hardcode_shlibpath_var_F77=no
23207 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23208 # support. Future versions do this automatically, but an explicit c++rt0.o
23209 # does not break anything, and helps significantly (at the cost of a little
23212 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23213 hardcode_libdir_flag_spec_F77='-R$libdir'
23214 hardcode_direct_F77=yes
23215 hardcode_shlibpath_var_F77=no
23218 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23220 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23221 hardcode_direct_F77=yes
23222 hardcode_minus_L_F77=yes
23223 hardcode_shlibpath_var_F77=no
23226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23227 freebsd* | kfreebsd*-gnu | dragonfly*)
23228 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23229 hardcode_libdir_flag_spec_F77='-R$libdir'
23230 hardcode_direct_F77=yes
23231 hardcode_shlibpath_var_F77=no
23235 if test "$GCC" = yes; then
23236 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'
23238 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'
23240 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23241 hardcode_libdir_separator_F77=:
23242 hardcode_direct_F77=yes
23244 # hardcode_minus_L: Not really in the search PATH,
23245 # but as the default location of the library.
23246 hardcode_minus_L_F77=yes
23247 export_dynamic_flag_spec_F77='${wl}-E'
23251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23254 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23257 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23263 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23266 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23270 if test "$with_gnu_ld" = no; then
23273 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23274 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23275 hardcode_libdir_separator_F77=:
23276 hardcode_direct_F77=no
23277 hardcode_shlibpath_var_F77=no
23280 hardcode_libdir_flag_spec_F77='-L$libdir'
23281 hardcode_direct_F77=no
23282 hardcode_shlibpath_var_F77=no
23284 # hardcode_minus_L: Not really in the search PATH,
23285 # but as the default location of the library.
23286 hardcode_minus_L_F77=yes
23289 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23290 hardcode_libdir_separator_F77=:
23291 hardcode_direct_F77=yes
23292 export_dynamic_flag_spec_F77='${wl}-E'
23294 # hardcode_minus_L: Not really in the search PATH,
23295 # but as the default location of the library.
23296 hardcode_minus_L_F77=yes
23302 irix5* | irix6* | nonstopux*)
23303 if test "$GCC" = yes; then
23304 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'
23306 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'
23307 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23309 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23310 hardcode_libdir_separator_F77=:
23311 link_all_deplibs_F77=yes
23315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23316 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23318 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23320 hardcode_libdir_flag_spec_F77='-R$libdir'
23321 hardcode_direct_F77=yes
23322 hardcode_shlibpath_var_F77=no
23326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23327 hardcode_direct_F77=yes
23328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23329 hardcode_libdir_separator_F77=:
23330 hardcode_shlibpath_var_F77=no
23334 hardcode_direct_F77=yes
23335 hardcode_shlibpath_var_F77=no
23336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23338 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23340 export_dynamic_flag_spec_F77='${wl}-E'
23343 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23344 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23345 hardcode_libdir_flag_spec_F77='-R$libdir'
23348 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23349 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23356 hardcode_libdir_flag_spec_F77='-L$libdir'
23357 hardcode_minus_L_F77=yes
23358 allow_undefined_flag_F77=unsupported
23359 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'
23360 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23364 if test "$GCC" = yes; then
23365 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23366 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'
23368 allow_undefined_flag_F77=' -expect_unresolved \*'
23369 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'
23371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23372 hardcode_libdir_separator_F77=:
23375 osf4* | osf5*) # as osf3* with the addition of -msym flag
23376 if test "$GCC" = yes; then
23377 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23378 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'
23379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23381 allow_undefined_flag_F77=' -expect_unresolved \*'
23382 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'
23383 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~
23384 $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'
23386 # Both c and cxx compiler support -rpath directly
23387 hardcode_libdir_flag_spec_F77='-rpath $libdir'
23389 hardcode_libdir_separator_F77=:
23393 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23394 hardcode_shlibpath_var_F77=no
23395 export_dynamic_flag_spec_F77='${wl}-Bexport'
23396 runpath_var=LD_RUN_PATH
23397 hardcode_runpath_var=yes
23401 no_undefined_flag_F77=' -z text'
23402 if test "$GCC" = yes; then
23404 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23405 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23406 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23409 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23410 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23413 hardcode_libdir_flag_spec_F77='-R$libdir'
23414 hardcode_shlibpath_var_F77=no
23416 solaris2.[0-5] | solaris2.[0-5].*) ;;
23418 # The compiler driver will combine linker options so we
23419 # cannot just pass the convience library names through
23420 # without $wl, iff we do not link with $LD.
23421 # Luckily, gcc supports the same syntax we need for Sun Studio.
23422 # Supported since Solaris 2.6 (maybe 2.5.1?)
23425 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
23427 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' ;;
23430 link_all_deplibs_F77=yes
23434 if test "x$host_vendor" = xsequent; then
23435 # Use $CC to link under sequent, because it throws in some extra .o
23436 # files that make .init and .fini sections work.
23437 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23439 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23441 hardcode_libdir_flag_spec_F77='-L$libdir'
23442 hardcode_direct_F77=yes
23443 hardcode_minus_L_F77=yes
23444 hardcode_shlibpath_var_F77=no
23448 case $host_vendor in
23450 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23451 hardcode_direct_F77=yes # is this really true???
23454 ## LD is ld it makes a PLAMLIB
23455 ## CC just makes a GrossModule.
23456 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23457 reload_cmds_F77='$CC -r -o $output$reload_objs'
23458 hardcode_direct_F77=no
23461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23462 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23465 runpath_var='LD_RUN_PATH'
23466 hardcode_shlibpath_var_F77=no
23470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23471 hardcode_shlibpath_var_F77=no
23472 export_dynamic_flag_spec_F77='-Bexport'
23476 if test -d /usr/nec; then
23477 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23478 hardcode_shlibpath_var_F77=no
23479 runpath_var=LD_RUN_PATH
23480 hardcode_runpath_var=yes
23486 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23487 hardcode_direct_F77=yes
23488 hardcode_minus_L_F77=no
23489 hardcode_shlibpath_var_F77=no
23490 hardcode_runpath_var=yes
23491 runpath_var=LD_RUN_PATH
23494 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
23495 no_undefined_flag_F77='${wl}-z ${wl}text'
23496 if test "$GCC" = yes; then
23497 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23499 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23501 runpath_var='LD_RUN_PATH'
23502 hardcode_shlibpath_var_F77=no
23506 no_undefined_flag_F77=' -z text'
23507 # $CC -shared without GNU ld will not create a library from C++
23508 # object files and a static libstdc++, better avoid it by now
23509 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23510 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23511 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23512 hardcode_libdir_flag_spec_F77=
23513 hardcode_shlibpath_var_F77=no
23514 runpath_var='LD_RUN_PATH'
23518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23519 hardcode_libdir_flag_spec_F77='-L$libdir'
23520 hardcode_shlibpath_var_F77=no
23529 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23530 echo "${ECHO_T}$ld_shlibs_F77" >&6
23531 test "$ld_shlibs_F77" = no && can_build_shared=no
23533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23534 if test "$GCC" = yes; then
23535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23539 # Do we need to explicitly link libc?
23541 case "x$archive_cmds_need_lc_F77" in
23543 # Assume -lc should be added
23544 archive_cmds_need_lc_F77=yes
23546 if test "$enable_shared" = yes && test "$GCC" = yes; then
23547 case $archive_cmds_F77 in
23549 # FIXME: we may have to deal with multi-command sequences.
23552 # Test whether the compiler implicitly links with -lc since on some
23553 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23554 # to ld, don't add -lc before -lgcc.
23555 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23556 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23561 (eval $ac_compile) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } 2>conftest.err; then
23567 libobjs=conftest.$ac_objext
23569 wl=$lt_prog_compiler_wl_F77
23575 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23576 allow_undefined_flag_F77=
23577 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23578 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }
23583 archive_cmds_need_lc_F77=no
23585 archive_cmds_need_lc_F77=yes
23587 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23589 cat conftest.err 1>&5
23592 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23593 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
23600 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23601 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23602 library_names_spec=
23603 libname_spec='lib$name'
23607 postuninstall_cmds=
23611 shlibpath_overrides_runpath=unknown
23613 dynamic_linker="$host_os ld.so"
23614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23615 if test "$GCC" = yes; then
23616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23617 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23618 # if the path contains ";" then we assume it to be the separator
23619 # otherwise default to the standard path separator (i.e. ":") - it is
23620 # assumed that no part of a normal pathname contains ";" but that should
23621 # okay in the real world where ";" in dirpaths is itself problematic.
23622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23629 need_lib_prefix=unknown
23630 hardcode_into_libs=no
23632 # when you set need_version to no, make sure it does not cause -set_version
23633 # flags to be left without arguments
23634 need_version=unknown
23639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23640 shlibpath_var=LIBPATH
23642 # AIX 3 has no versioning support, so we append a major version to the name.
23643 soname_spec='${libname}${release}${shared_ext}$major'
23650 hardcode_into_libs=yes
23651 if test "$host_cpu" = ia64; then
23652 # AIX 5 supports IA64
23653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23654 shlibpath_var=LD_LIBRARY_PATH
23656 # With GCC up to 2.95.x, collect2 would create an import file
23657 # for dependence libraries. The import file would start with
23658 # the line `#! .'. This would cause the generated library to
23659 # depend on `.', always an invalid library. This was fixed in
23660 # development snapshots of GCC prior to 3.0.
23662 aix4 | aix4.[01] | aix4.[01].*)
23663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23668 can_build_shared=no
23672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23673 # soname into executable. Probably we can add versioning support to
23674 # collect2, so additional links can be useful in future.
23675 if test "$aix_use_runtimelinking" = yes; then
23676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23677 # instead of lib<name>.a to let people know that these are not
23678 # typical AIX shared libraries.
23679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23681 # We preserve .a as extension for shared libraries through AIX4.2
23682 # and later when we are not doing run time linking.
23683 library_names_spec='${libname}${release}.a $libname.a'
23684 soname_spec='${libname}${release}${shared_ext}$major'
23686 shlibpath_var=LIBPATH
23691 library_names_spec='$libname.ixlibrary $libname.a'
23692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23693 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'
23697 library_names_spec='${libname}${shared_ext}'
23698 dynamic_linker="$host_os ld.so"
23699 shlibpath_var=LIBRARY_PATH
23705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23706 soname_spec='${libname}${release}${shared_ext}$major'
23707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23708 shlibpath_var=LD_LIBRARY_PATH
23709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23711 # the default ld.so.conf also contains /usr/contrib/lib and
23712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23713 # libtool to hard-code these into programs
23716 cygwin* | mingw* | pw32*)
23717 version_type=windows
23722 case $GCC,$host_os in
23723 yes,cygwin* | yes,mingw* | yes,pw32*)
23724 library_names_spec='$libname.dll.a'
23725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23726 postinstall_cmds='base_file=`basename \${file}`~
23727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23728 dldir=$destdir/`dirname \$dlpath`~
23729 test -d \$dldir || mkdir -p \$dldir~
23730 $install_prog $dir/$dlname \$dldir/$dlname~
23731 chmod a+x \$dldir/$dlname'
23732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23733 dlpath=$dir/\$dldll~
23735 shlibpath_overrides_runpath=yes
23739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23741 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23744 # MinGW DLLs use traditional 'lib' prefix
23745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23747 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23748 # It is most probably a Windows format PATH printed by
23749 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23750 # path with ; separators, and with drive letters. We can handle the
23751 # drive letters (cygwin fileutils understands them), so leave them,
23752 # especially as we might pass files found there to a mingw objdump,
23753 # which wouldn't understand a cygwinified path. Ahh.
23754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23760 # pw32 DLLs use 'pw' prefix rather than 'lib'
23761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23770 dynamic_linker='Win32 ld.exe'
23771 # FIXME: first we should search . and the directory the executable is in
23775 darwin* | rhapsody*)
23776 dynamic_linker="$host_os dyld"
23777 version_type=darwin
23780 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23781 soname_spec='${libname}${release}${major}$shared_ext'
23782 shlibpath_overrides_runpath=yes
23783 shlibpath_var=DYLD_LIBRARY_PATH
23784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23785 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23786 if test "$GCC" = yes; then
23787 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"`
23789 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23799 soname_spec='${libname}${release}${shared_ext}$major'
23800 shlibpath_var=LD_LIBRARY_PATH
23811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23812 soname_spec='${libname}${release}${shared_ext}$major'
23813 shlibpath_var=LD_LIBRARY_PATH
23814 shlibpath_overrides_runpath=no
23815 hardcode_into_libs=yes
23816 dynamic_linker='GNU ld.so'
23819 freebsd* | dragonfly*)
23820 # DragonFly does not have aout. When/if they implement a new
23821 # versioning mechanism, adjust this.
23822 if test -x /usr/bin/objformat; then
23823 objformat=`/usr/bin/objformat`
23826 freebsd[123]*) objformat=aout ;;
23827 *) objformat=elf ;;
23830 version_type=freebsd-$objformat
23831 case $version_type in
23833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23842 shlibpath_var=LD_LIBRARY_PATH
23845 shlibpath_overrides_runpath=yes
23847 freebsd3.[01]* | freebsdelf3.[01]*)
23848 shlibpath_overrides_runpath=yes
23849 hardcode_into_libs=yes
23852 shlibpath_overrides_runpath=no
23853 hardcode_into_libs=yes
23862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23863 soname_spec='${libname}${release}${shared_ext}$major'
23864 shlibpath_var=LD_LIBRARY_PATH
23865 hardcode_into_libs=yes
23868 hpux9* | hpux10* | hpux11*)
23869 # Give a soname corresponding to the major version so that dld.sl refuses to
23870 # link against other versions.
23877 hardcode_into_libs=yes
23878 dynamic_linker="$host_os dld.so"
23879 shlibpath_var=LD_LIBRARY_PATH
23880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23882 soname_spec='${libname}${release}${shared_ext}$major'
23883 if test "X$HPUX_IA64_MODE" = X32; then
23884 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23886 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23892 hardcode_into_libs=yes
23893 dynamic_linker="$host_os dld.sl"
23894 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23897 soname_spec='${libname}${release}${shared_ext}$major'
23898 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23903 dynamic_linker="$host_os dld.sl"
23904 shlibpath_var=SHLIB_PATH
23905 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23907 soname_spec='${libname}${release}${shared_ext}$major'
23910 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23911 postinstall_cmds='chmod 555 $lib'
23914 irix5* | irix6* | nonstopux*)
23916 nonstopux*) version_type=nonstopux ;;
23918 if test "$lt_cv_prog_gnu_ld" = yes; then
23926 soname_spec='${libname}${release}${shared_ext}$major'
23927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23929 irix5* | nonstopux*)
23930 libsuff= shlibsuff=
23933 case $LD in # libtool.m4 will add one of these switches to LD
23934 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23935 libsuff= shlibsuff= libmagic=32-bit;;
23936 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23937 libsuff=32 shlibsuff=N32 libmagic=N32;;
23938 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23939 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23940 *) libsuff= shlibsuff= libmagic=never-match;;
23944 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23945 shlibpath_overrides_runpath=no
23946 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23947 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23948 hardcode_into_libs=yes
23951 # No shared lib support for Linux oldld, aout, or coff.
23952 linux*oldld* | linux*aout* | linux*coff*)
23956 # This must be Linux ELF.
23961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23962 soname_spec='${libname}${release}${shared_ext}$major'
23963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23964 shlibpath_var=LD_LIBRARY_PATH
23965 shlibpath_overrides_runpath=no
23966 # This implies no fast_install, which is unacceptable.
23967 # Some rework will be needed to allow for fast_install
23968 # before this can be enabled.
23969 hardcode_into_libs=yes
23971 # Append ld.so.conf contents to the search path
23972 if test -f /etc/ld.so.conf; then
23973 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' ' '`
23974 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23977 # We used to test for /lib/ld.so.1 and disable shared libraries on
23978 # powerpc, because MkLinux only supported shared libraries with the
23979 # GNU dynamic linker. Since this was broken with cross compilers,
23980 # most powerpc-linux boxes support dynamic linking these days and
23981 # people can always --disable-shared, the test was removed, and we
23982 # assume the GNU/Linux dynamic linker is in use.
23983 dynamic_linker='GNU/Linux ld.so'
23990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23991 soname_spec='${libname}${release}${shared_ext}$major'
23992 shlibpath_var=LD_LIBRARY_PATH
23993 shlibpath_overrides_runpath=no
23994 hardcode_into_libs=yes
23995 dynamic_linker='GNU ld.so'
24002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24005 dynamic_linker='NetBSD (a.out) ld.so'
24007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24008 soname_spec='${libname}${release}${shared_ext}$major'
24009 dynamic_linker='NetBSD ld.elf_so'
24011 shlibpath_var=LD_LIBRARY_PATH
24012 shlibpath_overrides_runpath=yes
24013 hardcode_into_libs=yes
24018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24019 shlibpath_var=LD_LIBRARY_PATH
24020 shlibpath_overrides_runpath=yes
24027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24028 soname_spec='${libname}${release}${shared_ext}$major'
24029 shlibpath_var=LD_LIBRARY_PATH
24030 shlibpath_overrides_runpath=yes
24036 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24038 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24039 *) need_version=no ;;
24041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24043 shlibpath_var=LD_LIBRARY_PATH
24044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24046 openbsd2.[89] | openbsd2.[89].*)
24047 shlibpath_overrides_runpath=no
24050 shlibpath_overrides_runpath=yes
24054 shlibpath_overrides_runpath=yes
24059 libname_spec='$name'
24062 library_names_spec='$libname${shared_ext} $libname.a'
24063 dynamic_linker='OS/2 ld.exe'
24064 shlibpath_var=LIBPATH
24067 osf3* | osf4* | osf5*)
24071 soname_spec='${libname}${release}${shared_ext}$major'
24072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24073 shlibpath_var=LD_LIBRARY_PATH
24074 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24075 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24080 soname_spec='${libname}${release}${shared_ext}$major'
24081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24082 shlibpath_var=LD_LIBRARY_PATH
24089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24090 soname_spec='${libname}${release}${shared_ext}$major'
24091 shlibpath_var=LD_LIBRARY_PATH
24092 shlibpath_overrides_runpath=yes
24093 hardcode_into_libs=yes
24094 # ldd complains unless libraries are executable
24095 postinstall_cmds='chmod +x $lib'
24100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24102 shlibpath_var=LD_LIBRARY_PATH
24103 shlibpath_overrides_runpath=yes
24104 if test "$with_gnu_ld" = yes; then
24110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24113 soname_spec='${libname}${release}${shared_ext}$major'
24114 shlibpath_var=LD_LIBRARY_PATH
24115 case $host_vendor in
24117 shlibpath_overrides_runpath=no
24119 export_dynamic_flag_spec='${wl}-Blargedynsym'
24120 runpath_var=LD_RUN_PATH
24128 shlibpath_overrides_runpath=no
24129 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24135 if test -d /usr/nec ;then
24137 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24138 soname_spec='$libname${shared_ext}.$major'
24139 shlibpath_var=LD_LIBRARY_PATH
24145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24146 soname_spec='${libname}${release}${shared_ext}$major'
24147 shlibpath_var=LD_LIBRARY_PATH
24154 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24155 echo "${ECHO_T}$dynamic_linker" >&6
24156 test "$dynamic_linker" = no && can_build_shared=no
24158 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24159 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24160 hardcode_action_F77=
24161 if test -n "$hardcode_libdir_flag_spec_F77" || \
24162 test -n "$runpath_var_F77" || \
24163 test "X$hardcode_automatic_F77" = "Xyes" ; then
24165 # We can hardcode non-existant directories.
24166 if test "$hardcode_direct_F77" != no &&
24167 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24168 # have to relink, otherwise we might link with an installed library
24169 # when we should be linking with a yet-to-be-installed one
24170 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24171 test "$hardcode_minus_L_F77" != no; then
24172 # Linking always hardcodes the temporary library directory.
24173 hardcode_action_F77=relink
24175 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24176 hardcode_action_F77=immediate
24179 # We cannot hardcode anything, or else we can only hardcode existing
24181 hardcode_action_F77=unsupported
24183 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24184 echo "${ECHO_T}$hardcode_action_F77" >&6
24186 if test "$hardcode_action_F77" = relink; then
24187 # Fast installation is not supported
24188 enable_fast_install=no
24189 elif test "$shlibpath_overrides_runpath" = yes ||
24190 test "$enable_shared" = no; then
24191 # Fast installation is not necessary
24192 enable_fast_install=needless
24197 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24198 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24199 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24200 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24201 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24202 echo "$as_me:$LINENO: result: yes" >&5
24203 echo "${ECHO_T}yes" >&6
24205 # FIXME - insert some real tests, host_os isn't really good enough
24208 if test -n "$STRIP" ; then
24209 striplib="$STRIP -x"
24210 echo "$as_me:$LINENO: result: yes" >&5
24211 echo "${ECHO_T}yes" >&6
24213 echo "$as_me:$LINENO: result: no" >&5
24214 echo "${ECHO_T}no" >&6
24218 echo "$as_me:$LINENO: result: no" >&5
24219 echo "${ECHO_T}no" >&6
24226 # The else clause should only fire when bootstrapping the
24227 # libtool distribution, otherwise you forgot to ship ltmain.sh
24228 # with your package, and you will get complaints that there are
24229 # no rules to generate ltmain.sh.
24230 if test -f "$ltmain"; then
24231 # See if we are running on zsh, and set the options which allow our commands through
24232 # without removal of \ escapes.
24233 if test -n "${ZSH_VERSION+set}" ; then
24234 setopt NO_GLOB_SUBST
24236 # Now quote all the things that may contain metacharacters while being
24237 # careful not to overquote the AC_SUBSTed values. We take copies of the
24238 # variables and quote the copies for generation of the libtool script.
24239 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24243 deplibs_check_method reload_flag reload_cmds need_locks \
24244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24245 lt_cv_sys_global_symbol_to_c_name_address \
24246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24247 old_postinstall_cmds old_postuninstall_cmds \
24251 lt_prog_compiler_wl_F77 \
24252 lt_prog_compiler_pic_F77 \
24253 lt_prog_compiler_static_F77 \
24254 lt_prog_compiler_no_builtin_flag_F77 \
24255 export_dynamic_flag_spec_F77 \
24256 thread_safe_flag_spec_F77 \
24257 whole_archive_flag_spec_F77 \
24258 enable_shared_with_static_runtimes_F77 \
24259 old_archive_cmds_F77 \
24260 old_archive_from_new_cmds_F77 \
24261 predep_objects_F77 \
24262 postdep_objects_F77 \
24265 compiler_lib_search_path_F77 \
24267 archive_expsym_cmds_F77 \
24268 postinstall_cmds_F77 \
24269 postuninstall_cmds_F77 \
24270 old_archive_from_expsyms_cmds_F77 \
24271 allow_undefined_flag_F77 \
24272 no_undefined_flag_F77 \
24273 export_symbols_cmds_F77 \
24274 hardcode_libdir_flag_spec_F77 \
24275 hardcode_libdir_flag_spec_ld_F77 \
24276 hardcode_libdir_separator_F77 \
24277 hardcode_automatic_F77 \
24279 module_expsym_cmds_F77 \
24280 lt_cv_prog_compiler_c_o_F77 \
24281 exclude_expsyms_F77 \
24282 include_expsyms_F77; do
24285 old_archive_cmds_F77 | \
24286 old_archive_from_new_cmds_F77 | \
24287 archive_cmds_F77 | \
24288 archive_expsym_cmds_F77 | \
24289 module_cmds_F77 | \
24290 module_expsym_cmds_F77 | \
24291 old_archive_from_expsyms_cmds_F77 | \
24292 export_symbols_cmds_F77 | \
24293 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24294 postinstall_cmds | postuninstall_cmds | \
24295 old_postinstall_cmds | old_postuninstall_cmds | \
24296 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24297 # Double-quote double-evaled strings.
24298 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24307 *'\$0 --fallback-echo"')
24308 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24314 cat <<__EOF__ >> "$cfgfile"
24315 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24317 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24319 # Shell to use when invoking shell scripts.
24322 # Whether or not to build shared libraries.
24323 build_libtool_libs=$enable_shared
24325 # Whether or not to build static libraries.
24326 build_old_libs=$enable_static
24328 # Whether or not to add -lc for building shared libraries.
24329 build_libtool_need_lc=$archive_cmds_need_lc_F77
24331 # Whether or not to disallow shared libs when runtime libs are static
24332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24334 # Whether or not to optimize for fast installation.
24335 fast_install=$enable_fast_install
24338 host_alias=$host_alias
24342 # The build system.
24343 build_alias=$build_alias
24347 # An echo program that does not interpret backslashes.
24352 AR_FLAGS=$lt_AR_FLAGS
24357 # A language-specific compiler.
24358 CC=$lt_compiler_F77
24360 # Is the compiler the GNU C compiler?
24366 # The linker used to build libraries.
24369 # Whether we need hard or soft links.
24372 # A BSD-compatible nm program.
24375 # A symbol stripping program
24378 # Used to examine libraries when file_magic_cmd begins "file"
24379 MAGIC_CMD=$MAGIC_CMD
24381 # Used on cygwin: DLL creation program.
24384 # Used on cygwin: object dumper.
24387 # Used on cygwin: assembler.
24390 # The name of the directory that contains temporary libtool files.
24393 # How to create reloadable object files.
24394 reload_flag=$lt_reload_flag
24395 reload_cmds=$lt_reload_cmds
24397 # How to pass a linker flag through the compiler.
24398 wl=$lt_lt_prog_compiler_wl_F77
24400 # Object file suffix (normally "o").
24401 objext="$ac_objext"
24403 # Old archive suffix (normally "a").
24406 # Shared library suffix (normally ".so").
24407 shrext_cmds='$shrext_cmds'
24409 # Executable file suffix (normally "").
24412 # Additional compiler flags for building library objects.
24413 pic_flag=$lt_lt_prog_compiler_pic_F77
24416 # What is the maximum length of a command?
24417 max_cmd_len=$lt_cv_sys_max_cmd_len
24419 # Does compiler simultaneously support -c and -o options?
24420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24422 # Must we lock files when doing compilation?
24423 need_locks=$lt_need_locks
24425 # Do we need the lib prefix for modules?
24426 need_lib_prefix=$need_lib_prefix
24428 # Do we need a version for libraries?
24429 need_version=$need_version
24431 # Whether dlopen is supported.
24432 dlopen_support=$enable_dlopen
24434 # Whether dlopen of programs is supported.
24435 dlopen_self=$enable_dlopen_self
24437 # Whether dlopen of statically linked programs is supported.
24438 dlopen_self_static=$enable_dlopen_self_static
24440 # Compiler flag to prevent dynamic linking.
24441 link_static_flag=$lt_lt_prog_compiler_static_F77
24443 # Compiler flag to turn off builtin functions.
24444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24446 # Compiler flag to allow reflexive dlopens.
24447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24449 # Compiler flag to generate shared objects directly from archives.
24450 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24452 # Compiler flag to generate thread-safe objects.
24453 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24455 # Library versioning type.
24456 version_type=$version_type
24458 # Format of library name prefix.
24459 libname_spec=$lt_libname_spec
24461 # List of archive names. First name is the real one, the rest are links.
24462 # The last name is the one that the linker finds with -lNAME.
24463 library_names_spec=$lt_library_names_spec
24465 # The coded name of the library, if different from the real name.
24466 soname_spec=$lt_soname_spec
24468 # Commands used to build and install an old-style archive.
24470 old_archive_cmds=$lt_old_archive_cmds_F77
24471 old_postinstall_cmds=$lt_old_postinstall_cmds
24472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24474 # Create an old-style archive from a shared archive.
24475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24477 # Create a temporary old-style archive to link instead of a shared archive.
24478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24480 # Commands used to build and install a shared archive.
24481 archive_cmds=$lt_archive_cmds_F77
24482 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24483 postinstall_cmds=$lt_postinstall_cmds
24484 postuninstall_cmds=$lt_postuninstall_cmds
24486 # Commands used to build a loadable module (assumed same as above if empty)
24487 module_cmds=$lt_module_cmds_F77
24488 module_expsym_cmds=$lt_module_expsym_cmds_F77
24490 # Commands to strip libraries.
24491 old_striplib=$lt_old_striplib
24492 striplib=$lt_striplib
24494 # Dependencies to place before the objects being linked to create a
24496 predep_objects=$lt_predep_objects_F77
24498 # Dependencies to place after the objects being linked to create a
24500 postdep_objects=$lt_postdep_objects_F77
24502 # Dependencies to place before the objects being linked to create a
24504 predeps=$lt_predeps_F77
24506 # Dependencies to place after the objects being linked to create a
24508 postdeps=$lt_postdeps_F77
24510 # The library search path used internally by the compiler when linking
24511 # a shared library.
24512 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24514 # Method to check whether dependent libraries are shared objects.
24515 deplibs_check_method=$lt_deplibs_check_method
24517 # Command to use when deplibs_check_method == file_magic.
24518 file_magic_cmd=$lt_file_magic_cmd
24520 # Flag that allows shared libraries with undefined symbols to be built.
24521 allow_undefined_flag=$lt_allow_undefined_flag_F77
24523 # Flag that forces no undefined symbols.
24524 no_undefined_flag=$lt_no_undefined_flag_F77
24526 # Commands used to finish a libtool library installation in a directory.
24527 finish_cmds=$lt_finish_cmds
24529 # Same as above, but a single script fragment to be evaled but not shown.
24530 finish_eval=$lt_finish_eval
24532 # Take the output of nm and produce a listing of raw symbols and C names.
24533 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24535 # Transform the output of nm in a proper C declaration
24536 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24538 # Transform the output of nm in a C name address pair
24539 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24541 # This is the shared library runtime path variable.
24542 runpath_var=$runpath_var
24544 # This is the shared library path variable.
24545 shlibpath_var=$shlibpath_var
24547 # Is shlibpath searched before the hard-coded library search path?
24548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24550 # How to hardcode a shared library path into an executable.
24551 hardcode_action=$hardcode_action_F77
24553 # Whether we should hardcode library paths into libraries.
24554 hardcode_into_libs=$hardcode_into_libs
24556 # Flag to hardcode \$libdir into a binary during linking.
24557 # This must work even if \$libdir does not exist.
24558 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24560 # If ld is used when linking, flag to hardcode \$libdir into
24561 # a binary during linking. This must work even if \$libdir does
24563 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24565 # Whether we need a single -rpath flag with a separated argument.
24566 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24568 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24569 # resulting binary.
24570 hardcode_direct=$hardcode_direct_F77
24572 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24573 # resulting binary.
24574 hardcode_minus_L=$hardcode_minus_L_F77
24576 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24577 # the resulting binary.
24578 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24580 # Set to yes if building a shared library automatically hardcodes DIR into the library
24581 # and all subsequent libraries and executables linked against it.
24582 hardcode_automatic=$hardcode_automatic_F77
24584 # Variables whose values should be saved in libtool wrapper scripts and
24585 # restored at relink time.
24586 variables_saved_for_relink="$variables_saved_for_relink"
24588 # Whether libtool must link a program against all its dependency libraries.
24589 link_all_deplibs=$link_all_deplibs_F77
24591 # Compile-time system search path for libraries
24592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24594 # Run-time system search path for libraries
24595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24597 # Fix the shell variable \$srcfile for the compiler.
24598 fix_srcfile_path="$fix_srcfile_path_F77"
24600 # Set to yes if exported symbols are required.
24601 always_export_symbols=$always_export_symbols_F77
24603 # The commands to list exported symbols.
24604 export_symbols_cmds=$lt_export_symbols_cmds_F77
24606 # The commands to extract the exported symbol list from a shared archive.
24607 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24609 # Symbols that should not be listed in the preloaded symbols.
24610 exclude_expsyms=$lt_exclude_expsyms_F77
24612 # Symbols that must always be exported.
24613 include_expsyms=$lt_include_expsyms_F77
24615 # ### END LIBTOOL TAG CONFIG: $tagname
24621 # If there is no Makefile yet, we rely on a make rule to execute
24622 # `config.status --recheck' to rerun these tests and create the
24623 # libtool script then.
24624 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24625 if test -f "$ltmain_in"; then
24626 test -f Makefile && make "$ltmain"
24632 ac_cpp='$CPP $CPPFLAGS'
24633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24645 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24649 # Source file extension for Java test sources.
24652 # Object file extension for compiled Java test sources.
24656 # Code to be used in simple compile tests
24657 lt_simple_compile_test_code="class foo {}\n"
24659 # Code to be used in simple link tests
24660 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24664 # If no C compiler was specified, use CC.
24667 # Allow CC to be a program name with arguments.
24671 # save warnings/boilerplate of simple test code
24672 ac_outfile=conftest.$ac_objext
24673 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24675 _lt_compiler_boilerplate=`cat conftest.err`
24678 ac_outfile=conftest.$ac_objext
24679 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24681 _lt_linker_boilerplate=`cat conftest.err`
24685 # Allow CC to be a program name with arguments.
24690 for cc_temp in $compiler""; do
24692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24701 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24702 archive_cmds_need_lc_GCJ=no
24704 old_archive_cmds_GCJ=$old_archive_cmds
24707 ## There is no encapsulation within the following macros, do not change
24708 ## the running order or otherwise move them around unless you know exactly
24709 ## what you are doing...
24711 lt_prog_compiler_no_builtin_flag_GCJ=
24713 if test "$GCC" = yes; then
24714 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24717 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24718 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
24719 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 lt_cv_prog_compiler_rtti_exceptions=no
24723 ac_outfile=conftest.$ac_objext
24724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24725 lt_compiler_flag="-fno-rtti -fno-exceptions"
24726 # Insert the option either (1) after the last *FLAGS variable, or
24727 # (2) before a word containing "conftest.", or (3) at the end.
24728 # Note that $ac_compile itself does not contain backslashes and begins
24729 # with a dollar sign (not a hyphen), so the echo should work correctly.
24730 # The option is referenced via a variable to avoid confusing sed.
24731 lt_compile=`echo "$ac_compile" | $SED \
24732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24734 -e 's:$: $lt_compiler_flag:'`
24735 (eval echo "\"\$as_me:24735: $lt_compile\"" >&5)
24736 (eval "$lt_compile" 2>conftest.err)
24738 cat conftest.err >&5
24739 echo "$as_me:24739: \$? = $ac_status" >&5
24740 if (exit $ac_status) && test -s "$ac_outfile"; then
24741 # The compiler can only warn and ignore the option if not recognized
24742 # So say no if there are warnings other than the usual output.
24743 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
24744 $SED '/^$/d' conftest.err >conftest.er2
24745 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
24746 lt_cv_prog_compiler_rtti_exceptions=yes
24752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
24755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24756 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24763 lt_prog_compiler_wl_GCJ=
24764 lt_prog_compiler_pic_GCJ=
24765 lt_prog_compiler_static_GCJ=
24767 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24770 if test "$GCC" = yes; then
24771 lt_prog_compiler_wl_GCJ='-Wl,'
24772 lt_prog_compiler_static_GCJ='-static'
24776 # All AIX code is PIC.
24777 if test "$host_cpu" = ia64; then
24778 # AIX 5 now supports IA64 processor
24779 lt_prog_compiler_static_GCJ='-Bstatic'
24784 # FIXME: we need at least 68020 code to build shared libraries, but
24785 # adding the `-m68020' flag to GCC prevents building anything better,
24787 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24790 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24791 # PIC is the default for these OSes.
24794 mingw* | pw32* | os2*)
24795 # This hack is so that the source file can tell whether it is being
24796 # built for inclusion in a dll (and should export symbols for example).
24797 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24800 darwin* | rhapsody*)
24801 # PIC is the default on this platform
24802 # Common symbols not allowed in MH_DYLIB files
24803 lt_prog_compiler_pic_GCJ='-fno-common'
24807 # Just because we use GCC doesn't mean we suddenly get shared libraries
24808 # on systems that don't support them.
24809 lt_prog_compiler_can_build_shared_GCJ=no
24814 if test -d /usr/nec; then
24815 lt_prog_compiler_pic_GCJ=-Kconform_pic
24820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24821 # not for PA HP-UX.
24827 lt_prog_compiler_pic_GCJ='-fPIC'
24833 lt_prog_compiler_pic_GCJ='-fPIC'
24837 # PORTME Check for flag to pass linker flags through the system compiler.
24840 lt_prog_compiler_wl_GCJ='-Wl,'
24841 if test "$host_cpu" = ia64; then
24842 # AIX 5 now supports IA64 processor
24843 lt_prog_compiler_static_GCJ='-Bstatic'
24845 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24849 # PIC is the default on this platform
24850 # Common symbols not allowed in MH_DYLIB files
24851 case $cc_basename in
24853 lt_prog_compiler_pic_GCJ='-qnocommon'
24854 lt_prog_compiler_wl_GCJ='-Wl,'
24859 mingw* | pw32* | os2*)
24860 # This hack is so that the source file can tell whether it is being
24861 # built for inclusion in a dll (and should export symbols for example).
24862 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24865 hpux9* | hpux10* | hpux11*)
24866 lt_prog_compiler_wl_GCJ='-Wl,'
24867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24868 # not for PA HP-UX.
24874 lt_prog_compiler_pic_GCJ='+Z'
24877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24878 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24881 irix5* | irix6* | nonstopux*)
24882 lt_prog_compiler_wl_GCJ='-Wl,'
24883 # PIC (with -KPIC) is the default.
24884 lt_prog_compiler_static_GCJ='-non_shared'
24888 lt_prog_compiler_pic_GCJ='-KPIC'
24889 lt_prog_compiler_static_GCJ='-Bstatic'
24893 case $cc_basename in
24895 lt_prog_compiler_wl_GCJ='-Wl,'
24896 lt_prog_compiler_pic_GCJ='-KPIC'
24897 lt_prog_compiler_static_GCJ='-static'
24899 pgcc* | pgf77* | pgf90* | pgf95*)
24900 # Portland Group compilers (*not* the Pentium gcc compiler,
24901 # which looks to be a dead project)
24902 lt_prog_compiler_wl_GCJ='-Wl,'
24903 lt_prog_compiler_pic_GCJ='-fpic'
24904 lt_prog_compiler_static_GCJ='-Bstatic'
24907 lt_prog_compiler_wl_GCJ='-Wl,'
24908 # All Alpha code is PIC.
24909 lt_prog_compiler_static_GCJ='-non_shared'
24914 osf3* | osf4* | osf5*)
24915 lt_prog_compiler_wl_GCJ='-Wl,'
24916 # All OSF/1 code is PIC.
24917 lt_prog_compiler_static_GCJ='-non_shared'
24921 lt_prog_compiler_pic_GCJ='-Kpic'
24922 lt_prog_compiler_static_GCJ='-dn'
24926 lt_prog_compiler_pic_GCJ='-KPIC'
24927 lt_prog_compiler_static_GCJ='-Bstatic'
24928 case $cc_basename in
24929 f77* | f90* | f95*)
24930 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24932 lt_prog_compiler_wl_GCJ='-Wl,';;
24937 lt_prog_compiler_wl_GCJ='-Qoption ld '
24938 lt_prog_compiler_pic_GCJ='-PIC'
24939 lt_prog_compiler_static_GCJ='-Bstatic'
24942 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24943 lt_prog_compiler_wl_GCJ='-Wl,'
24944 lt_prog_compiler_pic_GCJ='-KPIC'
24945 lt_prog_compiler_static_GCJ='-Bstatic'
24949 if test -d /usr/nec ;then
24950 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24951 lt_prog_compiler_static_GCJ='-Bstatic'
24956 lt_prog_compiler_wl_GCJ='-Wl,'
24957 lt_prog_compiler_can_build_shared_GCJ=no
24961 lt_prog_compiler_pic_GCJ='-pic'
24962 lt_prog_compiler_static_GCJ='-Bstatic'
24966 lt_prog_compiler_can_build_shared_GCJ=no
24971 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24972 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
24975 # Check to make sure the PIC flag actually works.
24977 if test -n "$lt_prog_compiler_pic_GCJ"; then
24979 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24980 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
24981 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24982 echo $ECHO_N "(cached) $ECHO_C" >&6
24984 lt_prog_compiler_pic_works_GCJ=no
24985 ac_outfile=conftest.$ac_objext
24986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24987 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24988 # Insert the option either (1) after the last *FLAGS variable, or
24989 # (2) before a word containing "conftest.", or (3) at the end.
24990 # Note that $ac_compile itself does not contain backslashes and begins
24991 # with a dollar sign (not a hyphen), so the echo should work correctly.
24992 # The option is referenced via a variable to avoid confusing sed.
24993 lt_compile=`echo "$ac_compile" | $SED \
24994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24996 -e 's:$: $lt_compiler_flag:'`
24997 (eval echo "\"\$as_me:24997: $lt_compile\"" >&5)
24998 (eval "$lt_compile" 2>conftest.err)
25000 cat conftest.err >&5
25001 echo "$as_me:25001: \$? = $ac_status" >&5
25002 if (exit $ac_status) && test -s "$ac_outfile"; then
25003 # The compiler can only warn and ignore the option if not recognized
25004 # So say no if there are warnings other than the usual output.
25005 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
25006 $SED '/^$/d' conftest.err >conftest.er2
25007 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
25008 lt_prog_compiler_pic_works_GCJ=yes
25014 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
25015 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
25017 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
25018 case $lt_prog_compiler_pic_GCJ in
25020 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25023 lt_prog_compiler_pic_GCJ=
25024 lt_prog_compiler_can_build_shared_GCJ=no
25029 # For platforms which do not support PIC, -DPIC is meaningless:
25031 lt_prog_compiler_pic_GCJ=
25034 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
25038 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25040 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25041 echo $ECHO_N "(cached) $ECHO_C" >&6
25043 lt_cv_prog_compiler_c_o_GCJ=no
25044 $rm -r conftest 2>/dev/null
25048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25050 lt_compiler_flag="-o out/conftest2.$ac_objext"
25051 # Insert the option either (1) after the last *FLAGS variable, or
25052 # (2) before a word containing "conftest.", or (3) at the end.
25053 # Note that $ac_compile itself does not contain backslashes and begins
25054 # with a dollar sign (not a hyphen), so the echo should work correctly.
25055 lt_compile=`echo "$ac_compile" | $SED \
25056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25058 -e 's:$: $lt_compiler_flag:'`
25059 (eval echo "\"\$as_me:25059: $lt_compile\"" >&5)
25060 (eval "$lt_compile" 2>out/conftest.err)
25062 cat out/conftest.err >&5
25063 echo "$as_me:25063: \$? = $ac_status" >&5
25064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
25066 # The compiler can only warn and ignore the option if not recognized
25067 # So say no if there are warnings
25068 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
25069 $SED '/^$/d' out/conftest.err >out/conftest.er2
25070 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25071 lt_cv_prog_compiler_c_o_GCJ=yes
25076 # SGI C++ compiler will create directory out/ii_files/ for
25077 # template instantiation
25078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25079 $rm out/* && rmdir out
25085 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25086 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
25089 hard_links="nottested"
25090 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25091 # do not overwrite the value of need_locks provided by the user
25092 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25093 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25098 ln conftest.a conftest.b 2>&5 || hard_links=no
25099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25100 echo "$as_me:$LINENO: result: $hard_links" >&5
25101 echo "${ECHO_T}$hard_links" >&6
25102 if test "$hard_links" = no; then
25103 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25104 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25111 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25112 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25115 allow_undefined_flag_GCJ=
25116 enable_shared_with_static_runtimes_GCJ=no
25118 archive_expsym_cmds_GCJ=
25119 old_archive_From_new_cmds_GCJ=
25120 old_archive_from_expsyms_cmds_GCJ=
25121 export_dynamic_flag_spec_GCJ=
25122 whole_archive_flag_spec_GCJ=
25123 thread_safe_flag_spec_GCJ=
25124 hardcode_libdir_flag_spec_GCJ=
25125 hardcode_libdir_flag_spec_ld_GCJ=
25126 hardcode_libdir_separator_GCJ=
25127 hardcode_direct_GCJ=no
25128 hardcode_minus_L_GCJ=no
25129 hardcode_shlibpath_var_GCJ=unsupported
25130 link_all_deplibs_GCJ=unknown
25131 hardcode_automatic_GCJ=no
25133 module_expsym_cmds_GCJ=
25134 always_export_symbols_GCJ=no
25135 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25136 # include_expsyms should be a list of space-separated symbols to be *always*
25137 # included in the symbol list
25138 include_expsyms_GCJ=
25139 # exclude_expsyms can be an extended regexp of symbols to exclude
25140 # it will be wrapped by ` (' and `)$', so one must not match beginning or
25141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25142 # as well as any symbol that contains `d'.
25143 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25145 # platforms (ab)use it in PIC code, but their linkers get confused if
25146 # the symbol is explicitly referenced. Since portable code cannot
25147 # rely on this symbol name, it's probably fine to never include it in
25148 # preloaded symbol tables.
25149 extract_expsyms_cmds=
25150 # Just being paranoid about ensuring that cc_basename is set.
25151 for cc_temp in $compiler""; do
25153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25162 cygwin* | mingw* | pw32*)
25163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
25164 # When not using gcc, we currently assume that we are using
25165 # Microsoft Visual C++.
25166 if test "$GCC" != yes; then
25176 if test "$with_gnu_ld" = yes; then
25177 # If archive_cmds runs LD, not CC, wlarc should be empty
25180 # Set some defaults for GNU ld with shared library support. These
25181 # are reset later if shared libraries are not supported. Putting them
25182 # here allows them to be overridden if necessary.
25183 runpath_var=LD_RUN_PATH
25184 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25185 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25186 # ancient GNU ld didn't support --whole-archive et. al.
25187 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25188 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25190 whole_archive_flag_spec_GCJ=
25192 supports_anon_versioning=no
25193 case `$LD -v 2>/dev/null` in
25194 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25197 *\ 2.11.*) ;; # other 2.11 versions
25198 *) supports_anon_versioning=yes ;;
25201 # See if GNU ld supports shared libraries.
25203 aix3* | aix4* | aix5*)
25204 # On AIX/PPC, the GNU linker is very broken
25205 if test "$host_cpu" != ia64; then
25209 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25210 *** to be unable to reliably create shared libraries on AIX.
25211 *** Therefore, libtool is disabling shared libraries support. If you
25212 *** really care for shared libraries, you may want to modify your PATH
25213 *** so that a non-GNU linker is found, and then restart.
25220 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)'
25221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25222 hardcode_minus_L_GCJ=yes
25224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25225 # that the semantics of dynamic libraries on AmigaOS, at least up
25226 # to version 4, is to share data among multiple programs linked
25227 # with the same dynamic library. Since this doesn't match the
25228 # behavior of shared libraries on other platforms, we can't use
25234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25235 allow_undefined_flag_GCJ=unsupported
25236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25237 # support --undefined. This deserves some investigation. FIXME
25238 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25244 cygwin* | mingw* | pw32*)
25245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25246 # as there is no search path for DLLs.
25247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25248 allow_undefined_flag_GCJ=unsupported
25249 always_export_symbols_GCJ=no
25250 enable_shared_with_static_runtimes_GCJ=yes
25251 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25254 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25255 # If the export-symbols file already is a .def file (1st line
25256 # is EXPORTS), use it as is; otherwise, prepend...
25257 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25258 cp $export_symbols $output_objdir/$soname.def;
25260 echo EXPORTS > $output_objdir/$soname.def;
25261 cat $export_symbols >> $output_objdir/$soname.def;
25263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25272 case $cc_basename,$host_cpu in
25273 pgcc*) # Portland Group C compiler
25274 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'
25275 tmp_addflag=' $pic_flag'
25277 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
25278 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'
25279 tmp_addflag=' $pic_flag -Mnomain' ;;
25280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25281 tmp_addflag=' -i_dynamic' ;;
25282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25283 tmp_addflag=' -i_dynamic -nofor_main' ;;
25284 ifc* | ifort*) # Intel Fortran compiler
25285 tmp_addflag=' -nofor_main' ;;
25287 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25289 if test $supports_anon_versioning = yes; then
25290 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25292 $echo "local: *; };" >> $output_objdir/$libname.ver~
25293 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25302 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25305 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25306 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25311 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25316 *** create shared libraries on Solaris systems. Therefore, libtool
25317 *** is disabling shared libraries support. We urge you to upgrade GNU
25318 *** binutils to release 2.9.1 or newer. Another option is to modify
25319 *** your PATH or compiler configuration so that the native linker is
25320 *** used, and then restart.
25323 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25324 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25325 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25332 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25334 hardcode_direct_GCJ=yes
25335 hardcode_shlibpath_var_GCJ=no
25339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25340 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25341 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25348 if test "$ld_shlibs_GCJ" = no; then
25350 hardcode_libdir_flag_spec_GCJ=
25351 export_dynamic_flag_spec_GCJ=
25352 whole_archive_flag_spec_GCJ=
25355 # PORTME fill in a description of your system's linker (not GNU ld)
25358 allow_undefined_flag_GCJ=unsupported
25359 always_export_symbols_GCJ=yes
25360 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'
25361 # Note: this linker hardcodes the directories in LIBPATH if there
25362 # are no directories specified by -L.
25363 hardcode_minus_L_GCJ=yes
25364 if test "$GCC" = yes && test -z "$link_static_flag"; then
25365 # Neither direct hardcoding nor static linking is supported with a
25367 hardcode_direct_GCJ=unsupported
25372 if test "$host_cpu" = ia64; then
25373 # On IA64, the linker does run time linking by default, so we don't
25374 # have to do anything special.
25375 aix_use_runtimelinking=no
25376 exp_sym_flag='-Bexport'
25379 # If we're using GNU nm, then we don't want the "-C" option.
25380 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25381 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25382 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'
25384 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'
25386 aix_use_runtimelinking=no
25388 # Test if we are trying to use run time linking or normal
25389 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25390 # need to do runtime linking.
25391 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25392 for ld_flag in $LDFLAGS; do
25393 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25394 aix_use_runtimelinking=yes
25400 exp_sym_flag='-bexport'
25401 no_entry_flag='-bnoentry'
25404 # When large executables or shared objects are built, AIX ld can
25405 # have problems creating the table of contents. If linking a library
25406 # or program results in "error TOC overflow" add -mminimal-toc to
25407 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25408 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25410 archive_cmds_GCJ=''
25411 hardcode_direct_GCJ=yes
25412 hardcode_libdir_separator_GCJ=':'
25413 link_all_deplibs_GCJ=yes
25415 if test "$GCC" = yes; then
25416 case $host_os in aix4.[012]|aix4.[012].*)
25417 # We only want to do this on AIX 4.2 and lower, the check
25418 # below for broken collect2 doesn't work under 4.3+
25419 collect2name=`${CC} -print-prog-name=collect2`
25420 if test -f "$collect2name" && \
25421 strings "$collect2name" | grep resolve_lib_name >/dev/null
25423 # We have reworked collect2
25424 hardcode_direct_GCJ=yes
25426 # We have old collect2
25427 hardcode_direct_GCJ=unsupported
25428 # It fails to find uninstalled libraries when the uninstalled
25429 # path is not listed in the libpath. Setting hardcode_minus_L
25430 # to unsupported forces relinking
25431 hardcode_minus_L_GCJ=yes
25432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25433 hardcode_libdir_separator_GCJ=
25436 shared_flag='-shared'
25437 if test "$aix_use_runtimelinking" = yes; then
25438 shared_flag="$shared_flag "'${wl}-G'
25442 if test "$host_cpu" = ia64; then
25443 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25444 # chokes on -Wl,-G. The following line is correct:
25447 if test "$aix_use_runtimelinking" = yes; then
25448 shared_flag='${wl}-G'
25450 shared_flag='${wl}-bM:SRE'
25455 # It seems that -bexpall does not export symbols beginning with
25456 # underscore (_), so it is better to generate a list of symbols to export.
25457 always_export_symbols_GCJ=yes
25458 if test "$aix_use_runtimelinking" = yes; then
25459 # Warning - without using the other runtime loading flags (-brtl),
25460 # -berok will link without error, but may produce a broken library.
25461 allow_undefined_flag_GCJ='-berok'
25462 # Determine the default libpath from the value encoded in an empty executable.
25463 cat >conftest.$ac_ext <<_ACEOF
25466 cat confdefs.h >>conftest.$ac_ext
25467 cat >>conftest.$ac_ext <<_ACEOF
25468 /* end confdefs.h. */
25478 rm -f conftest.$ac_objext conftest$ac_exeext
25479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25480 (eval $ac_link) 2>conftest.er1
25482 grep -v '^ *+' conftest.er1 >conftest.err
25484 cat conftest.err >&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } &&
25487 { ac_try='test -z "$ac_c_werror_flag"
25488 || test ! -s conftest.err'
25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490 (eval $ac_try) 2>&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; } &&
25494 { ac_try='test -s conftest$ac_exeext'
25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496 (eval $ac_try) 2>&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25503 # Check for a 64-bit object if we didn't find anything.
25504 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; }
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25511 rm -f conftest.err conftest.$ac_objext \
25512 conftest$ac_exeext conftest.$ac_ext
25513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25515 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25516 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"
25518 if test "$host_cpu" = ia64; then
25519 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25520 allow_undefined_flag_GCJ="-z nodefs"
25521 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"
25523 # Determine the default libpath from the value encoded in an empty executable.
25524 cat >conftest.$ac_ext <<_ACEOF
25527 cat confdefs.h >>conftest.$ac_ext
25528 cat >>conftest.$ac_ext <<_ACEOF
25529 /* end confdefs.h. */
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25541 (eval $ac_link) 2>conftest.er1
25543 grep -v '^ *+' conftest.er1 >conftest.err
25545 cat conftest.err >&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } &&
25548 { ac_try='test -z "$ac_c_werror_flag"
25549 || test ! -s conftest.err'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; } &&
25555 { ac_try='test -s conftest$ac_exeext'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; }; then
25562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25564 # Check for a 64-bit object if we didn't find anything.
25565 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; }
25568 echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25572 rm -f conftest.err conftest.$ac_objext \
25573 conftest$ac_exeext conftest.$ac_ext
25574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25576 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25577 # Warning - without using the other run time loading flags,
25578 # -berok will link without error, but may produce a broken library.
25579 no_undefined_flag_GCJ=' ${wl}-bernotok'
25580 allow_undefined_flag_GCJ=' ${wl}-berok'
25581 # -bexpall does not export symbols beginning with underscore (_)
25582 always_export_symbols_GCJ=yes
25583 # Exported symbols can be pulled into shared objects from archives
25584 whole_archive_flag_spec_GCJ=' '
25585 archive_cmds_need_lc_GCJ=yes
25586 # This is similar to how AIX traditionally builds its shared libraries.
25587 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'
25593 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)'
25594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25595 hardcode_minus_L_GCJ=yes
25596 # see comment about different semantics on the GNU ld section
25601 export_dynamic_flag_spec_GCJ=-rdynamic
25604 cygwin* | mingw* | pw32*)
25605 # When not using gcc, we currently assume that we are using
25606 # Microsoft Visual C++.
25607 # hardcode_libdir_flag_spec is actually meaningless, as there is
25608 # no search path for DLLs.
25609 hardcode_libdir_flag_spec_GCJ=' '
25610 allow_undefined_flag_GCJ=unsupported
25611 # Tell ltmain to make .lib files, not .a files.
25613 # Tell ltmain to make .dll files, not .so files.
25615 # FIXME: Setting linknames here is a bad hack.
25616 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25617 # The linker will automatically build a .lib file if we build a DLL.
25618 old_archive_From_new_cmds_GCJ='true'
25619 # FIXME: Should let the user specify the lib program.
25620 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25621 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25622 enable_shared_with_static_runtimes_GCJ=yes
25625 darwin* | rhapsody*)
25627 rhapsody* | darwin1.[012])
25628 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25631 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25632 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25634 case ${MACOSX_DEPLOYMENT_TARGET} in
25636 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25639 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25645 archive_cmds_need_lc_GCJ=no
25646 hardcode_direct_GCJ=no
25647 hardcode_automatic_GCJ=yes
25648 hardcode_shlibpath_var_GCJ=unsupported
25649 whole_archive_flag_spec_GCJ=''
25650 link_all_deplibs_GCJ=yes
25651 if test "$GCC" = yes ; then
25652 output_verbose_link_cmd='echo'
25653 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25654 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25655 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25656 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}'
25657 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}'
25659 case $cc_basename in
25661 output_verbose_link_cmd='echo'
25662 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25663 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25664 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25665 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}'
25666 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}'
25676 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25677 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25678 hardcode_shlibpath_var_GCJ=no
25685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25686 # support. Future versions do this automatically, but an explicit c++rt0.o
25687 # does not break anything, and helps significantly (at the cost of a little
25690 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25691 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25692 hardcode_direct_GCJ=yes
25693 hardcode_shlibpath_var_GCJ=no
25696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25698 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25699 hardcode_direct_GCJ=yes
25700 hardcode_minus_L_GCJ=yes
25701 hardcode_shlibpath_var_GCJ=no
25704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25705 freebsd* | kfreebsd*-gnu | dragonfly*)
25706 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25707 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25708 hardcode_direct_GCJ=yes
25709 hardcode_shlibpath_var_GCJ=no
25713 if test "$GCC" = yes; then
25714 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'
25716 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'
25718 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25719 hardcode_libdir_separator_GCJ=:
25720 hardcode_direct_GCJ=yes
25722 # hardcode_minus_L: Not really in the search PATH,
25723 # but as the default location of the library.
25724 hardcode_minus_L_GCJ=yes
25725 export_dynamic_flag_spec_GCJ='${wl}-E'
25729 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25732 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25735 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25741 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
25744 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25748 if test "$with_gnu_ld" = no; then
25751 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25752 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25753 hardcode_libdir_separator_GCJ=:
25754 hardcode_direct_GCJ=no
25755 hardcode_shlibpath_var_GCJ=no
25758 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25759 hardcode_direct_GCJ=no
25760 hardcode_shlibpath_var_GCJ=no
25762 # hardcode_minus_L: Not really in the search PATH,
25763 # but as the default location of the library.
25764 hardcode_minus_L_GCJ=yes
25767 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25768 hardcode_libdir_separator_GCJ=:
25769 hardcode_direct_GCJ=yes
25770 export_dynamic_flag_spec_GCJ='${wl}-E'
25772 # hardcode_minus_L: Not really in the search PATH,
25773 # but as the default location of the library.
25774 hardcode_minus_L_GCJ=yes
25780 irix5* | irix6* | nonstopux*)
25781 if test "$GCC" = yes; then
25782 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'
25784 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'
25785 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25788 hardcode_libdir_separator_GCJ=:
25789 link_all_deplibs_GCJ=yes
25793 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25794 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25796 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25798 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25799 hardcode_direct_GCJ=yes
25800 hardcode_shlibpath_var_GCJ=no
25804 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25805 hardcode_direct_GCJ=yes
25806 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25807 hardcode_libdir_separator_GCJ=:
25808 hardcode_shlibpath_var_GCJ=no
25812 hardcode_direct_GCJ=yes
25813 hardcode_shlibpath_var_GCJ=no
25814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25815 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25816 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25817 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25818 export_dynamic_flag_spec_GCJ='${wl}-E'
25821 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25822 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25823 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25826 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25827 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25834 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25835 hardcode_minus_L_GCJ=yes
25836 allow_undefined_flag_GCJ=unsupported
25837 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'
25838 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25842 if test "$GCC" = yes; then
25843 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25844 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'
25846 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25847 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'
25849 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25850 hardcode_libdir_separator_GCJ=:
25853 osf4* | osf5*) # as osf3* with the addition of -msym flag
25854 if test "$GCC" = yes; then
25855 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25856 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'
25857 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25859 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25860 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'
25861 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~
25862 $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'
25864 # Both c and cxx compiler support -rpath directly
25865 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25867 hardcode_libdir_separator_GCJ=:
25871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25872 hardcode_shlibpath_var_GCJ=no
25873 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25874 runpath_var=LD_RUN_PATH
25875 hardcode_runpath_var=yes
25879 no_undefined_flag_GCJ=' -z text'
25880 if test "$GCC" = yes; then
25882 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25883 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25884 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25887 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25888 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25889 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25891 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25892 hardcode_shlibpath_var_GCJ=no
25894 solaris2.[0-5] | solaris2.[0-5].*) ;;
25896 # The compiler driver will combine linker options so we
25897 # cannot just pass the convience library names through
25898 # without $wl, iff we do not link with $LD.
25899 # Luckily, gcc supports the same syntax we need for Sun Studio.
25900 # Supported since Solaris 2.6 (maybe 2.5.1?)
25903 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25905 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' ;;
25908 link_all_deplibs_GCJ=yes
25912 if test "x$host_vendor" = xsequent; then
25913 # Use $CC to link under sequent, because it throws in some extra .o
25914 # files that make .init and .fini sections work.
25915 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25917 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25919 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25920 hardcode_direct_GCJ=yes
25921 hardcode_minus_L_GCJ=yes
25922 hardcode_shlibpath_var_GCJ=no
25926 case $host_vendor in
25928 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25929 hardcode_direct_GCJ=yes # is this really true???
25932 ## LD is ld it makes a PLAMLIB
25933 ## CC just makes a GrossModule.
25934 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25935 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25936 hardcode_direct_GCJ=no
25939 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25940 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25943 runpath_var='LD_RUN_PATH'
25944 hardcode_shlibpath_var_GCJ=no
25948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25949 hardcode_shlibpath_var_GCJ=no
25950 export_dynamic_flag_spec_GCJ='-Bexport'
25954 if test -d /usr/nec; then
25955 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25956 hardcode_shlibpath_var_GCJ=no
25957 runpath_var=LD_RUN_PATH
25958 hardcode_runpath_var=yes
25964 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25965 hardcode_direct_GCJ=yes
25966 hardcode_minus_L_GCJ=no
25967 hardcode_shlibpath_var_GCJ=no
25968 hardcode_runpath_var=yes
25969 runpath_var=LD_RUN_PATH
25972 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
25973 no_undefined_flag_GCJ='${wl}-z ${wl}text'
25974 if test "$GCC" = yes; then
25975 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25977 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25979 runpath_var='LD_RUN_PATH'
25980 hardcode_shlibpath_var_GCJ=no
25984 no_undefined_flag_GCJ=' -z text'
25985 # $CC -shared without GNU ld will not create a library from C++
25986 # object files and a static libstdc++, better avoid it by now
25987 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25988 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25989 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25990 hardcode_libdir_flag_spec_GCJ=
25991 hardcode_shlibpath_var_GCJ=no
25992 runpath_var='LD_RUN_PATH'
25996 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25998 hardcode_shlibpath_var_GCJ=no
26007 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26008 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
26009 test "$ld_shlibs_GCJ" = no && can_build_shared=no
26011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26012 if test "$GCC" = yes; then
26013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26017 # Do we need to explicitly link libc?
26019 case "x$archive_cmds_need_lc_GCJ" in
26021 # Assume -lc should be added
26022 archive_cmds_need_lc_GCJ=yes
26024 if test "$enable_shared" = yes && test "$GCC" = yes; then
26025 case $archive_cmds_GCJ in
26027 # FIXME: we may have to deal with multi-command sequences.
26030 # Test whether the compiler implicitly links with -lc since on some
26031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
26032 # to ld, don't add -lc before -lgcc.
26033 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26039 (eval $ac_compile) 2>&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } 2>conftest.err; then
26045 libobjs=conftest.$ac_objext
26047 wl=$lt_prog_compiler_wl_GCJ
26053 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
26054 allow_undefined_flag_GCJ=
26055 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26056 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }
26061 archive_cmds_need_lc_GCJ=no
26063 archive_cmds_need_lc_GCJ=yes
26065 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
26067 cat conftest.err 1>&5
26070 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26071 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
26078 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26079 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26080 library_names_spec=
26081 libname_spec='lib$name'
26085 postuninstall_cmds=
26089 shlibpath_overrides_runpath=unknown
26091 dynamic_linker="$host_os ld.so"
26092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
26093 if test "$GCC" = yes; then
26094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26095 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26096 # if the path contains ";" then we assume it to be the separator
26097 # otherwise default to the standard path separator (i.e. ":") - it is
26098 # assumed that no part of a normal pathname contains ";" but that should
26099 # okay in the real world where ";" in dirpaths is itself problematic.
26100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26107 need_lib_prefix=unknown
26108 hardcode_into_libs=no
26110 # when you set need_version to no, make sure it does not cause -set_version
26111 # flags to be left without arguments
26112 need_version=unknown
26117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26118 shlibpath_var=LIBPATH
26120 # AIX 3 has no versioning support, so we append a major version to the name.
26121 soname_spec='${libname}${release}${shared_ext}$major'
26128 hardcode_into_libs=yes
26129 if test "$host_cpu" = ia64; then
26130 # AIX 5 supports IA64
26131 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26132 shlibpath_var=LD_LIBRARY_PATH
26134 # With GCC up to 2.95.x, collect2 would create an import file
26135 # for dependence libraries. The import file would start with
26136 # the line `#! .'. This would cause the generated library to
26137 # depend on `.', always an invalid library. This was fixed in
26138 # development snapshots of GCC prior to 3.0.
26140 aix4 | aix4.[01] | aix4.[01].*)
26141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26143 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26146 can_build_shared=no
26150 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26151 # soname into executable. Probably we can add versioning support to
26152 # collect2, so additional links can be useful in future.
26153 if test "$aix_use_runtimelinking" = yes; then
26154 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26155 # instead of lib<name>.a to let people know that these are not
26156 # typical AIX shared libraries.
26157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26159 # We preserve .a as extension for shared libraries through AIX4.2
26160 # and later when we are not doing run time linking.
26161 library_names_spec='${libname}${release}.a $libname.a'
26162 soname_spec='${libname}${release}${shared_ext}$major'
26164 shlibpath_var=LIBPATH
26169 library_names_spec='$libname.ixlibrary $libname.a'
26170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
26171 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'
26175 library_names_spec='${libname}${shared_ext}'
26176 dynamic_linker="$host_os ld.so"
26177 shlibpath_var=LIBRARY_PATH
26183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26184 soname_spec='${libname}${release}${shared_ext}$major'
26185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26186 shlibpath_var=LD_LIBRARY_PATH
26187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26189 # the default ld.so.conf also contains /usr/contrib/lib and
26190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26191 # libtool to hard-code these into programs
26194 cygwin* | mingw* | pw32*)
26195 version_type=windows
26200 case $GCC,$host_os in
26201 yes,cygwin* | yes,mingw* | yes,pw32*)
26202 library_names_spec='$libname.dll.a'
26203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
26204 postinstall_cmds='base_file=`basename \${file}`~
26205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26206 dldir=$destdir/`dirname \$dlpath`~
26207 test -d \$dldir || mkdir -p \$dldir~
26208 $install_prog $dir/$dlname \$dldir/$dlname~
26209 chmod a+x \$dldir/$dlname'
26210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26211 dlpath=$dir/\$dldll~
26213 shlibpath_overrides_runpath=yes
26217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26219 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26222 # MinGW DLLs use traditional 'lib' prefix
26223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26224 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26225 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26226 # It is most probably a Windows format PATH printed by
26227 # mingw gcc, but we are running on Cygwin. Gcc prints its search
26228 # path with ; separators, and with drive letters. We can handle the
26229 # drive letters (cygwin fileutils understands them), so leave them,
26230 # especially as we might pass files found there to a mingw objdump,
26231 # which wouldn't understand a cygwinified path. Ahh.
26232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26238 # pw32 DLLs use 'pw' prefix rather than 'lib'
26239 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26245 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26248 dynamic_linker='Win32 ld.exe'
26249 # FIXME: first we should search . and the directory the executable is in
26253 darwin* | rhapsody*)
26254 dynamic_linker="$host_os dyld"
26255 version_type=darwin
26258 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26259 soname_spec='${libname}${release}${major}$shared_ext'
26260 shlibpath_overrides_runpath=yes
26261 shlibpath_var=DYLD_LIBRARY_PATH
26262 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26263 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26264 if test "$GCC" = yes; then
26265 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"`
26267 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26277 soname_spec='${libname}${release}${shared_ext}$major'
26278 shlibpath_var=LD_LIBRARY_PATH
26289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26290 soname_spec='${libname}${release}${shared_ext}$major'
26291 shlibpath_var=LD_LIBRARY_PATH
26292 shlibpath_overrides_runpath=no
26293 hardcode_into_libs=yes
26294 dynamic_linker='GNU ld.so'
26297 freebsd* | dragonfly*)
26298 # DragonFly does not have aout. When/if they implement a new
26299 # versioning mechanism, adjust this.
26300 if test -x /usr/bin/objformat; then
26301 objformat=`/usr/bin/objformat`
26304 freebsd[123]*) objformat=aout ;;
26305 *) objformat=elf ;;
26308 version_type=freebsd-$objformat
26309 case $version_type in
26311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26320 shlibpath_var=LD_LIBRARY_PATH
26323 shlibpath_overrides_runpath=yes
26325 freebsd3.[01]* | freebsdelf3.[01]*)
26326 shlibpath_overrides_runpath=yes
26327 hardcode_into_libs=yes
26330 shlibpath_overrides_runpath=no
26331 hardcode_into_libs=yes
26340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26341 soname_spec='${libname}${release}${shared_ext}$major'
26342 shlibpath_var=LD_LIBRARY_PATH
26343 hardcode_into_libs=yes
26346 hpux9* | hpux10* | hpux11*)
26347 # Give a soname corresponding to the major version so that dld.sl refuses to
26348 # link against other versions.
26355 hardcode_into_libs=yes
26356 dynamic_linker="$host_os dld.so"
26357 shlibpath_var=LD_LIBRARY_PATH
26358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26360 soname_spec='${libname}${release}${shared_ext}$major'
26361 if test "X$HPUX_IA64_MODE" = X32; then
26362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26370 hardcode_into_libs=yes
26371 dynamic_linker="$host_os dld.sl"
26372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26375 soname_spec='${libname}${release}${shared_ext}$major'
26376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26381 dynamic_linker="$host_os dld.sl"
26382 shlibpath_var=SHLIB_PATH
26383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26385 soname_spec='${libname}${release}${shared_ext}$major'
26388 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26389 postinstall_cmds='chmod 555 $lib'
26392 irix5* | irix6* | nonstopux*)
26394 nonstopux*) version_type=nonstopux ;;
26396 if test "$lt_cv_prog_gnu_ld" = yes; then
26404 soname_spec='${libname}${release}${shared_ext}$major'
26405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26407 irix5* | nonstopux*)
26408 libsuff= shlibsuff=
26411 case $LD in # libtool.m4 will add one of these switches to LD
26412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26413 libsuff= shlibsuff= libmagic=32-bit;;
26414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26415 libsuff=32 shlibsuff=N32 libmagic=N32;;
26416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26418 *) libsuff= shlibsuff= libmagic=never-match;;
26422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26423 shlibpath_overrides_runpath=no
26424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26426 hardcode_into_libs=yes
26429 # No shared lib support for Linux oldld, aout, or coff.
26430 linux*oldld* | linux*aout* | linux*coff*)
26434 # This must be Linux ELF.
26439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26440 soname_spec='${libname}${release}${shared_ext}$major'
26441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26442 shlibpath_var=LD_LIBRARY_PATH
26443 shlibpath_overrides_runpath=no
26444 # This implies no fast_install, which is unacceptable.
26445 # Some rework will be needed to allow for fast_install
26446 # before this can be enabled.
26447 hardcode_into_libs=yes
26449 # Append ld.so.conf contents to the search path
26450 if test -f /etc/ld.so.conf; then
26451 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' ' '`
26452 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26455 # We used to test for /lib/ld.so.1 and disable shared libraries on
26456 # powerpc, because MkLinux only supported shared libraries with the
26457 # GNU dynamic linker. Since this was broken with cross compilers,
26458 # most powerpc-linux boxes support dynamic linking these days and
26459 # people can always --disable-shared, the test was removed, and we
26460 # assume the GNU/Linux dynamic linker is in use.
26461 dynamic_linker='GNU/Linux ld.so'
26468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26469 soname_spec='${libname}${release}${shared_ext}$major'
26470 shlibpath_var=LD_LIBRARY_PATH
26471 shlibpath_overrides_runpath=no
26472 hardcode_into_libs=yes
26473 dynamic_linker='GNU ld.so'
26480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26483 dynamic_linker='NetBSD (a.out) ld.so'
26485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26486 soname_spec='${libname}${release}${shared_ext}$major'
26487 dynamic_linker='NetBSD ld.elf_so'
26489 shlibpath_var=LD_LIBRARY_PATH
26490 shlibpath_overrides_runpath=yes
26491 hardcode_into_libs=yes
26496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26497 shlibpath_var=LD_LIBRARY_PATH
26498 shlibpath_overrides_runpath=yes
26505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26506 soname_spec='${libname}${release}${shared_ext}$major'
26507 shlibpath_var=LD_LIBRARY_PATH
26508 shlibpath_overrides_runpath=yes
26514 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26516 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26517 *) need_version=no ;;
26519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26521 shlibpath_var=LD_LIBRARY_PATH
26522 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26524 openbsd2.[89] | openbsd2.[89].*)
26525 shlibpath_overrides_runpath=no
26528 shlibpath_overrides_runpath=yes
26532 shlibpath_overrides_runpath=yes
26537 libname_spec='$name'
26540 library_names_spec='$libname${shared_ext} $libname.a'
26541 dynamic_linker='OS/2 ld.exe'
26542 shlibpath_var=LIBPATH
26545 osf3* | osf4* | osf5*)
26549 soname_spec='${libname}${release}${shared_ext}$major'
26550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26551 shlibpath_var=LD_LIBRARY_PATH
26552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26558 soname_spec='${libname}${release}${shared_ext}$major'
26559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26560 shlibpath_var=LD_LIBRARY_PATH
26567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26568 soname_spec='${libname}${release}${shared_ext}$major'
26569 shlibpath_var=LD_LIBRARY_PATH
26570 shlibpath_overrides_runpath=yes
26571 hardcode_into_libs=yes
26572 # ldd complains unless libraries are executable
26573 postinstall_cmds='chmod +x $lib'
26578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26580 shlibpath_var=LD_LIBRARY_PATH
26581 shlibpath_overrides_runpath=yes
26582 if test "$with_gnu_ld" = yes; then
26588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26591 soname_spec='${libname}${release}${shared_ext}$major'
26592 shlibpath_var=LD_LIBRARY_PATH
26593 case $host_vendor in
26595 shlibpath_overrides_runpath=no
26597 export_dynamic_flag_spec='${wl}-Blargedynsym'
26598 runpath_var=LD_RUN_PATH
26606 shlibpath_overrides_runpath=no
26607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26613 if test -d /usr/nec ;then
26615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26616 soname_spec='$libname${shared_ext}.$major'
26617 shlibpath_var=LD_LIBRARY_PATH
26623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26624 soname_spec='${libname}${release}${shared_ext}$major'
26625 shlibpath_var=LD_LIBRARY_PATH
26632 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26633 echo "${ECHO_T}$dynamic_linker" >&6
26634 test "$dynamic_linker" = no && can_build_shared=no
26636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26638 hardcode_action_GCJ=
26639 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26640 test -n "$runpath_var_GCJ" || \
26641 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26643 # We can hardcode non-existant directories.
26644 if test "$hardcode_direct_GCJ" != no &&
26645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26646 # have to relink, otherwise we might link with an installed library
26647 # when we should be linking with a yet-to-be-installed one
26648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26649 test "$hardcode_minus_L_GCJ" != no; then
26650 # Linking always hardcodes the temporary library directory.
26651 hardcode_action_GCJ=relink
26653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26654 hardcode_action_GCJ=immediate
26657 # We cannot hardcode anything, or else we can only hardcode existing
26659 hardcode_action_GCJ=unsupported
26661 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26662 echo "${ECHO_T}$hardcode_action_GCJ" >&6
26664 if test "$hardcode_action_GCJ" = relink; then
26665 # Fast installation is not supported
26666 enable_fast_install=no
26667 elif test "$shlibpath_overrides_runpath" = yes ||
26668 test "$enable_shared" = no; then
26669 # Fast installation is not necessary
26670 enable_fast_install=needless
26675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26680 echo "$as_me:$LINENO: result: yes" >&5
26681 echo "${ECHO_T}yes" >&6
26683 # FIXME - insert some real tests, host_os isn't really good enough
26686 if test -n "$STRIP" ; then
26687 striplib="$STRIP -x"
26688 echo "$as_me:$LINENO: result: yes" >&5
26689 echo "${ECHO_T}yes" >&6
26691 echo "$as_me:$LINENO: result: no" >&5
26692 echo "${ECHO_T}no" >&6
26696 echo "$as_me:$LINENO: result: no" >&5
26697 echo "${ECHO_T}no" >&6
26702 if test "x$enable_dlopen" != xyes; then
26703 enable_dlopen=unknown
26704 enable_dlopen_self=unknown
26705 enable_dlopen_self_static=unknown
26712 lt_cv_dlopen="load_add_on"
26714 lt_cv_dlopen_self=yes
26718 lt_cv_dlopen="LoadLibrary"
26723 lt_cv_dlopen="dlopen"
26728 # if libdl is installed we need to link against it
26729 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26732 echo $ECHO_N "(cached) $ECHO_C" >&6
26734 ac_check_lib_save_LIBS=$LIBS
26736 cat >conftest.$ac_ext <<_ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26743 /* Override any gcc2 internal prototype to avoid an error. */
26747 /* We use char because int might match the return type of a gcc2
26748 builtin and then its argument prototype would still apply. */
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26760 (eval $ac_link) 2>conftest.er1
26762 grep -v '^ *+' conftest.er1 >conftest.err
26764 cat conftest.err >&5
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } &&
26767 { ac_try='test -z "$ac_c_werror_flag"
26768 || test ! -s conftest.err'
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; } &&
26774 { ac_try='test -s conftest$ac_exeext'
26775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776 (eval $ac_try) 2>&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); }; }; then
26780 ac_cv_lib_dl_dlopen=yes
26782 echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 ac_cv_lib_dl_dlopen=no
26787 rm -f conftest.err conftest.$ac_objext \
26788 conftest$ac_exeext conftest.$ac_ext
26789 LIBS=$ac_check_lib_save_LIBS
26791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26793 if test $ac_cv_lib_dl_dlopen = yes; then
26794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
26797 lt_cv_dlopen="dyld"
26799 lt_cv_dlopen_self=yes
26806 echo "$as_me:$LINENO: checking for shl_load" >&5
26807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
26808 if test "${ac_cv_func_shl_load+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
26818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26819 #define shl_load innocuous_shl_load
26821 /* System header to define __stub macros and hopefully few prototypes,
26822 which can conflict with char shl_load (); below.
26823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26824 <limits.h> exists even on freestanding compilers. */
26827 # include <limits.h>
26829 # include <assert.h>
26834 /* Override any gcc2 internal prototype to avoid an error. */
26839 /* We use char because int might match the return type of a gcc2
26840 builtin and then its argument prototype would still apply. */
26842 /* The GNU C library defines this for functions which it implements
26843 to always fail with ENOSYS. Some functions are actually named
26844 something starting with __ and the normal name is an alias. */
26845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
26848 char (*f) () = shl_load;
26857 return f != shl_load;
26862 rm -f conftest.$ac_objext conftest$ac_exeext
26863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26864 (eval $ac_link) 2>conftest.er1
26866 grep -v '^ *+' conftest.er1 >conftest.err
26868 cat conftest.err >&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } &&
26871 { ac_try='test -z "$ac_c_werror_flag"
26872 || test ! -s conftest.err'
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; } &&
26878 { ac_try='test -s conftest$ac_exeext'
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; }; then
26884 ac_cv_func_shl_load=yes
26886 echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26889 ac_cv_func_shl_load=no
26891 rm -f conftest.err conftest.$ac_objext \
26892 conftest$ac_exeext conftest.$ac_ext
26894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
26895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
26896 if test $ac_cv_func_shl_load = yes; then
26897 lt_cv_dlopen="shl_load"
26899 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
26900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
26901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
26902 echo $ECHO_N "(cached) $ECHO_C" >&6
26904 ac_check_lib_save_LIBS=$LIBS
26906 cat >conftest.$ac_ext <<_ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26913 /* Override any gcc2 internal prototype to avoid an error. */
26917 /* We use char because int might match the return type of a gcc2
26918 builtin and then its argument prototype would still apply. */
26928 rm -f conftest.$ac_objext conftest$ac_exeext
26929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26930 (eval $ac_link) 2>conftest.er1
26932 grep -v '^ *+' conftest.er1 >conftest.err
26934 cat conftest.err >&5
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } &&
26937 { ac_try='test -z "$ac_c_werror_flag"
26938 || test ! -s conftest.err'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; } &&
26944 { ac_try='test -s conftest$ac_exeext'
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; }; then
26950 ac_cv_lib_dld_shl_load=yes
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26955 ac_cv_lib_dld_shl_load=no
26957 rm -f conftest.err conftest.$ac_objext \
26958 conftest$ac_exeext conftest.$ac_ext
26959 LIBS=$ac_check_lib_save_LIBS
26961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
26962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
26963 if test $ac_cv_lib_dld_shl_load = yes; then
26964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
26966 echo "$as_me:$LINENO: checking for dlopen" >&5
26967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
26968 if test "${ac_cv_func_dlopen+set}" = set; then
26969 echo $ECHO_N "(cached) $ECHO_C" >&6
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
26978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26979 #define dlopen innocuous_dlopen
26981 /* System header to define __stub macros and hopefully few prototypes,
26982 which can conflict with char dlopen (); below.
26983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26984 <limits.h> exists even on freestanding compilers. */
26987 # include <limits.h>
26989 # include <assert.h>
26994 /* Override any gcc2 internal prototype to avoid an error. */
26999 /* We use char because int might match the return type of a gcc2
27000 builtin and then its argument prototype would still apply. */
27002 /* The GNU C library defines this for functions which it implements
27003 to always fail with ENOSYS. Some functions are actually named
27004 something starting with __ and the normal name is an alias. */
27005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
27008 char (*f) () = dlopen;
27017 return f != dlopen;
27022 rm -f conftest.$ac_objext conftest$ac_exeext
27023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27024 (eval $ac_link) 2>conftest.er1
27026 grep -v '^ *+' conftest.er1 >conftest.err
27028 cat conftest.err >&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } &&
27031 { ac_try='test -z "$ac_c_werror_flag"
27032 || test ! -s conftest.err'
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044 ac_cv_func_dlopen=yes
27046 echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27049 ac_cv_func_dlopen=no
27051 rm -f conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
27054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27056 if test $ac_cv_func_dlopen = yes; then
27057 lt_cv_dlopen="dlopen"
27059 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27064 ac_check_lib_save_LIBS=$LIBS
27066 cat >conftest.$ac_ext <<_ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h. */
27073 /* Override any gcc2 internal prototype to avoid an error. */
27077 /* We use char because int might match the return type of a gcc2
27078 builtin and then its argument prototype would still apply. */
27088 rm -f conftest.$ac_objext conftest$ac_exeext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27090 (eval $ac_link) 2>conftest.er1
27092 grep -v '^ *+' conftest.er1 >conftest.err
27094 cat conftest.err >&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } &&
27097 { ac_try='test -z "$ac_c_werror_flag"
27098 || test ! -s conftest.err'
27099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100 (eval $ac_try) 2>&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; } &&
27104 { ac_try='test -s conftest$ac_exeext'
27105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); }; }; then
27110 ac_cv_lib_dl_dlopen=yes
27112 echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27115 ac_cv_lib_dl_dlopen=no
27117 rm -f conftest.err conftest.$ac_objext \
27118 conftest$ac_exeext conftest.$ac_ext
27119 LIBS=$ac_check_lib_save_LIBS
27121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27123 if test $ac_cv_lib_dl_dlopen = yes; then
27124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27126 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27129 echo $ECHO_N "(cached) $ECHO_C" >&6
27131 ac_check_lib_save_LIBS=$LIBS
27132 LIBS="-lsvld $LIBS"
27133 cat >conftest.$ac_ext <<_ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h. */
27140 /* Override any gcc2 internal prototype to avoid an error. */
27144 /* We use char because int might match the return type of a gcc2
27145 builtin and then its argument prototype would still apply. */
27155 rm -f conftest.$ac_objext conftest$ac_exeext
27156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27157 (eval $ac_link) 2>conftest.er1
27159 grep -v '^ *+' conftest.er1 >conftest.err
27161 cat conftest.err >&5
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); } &&
27164 { ac_try='test -z "$ac_c_werror_flag"
27165 || test ! -s conftest.err'
27166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167 (eval $ac_try) 2>&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; } &&
27171 { ac_try='test -s conftest$ac_exeext'
27172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173 (eval $ac_try) 2>&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; }; then
27177 ac_cv_lib_svld_dlopen=yes
27179 echo "$as_me: failed program was:" >&5
27180 sed 's/^/| /' conftest.$ac_ext >&5
27182 ac_cv_lib_svld_dlopen=no
27184 rm -f conftest.err conftest.$ac_objext \
27185 conftest$ac_exeext conftest.$ac_ext
27186 LIBS=$ac_check_lib_save_LIBS
27188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27190 if test $ac_cv_lib_svld_dlopen = yes; then
27191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27193 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27196 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 ac_check_lib_save_LIBS=$LIBS
27200 cat >conftest.$ac_ext <<_ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h. */
27207 /* Override any gcc2 internal prototype to avoid an error. */
27211 /* We use char because int might match the return type of a gcc2
27212 builtin and then its argument prototype would still apply. */
27222 rm -f conftest.$ac_objext conftest$ac_exeext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27224 (eval $ac_link) 2>conftest.er1
27226 grep -v '^ *+' conftest.er1 >conftest.err
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } &&
27231 { ac_try='test -z "$ac_c_werror_flag"
27232 || test ! -s conftest.err'
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest$ac_exeext'
27239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240 (eval $ac_try) 2>&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27244 ac_cv_lib_dld_dld_link=yes
27246 echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27249 ac_cv_lib_dld_dld_link=no
27251 rm -f conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27257 if test $ac_cv_lib_dld_dld_link = yes; then
27258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27279 if test "x$lt_cv_dlopen" != xno; then
27285 case $lt_cv_dlopen in
27287 save_CPPFLAGS="$CPPFLAGS"
27288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27290 save_LDFLAGS="$LDFLAGS"
27291 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27294 LIBS="$lt_cv_dlopen_libs $LIBS"
27296 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27298 if test "${lt_cv_dlopen_self+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27301 if test "$cross_compiling" = yes; then :
27302 lt_cv_dlopen_self=cross
27304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27305 lt_status=$lt_dlunknown
27306 cat > conftest.$ac_ext <<EOF
27307 #line 27307 "configure"
27308 #include "confdefs.h"
27317 # define LT_DLGLOBAL RTLD_GLOBAL
27320 # define LT_DLGLOBAL DL_GLOBAL
27322 # define LT_DLGLOBAL 0
27326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27327 find out it does not work in some platform. */
27328 #ifndef LT_DLLAZY_OR_NOW
27330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
27333 # define LT_DLLAZY_OR_NOW DL_LAZY
27336 # define LT_DLLAZY_OR_NOW RTLD_NOW
27339 # define LT_DLLAZY_OR_NOW DL_NOW
27341 # define LT_DLLAZY_OR_NOW 0
27349 extern "C" void exit (int);
27352 void fnord() { int i=42;}
27355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27356 int status = $lt_dlunknown;
27360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27362 /* dlclose (self); */
27368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27369 (eval $ac_link) 2>&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27373 (./conftest; exit; ) >&5 2>/dev/null
27375 case x$lt_status in
27376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27378 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27381 # compilation failed
27382 lt_cv_dlopen_self=no
27389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27390 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27392 if test "x$lt_cv_dlopen_self" = xyes; then
27393 LDFLAGS="$LDFLAGS $link_static_flag"
27394 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27395 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27396 if test "${lt_cv_dlopen_self_static+set}" = set; then
27397 echo $ECHO_N "(cached) $ECHO_C" >&6
27399 if test "$cross_compiling" = yes; then :
27400 lt_cv_dlopen_self_static=cross
27402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27403 lt_status=$lt_dlunknown
27404 cat > conftest.$ac_ext <<EOF
27405 #line 27405 "configure"
27406 #include "confdefs.h"
27415 # define LT_DLGLOBAL RTLD_GLOBAL
27418 # define LT_DLGLOBAL DL_GLOBAL
27420 # define LT_DLGLOBAL 0
27424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27425 find out it does not work in some platform. */
27426 #ifndef LT_DLLAZY_OR_NOW
27428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
27431 # define LT_DLLAZY_OR_NOW DL_LAZY
27434 # define LT_DLLAZY_OR_NOW RTLD_NOW
27437 # define LT_DLLAZY_OR_NOW DL_NOW
27439 # define LT_DLLAZY_OR_NOW 0
27447 extern "C" void exit (int);
27450 void fnord() { int i=42;}
27453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27454 int status = $lt_dlunknown;
27458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27460 /* dlclose (self); */
27466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27467 (eval $ac_link) 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27471 (./conftest; exit; ) >&5 2>/dev/null
27473 case x$lt_status in
27474 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27475 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27476 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27479 # compilation failed
27480 lt_cv_dlopen_self_static=no
27487 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27488 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27491 CPPFLAGS="$save_CPPFLAGS"
27492 LDFLAGS="$save_LDFLAGS"
27497 case $lt_cv_dlopen_self in
27498 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27499 *) enable_dlopen_self=unknown ;;
27502 case $lt_cv_dlopen_self_static in
27503 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27504 *) enable_dlopen_self_static=unknown ;;
27509 # The else clause should only fire when bootstrapping the
27510 # libtool distribution, otherwise you forgot to ship ltmain.sh
27511 # with your package, and you will get complaints that there are
27512 # no rules to generate ltmain.sh.
27513 if test -f "$ltmain"; then
27514 # See if we are running on zsh, and set the options which allow our commands through
27515 # without removal of \ escapes.
27516 if test -n "${ZSH_VERSION+set}" ; then
27517 setopt NO_GLOB_SUBST
27519 # Now quote all the things that may contain metacharacters while being
27520 # careful not to overquote the AC_SUBSTed values. We take copies of the
27521 # variables and quote the copies for generation of the libtool script.
27522 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27524 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27525 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27526 deplibs_check_method reload_flag reload_cmds need_locks \
27527 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27528 lt_cv_sys_global_symbol_to_c_name_address \
27529 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27530 old_postinstall_cmds old_postuninstall_cmds \
27534 lt_prog_compiler_wl_GCJ \
27535 lt_prog_compiler_pic_GCJ \
27536 lt_prog_compiler_static_GCJ \
27537 lt_prog_compiler_no_builtin_flag_GCJ \
27538 export_dynamic_flag_spec_GCJ \
27539 thread_safe_flag_spec_GCJ \
27540 whole_archive_flag_spec_GCJ \
27541 enable_shared_with_static_runtimes_GCJ \
27542 old_archive_cmds_GCJ \
27543 old_archive_from_new_cmds_GCJ \
27544 predep_objects_GCJ \
27545 postdep_objects_GCJ \
27548 compiler_lib_search_path_GCJ \
27550 archive_expsym_cmds_GCJ \
27551 postinstall_cmds_GCJ \
27552 postuninstall_cmds_GCJ \
27553 old_archive_from_expsyms_cmds_GCJ \
27554 allow_undefined_flag_GCJ \
27555 no_undefined_flag_GCJ \
27556 export_symbols_cmds_GCJ \
27557 hardcode_libdir_flag_spec_GCJ \
27558 hardcode_libdir_flag_spec_ld_GCJ \
27559 hardcode_libdir_separator_GCJ \
27560 hardcode_automatic_GCJ \
27562 module_expsym_cmds_GCJ \
27563 lt_cv_prog_compiler_c_o_GCJ \
27564 exclude_expsyms_GCJ \
27565 include_expsyms_GCJ; do
27568 old_archive_cmds_GCJ | \
27569 old_archive_from_new_cmds_GCJ | \
27570 archive_cmds_GCJ | \
27571 archive_expsym_cmds_GCJ | \
27572 module_cmds_GCJ | \
27573 module_expsym_cmds_GCJ | \
27574 old_archive_from_expsyms_cmds_GCJ | \
27575 export_symbols_cmds_GCJ | \
27576 extract_expsyms_cmds | reload_cmds | finish_cmds | \
27577 postinstall_cmds | postuninstall_cmds | \
27578 old_postinstall_cmds | old_postuninstall_cmds | \
27579 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27580 # Double-quote double-evaled strings.
27581 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27590 *'\$0 --fallback-echo"')
27591 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27597 cat <<__EOF__ >> "$cfgfile"
27598 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27602 # Shell to use when invoking shell scripts.
27605 # Whether or not to build shared libraries.
27606 build_libtool_libs=$enable_shared
27608 # Whether or not to build static libraries.
27609 build_old_libs=$enable_static
27611 # Whether or not to add -lc for building shared libraries.
27612 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27614 # Whether or not to disallow shared libs when runtime libs are static
27615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27617 # Whether or not to optimize for fast installation.
27618 fast_install=$enable_fast_install
27621 host_alias=$host_alias
27625 # The build system.
27626 build_alias=$build_alias
27630 # An echo program that does not interpret backslashes.
27635 AR_FLAGS=$lt_AR_FLAGS
27640 # A language-specific compiler.
27641 CC=$lt_compiler_GCJ
27643 # Is the compiler the GNU C compiler?
27649 # The linker used to build libraries.
27652 # Whether we need hard or soft links.
27655 # A BSD-compatible nm program.
27658 # A symbol stripping program
27661 # Used to examine libraries when file_magic_cmd begins "file"
27662 MAGIC_CMD=$MAGIC_CMD
27664 # Used on cygwin: DLL creation program.
27667 # Used on cygwin: object dumper.
27670 # Used on cygwin: assembler.
27673 # The name of the directory that contains temporary libtool files.
27676 # How to create reloadable object files.
27677 reload_flag=$lt_reload_flag
27678 reload_cmds=$lt_reload_cmds
27680 # How to pass a linker flag through the compiler.
27681 wl=$lt_lt_prog_compiler_wl_GCJ
27683 # Object file suffix (normally "o").
27684 objext="$ac_objext"
27686 # Old archive suffix (normally "a").
27689 # Shared library suffix (normally ".so").
27690 shrext_cmds='$shrext_cmds'
27692 # Executable file suffix (normally "").
27695 # Additional compiler flags for building library objects.
27696 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27699 # What is the maximum length of a command?
27700 max_cmd_len=$lt_cv_sys_max_cmd_len
27702 # Does compiler simultaneously support -c and -o options?
27703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27705 # Must we lock files when doing compilation?
27706 need_locks=$lt_need_locks
27708 # Do we need the lib prefix for modules?
27709 need_lib_prefix=$need_lib_prefix
27711 # Do we need a version for libraries?
27712 need_version=$need_version
27714 # Whether dlopen is supported.
27715 dlopen_support=$enable_dlopen
27717 # Whether dlopen of programs is supported.
27718 dlopen_self=$enable_dlopen_self
27720 # Whether dlopen of statically linked programs is supported.
27721 dlopen_self_static=$enable_dlopen_self_static
27723 # Compiler flag to prevent dynamic linking.
27724 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27726 # Compiler flag to turn off builtin functions.
27727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27729 # Compiler flag to allow reflexive dlopens.
27730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27732 # Compiler flag to generate shared objects directly from archives.
27733 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27735 # Compiler flag to generate thread-safe objects.
27736 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
27738 # Library versioning type.
27739 version_type=$version_type
27741 # Format of library name prefix.
27742 libname_spec=$lt_libname_spec
27744 # List of archive names. First name is the real one, the rest are links.
27745 # The last name is the one that the linker finds with -lNAME.
27746 library_names_spec=$lt_library_names_spec
27748 # The coded name of the library, if different from the real name.
27749 soname_spec=$lt_soname_spec
27751 # Commands used to build and install an old-style archive.
27753 old_archive_cmds=$lt_old_archive_cmds_GCJ
27754 old_postinstall_cmds=$lt_old_postinstall_cmds
27755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27757 # Create an old-style archive from a shared archive.
27758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27760 # Create a temporary old-style archive to link instead of a shared archive.
27761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27763 # Commands used to build and install a shared archive.
27764 archive_cmds=$lt_archive_cmds_GCJ
27765 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27766 postinstall_cmds=$lt_postinstall_cmds
27767 postuninstall_cmds=$lt_postuninstall_cmds
27769 # Commands used to build a loadable module (assumed same as above if empty)
27770 module_cmds=$lt_module_cmds_GCJ
27771 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27773 # Commands to strip libraries.
27774 old_striplib=$lt_old_striplib
27775 striplib=$lt_striplib
27777 # Dependencies to place before the objects being linked to create a
27779 predep_objects=$lt_predep_objects_GCJ
27781 # Dependencies to place after the objects being linked to create a
27783 postdep_objects=$lt_postdep_objects_GCJ
27785 # Dependencies to place before the objects being linked to create a
27787 predeps=$lt_predeps_GCJ
27789 # Dependencies to place after the objects being linked to create a
27791 postdeps=$lt_postdeps_GCJ
27793 # The library search path used internally by the compiler when linking
27794 # a shared library.
27795 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27797 # Method to check whether dependent libraries are shared objects.
27798 deplibs_check_method=$lt_deplibs_check_method
27800 # Command to use when deplibs_check_method == file_magic.
27801 file_magic_cmd=$lt_file_magic_cmd
27803 # Flag that allows shared libraries with undefined symbols to be built.
27804 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27806 # Flag that forces no undefined symbols.
27807 no_undefined_flag=$lt_no_undefined_flag_GCJ
27809 # Commands used to finish a libtool library installation in a directory.
27810 finish_cmds=$lt_finish_cmds
27812 # Same as above, but a single script fragment to be evaled but not shown.
27813 finish_eval=$lt_finish_eval
27815 # Take the output of nm and produce a listing of raw symbols and C names.
27816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27818 # Transform the output of nm in a proper C declaration
27819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27821 # Transform the output of nm in a C name address pair
27822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27824 # This is the shared library runtime path variable.
27825 runpath_var=$runpath_var
27827 # This is the shared library path variable.
27828 shlibpath_var=$shlibpath_var
27830 # Is shlibpath searched before the hard-coded library search path?
27831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27833 # How to hardcode a shared library path into an executable.
27834 hardcode_action=$hardcode_action_GCJ
27836 # Whether we should hardcode library paths into libraries.
27837 hardcode_into_libs=$hardcode_into_libs
27839 # Flag to hardcode \$libdir into a binary during linking.
27840 # This must work even if \$libdir does not exist.
27841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27843 # If ld is used when linking, flag to hardcode \$libdir into
27844 # a binary during linking. This must work even if \$libdir does
27846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27848 # Whether we need a single -rpath flag with a separated argument.
27849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27852 # resulting binary.
27853 hardcode_direct=$hardcode_direct_GCJ
27855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27856 # resulting binary.
27857 hardcode_minus_L=$hardcode_minus_L_GCJ
27859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27860 # the resulting binary.
27861 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27863 # Set to yes if building a shared library automatically hardcodes DIR into the library
27864 # and all subsequent libraries and executables linked against it.
27865 hardcode_automatic=$hardcode_automatic_GCJ
27867 # Variables whose values should be saved in libtool wrapper scripts and
27868 # restored at relink time.
27869 variables_saved_for_relink="$variables_saved_for_relink"
27871 # Whether libtool must link a program against all its dependency libraries.
27872 link_all_deplibs=$link_all_deplibs_GCJ
27874 # Compile-time system search path for libraries
27875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27877 # Run-time system search path for libraries
27878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27880 # Fix the shell variable \$srcfile for the compiler.
27881 fix_srcfile_path="$fix_srcfile_path_GCJ"
27883 # Set to yes if exported symbols are required.
27884 always_export_symbols=$always_export_symbols_GCJ
27886 # The commands to list exported symbols.
27887 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27889 # The commands to extract the exported symbol list from a shared archive.
27890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27892 # Symbols that should not be listed in the preloaded symbols.
27893 exclude_expsyms=$lt_exclude_expsyms_GCJ
27895 # Symbols that must always be exported.
27896 include_expsyms=$lt_include_expsyms_GCJ
27898 # ### END LIBTOOL TAG CONFIG: $tagname
27904 # If there is no Makefile yet, we rely on a make rule to execute
27905 # `config.status --recheck' to rerun these tests and create the
27906 # libtool script then.
27907 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27908 if test -f "$ltmain_in"; then
27909 test -f Makefile && make "$ltmain"
27915 ac_cpp='$CPP $CPPFLAGS'
27916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27931 # Source file extension for RC test sources.
27934 # Object file extension for compiled RC test sources.
27938 # Code to be used in simple compile tests
27939 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27941 # Code to be used in simple link tests
27942 lt_simple_link_test_code="$lt_simple_compile_test_code"
27944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27946 # If no C compiler was specified, use CC.
27949 # Allow CC to be a program name with arguments.
27953 # save warnings/boilerplate of simple test code
27954 ac_outfile=conftest.$ac_objext
27955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
27956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
27957 _lt_compiler_boilerplate=`cat conftest.err`
27960 ac_outfile=conftest.$ac_objext
27961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
27962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
27963 _lt_linker_boilerplate=`cat conftest.err`
27967 # Allow CC to be a program name with arguments.
27972 for cc_temp in $compiler""; do
27974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27980 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27982 lt_cv_prog_compiler_c_o_RC=yes
27984 # The else clause should only fire when bootstrapping the
27985 # libtool distribution, otherwise you forgot to ship ltmain.sh
27986 # with your package, and you will get complaints that there are
27987 # no rules to generate ltmain.sh.
27988 if test -f "$ltmain"; then
27989 # See if we are running on zsh, and set the options which allow our commands through
27990 # without removal of \ escapes.
27991 if test -n "${ZSH_VERSION+set}" ; then
27992 setopt NO_GLOB_SUBST
27994 # Now quote all the things that may contain metacharacters while being
27995 # careful not to overquote the AC_SUBSTed values. We take copies of the
27996 # variables and quote the copies for generation of the libtool script.
27997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28001 deplibs_check_method reload_flag reload_cmds need_locks \
28002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28003 lt_cv_sys_global_symbol_to_c_name_address \
28004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28005 old_postinstall_cmds old_postuninstall_cmds \
28009 lt_prog_compiler_wl_RC \
28010 lt_prog_compiler_pic_RC \
28011 lt_prog_compiler_static_RC \
28012 lt_prog_compiler_no_builtin_flag_RC \
28013 export_dynamic_flag_spec_RC \
28014 thread_safe_flag_spec_RC \
28015 whole_archive_flag_spec_RC \
28016 enable_shared_with_static_runtimes_RC \
28017 old_archive_cmds_RC \
28018 old_archive_from_new_cmds_RC \
28019 predep_objects_RC \
28020 postdep_objects_RC \
28023 compiler_lib_search_path_RC \
28025 archive_expsym_cmds_RC \
28026 postinstall_cmds_RC \
28027 postuninstall_cmds_RC \
28028 old_archive_from_expsyms_cmds_RC \
28029 allow_undefined_flag_RC \
28030 no_undefined_flag_RC \
28031 export_symbols_cmds_RC \
28032 hardcode_libdir_flag_spec_RC \
28033 hardcode_libdir_flag_spec_ld_RC \
28034 hardcode_libdir_separator_RC \
28035 hardcode_automatic_RC \
28037 module_expsym_cmds_RC \
28038 lt_cv_prog_compiler_c_o_RC \
28039 exclude_expsyms_RC \
28040 include_expsyms_RC; do
28043 old_archive_cmds_RC | \
28044 old_archive_from_new_cmds_RC | \
28045 archive_cmds_RC | \
28046 archive_expsym_cmds_RC | \
28048 module_expsym_cmds_RC | \
28049 old_archive_from_expsyms_cmds_RC | \
28050 export_symbols_cmds_RC | \
28051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
28052 postinstall_cmds | postuninstall_cmds | \
28053 old_postinstall_cmds | old_postuninstall_cmds | \
28054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28055 # Double-quote double-evaled strings.
28056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28065 *'\$0 --fallback-echo"')
28066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28072 cat <<__EOF__ >> "$cfgfile"
28073 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
28075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28077 # Shell to use when invoking shell scripts.
28080 # Whether or not to build shared libraries.
28081 build_libtool_libs=$enable_shared
28083 # Whether or not to build static libraries.
28084 build_old_libs=$enable_static
28086 # Whether or not to add -lc for building shared libraries.
28087 build_libtool_need_lc=$archive_cmds_need_lc_RC
28089 # Whether or not to disallow shared libs when runtime libs are static
28090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28092 # Whether or not to optimize for fast installation.
28093 fast_install=$enable_fast_install
28096 host_alias=$host_alias
28100 # The build system.
28101 build_alias=$build_alias
28105 # An echo program that does not interpret backslashes.
28110 AR_FLAGS=$lt_AR_FLAGS
28115 # A language-specific compiler.
28118 # Is the compiler the GNU C compiler?
28124 # The linker used to build libraries.
28127 # Whether we need hard or soft links.
28130 # A BSD-compatible nm program.
28133 # A symbol stripping program
28136 # Used to examine libraries when file_magic_cmd begins "file"
28137 MAGIC_CMD=$MAGIC_CMD
28139 # Used on cygwin: DLL creation program.
28142 # Used on cygwin: object dumper.
28145 # Used on cygwin: assembler.
28148 # The name of the directory that contains temporary libtool files.
28151 # How to create reloadable object files.
28152 reload_flag=$lt_reload_flag
28153 reload_cmds=$lt_reload_cmds
28155 # How to pass a linker flag through the compiler.
28156 wl=$lt_lt_prog_compiler_wl_RC
28158 # Object file suffix (normally "o").
28159 objext="$ac_objext"
28161 # Old archive suffix (normally "a").
28164 # Shared library suffix (normally ".so").
28165 shrext_cmds='$shrext_cmds'
28167 # Executable file suffix (normally "").
28170 # Additional compiler flags for building library objects.
28171 pic_flag=$lt_lt_prog_compiler_pic_RC
28174 # What is the maximum length of a command?
28175 max_cmd_len=$lt_cv_sys_max_cmd_len
28177 # Does compiler simultaneously support -c and -o options?
28178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28180 # Must we lock files when doing compilation?
28181 need_locks=$lt_need_locks
28183 # Do we need the lib prefix for modules?
28184 need_lib_prefix=$need_lib_prefix
28186 # Do we need a version for libraries?
28187 need_version=$need_version
28189 # Whether dlopen is supported.
28190 dlopen_support=$enable_dlopen
28192 # Whether dlopen of programs is supported.
28193 dlopen_self=$enable_dlopen_self
28195 # Whether dlopen of statically linked programs is supported.
28196 dlopen_self_static=$enable_dlopen_self_static
28198 # Compiler flag to prevent dynamic linking.
28199 link_static_flag=$lt_lt_prog_compiler_static_RC
28201 # Compiler flag to turn off builtin functions.
28202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
28204 # Compiler flag to allow reflexive dlopens.
28205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
28207 # Compiler flag to generate shared objects directly from archives.
28208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
28210 # Compiler flag to generate thread-safe objects.
28211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
28213 # Library versioning type.
28214 version_type=$version_type
28216 # Format of library name prefix.
28217 libname_spec=$lt_libname_spec
28219 # List of archive names. First name is the real one, the rest are links.
28220 # The last name is the one that the linker finds with -lNAME.
28221 library_names_spec=$lt_library_names_spec
28223 # The coded name of the library, if different from the real name.
28224 soname_spec=$lt_soname_spec
28226 # Commands used to build and install an old-style archive.
28228 old_archive_cmds=$lt_old_archive_cmds_RC
28229 old_postinstall_cmds=$lt_old_postinstall_cmds
28230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28232 # Create an old-style archive from a shared archive.
28233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
28235 # Create a temporary old-style archive to link instead of a shared archive.
28236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
28238 # Commands used to build and install a shared archive.
28239 archive_cmds=$lt_archive_cmds_RC
28240 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
28241 postinstall_cmds=$lt_postinstall_cmds
28242 postuninstall_cmds=$lt_postuninstall_cmds
28244 # Commands used to build a loadable module (assumed same as above if empty)
28245 module_cmds=$lt_module_cmds_RC
28246 module_expsym_cmds=$lt_module_expsym_cmds_RC
28248 # Commands to strip libraries.
28249 old_striplib=$lt_old_striplib
28250 striplib=$lt_striplib
28252 # Dependencies to place before the objects being linked to create a
28254 predep_objects=$lt_predep_objects_RC
28256 # Dependencies to place after the objects being linked to create a
28258 postdep_objects=$lt_postdep_objects_RC
28260 # Dependencies to place before the objects being linked to create a
28262 predeps=$lt_predeps_RC
28264 # Dependencies to place after the objects being linked to create a
28266 postdeps=$lt_postdeps_RC
28268 # The library search path used internally by the compiler when linking
28269 # a shared library.
28270 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
28272 # Method to check whether dependent libraries are shared objects.
28273 deplibs_check_method=$lt_deplibs_check_method
28275 # Command to use when deplibs_check_method == file_magic.
28276 file_magic_cmd=$lt_file_magic_cmd
28278 # Flag that allows shared libraries with undefined symbols to be built.
28279 allow_undefined_flag=$lt_allow_undefined_flag_RC
28281 # Flag that forces no undefined symbols.
28282 no_undefined_flag=$lt_no_undefined_flag_RC
28284 # Commands used to finish a libtool library installation in a directory.
28285 finish_cmds=$lt_finish_cmds
28287 # Same as above, but a single script fragment to be evaled but not shown.
28288 finish_eval=$lt_finish_eval
28290 # Take the output of nm and produce a listing of raw symbols and C names.
28291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28293 # Transform the output of nm in a proper C declaration
28294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28296 # Transform the output of nm in a C name address pair
28297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28299 # This is the shared library runtime path variable.
28300 runpath_var=$runpath_var
28302 # This is the shared library path variable.
28303 shlibpath_var=$shlibpath_var
28305 # Is shlibpath searched before the hard-coded library search path?
28306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28308 # How to hardcode a shared library path into an executable.
28309 hardcode_action=$hardcode_action_RC
28311 # Whether we should hardcode library paths into libraries.
28312 hardcode_into_libs=$hardcode_into_libs
28314 # Flag to hardcode \$libdir into a binary during linking.
28315 # This must work even if \$libdir does not exist.
28316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28318 # If ld is used when linking, flag to hardcode \$libdir into
28319 # a binary during linking. This must work even if \$libdir does
28321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
28323 # Whether we need a single -rpath flag with a separated argument.
28324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28327 # resulting binary.
28328 hardcode_direct=$hardcode_direct_RC
28330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28331 # resulting binary.
28332 hardcode_minus_L=$hardcode_minus_L_RC
28334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28335 # the resulting binary.
28336 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28338 # Set to yes if building a shared library automatically hardcodes DIR into the library
28339 # and all subsequent libraries and executables linked against it.
28340 hardcode_automatic=$hardcode_automatic_RC
28342 # Variables whose values should be saved in libtool wrapper scripts and
28343 # restored at relink time.
28344 variables_saved_for_relink="$variables_saved_for_relink"
28346 # Whether libtool must link a program against all its dependency libraries.
28347 link_all_deplibs=$link_all_deplibs_RC
28349 # Compile-time system search path for libraries
28350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28352 # Run-time system search path for libraries
28353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28355 # Fix the shell variable \$srcfile for the compiler.
28356 fix_srcfile_path="$fix_srcfile_path_RC"
28358 # Set to yes if exported symbols are required.
28359 always_export_symbols=$always_export_symbols_RC
28361 # The commands to list exported symbols.
28362 export_symbols_cmds=$lt_export_symbols_cmds_RC
28364 # The commands to extract the exported symbol list from a shared archive.
28365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28367 # Symbols that should not be listed in the preloaded symbols.
28368 exclude_expsyms=$lt_exclude_expsyms_RC
28370 # Symbols that must always be exported.
28371 include_expsyms=$lt_include_expsyms_RC
28373 # ### END LIBTOOL TAG CONFIG: $tagname
28379 # If there is no Makefile yet, we rely on a make rule to execute
28380 # `config.status --recheck' to rerun these tests and create the
28381 # libtool script then.
28382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
28383 if test -f "$ltmain_in"; then
28384 test -f Makefile && make "$ltmain"
28390 ac_cpp='$CPP $CPPFLAGS'
28391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28400 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
28401 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
28402 { (exit 1); exit 1; }; }
28406 # Append the new tag name to the list of available tags.
28407 if test -n "$tagname" ; then
28408 available_tags="$available_tags $tagname"
28414 # Now substitute the updated list of available tags.
28415 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
28416 mv "${ofile}T" "$ofile"
28420 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
28421 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
28422 { (exit 1); exit 1; }; }
28428 # This can be used to rebuild libtool when needed
28429 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
28431 # Always use our own libtool.
28432 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28434 # Prevent multiple expansion
28457 if test $ac_cv_c_compiler_gnu = yes; then
28458 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
28459 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
28460 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28463 ac_pattern="Autoconf.*'x'"
28464 cat >conftest.$ac_ext <<_ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h. */
28473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28474 $EGREP "$ac_pattern" >/dev/null 2>&1; then
28475 ac_cv_prog_gcc_traditional=yes
28477 ac_cv_prog_gcc_traditional=no
28482 if test $ac_cv_prog_gcc_traditional = no; then
28483 cat >conftest.$ac_ext <<_ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h. */
28489 #include <termio.h>
28492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28493 $EGREP "$ac_pattern" >/dev/null 2>&1; then
28494 ac_cv_prog_gcc_traditional=yes
28500 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
28501 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
28502 if test $ac_cv_prog_gcc_traditional = yes; then
28503 CC="$CC -traditional"
28507 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
28508 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
28509 if test "${ac_cv_c_const+set}" = set; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28512 cat >conftest.$ac_ext <<_ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28522 /* FIXME: Include the comments suggested by Paul. */
28523 #ifndef __cplusplus
28524 /* Ultrix mips cc rejects this. */
28525 typedef int charset[2];
28527 /* SunOS 4.1.1 cc rejects this. */
28528 char const *const *ccp;
28530 /* NEC SVR4.0.2 mips cc rejects this. */
28531 struct point {int x, y;};
28532 static struct point const zero = {0,0};
28533 /* AIX XL C 1.02.0.0 rejects this.
28534 It does not let you subtract one const X* pointer from another in
28535 an arm of an if-expression whose if-part is not a constant
28537 const char *g = "string";
28538 ccp = &g + (g ? g-g : 0);
28539 /* HPUX 7.0 cc rejects these. */
28542 ccp = (char const *const *) p;
28543 { /* SCO 3.2v4 cc rejects this. */
28545 char const *s = 0 ? (char *) 0 : (char const *) 0;
28549 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28550 int x[] = {25, 17};
28551 const int *foo = &x[0];
28554 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28555 typedef const int *iptr;
28559 { /* AIX XL C 1.02.0.0 rejects this saying
28560 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28561 struct s { int j; const int *ap[3]; };
28562 struct s *b; b->j = 5;
28564 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28565 const int foo = 10;
28573 rm -f conftest.$ac_objext
28574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28575 (eval $ac_compile) 2>conftest.er1
28577 grep -v '^ *+' conftest.er1 >conftest.err
28579 cat conftest.err >&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } &&
28582 { ac_try='test -z "$ac_c_werror_flag"
28583 || test ! -s conftest.err'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; } &&
28589 { ac_try='test -s conftest.$ac_objext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
28597 echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28604 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
28605 echo "${ECHO_T}$ac_cv_c_const" >&6
28606 if test $ac_cv_c_const = no; then
28608 cat >>confdefs.h <<\_ACEOF
28615 echo "$as_me:$LINENO: checking for working volatile" >&5
28616 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
28617 if test "${amanda_cv_c_volatile+set}" = set; then
28618 echo $ECHO_N "(cached) $ECHO_C" >&6
28621 cat >conftest.$ac_ext <<_ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28632 volatile int aaa = 0;
28638 rm -f conftest.$ac_objext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28640 (eval $ac_compile) 2>conftest.er1
28642 grep -v '^ *+' conftest.er1 >conftest.err
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } &&
28647 { ac_try='test -z "$ac_c_werror_flag"
28648 || test ! -s conftest.err'
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; } &&
28654 { ac_try='test -s conftest.$ac_objext'
28655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; }; then
28660 amanda_cv_c_volatile=yes
28662 echo "$as_me: failed program was:" >&5
28663 sed 's/^/| /' conftest.$ac_ext >&5
28665 amanda_cv_c_volatile=no
28668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28672 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
28673 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
28674 if test $amanda_cv_c_volatile = no; then
28676 cat >>confdefs.h <<\_ACEOF
28684 echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
28685 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
28686 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
28687 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 cat >conftest.$ac_ext <<_ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h. */
28708 rm -f conftest.$ac_objext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28710 (eval $ac_compile) 2>conftest.er1
28712 grep -v '^ *+' conftest.er1 >conftest.err
28714 cat conftest.err >&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); } &&
28717 { ac_try='test -z "$ac_c_werror_flag"
28718 || test ! -s conftest.err'
28719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720 (eval $ac_try) 2>&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); }; } &&
28724 { ac_try='test -s conftest.$ac_objext'
28725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726 (eval $ac_try) 2>&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); }; }; then
28730 amanda_cv_c_unsigned_long_constants=yes
28732 echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28735 amanda_cv_c_unsigned_long_constants=no
28738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28742 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
28743 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
28744 if test "$amanda_cv_c_unsigned_long_constants" = yes; then
28746 cat >>confdefs.h <<\_ACEOF
28747 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
28753 echo "$as_me:$LINENO: checking for off_t" >&5
28754 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28755 if test "${ac_cv_type_off_t+set}" = set; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28758 cat >conftest.$ac_ext <<_ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28764 $ac_includes_default
28770 if (sizeof (off_t))
28776 rm -f conftest.$ac_objext
28777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28778 (eval $ac_compile) 2>conftest.er1
28780 grep -v '^ *+' conftest.er1 >conftest.err
28782 cat conftest.err >&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); } &&
28785 { ac_try='test -z "$ac_c_werror_flag"
28786 || test ! -s conftest.err'
28787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28788 (eval $ac_try) 2>&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; } &&
28792 { ac_try='test -s conftest.$ac_objext'
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; }; then
28798 ac_cv_type_off_t=yes
28800 echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28803 ac_cv_type_off_t=no
28805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28807 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28808 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28809 if test $ac_cv_type_off_t = yes; then
28813 cat >>confdefs.h <<_ACEOF
28819 echo "$as_me:$LINENO: checking for pid_t" >&5
28820 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28821 if test "${ac_cv_type_pid_t+set}" = set; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
28824 cat >conftest.$ac_ext <<_ACEOF
28827 cat confdefs.h >>conftest.$ac_ext
28828 cat >>conftest.$ac_ext <<_ACEOF
28829 /* end confdefs.h. */
28830 $ac_includes_default
28836 if (sizeof (pid_t))
28842 rm -f conftest.$ac_objext
28843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28844 (eval $ac_compile) 2>conftest.er1
28846 grep -v '^ *+' conftest.er1 >conftest.err
28848 cat conftest.err >&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } &&
28851 { ac_try='test -z "$ac_c_werror_flag"
28852 || test ! -s conftest.err'
28853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 (eval $ac_try) 2>&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); }; } &&
28858 { ac_try='test -s conftest.$ac_objext'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; }; then
28864 ac_cv_type_pid_t=yes
28866 echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28869 ac_cv_type_pid_t=no
28871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28873 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28874 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28875 if test $ac_cv_type_pid_t = yes; then
28879 cat >>confdefs.h <<_ACEOF
28885 echo "$as_me:$LINENO: checking for size_t" >&5
28886 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28887 if test "${ac_cv_type_size_t+set}" = set; then
28888 echo $ECHO_N "(cached) $ECHO_C" >&6
28890 cat >conftest.$ac_ext <<_ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h. */
28896 $ac_includes_default
28902 if (sizeof (size_t))
28908 rm -f conftest.$ac_objext
28909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28910 (eval $ac_compile) 2>conftest.er1
28912 grep -v '^ *+' conftest.er1 >conftest.err
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -z "$ac_c_werror_flag"
28918 || test ! -s conftest.err'
28919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920 (eval $ac_try) 2>&5
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; } &&
28924 { ac_try='test -s conftest.$ac_objext'
28925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926 (eval $ac_try) 2>&5
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); }; }; then
28930 ac_cv_type_size_t=yes
28932 echo "$as_me: failed program was:" >&5
28933 sed 's/^/| /' conftest.$ac_ext >&5
28935 ac_cv_type_size_t=no
28937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28939 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28940 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28941 if test $ac_cv_type_size_t = yes; then
28945 cat >>confdefs.h <<_ACEOF
28946 #define size_t unsigned
28952 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28953 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28954 if test "${ac_cv_type_uid_t+set}" = set; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28957 cat >conftest.$ac_ext <<_ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h. */
28963 #include <sys/types.h>
28966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28967 $EGREP "uid_t" >/dev/null 2>&1; then
28968 ac_cv_type_uid_t=yes
28970 ac_cv_type_uid_t=no
28975 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28976 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28977 if test $ac_cv_type_uid_t = no; then
28979 cat >>confdefs.h <<\_ACEOF
28984 cat >>confdefs.h <<\_ACEOF
28990 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28991 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
28992 if test "${ac_cv_type_signal+set}" = set; then
28993 echo $ECHO_N "(cached) $ECHO_C" >&6
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 #include <sys/types.h>
29002 #include <signal.h>
29007 extern "C" void (*signal (int, void (*)(int)))(int);
29009 void (*signal ()) ();
29020 rm -f conftest.$ac_objext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29022 (eval $ac_compile) 2>conftest.er1
29024 grep -v '^ *+' conftest.er1 >conftest.err
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } &&
29029 { ac_try='test -z "$ac_c_werror_flag"
29030 || test ! -s conftest.err'
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest.$ac_objext'
29037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038 (eval $ac_try) 2>&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); }; }; then
29042 ac_cv_type_signal=void
29044 echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29047 ac_cv_type_signal=int
29049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29051 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29052 echo "${ECHO_T}$ac_cv_type_signal" >&6
29054 cat >>confdefs.h <<_ACEOF
29055 #define RETSIGTYPE $ac_cv_type_signal
29059 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29060 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
29061 if test "${ac_cv_struct_tm+set}" = set; then
29062 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 cat >conftest.$ac_ext <<_ACEOF
29067 cat confdefs.h >>conftest.$ac_ext
29068 cat >>conftest.$ac_ext <<_ACEOF
29069 /* end confdefs.h. */
29070 #include <sys/types.h>
29076 struct tm *tp; tp->tm_sec;
29081 rm -f conftest.$ac_objext
29082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29083 (eval $ac_compile) 2>conftest.er1
29085 grep -v '^ *+' conftest.er1 >conftest.err
29087 cat conftest.err >&5
29088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089 (exit $ac_status); } &&
29090 { ac_try='test -z "$ac_c_werror_flag"
29091 || test ! -s conftest.err'
29092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093 (eval $ac_try) 2>&5
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); }; } &&
29097 { ac_try='test -s conftest.$ac_objext'
29098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099 (eval $ac_try) 2>&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 ac_cv_struct_tm=time.h
29105 echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29108 ac_cv_struct_tm=sys/time.h
29110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29112 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29113 echo "${ECHO_T}$ac_cv_struct_tm" >&6
29114 if test $ac_cv_struct_tm = sys/time.h; then
29116 cat >>confdefs.h <<\_ACEOF
29117 #define TM_IN_SYS_TIME 1
29122 for ac_prog in flex lex
29124 # Extract the first word of "$ac_prog", so it can be a program name with args.
29125 set dummy $ac_prog; ac_word=$2
29126 echo "$as_me:$LINENO: checking for $ac_word" >&5
29127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29128 if test "${ac_cv_prog_LEX+set}" = set; then
29129 echo $ECHO_N "(cached) $ECHO_C" >&6
29131 if test -n "$LEX"; then
29132 ac_cv_prog_LEX="$LEX" # Let the user override the test.
29134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29135 for as_dir in $PATH
29138 test -z "$as_dir" && as_dir=.
29139 for ac_exec_ext in '' $ac_executable_extensions; do
29140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29141 ac_cv_prog_LEX="$ac_prog"
29142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29150 LEX=$ac_cv_prog_LEX
29151 if test -n "$LEX"; then
29152 echo "$as_me:$LINENO: result: $LEX" >&5
29153 echo "${ECHO_T}$LEX" >&6
29155 echo "$as_me:$LINENO: result: no" >&5
29156 echo "${ECHO_T}no" >&6
29159 test -n "$LEX" && break
29161 test -n "$LEX" || LEX=":"
29163 if test -z "$LEXLIB"
29165 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
29166 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
29167 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29170 ac_check_lib_save_LIBS=$LIBS
29172 cat >conftest.$ac_ext <<_ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h. */
29179 /* Override any gcc2 internal prototype to avoid an error. */
29183 /* We use char because int might match the return type of a gcc2
29184 builtin and then its argument prototype would still apply. */
29194 rm -f conftest.$ac_objext conftest$ac_exeext
29195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29196 (eval $ac_link) 2>conftest.er1
29198 grep -v '^ *+' conftest.er1 >conftest.err
29200 cat conftest.err >&5
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); } &&
29203 { ac_try='test -z "$ac_c_werror_flag"
29204 || test ! -s conftest.err'
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; } &&
29210 { ac_try='test -s conftest$ac_exeext'
29211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212 (eval $ac_try) 2>&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; }; then
29216 ac_cv_lib_fl_yywrap=yes
29218 echo "$as_me: failed program was:" >&5
29219 sed 's/^/| /' conftest.$ac_ext >&5
29221 ac_cv_lib_fl_yywrap=no
29223 rm -f conftest.err conftest.$ac_objext \
29224 conftest$ac_exeext conftest.$ac_ext
29225 LIBS=$ac_check_lib_save_LIBS
29227 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
29228 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
29229 if test $ac_cv_lib_fl_yywrap = yes; then
29232 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
29233 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
29234 if test "${ac_cv_lib_l_yywrap+set}" = set; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29237 ac_check_lib_save_LIBS=$LIBS
29239 cat >conftest.$ac_ext <<_ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h. */
29246 /* Override any gcc2 internal prototype to avoid an error. */
29250 /* We use char because int might match the return type of a gcc2
29251 builtin and then its argument prototype would still apply. */
29261 rm -f conftest.$ac_objext conftest$ac_exeext
29262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29263 (eval $ac_link) 2>conftest.er1
29265 grep -v '^ *+' conftest.er1 >conftest.err
29267 cat conftest.err >&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } &&
29270 { ac_try='test -z "$ac_c_werror_flag"
29271 || test ! -s conftest.err'
29272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273 (eval $ac_try) 2>&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; } &&
29277 { ac_try='test -s conftest$ac_exeext'
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 ac_cv_lib_l_yywrap=yes
29285 echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29288 ac_cv_lib_l_yywrap=no
29290 rm -f conftest.err conftest.$ac_objext \
29291 conftest$ac_exeext conftest.$ac_ext
29292 LIBS=$ac_check_lib_save_LIBS
29294 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
29295 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
29296 if test $ac_cv_lib_l_yywrap = yes; then
29304 if test "x$LEX" != "x:"; then
29305 echo "$as_me:$LINENO: checking lex output file root" >&5
29306 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
29307 if test "${ac_cv_prog_lex_root+set}" = set; then
29308 echo $ECHO_N "(cached) $ECHO_C" >&6
29310 # The minimal lex program is just a single line: %%. But some broken lexes
29311 # (Solaris, I think it was) want two %% lines, so accommodate them.
29312 cat >conftest.l <<_ACEOF
29316 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
29317 (eval $LEX conftest.l) 2>&5
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }
29321 if test -f lex.yy.c; then
29322 ac_cv_prog_lex_root=lex.yy
29323 elif test -f lexyy.c; then
29324 ac_cv_prog_lex_root=lexyy
29326 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
29327 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
29328 { (exit 1); exit 1; }; }
29331 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
29332 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
29334 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29336 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
29337 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
29338 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
29339 echo $ECHO_N "(cached) $ECHO_C" >&6
29341 # POSIX says lex can declare yytext either as a pointer or an array; the
29342 # default is implementation-dependent. Figure out which it is, since
29343 # not all implementations provide the %pointer and %array declarations.
29344 ac_cv_prog_lex_yytext_pointer=no
29345 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
29347 LIBS="$LIBS $LEXLIB"
29348 cat >conftest.$ac_ext <<_ACEOF
29349 `cat $LEX_OUTPUT_ROOT.c`
29351 rm -f conftest.$ac_objext conftest$ac_exeext
29352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29353 (eval $ac_link) 2>conftest.er1
29355 grep -v '^ *+' conftest.er1 >conftest.err
29357 cat conftest.err >&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); } &&
29360 { ac_try='test -z "$ac_c_werror_flag"
29361 || test ! -s conftest.err'
29362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29363 (eval $ac_try) 2>&5
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); }; } &&
29367 { ac_try='test -s conftest$ac_exeext'
29368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29369 (eval $ac_try) 2>&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; }; then
29373 ac_cv_prog_lex_yytext_pointer=yes
29375 echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29379 rm -f conftest.err conftest.$ac_objext \
29380 conftest$ac_exeext conftest.$ac_ext
29382 rm -f "${LEX_OUTPUT_ROOT}.c"
29385 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
29386 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
29387 if test $ac_cv_prog_lex_yytext_pointer = yes; then
29389 cat >>confdefs.h <<\_ACEOF
29390 #define YYTEXT_POINTER 1
29396 if test "$LEX" = :; then
29397 LEX=${am_missing_run}flex
29401 echo "$as_me:$LINENO: checking for socklen_t" >&5
29402 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
29403 if test "${ac_cv_type_socklen_t+set}" = set; then
29404 echo $ECHO_N "(cached) $ECHO_C" >&6
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29412 #include <sys/types.h>
29414 #include <stdlib.h>
29415 #include <stddef.h>
29417 #include <sys/socket.h>
29419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29420 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
29421 ac_cv_type_socklen_t=yes
29423 ac_cv_type_socklen_t=no
29428 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29429 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
29430 if test "x$ac_cv_type_socklen_t" = xno; then
29432 cat >>confdefs.h <<\_ACEOF
29433 #define socklen_t int
29439 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29440 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
29441 if test "${ac_cv_header_stdc+set}" = set; then
29442 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 #include <stdlib.h>
29451 #include <stdarg.h>
29452 #include <string.h>
29463 rm -f conftest.$ac_objext
29464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29465 (eval $ac_compile) 2>conftest.er1
29467 grep -v '^ *+' conftest.er1 >conftest.err
29469 cat conftest.err >&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } &&
29472 { ac_try='test -z "$ac_c_werror_flag"
29473 || test ! -s conftest.err'
29474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29475 (eval $ac_try) 2>&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; } &&
29479 { ac_try='test -s conftest.$ac_objext'
29480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29481 (eval $ac_try) 2>&5
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; }; then
29485 ac_cv_header_stdc=yes
29487 echo "$as_me: failed program was:" >&5
29488 sed 's/^/| /' conftest.$ac_ext >&5
29490 ac_cv_header_stdc=no
29492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29494 if test $ac_cv_header_stdc = yes; then
29495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29496 cat >conftest.$ac_ext <<_ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h. */
29502 #include <string.h>
29505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29506 $EGREP "memchr" >/dev/null 2>&1; then
29509 ac_cv_header_stdc=no
29515 if test $ac_cv_header_stdc = yes; then
29516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29517 cat >conftest.$ac_ext <<_ACEOF
29520 cat confdefs.h >>conftest.$ac_ext
29521 cat >>conftest.$ac_ext <<_ACEOF
29522 /* end confdefs.h. */
29523 #include <stdlib.h>
29526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29527 $EGREP "free" >/dev/null 2>&1; then
29530 ac_cv_header_stdc=no
29536 if test $ac_cv_header_stdc = yes; then
29537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29538 if test "$cross_compiling" = yes; then
29541 cat >conftest.$ac_ext <<_ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h. */
29548 #if ((' ' & 0x0FF) == 0x020)
29549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29552 # define ISLOWER(c) \
29553 (('a' <= (c) && (c) <= 'i') \
29554 || ('j' <= (c) && (c) <= 'r') \
29555 || ('s' <= (c) && (c) <= 'z'))
29556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29564 for (i = 0; i < 256; i++)
29565 if (XOR (islower (i), ISLOWER (i))
29566 || toupper (i) != TOUPPER (i))
29571 rm -f conftest$ac_exeext
29572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29573 (eval $ac_link) 2>&5
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29584 echo "$as_me: program exited with status $ac_status" >&5
29585 echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29588 ( exit $ac_status )
29589 ac_cv_header_stdc=no
29591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29595 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29596 echo "${ECHO_T}$ac_cv_header_stdc" >&6
29597 if test $ac_cv_header_stdc = yes; then
29599 cat >>confdefs.h <<\_ACEOF
29600 #define STDC_HEADERS 1
29610 ac_header_dirent=no
29611 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29612 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29613 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29614 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
29615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29616 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 cat >conftest.$ac_ext <<_ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29624 #include <sys/types.h>
29636 rm -f conftest.$ac_objext
29637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29638 (eval $ac_compile) 2>conftest.er1
29640 grep -v '^ *+' conftest.er1 >conftest.err
29642 cat conftest.err >&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } &&
29645 { ac_try='test -z "$ac_c_werror_flag"
29646 || test ! -s conftest.err'
29647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648 (eval $ac_try) 2>&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; } &&
29652 { ac_try='test -s conftest.$ac_objext'
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; }; then
29658 eval "$as_ac_Header=yes"
29660 echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29663 eval "$as_ac_Header=no"
29665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29670 cat >>confdefs.h <<_ACEOF
29671 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29674 ac_header_dirent=$ac_hdr; break
29678 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29679 if test $ac_header_dirent = dirent.h; then
29680 echo "$as_me:$LINENO: checking for library containing opendir" >&5
29681 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
29682 if test "${ac_cv_search_opendir+set}" = set; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29685 ac_func_search_save_LIBS=$LIBS
29686 ac_cv_search_opendir=no
29687 cat >conftest.$ac_ext <<_ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29694 /* Override any gcc2 internal prototype to avoid an error. */
29698 /* We use char because int might match the return type of a gcc2
29699 builtin and then its argument prototype would still apply. */
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29711 (eval $ac_link) 2>conftest.er1
29713 grep -v '^ *+' conftest.er1 >conftest.err
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } &&
29718 { ac_try='test -z "$ac_c_werror_flag"
29719 || test ! -s conftest.err'
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest$ac_exeext'
29726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; }; then
29731 ac_cv_search_opendir="none required"
29733 echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29737 rm -f conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
29739 if test "$ac_cv_search_opendir" = no; then
29740 for ac_lib in dir; do
29741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29742 cat >conftest.$ac_ext <<_ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h. */
29749 /* Override any gcc2 internal prototype to avoid an error. */
29753 /* We use char because int might match the return type of a gcc2
29754 builtin and then its argument prototype would still apply. */
29764 rm -f conftest.$ac_objext conftest$ac_exeext
29765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29766 (eval $ac_link) 2>conftest.er1
29768 grep -v '^ *+' conftest.er1 >conftest.err
29770 cat conftest.err >&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } &&
29773 { ac_try='test -z "$ac_c_werror_flag"
29774 || test ! -s conftest.err'
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest$ac_exeext'
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786 ac_cv_search_opendir="-l$ac_lib"
29789 echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29793 rm -f conftest.err conftest.$ac_objext \
29794 conftest$ac_exeext conftest.$ac_ext
29797 LIBS=$ac_func_search_save_LIBS
29799 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29800 echo "${ECHO_T}$ac_cv_search_opendir" >&6
29801 if test "$ac_cv_search_opendir" != no; then
29802 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
29807 echo "$as_me:$LINENO: checking for library containing opendir" >&5
29808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
29809 if test "${ac_cv_search_opendir+set}" = set; then
29810 echo $ECHO_N "(cached) $ECHO_C" >&6
29812 ac_func_search_save_LIBS=$LIBS
29813 ac_cv_search_opendir=no
29814 cat >conftest.$ac_ext <<_ACEOF
29817 cat confdefs.h >>conftest.$ac_ext
29818 cat >>conftest.$ac_ext <<_ACEOF
29819 /* end confdefs.h. */
29821 /* Override any gcc2 internal prototype to avoid an error. */
29825 /* We use char because int might match the return type of a gcc2
29826 builtin and then its argument prototype would still apply. */
29836 rm -f conftest.$ac_objext conftest$ac_exeext
29837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29838 (eval $ac_link) 2>conftest.er1
29840 grep -v '^ *+' conftest.er1 >conftest.err
29842 cat conftest.err >&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); } &&
29845 { ac_try='test -z "$ac_c_werror_flag"
29846 || test ! -s conftest.err'
29847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; } &&
29852 { ac_try='test -s conftest$ac_exeext'
29853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854 (eval $ac_try) 2>&5
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; }; then
29858 ac_cv_search_opendir="none required"
29860 echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29864 rm -f conftest.err conftest.$ac_objext \
29865 conftest$ac_exeext conftest.$ac_ext
29866 if test "$ac_cv_search_opendir" = no; then
29867 for ac_lib in x; do
29868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29869 cat >conftest.$ac_ext <<_ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h. */
29876 /* Override any gcc2 internal prototype to avoid an error. */
29880 /* We use char because int might match the return type of a gcc2
29881 builtin and then its argument prototype would still apply. */
29891 rm -f conftest.$ac_objext conftest$ac_exeext
29892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29893 (eval $ac_link) 2>conftest.er1
29895 grep -v '^ *+' conftest.er1 >conftest.err
29897 cat conftest.err >&5
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); } &&
29900 { ac_try='test -z "$ac_c_werror_flag"
29901 || test ! -s conftest.err'
29902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903 (eval $ac_try) 2>&5
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; } &&
29907 { ac_try='test -s conftest$ac_exeext'
29908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909 (eval $ac_try) 2>&5
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; }; then
29913 ac_cv_search_opendir="-l$ac_lib"
29916 echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29920 rm -f conftest.err conftest.$ac_objext \
29921 conftest$ac_exeext conftest.$ac_ext
29924 LIBS=$ac_func_search_save_LIBS
29926 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29927 echo "${ECHO_T}$ac_cv_search_opendir" >&6
29928 if test "$ac_cv_search_opendir" != no; then
29929 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
29939 for ac_header in sys/wait.h wait.h
29941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29943 echo "$as_me:$LINENO: checking for $ac_header" >&5
29944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29946 echo $ECHO_N "(cached) $ECHO_C" >&6
29948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29951 # Is the header compilable?
29952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29954 cat >conftest.$ac_ext <<_ACEOF
29957 cat confdefs.h >>conftest.$ac_ext
29958 cat >>conftest.$ac_ext <<_ACEOF
29959 /* end confdefs.h. */
29960 $ac_includes_default
29961 #include <$ac_header>
29963 rm -f conftest.$ac_objext
29964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29965 (eval $ac_compile) 2>conftest.er1
29967 grep -v '^ *+' conftest.er1 >conftest.err
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } &&
29972 { ac_try='test -z "$ac_c_werror_flag"
29973 || test ! -s conftest.err'
29974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29975 (eval $ac_try) 2>&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); }; } &&
29979 { ac_try='test -s conftest.$ac_objext'
29980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29981 (eval $ac_try) 2>&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); }; }; then
29985 ac_header_compiler=yes
29987 echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29990 ac_header_compiler=no
29992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29994 echo "${ECHO_T}$ac_header_compiler" >&6
29996 # Is the header present?
29997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29999 cat >conftest.$ac_ext <<_ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h. */
30005 #include <$ac_header>
30007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30010 grep -v '^ *+' conftest.er1 >conftest.err
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } >/dev/null; then
30015 if test -s conftest.err; then
30016 ac_cpp_err=$ac_c_preproc_warn_flag
30017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30024 if test -z "$ac_cpp_err"; then
30025 ac_header_preproc=yes
30027 echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30030 ac_header_preproc=no
30032 rm -f conftest.err conftest.$ac_ext
30033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30034 echo "${ECHO_T}$ac_header_preproc" >&6
30036 # So? What about this header?
30037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30043 ac_header_preproc=yes
30046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30060 ## ------------------------------------------ ##
30061 ## Report this to the AC_PACKAGE_NAME lists. ##
30062 ## ------------------------------------------ ##
30065 sed "s/^/$as_me: WARNING: /" >&2
30068 echo "$as_me:$LINENO: checking for $ac_header" >&5
30069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 eval "$as_ac_Header=\$ac_header_preproc"
30075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30080 cat >>confdefs.h <<_ACEOF
30081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30088 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
30089 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
30090 if test "${cf_cv_arg_union_wait+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 cat >conftest.$ac_ext <<_ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h. */
30100 #include <sys/types.h>
30102 #if HAVE_SYS_WAIT_H
30103 # include <sys/wait.h>
30111 pid_t wait(union wait *);
30118 union wait x; int i;
30119 wait(&x); i = WIFEXITED(x)
30125 rm -f conftest.$ac_objext
30126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30127 (eval $ac_compile) 2>conftest.er1
30129 grep -v '^ *+' conftest.er1 >conftest.err
30131 cat conftest.err >&5
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } &&
30134 { ac_try='test -z "$ac_c_werror_flag"
30135 || test ! -s conftest.err'
30136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137 (eval $ac_try) 2>&5
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; } &&
30141 { ac_try='test -s conftest.$ac_objext'
30142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30143 (eval $ac_try) 2>&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; }; then
30147 cf_cv_arg_union_wait=yes
30149 echo "$as_me: failed program was:" >&5
30150 sed 's/^/| /' conftest.$ac_ext >&5
30152 cf_cv_arg_union_wait=no
30154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30156 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
30157 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
30158 if test $cf_cv_arg_union_wait = yes; then
30160 cat >>confdefs.h <<\_ACEOF
30161 #define WAIT_USES_UNION 1
30170 for ac_header in sys/wait.h wait.h
30172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30174 echo "$as_me:$LINENO: checking for $ac_header" >&5
30175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30177 echo $ECHO_N "(cached) $ECHO_C" >&6
30179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30182 # Is the header compilable?
30183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30185 cat >conftest.$ac_ext <<_ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h. */
30191 $ac_includes_default
30192 #include <$ac_header>
30194 rm -f conftest.$ac_objext
30195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30196 (eval $ac_compile) 2>conftest.er1
30198 grep -v '^ *+' conftest.er1 >conftest.err
30200 cat conftest.err >&5
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); } &&
30203 { ac_try='test -z "$ac_c_werror_flag"
30204 || test ! -s conftest.err'
30205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206 (eval $ac_try) 2>&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; } &&
30210 { ac_try='test -s conftest.$ac_objext'
30211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 ac_header_compiler=yes
30218 echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30221 ac_header_compiler=no
30223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30225 echo "${ECHO_T}$ac_header_compiler" >&6
30227 # Is the header present?
30228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30230 cat >conftest.$ac_ext <<_ACEOF
30233 cat confdefs.h >>conftest.$ac_ext
30234 cat >>conftest.$ac_ext <<_ACEOF
30235 /* end confdefs.h. */
30236 #include <$ac_header>
30238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30241 grep -v '^ *+' conftest.er1 >conftest.err
30243 cat conftest.err >&5
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); } >/dev/null; then
30246 if test -s conftest.err; then
30247 ac_cpp_err=$ac_c_preproc_warn_flag
30248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30255 if test -z "$ac_cpp_err"; then
30256 ac_header_preproc=yes
30258 echo "$as_me: failed program was:" >&5
30259 sed 's/^/| /' conftest.$ac_ext >&5
30261 ac_header_preproc=no
30263 rm -f conftest.err conftest.$ac_ext
30264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30265 echo "${ECHO_T}$ac_header_preproc" >&6
30267 # So? What about this header?
30268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30274 ac_header_preproc=yes
30277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30291 ## ------------------------------------------ ##
30292 ## Report this to the AC_PACKAGE_NAME lists. ##
30293 ## ------------------------------------------ ##
30296 sed "s/^/$as_me: WARNING: /" >&2
30299 echo "$as_me:$LINENO: checking for $ac_header" >&5
30300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30304 eval "$as_ac_Header=\$ac_header_preproc"
30306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30311 cat >>confdefs.h <<_ACEOF
30312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30319 echo "$as_me:$LINENO: checking whether wait uses int" >&5
30320 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
30321 if test "${cf_cv_arg_int+set}" = set; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30324 cat >conftest.$ac_ext <<_ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h. */
30331 #include <sys/types.h>
30333 #if HAVE_SYS_WAIT_H
30334 # include <sys/wait.h>
30350 wait(&x); i = WIFEXITED(x)
30356 rm -f conftest.$ac_objext
30357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30358 (eval $ac_compile) 2>conftest.er1
30360 grep -v '^ *+' conftest.er1 >conftest.err
30362 cat conftest.err >&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } &&
30365 { ac_try='test -z "$ac_c_werror_flag"
30366 || test ! -s conftest.err'
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; } &&
30372 { ac_try='test -s conftest.$ac_objext'
30373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30387 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
30388 echo "${ECHO_T}$cf_cv_arg_int" >&6
30389 if test $cf_cv_arg_int = yes; then
30391 cat >>confdefs.h <<\_ACEOF
30392 #define WAIT_USES_INT 1
30397 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
30398 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
30399 if test "${ac_cv_header_time+set}" = set; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 cat >conftest.$ac_ext <<_ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h. */
30408 #include <sys/types.h>
30409 #include <sys/time.h>
30415 if ((struct tm *) 0)
30421 rm -f conftest.$ac_objext
30422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30423 (eval $ac_compile) 2>conftest.er1
30425 grep -v '^ *+' conftest.er1 >conftest.err
30427 cat conftest.err >&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); } &&
30430 { ac_try='test -z "$ac_c_werror_flag"
30431 || test ! -s conftest.err'
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; } &&
30437 { ac_try='test -s conftest.$ac_objext'
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; }; then
30443 ac_cv_header_time=yes
30445 echo "$as_me: failed program was:" >&5
30446 sed 's/^/| /' conftest.$ac_ext >&5
30448 ac_cv_header_time=no
30450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30452 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
30453 echo "${ECHO_T}$ac_cv_header_time" >&6
30454 if test $ac_cv_header_time = yes; then
30456 cat >>confdefs.h <<\_ACEOF
30457 #define TIME_WITH_SYS_TIME 1
30524 cam/scsi/scsi_message.h \
30540 netinet/in_systm.h \
30542 readline/history.h \
30543 readline/readline.h \
30545 scsi/scsi_ioctl.h \
30563 sys/scsi/impl/uscsi.h \
30564 sys/scsi/scsi/ioctl.h \
30581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30583 echo "$as_me:$LINENO: checking for $ac_header" >&5
30584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30586 echo $ECHO_N "(cached) $ECHO_C" >&6
30588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30591 # Is the header compilable?
30592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30594 cat >conftest.$ac_ext <<_ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h. */
30600 $ac_includes_default
30601 #include <$ac_header>
30603 rm -f conftest.$ac_objext
30604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30605 (eval $ac_compile) 2>conftest.er1
30607 grep -v '^ *+' conftest.er1 >conftest.err
30609 cat conftest.err >&5
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); } &&
30612 { ac_try='test -z "$ac_c_werror_flag"
30613 || test ! -s conftest.err'
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; } &&
30619 { ac_try='test -s conftest.$ac_objext'
30620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621 (eval $ac_try) 2>&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; }; then
30625 ac_header_compiler=yes
30627 echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30630 ac_header_compiler=no
30632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30634 echo "${ECHO_T}$ac_header_compiler" >&6
30636 # Is the header present?
30637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30639 cat >conftest.$ac_ext <<_ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h. */
30645 #include <$ac_header>
30647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30650 grep -v '^ *+' conftest.er1 >conftest.err
30652 cat conftest.err >&5
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); } >/dev/null; then
30655 if test -s conftest.err; then
30656 ac_cpp_err=$ac_c_preproc_warn_flag
30657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30664 if test -z "$ac_cpp_err"; then
30665 ac_header_preproc=yes
30667 echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30670 ac_header_preproc=no
30672 rm -f conftest.err conftest.$ac_ext
30673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30674 echo "${ECHO_T}$ac_header_preproc" >&6
30676 # So? What about this header?
30677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30683 ac_header_preproc=yes
30686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30700 ## ------------------------------------------ ##
30701 ## Report this to the AC_PACKAGE_NAME lists. ##
30702 ## ------------------------------------------ ##
30705 sed "s/^/$as_me: WARNING: /" >&2
30708 echo "$as_me:$LINENO: checking for $ac_header" >&5
30709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30713 eval "$as_ac_Header=\$ac_header_preproc"
30715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30720 cat >>confdefs.h <<_ACEOF
30721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30730 for ac_header in netinet/ip.h
30732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30733 echo "$as_me:$LINENO: checking for $ac_header" >&5
30734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30736 echo $ECHO_N "(cached) $ECHO_C" >&6
30738 cat >conftest.$ac_ext <<_ACEOF
30741 cat confdefs.h >>conftest.$ac_ext
30742 cat >>conftest.$ac_ext <<_ACEOF
30743 /* end confdefs.h. */
30744 #include <sys/socket.h>
30745 #if HAVE_SYS_TYPES_H
30746 #include <sys/types.h>
30748 #ifdef HAVE_NETINET_IN_SYSTM_H
30749 #include <netinet/in_systm.h>
30751 #include <netinet/in.h>
30754 #include <$ac_header>
30756 rm -f conftest.$ac_objext
30757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30758 (eval $ac_compile) 2>conftest.er1
30760 grep -v '^ *+' conftest.er1 >conftest.err
30762 cat conftest.err >&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } &&
30765 { ac_try='test -z "$ac_c_werror_flag"
30766 || test ! -s conftest.err'
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest.$ac_objext'
30773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774 (eval $ac_try) 2>&5
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; }; then
30778 eval "$as_ac_Header=yes"
30780 echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30783 eval "$as_ac_Header=no"
30785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30790 cat >>confdefs.h <<_ACEOF
30791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30800 for ac_header in sys/mount.h
30802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30803 echo "$as_me:$LINENO: checking for $ac_header" >&5
30804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30808 cat >conftest.$ac_ext <<_ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h. */
30814 #ifdef HAVE_SYS_PARAM_H
30815 #include <sys/param.h>
30819 #include <$ac_header>
30821 rm -f conftest.$ac_objext
30822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30823 (eval $ac_compile) 2>conftest.er1
30825 grep -v '^ *+' conftest.er1 >conftest.err
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } &&
30830 { ac_try='test -z "$ac_c_werror_flag"
30831 || test ! -s conftest.err'
30832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30833 (eval $ac_try) 2>&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; } &&
30837 { ac_try='test -s conftest.$ac_objext'
30838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30839 (eval $ac_try) 2>&5
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842 (exit $ac_status); }; }; then
30843 eval "$as_ac_Header=yes"
30845 echo "$as_me: failed program was:" >&5
30846 sed 's/^/| /' conftest.$ac_ext >&5
30848 eval "$as_ac_Header=no"
30850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30855 cat >>confdefs.h <<_ACEOF
30856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30864 NO_SCSI_CHANGER_MODE=true
30865 NO_CHIO_CHANGER_MODE=true
30867 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30868 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
30869 if test "${ac_cv_c_bigendian+set}" = set; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30872 # See if sys/param.h defines the BYTE_ORDER macro.
30873 cat >conftest.$ac_ext <<_ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h. */
30879 #include <sys/types.h>
30880 #include <sys/param.h>
30885 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30886 bogus endian macros
30893 rm -f conftest.$ac_objext
30894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30895 (eval $ac_compile) 2>conftest.er1
30897 grep -v '^ *+' conftest.er1 >conftest.err
30899 cat conftest.err >&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } &&
30902 { ac_try='test -z "$ac_c_werror_flag"
30903 || test ! -s conftest.err'
30904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30905 (eval $ac_try) 2>&5
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); }; } &&
30909 { ac_try='test -s conftest.$ac_objext'
30910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911 (eval $ac_try) 2>&5
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); }; }; then
30915 # It does; now see whether it defined to BIG_ENDIAN or not.
30916 cat >conftest.$ac_ext <<_ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h. */
30922 #include <sys/types.h>
30923 #include <sys/param.h>
30928 #if BYTE_ORDER != BIG_ENDIAN
30936 rm -f conftest.$ac_objext
30937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30938 (eval $ac_compile) 2>conftest.er1
30940 grep -v '^ *+' conftest.er1 >conftest.err
30942 cat conftest.err >&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); } &&
30945 { ac_try='test -z "$ac_c_werror_flag"
30946 || test ! -s conftest.err'
30947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948 (eval $ac_try) 2>&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; } &&
30952 { ac_try='test -s conftest.$ac_objext'
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; }; then
30958 ac_cv_c_bigendian=yes
30960 echo "$as_me: failed program was:" >&5
30961 sed 's/^/| /' conftest.$ac_ext >&5
30963 ac_cv_c_bigendian=no
30965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30967 echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30970 # It does not; compile a test program.
30971 if test "$cross_compiling" = yes; then
30972 # try to guess the endianness by grepping values into an object file
30973 ac_cv_c_bigendian=unknown
30974 cat >conftest.$ac_ext <<_ACEOF
30977 cat confdefs.h >>conftest.$ac_ext
30978 cat >>conftest.$ac_ext <<_ACEOF
30979 /* end confdefs.h. */
30980 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30981 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30982 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30983 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30984 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30985 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30989 _ascii (); _ebcdic ();
30994 rm -f conftest.$ac_objext
30995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30996 (eval $ac_compile) 2>conftest.er1
30998 grep -v '^ *+' conftest.er1 >conftest.err
31000 cat conftest.err >&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } &&
31003 { ac_try='test -z "$ac_c_werror_flag"
31004 || test ! -s conftest.err'
31005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006 (eval $ac_try) 2>&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; } &&
31010 { ac_try='test -s conftest.$ac_objext'
31011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012 (eval $ac_try) 2>&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; }; then
31016 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
31017 ac_cv_c_bigendian=yes
31019 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31020 if test "$ac_cv_c_bigendian" = unknown; then
31021 ac_cv_c_bigendian=no
31023 # finding both strings is unlikely to happen, but who knows?
31024 ac_cv_c_bigendian=unknown
31028 echo "$as_me: failed program was:" >&5
31029 sed 's/^/| /' conftest.$ac_ext >&5
31032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31034 cat >conftest.$ac_ext <<_ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h. */
31043 /* Are we little or big endian? From Harbison&Steele. */
31047 char c[sizeof (long)];
31050 exit (u.c[sizeof (long) - 1] == 1);
31053 rm -f conftest$ac_exeext
31054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31055 (eval $ac_link) 2>&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 ac_cv_c_bigendian=no
31066 echo "$as_me: program exited with status $ac_status" >&5
31067 echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31070 ( exit $ac_status )
31071 ac_cv_c_bigendian=yes
31073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31078 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
31079 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
31080 case $ac_cv_c_bigendian in
31083 cat >>confdefs.h <<\_ACEOF
31084 #define WORDS_BIGENDIAN 1
31090 { { echo "$as_me:$LINENO: error: unknown endianness
31091 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
31092 echo "$as_me: error: unknown endianness
31093 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
31094 { (exit 1); exit 1; }; } ;;
31098 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
31099 echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
31100 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
31101 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31104 cat >conftest.$ac_ext <<_ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h. */
31111 #include <sys/scsi.h>
31117 static struct element_addresses changer_info;
31118 int i = SIOC_ELEMENT_ADDRESSES;
31119 int j = SIOC_ELEMENT_STATUS;
31120 int k = SIOC_MOVE_MEDIUM;
31126 rm -f conftest.$ac_objext
31127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31128 (eval $ac_compile) 2>conftest.er1
31130 grep -v '^ *+' conftest.er1 >conftest.err
31132 cat conftest.err >&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
31135 { ac_try='test -z "$ac_c_werror_flag"
31136 || test ! -s conftest.err'
31137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138 (eval $ac_try) 2>&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; } &&
31142 { ac_try='test -s conftest.$ac_objext'
31143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31144 (eval $ac_try) 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; }; then
31148 amanda_cv_hpux_scsi_chio=yes
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 amanda_cv_hpux_scsi_chio=no
31155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31157 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
31158 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
31159 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
31161 cat >>confdefs.h <<\_ACEOF
31162 #define HAVE_HPUX_SCSI_CHIO 1
31165 NO_SCSI_CHANGER_MODE=false
31169 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31170 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
31171 echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
31172 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
31173 if test "${amanda_cv_linux_scsi+set}" = set; then
31174 echo $ECHO_N "(cached) $ECHO_C" >&6
31176 cat >conftest.$ac_ext <<_ACEOF
31179 cat confdefs.h >>conftest.$ac_ext
31180 cat >>conftest.$ac_ext <<_ACEOF
31181 /* end confdefs.h. */
31183 #include <scsi/scsi_ioctl.h>
31184 #include <sys/mtio.h>
31192 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
31198 rm -f conftest.$ac_objext
31199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31200 (eval $ac_compile) 2>conftest.er1
31202 grep -v '^ *+' conftest.er1 >conftest.err
31204 cat conftest.err >&5
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); } &&
31207 { ac_try='test -z "$ac_c_werror_flag"
31208 || test ! -s conftest.err'
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; } &&
31214 { ac_try='test -s conftest.$ac_objext'
31215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31216 (eval $ac_try) 2>&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; }; then
31220 amanda_cv_linux_scsi=yes
31222 echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31225 amanda_cv_linux_scsi=no
31227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31229 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
31230 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
31233 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31234 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
31235 echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
31236 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
31237 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31240 cat >conftest.$ac_ext <<_ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h. */
31247 #include <sys/types.h>
31248 #include <scsi/sg.h>
31249 #include <sys/mtio.h>
31256 struct sg_header *psg_header;
31258 write(device, buffer, 1);
31264 rm -f conftest.$ac_objext
31265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31266 (eval $ac_compile) 2>conftest.er1
31268 grep -v '^ *+' conftest.er1 >conftest.err
31270 cat conftest.err >&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); } &&
31273 { ac_try='test -z "$ac_c_werror_flag"
31274 || test ! -s conftest.err'
31275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276 (eval $ac_try) 2>&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; } &&
31280 { ac_try='test -s conftest.$ac_objext'
31281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31282 (eval $ac_try) 2>&5
31284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285 (exit $ac_status); }; }; then
31286 amanda_cv_linux_sg_scsi=yes
31288 echo "$as_me: failed program was:" >&5
31289 sed 's/^/| /' conftest.$ac_ext >&5
31291 amanda_cv_linux_sg_scsi=no
31293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31295 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
31296 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
31299 if test x"$amanda_cv_linux_scsi" = x"yes" ||
31300 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
31302 cat >>confdefs.h <<\_ACEOF
31303 #define HAVE_LINUX_LIKE_SCSI 1
31306 NO_SCSI_CHANGER_MODE=false
31309 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31310 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
31311 echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
31312 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
31313 if test "${amanda_cv_hpux_scsi+set}" = set; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31316 cat >conftest.$ac_ext <<_ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h. */
31324 #include <sys/ioctl.h>
31325 #include <sys/scsi.h>
31326 #include <sys/mtio.h>
31334 ioctl(device, SIOC_IO, Command);
31340 rm -f conftest.$ac_objext
31341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31342 (eval $ac_compile) 2>conftest.er1
31344 grep -v '^ *+' conftest.er1 >conftest.err
31346 cat conftest.err >&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
31349 { ac_try='test -z "$ac_c_werror_flag"
31350 || test ! -s conftest.err'
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; } &&
31356 { ac_try='test -s conftest.$ac_objext'
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 amanda_cv_hpux_scsi=yes
31364 echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31367 amanda_cv_hpux_scsi=no
31369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31371 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
31372 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
31373 if test x"$amanda_cv_hpux_scsi" = x"yes";then
31375 cat >>confdefs.h <<\_ACEOF
31376 #define HAVE_HPUX_LIKE_SCSI 1
31379 NO_SCSI_CHANGER_MODE=false
31380 NO_CHIO_CHANGER_MODE=false
31384 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31385 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
31386 echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
31387 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
31388 if test "${amanda_cv_irix_scsi+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31391 cat >conftest.$ac_ext <<_ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h. */
31398 #include <sys/types.h>
31399 #include <sys/dsreq.h>
31400 #include <sys/mtio.h>
31408 ioctl(device, DS_ENTER, &Command);
31414 rm -f conftest.$ac_objext
31415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31416 (eval $ac_compile) 2>conftest.er1
31418 grep -v '^ *+' conftest.er1 >conftest.err
31420 cat conftest.err >&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); } &&
31423 { ac_try='test -z "$ac_c_werror_flag"
31424 || test ! -s conftest.err'
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; } &&
31430 { ac_try='test -s conftest.$ac_objext'
31431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432 (eval $ac_try) 2>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 amanda_cv_irix_scsi=yes
31438 echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31441 amanda_cv_irix_scsi=no
31443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31445 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
31446 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
31447 if test x"$amanda_cv_irix_scsi" = x"yes";then
31449 cat >>confdefs.h <<\_ACEOF
31450 #define HAVE_IRIX_LIKE_SCSI 1
31453 NO_SCSI_CHANGER_MODE=false
31457 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31458 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
31459 echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
31460 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
31461 if test "${amanda_cv_solaris_scsi+set}" = set; then
31462 echo $ECHO_N "(cached) $ECHO_C" >&6
31464 cat >conftest.$ac_ext <<_ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h. */
31471 #include <sys/types.h>
31472 #include <sys/scsi/impl/uscsi.h>
31473 #include <sys/mtio.h>
31481 ioctl(device, USCSICMD, Command);
31487 rm -f conftest.$ac_objext
31488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31489 (eval $ac_compile) 2>conftest.er1
31491 grep -v '^ *+' conftest.er1 >conftest.err
31493 cat conftest.err >&5
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } &&
31496 { ac_try='test -z "$ac_c_werror_flag"
31497 || test ! -s conftest.err'
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; } &&
31503 { ac_try='test -s conftest.$ac_objext'
31504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31505 (eval $ac_try) 2>&5
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; }; then
31509 amanda_cv_solaris_scsi=yes
31511 echo "$as_me: failed program was:" >&5
31512 sed 's/^/| /' conftest.$ac_ext >&5
31514 amanda_cv_solaris_scsi=no
31516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31518 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
31519 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
31520 if test x"$amanda_cv_solaris_scsi" = x"yes";then
31522 cat >>confdefs.h <<\_ACEOF
31523 #define HAVE_SOLARIS_LIKE_SCSI 1
31526 NO_SCSI_CHANGER_MODE=false
31530 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
31531 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
31532 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
31533 echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
31534 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
31535 if test "${amanda_cv_aix_scsi+set}" = set; then
31536 echo $ECHO_N "(cached) $ECHO_C" >&6
31538 cat >conftest.$ac_ext <<_ACEOF
31541 cat confdefs.h >>conftest.$ac_ext
31542 cat >>conftest.$ac_ext <<_ACEOF
31543 /* end confdefs.h. */
31545 #include <sys/types.h>
31546 #include <sys/scarray.h>
31547 #include <sys/tape.h>
31555 ioctl(device, STIOCMD, Command);
31561 rm -f conftest.$ac_objext
31562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31563 (eval $ac_compile) 2>conftest.er1
31565 grep -v '^ *+' conftest.er1 >conftest.err
31567 cat conftest.err >&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } &&
31570 { ac_try='test -z "$ac_c_werror_flag"
31571 || test ! -s conftest.err'
31572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31573 (eval $ac_try) 2>&5
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576 (exit $ac_status); }; } &&
31577 { ac_try='test -s conftest.$ac_objext'
31578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31579 (eval $ac_try) 2>&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); }; }; then
31583 amanda_cv_aix_scsi=yes
31585 echo "$as_me: failed program was:" >&5
31586 sed 's/^/| /' conftest.$ac_ext >&5
31588 amanda_cv_aix_scsi=no
31590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31592 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
31593 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
31594 if test x"$amanda_cv_aix_scsi" = x"yes";then
31596 cat >>confdefs.h <<\_ACEOF
31597 #define HAVE_AIX_LIKE_SCSI 1
31600 NO_SCSI_CHANGER_MODE=false
31603 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
31604 echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
31605 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
31606 if test "${amanda_cv_cam_scsi+set}" = set; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31609 cat >conftest.$ac_ext <<_ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h. */
31617 # include <fcntl.h>
31618 # include <cam/cam.h>
31619 # include <cam/cam_ccb.h>
31620 # include <cam/scsi/scsi_message.h>
31621 # include <cam/scsi/scsi_pass.h>
31622 # include <camlib.h>
31628 struct cam_device *curdev;
31630 curdev = cam_open_pass("", O_RDWR, NULL);
31636 rm -f conftest.$ac_objext
31637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31638 (eval $ac_compile) 2>conftest.er1
31640 grep -v '^ *+' conftest.er1 >conftest.err
31642 cat conftest.err >&5
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); } &&
31645 { ac_try='test -z "$ac_c_werror_flag"
31646 || test ! -s conftest.err'
31647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31648 (eval $ac_try) 2>&5
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); }; } &&
31652 { ac_try='test -s conftest.$ac_objext'
31653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31654 (eval $ac_try) 2>&5
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; }; then
31658 amanda_cv_cam_scsi=yes
31660 echo "$as_me: failed program was:" >&5
31661 sed 's/^/| /' conftest.$ac_ext >&5
31663 amanda_cv_cam_scsi=no
31665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31667 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
31668 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
31669 if test x"$amanda_cv_cam_scsi" = x"yes";then
31671 cat >>confdefs.h <<\_ACEOF
31672 #define HAVE_CAM_LIKE_SCSI 1
31675 NO_SCSI_CHANGER_MODE=false
31677 echo "$as_me:$LINENO: checking for main in -lcam" >&5
31678 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
31679 if test "${ac_cv_lib_cam_main+set}" = set; then
31680 echo $ECHO_N "(cached) $ECHO_C" >&6
31682 ac_check_lib_save_LIBS=$LIBS
31684 cat >conftest.$ac_ext <<_ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h. */
31700 rm -f conftest.$ac_objext conftest$ac_exeext
31701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31702 (eval $ac_link) 2>conftest.er1
31704 grep -v '^ *+' conftest.er1 >conftest.err
31706 cat conftest.err >&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); } &&
31709 { ac_try='test -z "$ac_c_werror_flag"
31710 || test ! -s conftest.err'
31711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712 (eval $ac_try) 2>&5
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; } &&
31716 { ac_try='test -s conftest$ac_exeext'
31717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31718 (eval $ac_try) 2>&5
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); }; }; then
31722 ac_cv_lib_cam_main=yes
31724 echo "$as_me: failed program was:" >&5
31725 sed 's/^/| /' conftest.$ac_ext >&5
31727 ac_cv_lib_cam_main=no
31729 rm -f conftest.err conftest.$ac_objext \
31730 conftest$ac_exeext conftest.$ac_ext
31731 LIBS=$ac_check_lib_save_LIBS
31733 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
31734 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
31735 if test $ac_cv_lib_cam_main = yes; then
31736 cat >>confdefs.h <<_ACEOF
31737 #define HAVE_LIBCAM 1
31748 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31749 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
31750 echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
31751 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
31752 if test "${amanda_cv_bsd_scsi+set}" = set; then
31753 echo $ECHO_N "(cached) $ECHO_C" >&6
31755 cat >conftest.$ac_ext <<_ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h. */
31762 #include <sys/types.h>
31763 #include <sys/scsiio.h>
31764 #include <sys/mtio.h>
31772 ioctl(device, SCIOCCOMMAND, &Command);
31778 rm -f conftest.$ac_objext
31779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31780 (eval $ac_compile) 2>conftest.er1
31782 grep -v '^ *+' conftest.er1 >conftest.err
31784 cat conftest.err >&5
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); } &&
31787 { ac_try='test -z "$ac_c_werror_flag"
31788 || test ! -s conftest.err'
31789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31790 (eval $ac_try) 2>&5
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); }; } &&
31794 { ac_try='test -s conftest.$ac_objext'
31795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31796 (eval $ac_try) 2>&5
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); }; }; then
31800 amanda_cv_bsd_scsi=yes
31802 echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31805 amanda_cv_bsd_scsi=no
31807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31809 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
31810 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
31811 if test x"$amanda_cv_bsd_scsi" = x"yes";then
31813 cat >>confdefs.h <<\_ACEOF
31814 #define HAVE_BSD_LIKE_SCSI 1
31817 NO_SCSI_CHANGER_MODE=false
31821 if test x"$ac_cv_header_chio_h" = x"yes" ||
31822 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
31823 if test x"$ac_cv_header_camlib_h" != x"yes"; then
31824 if $NO_SCSI_CHANGER_MODE; then
31825 NO_SCSI_CHANGER_MODE=false
31827 NO_CHIO_CHANGER_MODE=false
31833 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
31834 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
31835 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
31836 echo $ECHO_N "(cached) $ECHO_C" >&6
31838 ac_check_lib_save_LIBS=$LIBS
31839 LIBS="-lcur_colr $LIBS"
31840 cat >conftest.$ac_ext <<_ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31856 rm -f conftest.$ac_objext conftest$ac_exeext
31857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31858 (eval $ac_link) 2>conftest.er1
31860 grep -v '^ *+' conftest.er1 >conftest.err
31862 cat conftest.err >&5
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } &&
31865 { ac_try='test -z "$ac_c_werror_flag"
31866 || test ! -s conftest.err'
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; } &&
31872 { ac_try='test -s conftest$ac_exeext'
31873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874 (eval $ac_try) 2>&5
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); }; }; then
31878 ac_cv_lib_cur_colr_main=yes
31880 echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31883 ac_cv_lib_cur_colr_main=no
31885 rm -f conftest.err conftest.$ac_objext \
31886 conftest$ac_exeext conftest.$ac_ext
31887 LIBS=$ac_check_lib_save_LIBS
31889 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
31890 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
31891 if test $ac_cv_lib_cur_colr_main = yes; then
31892 cat >>confdefs.h <<_ACEOF
31893 #define HAVE_LIBCUR_COLR 1
31896 LIBS="-lcur_colr $LIBS"
31902 echo "$as_me:$LINENO: checking for main in -lintl" >&5
31903 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
31904 if test "${ac_cv_lib_intl_main+set}" = set; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31907 ac_check_lib_save_LIBS=$LIBS
31908 LIBS="-lintl $LIBS"
31909 cat >conftest.$ac_ext <<_ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h. */
31925 rm -f conftest.$ac_objext conftest$ac_exeext
31926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31927 (eval $ac_link) 2>conftest.er1
31929 grep -v '^ *+' conftest.er1 >conftest.err
31931 cat conftest.err >&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); } &&
31934 { ac_try='test -z "$ac_c_werror_flag"
31935 || test ! -s conftest.err'
31936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937 (eval $ac_try) 2>&5
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; } &&
31941 { ac_try='test -s conftest$ac_exeext'
31942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31943 (eval $ac_try) 2>&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; }; then
31947 ac_cv_lib_intl_main=yes
31949 echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31952 ac_cv_lib_intl_main=no
31954 rm -f conftest.err conftest.$ac_objext \
31955 conftest$ac_exeext conftest.$ac_ext
31956 LIBS=$ac_check_lib_save_LIBS
31958 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
31959 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
31960 if test $ac_cv_lib_intl_main = yes; then
31961 cat >>confdefs.h <<_ACEOF
31962 #define HAVE_LIBINTL 1
31965 LIBS="-lintl $LIBS"
31973 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
31974 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
31975 if test "${ac_cv_lib_socket_main+set}" = set; then
31976 echo $ECHO_N "(cached) $ECHO_C" >&6
31978 ac_check_lib_save_LIBS=$LIBS
31979 LIBS="-lsocket $LIBS"
31980 cat >conftest.$ac_ext <<_ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h. */
31996 rm -f conftest.$ac_objext conftest$ac_exeext
31997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31998 (eval $ac_link) 2>conftest.er1
32000 grep -v '^ *+' conftest.er1 >conftest.err
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } &&
32005 { ac_try='test -z "$ac_c_werror_flag"
32006 || test ! -s conftest.err'
32007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32008 (eval $ac_try) 2>&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; } &&
32012 { ac_try='test -s conftest$ac_exeext'
32013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32014 (eval $ac_try) 2>&5
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017 (exit $ac_status); }; }; then
32018 ac_cv_lib_socket_main=yes
32020 echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32023 ac_cv_lib_socket_main=no
32025 rm -f conftest.err conftest.$ac_objext \
32026 conftest$ac_exeext conftest.$ac_ext
32027 LIBS=$ac_check_lib_save_LIBS
32029 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
32030 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
32031 if test $ac_cv_lib_socket_main = yes; then
32032 cat >>confdefs.h <<_ACEOF
32033 #define HAVE_LIBSOCKET 1
32036 LIBS="-lsocket $LIBS"
32043 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
32044 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
32045 if test "${ac_cv_lib_resolv_main+set}" = set; then
32046 echo $ECHO_N "(cached) $ECHO_C" >&6
32048 ac_check_lib_save_LIBS=$LIBS
32049 LIBS="-lresolv $LIBS"
32050 cat >conftest.$ac_ext <<_ACEOF
32053 cat confdefs.h >>conftest.$ac_ext
32054 cat >>conftest.$ac_ext <<_ACEOF
32055 /* end confdefs.h. */
32066 rm -f conftest.$ac_objext conftest$ac_exeext
32067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32068 (eval $ac_link) 2>conftest.er1
32070 grep -v '^ *+' conftest.er1 >conftest.err
32072 cat conftest.err >&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); } &&
32075 { ac_try='test -z "$ac_c_werror_flag"
32076 || test ! -s conftest.err'
32077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078 (eval $ac_try) 2>&5
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); }; } &&
32082 { ac_try='test -s conftest$ac_exeext'
32083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32084 (eval $ac_try) 2>&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); }; }; then
32088 ac_cv_lib_resolv_main=yes
32090 echo "$as_me: failed program was:" >&5
32091 sed 's/^/| /' conftest.$ac_ext >&5
32093 ac_cv_lib_resolv_main=no
32095 rm -f conftest.err conftest.$ac_objext \
32096 conftest$ac_exeext conftest.$ac_ext
32097 LIBS=$ac_check_lib_save_LIBS
32099 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
32100 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
32101 if test $ac_cv_lib_resolv_main = yes; then
32102 cat >>confdefs.h <<_ACEOF
32103 #define HAVE_LIBRESOLV 1
32106 LIBS="-lresolv $LIBS"
32111 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
32112 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
32113 if test "${ac_cv_lib_nsl_main+set}" = set; then
32114 echo $ECHO_N "(cached) $ECHO_C" >&6
32116 ac_check_lib_save_LIBS=$LIBS
32118 cat >conftest.$ac_ext <<_ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h. */
32134 rm -f conftest.$ac_objext conftest$ac_exeext
32135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32136 (eval $ac_link) 2>conftest.er1
32138 grep -v '^ *+' conftest.er1 >conftest.err
32140 cat conftest.err >&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } &&
32143 { ac_try='test -z "$ac_c_werror_flag"
32144 || test ! -s conftest.err'
32145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146 (eval $ac_try) 2>&5
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; } &&
32150 { ac_try='test -s conftest$ac_exeext'
32151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152 (eval $ac_try) 2>&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); }; }; then
32156 ac_cv_lib_nsl_main=yes
32158 echo "$as_me: failed program was:" >&5
32159 sed 's/^/| /' conftest.$ac_ext >&5
32161 ac_cv_lib_nsl_main=no
32163 rm -f conftest.err conftest.$ac_objext \
32164 conftest$ac_exeext conftest.$ac_ext
32165 LIBS=$ac_check_lib_save_LIBS
32167 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
32168 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
32169 if test $ac_cv_lib_nsl_main = yes; then
32170 cat >>confdefs.h <<_ACEOF
32171 #define HAVE_LIBNSL 1
32179 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
32180 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
32181 if test "${ac_cv_lib_socket_main+set}" = set; then
32182 echo $ECHO_N "(cached) $ECHO_C" >&6
32184 ac_check_lib_save_LIBS=$LIBS
32185 LIBS="-lsocket $LIBS"
32186 cat >conftest.$ac_ext <<_ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h. */
32202 rm -f conftest.$ac_objext conftest$ac_exeext
32203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32204 (eval $ac_link) 2>conftest.er1
32206 grep -v '^ *+' conftest.er1 >conftest.err
32208 cat conftest.err >&5
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); } &&
32211 { ac_try='test -z "$ac_c_werror_flag"
32212 || test ! -s conftest.err'
32213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214 (eval $ac_try) 2>&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); }; } &&
32218 { ac_try='test -s conftest$ac_exeext'
32219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32220 (eval $ac_try) 2>&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); }; }; then
32224 ac_cv_lib_socket_main=yes
32226 echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32229 ac_cv_lib_socket_main=no
32231 rm -f conftest.err conftest.$ac_objext \
32232 conftest$ac_exeext conftest.$ac_ext
32233 LIBS=$ac_check_lib_save_LIBS
32235 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
32236 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
32237 if test $ac_cv_lib_socket_main = yes; then
32238 cat >>confdefs.h <<_ACEOF
32239 #define HAVE_LIBSOCKET 1
32242 LIBS="-lsocket $LIBS"
32247 echo "$as_me:$LINENO: checking for main in -lsun" >&5
32248 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
32249 if test "${ac_cv_lib_sun_main+set}" = set; then
32250 echo $ECHO_N "(cached) $ECHO_C" >&6
32252 ac_check_lib_save_LIBS=$LIBS
32254 cat >conftest.$ac_ext <<_ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h. */
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272 (eval $ac_link) 2>conftest.er1
32274 grep -v '^ *+' conftest.er1 >conftest.err
32276 cat conftest.err >&5
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } &&
32279 { ac_try='test -z "$ac_c_werror_flag"
32280 || test ! -s conftest.err'
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; } &&
32286 { ac_try='test -s conftest$ac_exeext'
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; }; then
32292 ac_cv_lib_sun_main=yes
32294 echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32297 ac_cv_lib_sun_main=no
32299 rm -f conftest.err conftest.$ac_objext \
32300 conftest$ac_exeext conftest.$ac_ext
32301 LIBS=$ac_check_lib_save_LIBS
32303 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
32304 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
32305 if test $ac_cv_lib_sun_main = yes; then
32306 cat >>confdefs.h <<_ACEOF
32307 #define HAVE_LIBSUN 1
32318 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
32319 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
32320 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
32321 echo $ECHO_N "(cached) $ECHO_C" >&6
32323 ac_check_lib_save_LIBS=$LIBS
32324 LIBS="-ltermcap $LIBS"
32325 cat >conftest.$ac_ext <<_ACEOF
32328 cat confdefs.h >>conftest.$ac_ext
32329 cat >>conftest.$ac_ext <<_ACEOF
32330 /* end confdefs.h. */
32332 /* Override any gcc2 internal prototype to avoid an error. */
32336 /* We use char because int might match the return type of a gcc2
32337 builtin and then its argument prototype would still apply. */
32347 rm -f conftest.$ac_objext conftest$ac_exeext
32348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32349 (eval $ac_link) 2>conftest.er1
32351 grep -v '^ *+' conftest.er1 >conftest.err
32353 cat conftest.err >&5
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } &&
32356 { ac_try='test -z "$ac_c_werror_flag"
32357 || test ! -s conftest.err'
32358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359 (eval $ac_try) 2>&5
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; } &&
32363 { ac_try='test -s conftest$ac_exeext'
32364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365 (eval $ac_try) 2>&5
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; }; then
32369 ac_cv_lib_termcap_tgetent=yes
32371 echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32374 ac_cv_lib_termcap_tgetent=no
32376 rm -f conftest.err conftest.$ac_objext \
32377 conftest$ac_exeext conftest.$ac_ext
32378 LIBS=$ac_check_lib_save_LIBS
32380 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
32381 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
32382 if test $ac_cv_lib_termcap_tgetent = yes; then
32383 cat >>confdefs.h <<_ACEOF
32384 #define HAVE_LIBTERMCAP 1
32387 LIBS="-ltermcap $LIBS"
32391 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
32393 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
32394 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
32395 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
32396 echo $ECHO_N "(cached) $ECHO_C" >&6
32398 ac_check_lib_save_LIBS=$LIBS
32399 LIBS="-lcurses $LIBS"
32400 cat >conftest.$ac_ext <<_ACEOF
32403 cat confdefs.h >>conftest.$ac_ext
32404 cat >>conftest.$ac_ext <<_ACEOF
32405 /* end confdefs.h. */
32407 /* Override any gcc2 internal prototype to avoid an error. */
32411 /* We use char because int might match the return type of a gcc2
32412 builtin and then its argument prototype would still apply. */
32422 rm -f conftest.$ac_objext conftest$ac_exeext
32423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32424 (eval $ac_link) 2>conftest.er1
32426 grep -v '^ *+' conftest.er1 >conftest.err
32428 cat conftest.err >&5
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); } &&
32431 { ac_try='test -z "$ac_c_werror_flag"
32432 || test ! -s conftest.err'
32433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32434 (eval $ac_try) 2>&5
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); }; } &&
32438 { ac_try='test -s conftest$ac_exeext'
32439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440 (eval $ac_try) 2>&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); }; }; then
32444 ac_cv_lib_curses_tgetent=yes
32446 echo "$as_me: failed program was:" >&5
32447 sed 's/^/| /' conftest.$ac_ext >&5
32449 ac_cv_lib_curses_tgetent=no
32451 rm -f conftest.err conftest.$ac_objext \
32452 conftest$ac_exeext conftest.$ac_ext
32453 LIBS=$ac_check_lib_save_LIBS
32455 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
32456 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
32457 if test $ac_cv_lib_curses_tgetent = yes; then
32458 cat >>confdefs.h <<_ACEOF
32459 #define HAVE_LIBCURSES 1
32462 LIBS="-lcurses $LIBS"
32466 if test "x$ac_cv_lib_curses_tgetent" != xyes; then
32468 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
32469 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
32470 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
32471 echo $ECHO_N "(cached) $ECHO_C" >&6
32473 ac_check_lib_save_LIBS=$LIBS
32474 LIBS="-lncurses $LIBS"
32475 cat >conftest.$ac_ext <<_ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h. */
32482 /* Override any gcc2 internal prototype to avoid an error. */
32486 /* We use char because int might match the return type of a gcc2
32487 builtin and then its argument prototype would still apply. */
32497 rm -f conftest.$ac_objext conftest$ac_exeext
32498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32499 (eval $ac_link) 2>conftest.er1
32501 grep -v '^ *+' conftest.er1 >conftest.err
32503 cat conftest.err >&5
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); } &&
32506 { ac_try='test -z "$ac_c_werror_flag"
32507 || test ! -s conftest.err'
32508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509 (eval $ac_try) 2>&5
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; } &&
32513 { ac_try='test -s conftest$ac_exeext'
32514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32515 (eval $ac_try) 2>&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; }; then
32519 ac_cv_lib_ncurses_tgetent=yes
32521 echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32524 ac_cv_lib_ncurses_tgetent=no
32526 rm -f conftest.err conftest.$ac_objext \
32527 conftest$ac_exeext conftest.$ac_ext
32528 LIBS=$ac_check_lib_save_LIBS
32530 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
32531 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
32532 if test $ac_cv_lib_ncurses_tgetent = yes; then
32533 cat >>confdefs.h <<_ACEOF
32534 #define HAVE_LIBNCURSES 1
32537 LIBS="-lncurses $LIBS"
32543 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
32544 test "x$ac_cv_lib_curses_tgetent" = xyes ||
32545 test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
32546 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32547 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32548 if test "${ac_cv_lib_readline_readline+set}" = set; then
32549 echo $ECHO_N "(cached) $ECHO_C" >&6
32551 ac_check_lib_save_LIBS=$LIBS
32552 LIBS="-lreadline $LIBS"
32553 cat >conftest.$ac_ext <<_ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h. */
32560 /* Override any gcc2 internal prototype to avoid an error. */
32564 /* We use char because int might match the return type of a gcc2
32565 builtin and then its argument prototype would still apply. */
32575 rm -f conftest.$ac_objext conftest$ac_exeext
32576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32577 (eval $ac_link) 2>conftest.er1
32579 grep -v '^ *+' conftest.er1 >conftest.err
32581 cat conftest.err >&5
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); } &&
32584 { ac_try='test -z "$ac_c_werror_flag"
32585 || test ! -s conftest.err'
32586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587 (eval $ac_try) 2>&5
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); }; } &&
32591 { ac_try='test -s conftest$ac_exeext'
32592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593 (eval $ac_try) 2>&5
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; }; then
32597 ac_cv_lib_readline_readline=yes
32599 echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32602 ac_cv_lib_readline_readline=no
32604 rm -f conftest.err conftest.$ac_objext \
32605 conftest$ac_exeext conftest.$ac_ext
32606 LIBS=$ac_check_lib_save_LIBS
32608 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32609 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32610 if test $ac_cv_lib_readline_readline = yes; then
32611 READLINE_LIBS="-lreadline";
32615 if test "x$ac_cv_lib_readline_readline" != xyes; then
32616 { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
32617 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
32620 { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
32621 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
32624 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
32625 if test "x$ac_cv_header_vtblc_h" = xyes; then
32627 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
32628 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
32629 if test "${ac_cv_lib_vtblc_main+set}" = set; then
32630 echo $ECHO_N "(cached) $ECHO_C" >&6
32632 ac_check_lib_save_LIBS=$LIBS
32633 LIBS="-lvtblc $LIBS"
32634 cat >conftest.$ac_ext <<_ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32650 rm -f conftest.$ac_objext conftest$ac_exeext
32651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32652 (eval $ac_link) 2>conftest.er1
32654 grep -v '^ *+' conftest.er1 >conftest.err
32656 cat conftest.err >&5
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } &&
32659 { ac_try='test -z "$ac_c_werror_flag"
32660 || test ! -s conftest.err'
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; } &&
32666 { ac_try='test -s conftest$ac_exeext'
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; }; then
32672 ac_cv_lib_vtblc_main=yes
32674 echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32677 ac_cv_lib_vtblc_main=no
32679 rm -f conftest.err conftest.$ac_objext \
32680 conftest$ac_exeext conftest.$ac_ext
32681 LIBS=$ac_check_lib_save_LIBS
32683 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
32684 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
32685 if test $ac_cv_lib_vtblc_main = yes; then
32686 cat >>confdefs.h <<_ACEOF
32687 #define HAVE_LIBVTBLC 1
32690 LIBS="-lvtblc $LIBS"
32694 if test "x$ac_cv_lib_vtblc_main" != xyes; then
32695 { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
32696 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
32699 { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
32700 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
32705 echo "$as_me:$LINENO: checking for modf in -lm" >&5
32706 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
32707 if test "${ac_cv_lib_m_modf+set}" = set; then
32708 echo $ECHO_N "(cached) $ECHO_C" >&6
32710 ac_check_lib_save_LIBS=$LIBS
32712 cat >conftest.$ac_ext <<_ACEOF
32715 cat confdefs.h >>conftest.$ac_ext
32716 cat >>conftest.$ac_ext <<_ACEOF
32717 /* end confdefs.h. */
32719 /* Override any gcc2 internal prototype to avoid an error. */
32723 /* We use char because int might match the return type of a gcc2
32724 builtin and then its argument prototype would still apply. */
32734 rm -f conftest.$ac_objext conftest$ac_exeext
32735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32736 (eval $ac_link) 2>conftest.er1
32738 grep -v '^ *+' conftest.er1 >conftest.err
32740 cat conftest.err >&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); } &&
32743 { ac_try='test -z "$ac_c_werror_flag"
32744 || test ! -s conftest.err'
32745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32746 (eval $ac_try) 2>&5
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); }; } &&
32750 { ac_try='test -s conftest$ac_exeext'
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; }; then
32756 ac_cv_lib_m_modf=yes
32758 echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.$ac_ext >&5
32761 ac_cv_lib_m_modf=no
32763 rm -f conftest.err conftest.$ac_objext \
32764 conftest$ac_exeext conftest.$ac_ext
32765 LIBS=$ac_check_lib_save_LIBS
32767 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
32768 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
32769 if test $ac_cv_lib_m_modf = yes; then
32770 cat >>confdefs.h <<_ACEOF
32771 #define HAVE_LIBM 1
32780 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
32781 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
32782 mt_flags_result="found"
32783 cat >conftest.$ac_ext <<_ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h. */
32791 #include <sys/types.h>
32792 #include <sys/mtio.h>
32807 rm -f conftest.$ac_objext
32808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32809 (eval $ac_compile) 2>conftest.er1
32811 grep -v '^ *+' conftest.er1 >conftest.err
32813 cat conftest.err >&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); } &&
32816 { ac_try='test -z "$ac_c_werror_flag"
32817 || test ! -s conftest.err'
32818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819 (eval $ac_try) 2>&5
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); }; } &&
32823 { ac_try='test -s conftest.$ac_objext'
32824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32825 (eval $ac_try) 2>&5
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; }; then
32830 cat >>confdefs.h <<\_ACEOF
32831 #define HAVE_MT_FLAGS 1
32835 echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32838 mt_flags_result="not found"
32840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32841 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
32842 echo "${ECHO_T}$mt_flags_result" >&6
32844 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
32845 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
32846 mt_fileno_result="found"
32847 cat >conftest.$ac_ext <<_ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h. */
32855 #include <sys/types.h>
32856 #include <sys/mtio.h>
32865 ds = buf.mt_fileno;
32871 rm -f conftest.$ac_objext
32872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32873 (eval $ac_compile) 2>conftest.er1
32875 grep -v '^ *+' conftest.er1 >conftest.err
32877 cat conftest.err >&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } &&
32880 { ac_try='test -z "$ac_c_werror_flag"
32881 || test ! -s conftest.err'
32882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32883 (eval $ac_try) 2>&5
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); }; } &&
32887 { ac_try='test -s conftest.$ac_objext'
32888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32889 (eval $ac_try) 2>&5
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); }; }; then
32894 cat >>confdefs.h <<\_ACEOF
32895 #define HAVE_MT_FILENO 1
32899 echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32902 mt_fileno_result="not found"
32904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32905 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
32906 echo "${ECHO_T}$mt_fileno_result" >&6
32908 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
32909 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
32910 mt_blkno_result="found"
32911 cat >conftest.$ac_ext <<_ACEOF
32914 cat confdefs.h >>conftest.$ac_ext
32915 cat >>conftest.$ac_ext <<_ACEOF
32916 /* end confdefs.h. */
32919 #include <sys/types.h>
32920 #include <sys/mtio.h>
32935 rm -f conftest.$ac_objext
32936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32937 (eval $ac_compile) 2>conftest.er1
32939 grep -v '^ *+' conftest.er1 >conftest.err
32941 cat conftest.err >&5
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); } &&
32944 { ac_try='test -z "$ac_c_werror_flag"
32945 || test ! -s conftest.err'
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; } &&
32951 { ac_try='test -s conftest.$ac_objext'
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32958 cat >>confdefs.h <<\_ACEOF
32959 #define HAVE_MT_BLKNO 1
32963 echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32966 mt_blkno_result="not found"
32968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32969 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
32970 echo "${ECHO_T}$mt_blkno_result" >&6
32972 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
32973 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
32974 mt_dsreg_result="found"
32975 cat >conftest.$ac_ext <<_ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h. */
32983 #include <sys/types.h>
32984 #include <sys/mtio.h>
32999 rm -f conftest.$ac_objext
33000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33001 (eval $ac_compile) 2>conftest.er1
33003 grep -v '^ *+' conftest.er1 >conftest.err
33005 cat conftest.err >&5
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); } &&
33008 { ac_try='test -z "$ac_c_werror_flag"
33009 || test ! -s conftest.err'
33010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33011 (eval $ac_try) 2>&5
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); }; } &&
33015 { ac_try='test -s conftest.$ac_objext'
33016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017 (eval $ac_try) 2>&5
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33022 cat >>confdefs.h <<\_ACEOF
33023 #define HAVE_MT_DSREG 1
33027 echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33030 mt_dsreg_result="not found"
33032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33033 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
33034 echo "${ECHO_T}$mt_dsreg_result" >&6
33036 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
33037 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
33038 mt_erreg_result="found"
33039 cat >conftest.$ac_ext <<_ACEOF
33042 cat confdefs.h >>conftest.$ac_ext
33043 cat >>conftest.$ac_ext <<_ACEOF
33044 /* end confdefs.h. */
33047 #include <sys/types.h>
33048 #include <sys/mtio.h>
33063 rm -f conftest.$ac_objext
33064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33065 (eval $ac_compile) 2>conftest.er1
33067 grep -v '^ *+' conftest.er1 >conftest.err
33069 cat conftest.err >&5
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); } &&
33072 { ac_try='test -z "$ac_c_werror_flag"
33073 || test ! -s conftest.err'
33074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075 (eval $ac_try) 2>&5
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; } &&
33079 { ac_try='test -s conftest.$ac_objext'
33080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081 (eval $ac_try) 2>&5
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); }; }; then
33086 cat >>confdefs.h <<\_ACEOF
33087 #define HAVE_MT_ERREG 1
33091 echo "$as_me: failed program was:" >&5
33092 sed 's/^/| /' conftest.$ac_ext >&5
33094 mt_erreg_result="not found"
33096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33097 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
33098 echo "${ECHO_T}$mt_erreg_result" >&6
33106 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
33107 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
33108 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33111 ac_check_lib_save_LIBS=$LIBS
33113 cat >conftest.$ac_ext <<_ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33120 /* Override any gcc2 internal prototype to avoid an error. */
33124 /* We use char because int might match the return type of a gcc2
33125 builtin and then its argument prototype would still apply. */
33135 rm -f conftest.$ac_objext conftest$ac_exeext
33136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33137 (eval $ac_link) 2>conftest.er1
33139 grep -v '^ *+' conftest.er1 >conftest.err
33141 cat conftest.err >&5
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); } &&
33144 { ac_try='test -z "$ac_c_werror_flag"
33145 || test ! -s conftest.err'
33146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147 (eval $ac_try) 2>&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; } &&
33151 { ac_try='test -s conftest$ac_exeext'
33152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153 (eval $ac_try) 2>&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; }; then
33157 ac_cv_lib_c_dbm_open=yes
33159 echo "$as_me: failed program was:" >&5
33160 sed 's/^/| /' conftest.$ac_ext >&5
33162 ac_cv_lib_c_dbm_open=no
33164 rm -f conftest.err conftest.$ac_objext \
33165 conftest$ac_exeext conftest.$ac_ext
33166 LIBS=$ac_check_lib_save_LIBS
33168 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
33169 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
33170 if test $ac_cv_lib_c_dbm_open = yes; then
33171 cat >>confdefs.h <<_ACEOF
33172 #define HAVE_LIBC 1
33181 case "$DB_STYLE" in
33183 if test "x$ac_cv_header_db_h" = xyes; then
33185 echo "$as_me:$LINENO: checking for main in -ldb" >&5
33186 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
33187 if test "${ac_cv_lib_db_main+set}" = set; then
33188 echo $ECHO_N "(cached) $ECHO_C" >&6
33190 ac_check_lib_save_LIBS=$LIBS
33192 cat >conftest.$ac_ext <<_ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h. */
33208 rm -f conftest.$ac_objext conftest$ac_exeext
33209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33210 (eval $ac_link) 2>conftest.er1
33212 grep -v '^ *+' conftest.er1 >conftest.err
33214 cat conftest.err >&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } &&
33217 { ac_try='test -z "$ac_c_werror_flag"
33218 || test ! -s conftest.err'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; } &&
33224 { ac_try='test -s conftest$ac_exeext'
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
33230 ac_cv_lib_db_main=yes
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33235 ac_cv_lib_db_main=no
33237 rm -f conftest.err conftest.$ac_objext \
33238 conftest$ac_exeext conftest.$ac_ext
33239 LIBS=$ac_check_lib_save_LIBS
33241 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
33242 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
33243 if test $ac_cv_lib_db_main = yes; then
33244 cat >>confdefs.h <<_ACEOF
33245 #define HAVE_LIBDB 1
33252 if test "x$ac_cv_lib_db_main" = xyes; then
33254 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
33255 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
33256 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
33257 echo $ECHO_N "(cached) $ECHO_C" >&6
33259 ac_check_lib_save_LIBS=$LIBS
33261 cat >conftest.$ac_ext <<_ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h. */
33268 /* Override any gcc2 internal prototype to avoid an error. */
33272 /* We use char because int might match the return type of a gcc2
33273 builtin and then its argument prototype would still apply. */
33283 rm -f conftest.$ac_objext conftest$ac_exeext
33284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33285 (eval $ac_link) 2>conftest.er1
33287 grep -v '^ *+' conftest.er1 >conftest.err
33289 cat conftest.err >&5
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); } &&
33292 { ac_try='test -z "$ac_c_werror_flag"
33293 || test ! -s conftest.err'
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); }; } &&
33299 { ac_try='test -s conftest$ac_exeext'
33300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301 (eval $ac_try) 2>&5
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); }; }; then
33305 ac_cv_lib_db_dbm_open=yes
33307 echo "$as_me: failed program was:" >&5
33308 sed 's/^/| /' conftest.$ac_ext >&5
33310 ac_cv_lib_db_dbm_open=no
33312 rm -f conftest.err conftest.$ac_objext \
33313 conftest$ac_exeext conftest.$ac_ext
33314 LIBS=$ac_check_lib_save_LIBS
33316 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
33317 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
33318 if test $ac_cv_lib_db_dbm_open = yes; then
33319 cat >>confdefs.h <<_ACEOF
33320 #define HAVE_LIBDB 1
33327 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
33332 { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
33333 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
33336 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33341 { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
33342 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
33347 { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
33348 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
33353 if test "x$ac_cv_header_dbm_h" = xyes; then
33355 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
33356 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
33357 if test "${ac_cv_lib_dbm_main+set}" = set; then
33358 echo $ECHO_N "(cached) $ECHO_C" >&6
33360 ac_check_lib_save_LIBS=$LIBS
33362 cat >conftest.$ac_ext <<_ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h. */
33378 rm -f conftest.$ac_objext conftest$ac_exeext
33379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33380 (eval $ac_link) 2>conftest.er1
33382 grep -v '^ *+' conftest.er1 >conftest.err
33384 cat conftest.err >&5
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); } &&
33387 { ac_try='test -z "$ac_c_werror_flag"
33388 || test ! -s conftest.err'
33389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390 (eval $ac_try) 2>&5
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest$ac_exeext'
33395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33396 (eval $ac_try) 2>&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
33400 ac_cv_lib_dbm_main=yes
33402 echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33405 ac_cv_lib_dbm_main=no
33407 rm -f conftest.err conftest.$ac_objext \
33408 conftest$ac_exeext conftest.$ac_ext
33409 LIBS=$ac_check_lib_save_LIBS
33411 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
33412 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
33413 if test $ac_cv_lib_dbm_main = yes; then
33414 cat >>confdefs.h <<_ACEOF
33415 #define HAVE_LIBDBM 1
33422 if test "x$ac_cv_lib_dbm_main" = xyes; then
33424 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
33425 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
33426 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
33427 echo $ECHO_N "(cached) $ECHO_C" >&6
33429 ac_check_lib_save_LIBS=$LIBS
33431 cat >conftest.$ac_ext <<_ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h. */
33438 /* Override any gcc2 internal prototype to avoid an error. */
33442 /* We use char because int might match the return type of a gcc2
33443 builtin and then its argument prototype would still apply. */
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33455 (eval $ac_link) 2>conftest.er1
33457 grep -v '^ *+' conftest.er1 >conftest.err
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); } &&
33462 { ac_try='test -z "$ac_c_werror_flag"
33463 || test ! -s conftest.err'
33464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465 (eval $ac_try) 2>&5
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); }; } &&
33469 { ac_try='test -s conftest$ac_exeext'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
33475 ac_cv_lib_dbm_dbm_open=yes
33477 echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33480 ac_cv_lib_dbm_dbm_open=no
33482 rm -f conftest.err conftest.$ac_objext \
33483 conftest$ac_exeext conftest.$ac_ext
33484 LIBS=$ac_check_lib_save_LIBS
33486 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
33487 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
33488 if test $ac_cv_lib_dbm_dbm_open = yes; then
33489 cat >>confdefs.h <<_ACEOF
33490 #define HAVE_LIBDBM 1
33497 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
33502 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
33503 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
33506 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33511 { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
33512 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
33517 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
33518 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
33523 if test "x$ac_cv_header_ndbm_h" = xyes; then
33525 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
33526 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
33527 if test "${ac_cv_lib_gdbm_main+set}" = set; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33530 ac_check_lib_save_LIBS=$LIBS
33531 LIBS="-lgdbm $LIBS"
33532 cat >conftest.$ac_ext <<_ACEOF
33535 cat confdefs.h >>conftest.$ac_ext
33536 cat >>conftest.$ac_ext <<_ACEOF
33537 /* end confdefs.h. */
33548 rm -f conftest.$ac_objext conftest$ac_exeext
33549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33550 (eval $ac_link) 2>conftest.er1
33552 grep -v '^ *+' conftest.er1 >conftest.err
33554 cat conftest.err >&5
33555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556 (exit $ac_status); } &&
33557 { ac_try='test -z "$ac_c_werror_flag"
33558 || test ! -s conftest.err'
33559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33560 (eval $ac_try) 2>&5
33562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563 (exit $ac_status); }; } &&
33564 { ac_try='test -s conftest$ac_exeext'
33565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33566 (eval $ac_try) 2>&5
33568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569 (exit $ac_status); }; }; then
33570 ac_cv_lib_gdbm_main=yes
33572 echo "$as_me: failed program was:" >&5
33573 sed 's/^/| /' conftest.$ac_ext >&5
33575 ac_cv_lib_gdbm_main=no
33577 rm -f conftest.err conftest.$ac_objext \
33578 conftest$ac_exeext conftest.$ac_ext
33579 LIBS=$ac_check_lib_save_LIBS
33581 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
33582 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
33583 if test $ac_cv_lib_gdbm_main = yes; then
33584 cat >>confdefs.h <<_ACEOF
33585 #define HAVE_LIBGDBM 1
33588 LIBS="-lgdbm $LIBS"
33592 if test "x$ac_cv_lib_gdbm_main" = xyes; then
33594 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
33595 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
33596 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
33597 echo $ECHO_N "(cached) $ECHO_C" >&6
33599 ac_check_lib_save_LIBS=$LIBS
33600 LIBS="-lgdbm $LIBS"
33601 cat >conftest.$ac_ext <<_ACEOF
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h. */
33608 /* Override any gcc2 internal prototype to avoid an error. */
33612 /* We use char because int might match the return type of a gcc2
33613 builtin and then its argument prototype would still apply. */
33623 rm -f conftest.$ac_objext conftest$ac_exeext
33624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33625 (eval $ac_link) 2>conftest.er1
33627 grep -v '^ *+' conftest.er1 >conftest.err
33629 cat conftest.err >&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); } &&
33632 { ac_try='test -z "$ac_c_werror_flag"
33633 || test ! -s conftest.err'
33634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33635 (eval $ac_try) 2>&5
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); }; } &&
33639 { ac_try='test -s conftest$ac_exeext'
33640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33641 (eval $ac_try) 2>&5
33643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644 (exit $ac_status); }; }; then
33645 ac_cv_lib_gdbm_dbm_open=yes
33647 echo "$as_me: failed program was:" >&5
33648 sed 's/^/| /' conftest.$ac_ext >&5
33650 ac_cv_lib_gdbm_dbm_open=no
33652 rm -f conftest.err conftest.$ac_objext \
33653 conftest$ac_exeext conftest.$ac_ext
33654 LIBS=$ac_check_lib_save_LIBS
33656 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
33657 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
33658 if test $ac_cv_lib_gdbm_dbm_open = yes; then
33659 cat >>confdefs.h <<_ACEOF
33660 #define HAVE_LIBGDBM 1
33663 LIBS="-lgdbm $LIBS"
33667 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
33672 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
33673 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
33676 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33681 { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
33682 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
33687 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
33688 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
33693 if test "x$ac_cv_header_ndbm_h" = xyes; then
33695 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
33696 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
33697 if test "${ac_cv_lib_ndbm_main+set}" = set; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33700 ac_check_lib_save_LIBS=$LIBS
33701 LIBS="-lndbm $LIBS"
33702 cat >conftest.$ac_ext <<_ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h. */
33718 rm -f conftest.$ac_objext conftest$ac_exeext
33719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33720 (eval $ac_link) 2>conftest.er1
33722 grep -v '^ *+' conftest.er1 >conftest.err
33724 cat conftest.err >&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); } &&
33727 { ac_try='test -z "$ac_c_werror_flag"
33728 || test ! -s conftest.err'
33729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730 (eval $ac_try) 2>&5
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; } &&
33734 { ac_try='test -s conftest$ac_exeext'
33735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736 (eval $ac_try) 2>&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 ac_cv_lib_ndbm_main=yes
33742 echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33745 ac_cv_lib_ndbm_main=no
33747 rm -f conftest.err conftest.$ac_objext \
33748 conftest$ac_exeext conftest.$ac_ext
33749 LIBS=$ac_check_lib_save_LIBS
33751 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
33752 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
33753 if test $ac_cv_lib_ndbm_main = yes; then
33754 cat >>confdefs.h <<_ACEOF
33755 #define HAVE_LIBNDBM 1
33758 LIBS="-lndbm $LIBS"
33762 if test "x$ac_cv_lib_ndbm_main" = xyes; then
33764 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
33765 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
33766 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
33767 echo $ECHO_N "(cached) $ECHO_C" >&6
33769 ac_check_lib_save_LIBS=$LIBS
33770 LIBS="-lndbm $LIBS"
33771 cat >conftest.$ac_ext <<_ACEOF
33774 cat confdefs.h >>conftest.$ac_ext
33775 cat >>conftest.$ac_ext <<_ACEOF
33776 /* end confdefs.h. */
33778 /* Override any gcc2 internal prototype to avoid an error. */
33782 /* We use char because int might match the return type of a gcc2
33783 builtin and then its argument prototype would still apply. */
33793 rm -f conftest.$ac_objext conftest$ac_exeext
33794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33795 (eval $ac_link) 2>conftest.er1
33797 grep -v '^ *+' conftest.er1 >conftest.err
33799 cat conftest.err >&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
33802 { ac_try='test -z "$ac_c_werror_flag"
33803 || test ! -s conftest.err'
33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805 (eval $ac_try) 2>&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } &&
33809 { ac_try='test -s conftest$ac_exeext'
33810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811 (eval $ac_try) 2>&5
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; }; then
33815 ac_cv_lib_ndbm_dbm_open=yes
33817 echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33820 ac_cv_lib_ndbm_dbm_open=no
33822 rm -f conftest.err conftest.$ac_objext \
33823 conftest$ac_exeext conftest.$ac_ext
33824 LIBS=$ac_check_lib_save_LIBS
33826 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
33827 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
33828 if test $ac_cv_lib_ndbm_dbm_open = yes; then
33829 cat >>confdefs.h <<_ACEOF
33830 #define HAVE_LIBNDBM 1
33833 LIBS="-lndbm $LIBS"
33837 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
33842 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
33843 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
33846 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33851 { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
33852 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
33857 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
33858 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
33868 if test -z "$DB_STYLE"; then
33875 if test "x$DB_STYLE" = xtext; then
33877 cat >>confdefs.h <<\_ACEOF
33882 echo "$as_me:$LINENO: checking for database" >&5
33883 echo $ECHO_N "checking for database... $ECHO_C" >&6
33884 echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
33885 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
33886 case "$DB_STYLE" in
33888 cat >>confdefs.h <<\_ACEOF
33893 cat >>confdefs.h <<\_ACEOF
33894 #define USE_DBM_H 1
33898 cat >>confdefs.h <<\_ACEOF
33899 #define USE_GDBM_H 1
33903 cat >>confdefs.h <<\_ACEOF
33904 #define USE_NDBM_H 1
33909 echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
33910 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
33911 if test "${amanda_cv_struct_datum+set}" = set; then
33912 echo $ECHO_N "(cached) $ECHO_C" >&6
33915 cat >conftest.$ac_ext <<_ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33922 #if defined(USE_DB_H)
33925 # if defined(USE_DBM_H)
33928 # if defined(USE_NDBM_H)
33944 rm -f conftest.$ac_objext
33945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33946 (eval $ac_compile) 2>conftest.er1
33948 grep -v '^ *+' conftest.er1 >conftest.err
33950 cat conftest.err >&5
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); } &&
33953 { ac_try='test -z "$ac_c_werror_flag"
33954 || test ! -s conftest.err'
33955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33956 (eval $ac_try) 2>&5
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); }; } &&
33960 { ac_try='test -s conftest.$ac_objext'
33961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 (eval $ac_try) 2>&5
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; }; then
33966 amanda_cv_struct_datum=yes
33968 echo "$as_me: failed program was:" >&5
33969 sed 's/^/| /' conftest.$ac_ext >&5
33971 amanda_cv_struct_datum=no
33974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33977 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
33978 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
33979 if test "x$amanda_cv_struct_datum" = xyes; then
33981 cat >>confdefs.h <<\_ACEOF
33982 #define HAVE_STRUCT_DATUM 1
33988 case "$DB_STYLE" in
33990 gdbm) DB_EXT='""';;
33991 dbm | ndbm) DB_EXT=".dir .pag";;
33992 text) DB_EXT='""';;
33997 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
33998 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
33999 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
34000 echo $ECHO_N "(cached) $ECHO_C" >&6
34002 cat >conftest.$ac_ext <<_ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h. */
34009 #include <limits.h>
34010 #ifdef _POSIX2_RE_DUP_MAX
34015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34016 $EGREP "yes" >/dev/null 2>&1; then
34017 amanda_cv_have__posix2_re_dup_max=yes
34019 amanda_cv_have__posix2_re_dup_max=no
34024 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
34025 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
34026 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
34028 cat >>confdefs.h <<\_ACEOF
34029 #define HAVE__POSIX2_RE_DUP_MAX 1
34034 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
34035 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
34036 if test "${amanda_cv_have_char_min+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34039 cat >conftest.$ac_ext <<_ACEOF
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h. */
34046 #include <limits.h>
34052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34053 $EGREP "yes" >/dev/null 2>&1; then
34054 amanda_cv_have_char_min=yes
34056 amanda_cv_have_char_min=no
34061 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
34062 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
34063 if test "x$amanda_cv_have_char_min" = xyes; then
34065 cat >>confdefs.h <<\_ACEOF
34066 #define HAVE_CHAR_MIN 1
34071 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
34072 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
34073 if test "${amanda_cv_have_char_max+set}" = set; then
34074 echo $ECHO_N "(cached) $ECHO_C" >&6
34076 cat >conftest.$ac_ext <<_ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h. */
34083 #include <limits.h>
34089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34090 $EGREP "yes" >/dev/null 2>&1; then
34091 amanda_cv_have_char_max=yes
34093 amanda_cv_have_char_max=no
34098 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
34099 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
34100 if test "x$amanda_cv_have_char_max" = xyes; then
34102 cat >>confdefs.h <<\_ACEOF
34103 #define HAVE_CHAR_MAX 1
34108 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
34109 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
34110 if test "${amanda_cv_have_char_bit+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34113 cat >conftest.$ac_ext <<_ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h. */
34120 #include <limits.h>
34126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34127 $EGREP "yes" >/dev/null 2>&1; then
34128 amanda_cv_have_char_bit=yes
34130 amanda_cv_have_char_bit=no
34135 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
34136 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
34137 if test "x$amanda_cv_have_char_bit" = xyes; then
34139 cat >>confdefs.h <<\_ACEOF
34140 #define HAVE_CHAR_BIT 1
34148 for ac_func in accept
34150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34151 echo "$as_me:$LINENO: checking for $ac_func" >&5
34152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34153 if eval "test \"\${$as_ac_var+set}\" = set"; then
34154 echo $ECHO_N "(cached) $ECHO_C" >&6
34156 cat >conftest.$ac_ext <<_ACEOF
34159 cat confdefs.h >>conftest.$ac_ext
34160 cat >>conftest.$ac_ext <<_ACEOF
34161 /* end confdefs.h. */
34162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34164 #define $ac_func innocuous_$ac_func
34166 /* System header to define __stub macros and hopefully few prototypes,
34167 which can conflict with char $ac_func (); below.
34168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34169 <limits.h> exists even on freestanding compilers. */
34172 # include <limits.h>
34174 # include <assert.h>
34179 /* Override any gcc2 internal prototype to avoid an error. */
34184 /* We use char because int might match the return type of a gcc2
34185 builtin and then its argument prototype would still apply. */
34187 /* The GNU C library defines this for functions which it implements
34188 to always fail with ENOSYS. Some functions are actually named
34189 something starting with __ and the normal name is an alias. */
34190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34193 char (*f) () = $ac_func;
34202 return f != $ac_func;
34207 rm -f conftest.$ac_objext conftest$ac_exeext
34208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34209 (eval $ac_link) 2>conftest.er1
34211 grep -v '^ *+' conftest.er1 >conftest.err
34213 cat conftest.err >&5
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); } &&
34216 { ac_try='test -z "$ac_c_werror_flag"
34217 || test ! -s conftest.err'
34218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219 (eval $ac_try) 2>&5
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); }; } &&
34223 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
34229 eval "$as_ac_var=yes"
34231 echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34234 eval "$as_ac_var=no"
34236 rm -f conftest.err conftest.$ac_objext \
34237 conftest$ac_exeext conftest.$ac_ext
34239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34241 if test `eval echo '${'$as_ac_var'}'` = yes; then
34242 cat >>confdefs.h <<_ACEOF
34243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34245 ice_have_accept=yes
34249 if test "${ice_have_accept}" = yes; then
34250 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
34251 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
34252 if test "${ice_cv_have_accept_decl+set}" = set; then
34253 echo $ECHO_N "(cached) $ECHO_C" >&6
34256 ice_cv_have_accept_decl=no
34257 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34258 ice_re_word='(^|[^a-zA-Z0-9_])'
34259 for header in sys/types.h sys/socket.h; do
34260 # Check for ordinary declaration
34261 cat >conftest.$ac_ext <<_ACEOF
34264 cat confdefs.h >>conftest.$ac_ext
34265 cat >>conftest.$ac_ext <<_ACEOF
34266 /* end confdefs.h. */
34270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34271 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
34272 ice_cv_have_accept_decl=yes
34276 if test "$ice_cv_have_accept_decl" = yes; then
34279 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34280 cat >conftest.$ac_ext <<_ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h. */
34289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34290 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34291 ice_cv_have_accept_decl=yes
34295 if test "$ice_cv_have_accept_decl" = yes; then
34302 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
34303 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
34304 if test "$ice_cv_have_accept_decl" = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307 #define HAVE_ACCEPT_DECL 1
34313 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
34314 # for constant arguments. Useless!
34315 echo "$as_me:$LINENO: checking for working alloca.h" >&5
34316 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
34317 if test "${ac_cv_working_alloca_h+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34320 cat >conftest.$ac_ext <<_ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h. */
34326 #include <alloca.h>
34330 char *p = (char *) alloca (2 * sizeof (int));
34335 rm -f conftest.$ac_objext conftest$ac_exeext
34336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34337 (eval $ac_link) 2>conftest.er1
34339 grep -v '^ *+' conftest.er1 >conftest.err
34341 cat conftest.err >&5
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); } &&
34344 { ac_try='test -z "$ac_c_werror_flag"
34345 || test ! -s conftest.err'
34346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34347 (eval $ac_try) 2>&5
34349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350 (exit $ac_status); }; } &&
34351 { ac_try='test -s conftest$ac_exeext'
34352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34353 (eval $ac_try) 2>&5
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); }; }; then
34357 ac_cv_working_alloca_h=yes
34359 echo "$as_me: failed program was:" >&5
34360 sed 's/^/| /' conftest.$ac_ext >&5
34362 ac_cv_working_alloca_h=no
34364 rm -f conftest.err conftest.$ac_objext \
34365 conftest$ac_exeext conftest.$ac_ext
34367 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
34368 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
34369 if test $ac_cv_working_alloca_h = yes; then
34371 cat >>confdefs.h <<\_ACEOF
34372 #define HAVE_ALLOCA_H 1
34377 echo "$as_me:$LINENO: checking for alloca" >&5
34378 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
34379 if test "${ac_cv_func_alloca_works+set}" = set; then
34380 echo $ECHO_N "(cached) $ECHO_C" >&6
34382 cat >conftest.$ac_ext <<_ACEOF
34385 cat confdefs.h >>conftest.$ac_ext
34386 cat >>conftest.$ac_ext <<_ACEOF
34387 /* end confdefs.h. */
34389 # define alloca __builtin_alloca
34392 # include <malloc.h>
34393 # define alloca _alloca
34396 # include <alloca.h>
34401 # ifndef alloca /* predefined by HP cc +Olibcalls */
34412 char *p = (char *) alloca (1);
34417 rm -f conftest.$ac_objext conftest$ac_exeext
34418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34419 (eval $ac_link) 2>conftest.er1
34421 grep -v '^ *+' conftest.er1 >conftest.err
34423 cat conftest.err >&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); } &&
34426 { ac_try='test -z "$ac_c_werror_flag"
34427 || test ! -s conftest.err'
34428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34429 (eval $ac_try) 2>&5
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); }; } &&
34433 { ac_try='test -s conftest$ac_exeext'
34434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435 (eval $ac_try) 2>&5
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; }; then
34439 ac_cv_func_alloca_works=yes
34441 echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34444 ac_cv_func_alloca_works=no
34446 rm -f conftest.err conftest.$ac_objext \
34447 conftest$ac_exeext conftest.$ac_ext
34449 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
34450 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
34452 if test $ac_cv_func_alloca_works = yes; then
34454 cat >>confdefs.h <<\_ACEOF
34455 #define HAVE_ALLOCA 1
34459 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
34460 # that cause trouble. Some versions do not even contain alloca or
34461 # contain a buggy version. If you still want to use their alloca,
34462 # use ar to extract alloca.o from them instead of compiling alloca.c.
34464 ALLOCA=alloca.$ac_objext
34466 cat >>confdefs.h <<\_ACEOF
34471 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
34472 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
34473 if test "${ac_cv_os_cray+set}" = set; then
34474 echo $ECHO_N "(cached) $ECHO_C" >&6
34476 cat >conftest.$ac_ext <<_ACEOF
34479 cat confdefs.h >>conftest.$ac_ext
34480 cat >>conftest.$ac_ext <<_ACEOF
34481 /* end confdefs.h. */
34482 #if defined(CRAY) && ! defined(CRAY2)
34489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34490 $EGREP "webecray" >/dev/null 2>&1; then
34498 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
34499 echo "${ECHO_T}$ac_cv_os_cray" >&6
34500 if test $ac_cv_os_cray = yes; then
34501 for ac_func in _getb67 GETB67 getb67; do
34502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34503 echo "$as_me:$LINENO: checking for $ac_func" >&5
34504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34505 if eval "test \"\${$as_ac_var+set}\" = set"; then
34506 echo $ECHO_N "(cached) $ECHO_C" >&6
34508 cat >conftest.$ac_ext <<_ACEOF
34511 cat confdefs.h >>conftest.$ac_ext
34512 cat >>conftest.$ac_ext <<_ACEOF
34513 /* end confdefs.h. */
34514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34516 #define $ac_func innocuous_$ac_func
34518 /* System header to define __stub macros and hopefully few prototypes,
34519 which can conflict with char $ac_func (); below.
34520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34521 <limits.h> exists even on freestanding compilers. */
34524 # include <limits.h>
34526 # include <assert.h>
34531 /* Override any gcc2 internal prototype to avoid an error. */
34536 /* We use char because int might match the return type of a gcc2
34537 builtin and then its argument prototype would still apply. */
34539 /* The GNU C library defines this for functions which it implements
34540 to always fail with ENOSYS. Some functions are actually named
34541 something starting with __ and the normal name is an alias. */
34542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34545 char (*f) () = $ac_func;
34554 return f != $ac_func;
34559 rm -f conftest.$ac_objext conftest$ac_exeext
34560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34561 (eval $ac_link) 2>conftest.er1
34563 grep -v '^ *+' conftest.er1 >conftest.err
34565 cat conftest.err >&5
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); } &&
34568 { ac_try='test -z "$ac_c_werror_flag"
34569 || test ! -s conftest.err'
34570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571 (eval $ac_try) 2>&5
34573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574 (exit $ac_status); }; } &&
34575 { ac_try='test -s conftest$ac_exeext'
34576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577 (eval $ac_try) 2>&5
34579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 (exit $ac_status); }; }; then
34581 eval "$as_ac_var=yes"
34583 echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34586 eval "$as_ac_var=no"
34588 rm -f conftest.err conftest.$ac_objext \
34589 conftest$ac_exeext conftest.$ac_ext
34591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34593 if test `eval echo '${'$as_ac_var'}'` = yes; then
34595 cat >>confdefs.h <<_ACEOF
34596 #define CRAY_STACKSEG_END $ac_func
34605 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
34606 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
34607 if test "${ac_cv_c_stack_direction+set}" = set; then
34608 echo $ECHO_N "(cached) $ECHO_C" >&6
34610 if test "$cross_compiling" = yes; then
34611 ac_cv_c_stack_direction=0
34613 cat >conftest.$ac_ext <<_ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h. */
34620 find_stack_direction ()
34622 static char *addr = 0;
34627 return find_stack_direction ();
34630 return (&dummy > addr) ? 1 : -1;
34636 exit (find_stack_direction () < 0);
34639 rm -f conftest$ac_exeext
34640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34641 (eval $ac_link) 2>&5
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646 (eval $ac_try) 2>&5
34648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649 (exit $ac_status); }; }; then
34650 ac_cv_c_stack_direction=1
34652 echo "$as_me: program exited with status $ac_status" >&5
34653 echo "$as_me: failed program was:" >&5
34654 sed 's/^/| /' conftest.$ac_ext >&5
34656 ( exit $ac_status )
34657 ac_cv_c_stack_direction=-1
34659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34662 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
34663 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
34665 cat >>confdefs.h <<_ACEOF
34666 #define STACK_DIRECTION $ac_cv_c_stack_direction
34673 for ac_func in atexit
34675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34676 echo "$as_me:$LINENO: checking for $ac_func" >&5
34677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34678 if eval "test \"\${$as_ac_var+set}\" = set"; then
34679 echo $ECHO_N "(cached) $ECHO_C" >&6
34681 cat >conftest.$ac_ext <<_ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h. */
34687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34689 #define $ac_func innocuous_$ac_func
34691 /* System header to define __stub macros and hopefully few prototypes,
34692 which can conflict with char $ac_func (); below.
34693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34694 <limits.h> exists even on freestanding compilers. */
34697 # include <limits.h>
34699 # include <assert.h>
34704 /* Override any gcc2 internal prototype to avoid an error. */
34709 /* We use char because int might match the return type of a gcc2
34710 builtin and then its argument prototype would still apply. */
34712 /* The GNU C library defines this for functions which it implements
34713 to always fail with ENOSYS. Some functions are actually named
34714 something starting with __ and the normal name is an alias. */
34715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34718 char (*f) () = $ac_func;
34727 return f != $ac_func;
34732 rm -f conftest.$ac_objext conftest$ac_exeext
34733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34734 (eval $ac_link) 2>conftest.er1
34736 grep -v '^ *+' conftest.er1 >conftest.err
34738 cat conftest.err >&5
34739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740 (exit $ac_status); } &&
34741 { ac_try='test -z "$ac_c_werror_flag"
34742 || test ! -s conftest.err'
34743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34744 (eval $ac_try) 2>&5
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); }; } &&
34748 { ac_try='test -s conftest$ac_exeext'
34749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34750 (eval $ac_try) 2>&5
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); }; }; then
34754 eval "$as_ac_var=yes"
34756 echo "$as_me: failed program was:" >&5
34757 sed 's/^/| /' conftest.$ac_ext >&5
34759 eval "$as_ac_var=no"
34761 rm -f conftest.err conftest.$ac_objext \
34762 conftest$ac_exeext conftest.$ac_ext
34764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34766 if test `eval echo '${'$as_ac_var'}'` = yes; then
34767 cat >>confdefs.h <<_ACEOF
34768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34777 for ac_func in atof
34779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34780 echo "$as_me:$LINENO: checking for $ac_func" >&5
34781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34782 if eval "test \"\${$as_ac_var+set}\" = set"; then
34783 echo $ECHO_N "(cached) $ECHO_C" >&6
34785 cat >conftest.$ac_ext <<_ACEOF
34788 cat confdefs.h >>conftest.$ac_ext
34789 cat >>conftest.$ac_ext <<_ACEOF
34790 /* end confdefs.h. */
34791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34793 #define $ac_func innocuous_$ac_func
34795 /* System header to define __stub macros and hopefully few prototypes,
34796 which can conflict with char $ac_func (); below.
34797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34798 <limits.h> exists even on freestanding compilers. */
34801 # include <limits.h>
34803 # include <assert.h>
34808 /* Override any gcc2 internal prototype to avoid an error. */
34813 /* We use char because int might match the return type of a gcc2
34814 builtin and then its argument prototype would still apply. */
34816 /* The GNU C library defines this for functions which it implements
34817 to always fail with ENOSYS. Some functions are actually named
34818 something starting with __ and the normal name is an alias. */
34819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34822 char (*f) () = $ac_func;
34831 return f != $ac_func;
34836 rm -f conftest.$ac_objext conftest$ac_exeext
34837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34838 (eval $ac_link) 2>conftest.er1
34840 grep -v '^ *+' conftest.er1 >conftest.err
34842 cat conftest.err >&5
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); } &&
34845 { ac_try='test -z "$ac_c_werror_flag"
34846 || test ! -s conftest.err'
34847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848 (eval $ac_try) 2>&5
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); }; } &&
34852 { ac_try='test -s conftest$ac_exeext'
34853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854 (eval $ac_try) 2>&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); }; }; then
34858 eval "$as_ac_var=yes"
34860 echo "$as_me: failed program was:" >&5
34861 sed 's/^/| /' conftest.$ac_ext >&5
34863 eval "$as_ac_var=no"
34865 rm -f conftest.err conftest.$ac_objext \
34866 conftest$ac_exeext conftest.$ac_ext
34868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34870 if test `eval echo '${'$as_ac_var'}'` = yes; then
34871 cat >>confdefs.h <<_ACEOF
34872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34878 if test "${ice_have_atof}" = yes; then
34879 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
34880 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
34881 if test "${ice_cv_have_atof_decl+set}" = set; then
34882 echo $ECHO_N "(cached) $ECHO_C" >&6
34885 ice_cv_have_atof_decl=no
34886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34887 ice_re_word='(^|[^a-zA-Z0-9_])'
34888 for header in stdlib.h; do
34889 # Check for ordinary declaration
34890 cat >conftest.$ac_ext <<_ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h. */
34899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34900 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
34901 ice_cv_have_atof_decl=yes
34905 if test "$ice_cv_have_atof_decl" = yes; then
34908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34909 cat >conftest.$ac_ext <<_ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h. */
34918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34919 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34920 ice_cv_have_atof_decl=yes
34924 if test "$ice_cv_have_atof_decl" = yes; then
34931 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
34932 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
34933 if test "$ice_cv_have_atof_decl" = yes; then
34935 cat >>confdefs.h <<_ACEOF
34936 #define HAVE_ATOF_DECL 1
34943 for ac_func in basename
34945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34946 echo "$as_me:$LINENO: checking for $ac_func" >&5
34947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34948 if eval "test \"\${$as_ac_var+set}\" = set"; then
34949 echo $ECHO_N "(cached) $ECHO_C" >&6
34951 cat >conftest.$ac_ext <<_ACEOF
34954 cat confdefs.h >>conftest.$ac_ext
34955 cat >>conftest.$ac_ext <<_ACEOF
34956 /* end confdefs.h. */
34957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34959 #define $ac_func innocuous_$ac_func
34961 /* System header to define __stub macros and hopefully few prototypes,
34962 which can conflict with char $ac_func (); below.
34963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34964 <limits.h> exists even on freestanding compilers. */
34967 # include <limits.h>
34969 # include <assert.h>
34974 /* Override any gcc2 internal prototype to avoid an error. */
34979 /* We use char because int might match the return type of a gcc2
34980 builtin and then its argument prototype would still apply. */
34982 /* The GNU C library defines this for functions which it implements
34983 to always fail with ENOSYS. Some functions are actually named
34984 something starting with __ and the normal name is an alias. */
34985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34988 char (*f) () = $ac_func;
34997 return f != $ac_func;
35002 rm -f conftest.$ac_objext conftest$ac_exeext
35003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35004 (eval $ac_link) 2>conftest.er1
35006 grep -v '^ *+' conftest.er1 >conftest.err
35008 cat conftest.err >&5
35009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010 (exit $ac_status); } &&
35011 { ac_try='test -z "$ac_c_werror_flag"
35012 || test ! -s conftest.err'
35013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014 (eval $ac_try) 2>&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; } &&
35018 { ac_try='test -s conftest$ac_exeext'
35019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020 (eval $ac_try) 2>&5
35022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023 (exit $ac_status); }; }; then
35024 eval "$as_ac_var=yes"
35026 echo "$as_me: failed program was:" >&5
35027 sed 's/^/| /' conftest.$ac_ext >&5
35029 eval "$as_ac_var=no"
35031 rm -f conftest.err conftest.$ac_objext \
35032 conftest$ac_exeext conftest.$ac_ext
35034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35036 if test `eval echo '${'$as_ac_var'}'` = yes; then
35037 cat >>confdefs.h <<_ACEOF
35038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35047 for ac_func in bind
35049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35050 echo "$as_me:$LINENO: checking for $ac_func" >&5
35051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35052 if eval "test \"\${$as_ac_var+set}\" = set"; then
35053 echo $ECHO_N "(cached) $ECHO_C" >&6
35055 cat >conftest.$ac_ext <<_ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h. */
35061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35063 #define $ac_func innocuous_$ac_func
35065 /* System header to define __stub macros and hopefully few prototypes,
35066 which can conflict with char $ac_func (); below.
35067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35068 <limits.h> exists even on freestanding compilers. */
35071 # include <limits.h>
35073 # include <assert.h>
35078 /* Override any gcc2 internal prototype to avoid an error. */
35083 /* We use char because int might match the return type of a gcc2
35084 builtin and then its argument prototype would still apply. */
35086 /* The GNU C library defines this for functions which it implements
35087 to always fail with ENOSYS. Some functions are actually named
35088 something starting with __ and the normal name is an alias. */
35089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35092 char (*f) () = $ac_func;
35101 return f != $ac_func;
35106 rm -f conftest.$ac_objext conftest$ac_exeext
35107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35108 (eval $ac_link) 2>conftest.er1
35110 grep -v '^ *+' conftest.er1 >conftest.err
35112 cat conftest.err >&5
35113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 (exit $ac_status); } &&
35115 { ac_try='test -z "$ac_c_werror_flag"
35116 || test ! -s conftest.err'
35117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118 (eval $ac_try) 2>&5
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); }; } &&
35122 { ac_try='test -s conftest$ac_exeext'
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; }; then
35128 eval "$as_ac_var=yes"
35130 echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35133 eval "$as_ac_var=no"
35135 rm -f conftest.err conftest.$ac_objext \
35136 conftest$ac_exeext conftest.$ac_ext
35138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35140 if test `eval echo '${'$as_ac_var'}'` = yes; then
35141 cat >>confdefs.h <<_ACEOF
35142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35148 if test "${ice_have_bind}" = yes; then
35149 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
35150 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35151 if test "${ice_cv_have_bind_decl+set}" = set; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
35155 ice_cv_have_bind_decl=no
35156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35157 ice_re_word='(^|[^a-zA-Z0-9_])'
35158 for header in sys/types.h sys/socket.h; do
35159 # Check for ordinary declaration
35160 cat >conftest.$ac_ext <<_ACEOF
35163 cat confdefs.h >>conftest.$ac_ext
35164 cat >>conftest.$ac_ext <<_ACEOF
35165 /* end confdefs.h. */
35169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35170 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
35171 ice_cv_have_bind_decl=yes
35175 if test "$ice_cv_have_bind_decl" = yes; then
35178 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35179 cat >conftest.$ac_ext <<_ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h. */
35188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35189 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35190 ice_cv_have_bind_decl=yes
35194 if test "$ice_cv_have_bind_decl" = yes; then
35201 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
35202 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
35203 if test "$ice_cv_have_bind_decl" = yes; then
35205 cat >>confdefs.h <<_ACEOF
35206 #define HAVE_BIND_DECL 1
35215 for ac_func in bcopy
35217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35218 echo "$as_me:$LINENO: checking for $ac_func" >&5
35219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35220 if eval "test \"\${$as_ac_var+set}\" = set"; then
35221 echo $ECHO_N "(cached) $ECHO_C" >&6
35223 cat >conftest.$ac_ext <<_ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h. */
35229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35231 #define $ac_func innocuous_$ac_func
35233 /* System header to define __stub macros and hopefully few prototypes,
35234 which can conflict with char $ac_func (); below.
35235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35236 <limits.h> exists even on freestanding compilers. */
35239 # include <limits.h>
35241 # include <assert.h>
35246 /* Override any gcc2 internal prototype to avoid an error. */
35251 /* We use char because int might match the return type of a gcc2
35252 builtin and then its argument prototype would still apply. */
35254 /* The GNU C library defines this for functions which it implements
35255 to always fail with ENOSYS. Some functions are actually named
35256 something starting with __ and the normal name is an alias. */
35257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35260 char (*f) () = $ac_func;
35269 return f != $ac_func;
35274 rm -f conftest.$ac_objext conftest$ac_exeext
35275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35276 (eval $ac_link) 2>conftest.er1
35278 grep -v '^ *+' conftest.er1 >conftest.err
35280 cat conftest.err >&5
35281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282 (exit $ac_status); } &&
35283 { ac_try='test -z "$ac_c_werror_flag"
35284 || test ! -s conftest.err'
35285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286 (eval $ac_try) 2>&5
35288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289 (exit $ac_status); }; } &&
35290 { ac_try='test -s conftest$ac_exeext'
35291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292 (eval $ac_try) 2>&5
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); }; }; then
35296 eval "$as_ac_var=yes"
35298 echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35301 eval "$as_ac_var=no"
35303 rm -f conftest.err conftest.$ac_objext \
35304 conftest$ac_exeext conftest.$ac_ext
35306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35308 if test `eval echo '${'$as_ac_var'}'` = yes; then
35309 cat >>confdefs.h <<_ACEOF
35310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35316 if test "${ice_have_bcopy}" = yes; then
35317 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
35318 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
35319 if test "${ice_cv_have_bcopy_decl+set}" = set; then
35320 echo $ECHO_N "(cached) $ECHO_C" >&6
35323 ice_cv_have_bcopy_decl=no
35324 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35325 ice_re_word='(^|[^a-zA-Z0-9_])'
35326 for header in string.h strings.h stdlib.h; do
35327 # Check for ordinary declaration
35328 cat >conftest.$ac_ext <<_ACEOF
35331 cat confdefs.h >>conftest.$ac_ext
35332 cat >>conftest.$ac_ext <<_ACEOF
35333 /* end confdefs.h. */
35337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35338 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
35339 ice_cv_have_bcopy_decl=yes
35343 if test "$ice_cv_have_bcopy_decl" = yes; then
35346 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35347 cat >conftest.$ac_ext <<_ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h. */
35356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35357 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35358 ice_cv_have_bcopy_decl=yes
35362 if test "$ice_cv_have_bcopy_decl" = yes; then
35369 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
35370 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
35371 if test "$ice_cv_have_bcopy_decl" = yes; then
35373 cat >>confdefs.h <<_ACEOF
35374 #define HAVE_BCOPY_DECL 1
35383 for ac_func in bzero
35385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35386 echo "$as_me:$LINENO: checking for $ac_func" >&5
35387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35388 if eval "test \"\${$as_ac_var+set}\" = set"; then
35389 echo $ECHO_N "(cached) $ECHO_C" >&6
35391 cat >conftest.$ac_ext <<_ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h. */
35397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35399 #define $ac_func innocuous_$ac_func
35401 /* System header to define __stub macros and hopefully few prototypes,
35402 which can conflict with char $ac_func (); below.
35403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35404 <limits.h> exists even on freestanding compilers. */
35407 # include <limits.h>
35409 # include <assert.h>
35414 /* Override any gcc2 internal prototype to avoid an error. */
35419 /* We use char because int might match the return type of a gcc2
35420 builtin and then its argument prototype would still apply. */
35422 /* The GNU C library defines this for functions which it implements
35423 to always fail with ENOSYS. Some functions are actually named
35424 something starting with __ and the normal name is an alias. */
35425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35428 char (*f) () = $ac_func;
35437 return f != $ac_func;
35442 rm -f conftest.$ac_objext conftest$ac_exeext
35443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35444 (eval $ac_link) 2>conftest.er1
35446 grep -v '^ *+' conftest.er1 >conftest.err
35448 cat conftest.err >&5
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); } &&
35451 { ac_try='test -z "$ac_c_werror_flag"
35452 || test ! -s conftest.err'
35453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454 (eval $ac_try) 2>&5
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); }; } &&
35458 { ac_try='test -s conftest$ac_exeext'
35459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460 (eval $ac_try) 2>&5
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); }; }; then
35464 eval "$as_ac_var=yes"
35466 echo "$as_me: failed program was:" >&5
35467 sed 's/^/| /' conftest.$ac_ext >&5
35469 eval "$as_ac_var=no"
35471 rm -f conftest.err conftest.$ac_objext \
35472 conftest$ac_exeext conftest.$ac_ext
35474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35476 if test `eval echo '${'$as_ac_var'}'` = yes; then
35477 cat >>confdefs.h <<_ACEOF
35478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35484 if test "${ice_have_bzero}" = yes; then
35485 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
35486 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
35487 if test "${ice_cv_have_bzero_decl+set}" = set; then
35488 echo $ECHO_N "(cached) $ECHO_C" >&6
35491 ice_cv_have_bzero_decl=no
35492 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35493 ice_re_word='(^|[^a-zA-Z0-9_])'
35494 for header in string.h strings.h stdlib.h; do
35495 # Check for ordinary declaration
35496 cat >conftest.$ac_ext <<_ACEOF
35499 cat confdefs.h >>conftest.$ac_ext
35500 cat >>conftest.$ac_ext <<_ACEOF
35501 /* end confdefs.h. */
35505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35506 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
35507 ice_cv_have_bzero_decl=yes
35511 if test "$ice_cv_have_bzero_decl" = yes; then
35514 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35515 cat >conftest.$ac_ext <<_ACEOF
35518 cat confdefs.h >>conftest.$ac_ext
35519 cat >>conftest.$ac_ext <<_ACEOF
35520 /* end confdefs.h. */
35524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35525 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35526 ice_cv_have_bzero_decl=yes
35530 if test "$ice_cv_have_bzero_decl" = yes; then
35537 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
35538 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
35539 if test "$ice_cv_have_bzero_decl" = yes; then
35541 cat >>confdefs.h <<_ACEOF
35542 #define HAVE_BZERO_DECL 1
35548 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
35549 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
35550 if test "${ac_cv_func_closedir_void+set}" = set; then
35551 echo $ECHO_N "(cached) $ECHO_C" >&6
35553 if test "$cross_compiling" = yes; then
35554 ac_cv_func_closedir_void=yes
35556 cat >conftest.$ac_ext <<_ACEOF
35559 cat confdefs.h >>conftest.$ac_ext
35560 cat >>conftest.$ac_ext <<_ACEOF
35561 /* end confdefs.h. */
35562 $ac_includes_default
35563 #include <$ac_header_dirent>
35564 #ifndef __cplusplus
35571 exit (closedir (opendir (".")) != 0);
35576 rm -f conftest$ac_exeext
35577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35578 (eval $ac_link) 2>&5
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; }; then
35587 ac_cv_func_closedir_void=no
35589 echo "$as_me: program exited with status $ac_status" >&5
35590 echo "$as_me: failed program was:" >&5
35591 sed 's/^/| /' conftest.$ac_ext >&5
35593 ( exit $ac_status )
35594 ac_cv_func_closedir_void=yes
35596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35599 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
35600 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
35601 if test $ac_cv_func_closedir_void = yes; then
35603 cat >>confdefs.h <<\_ACEOF
35604 #define CLOSEDIR_VOID 1
35610 ice_have_closelog=no
35612 for ac_func in closelog
35614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35615 echo "$as_me:$LINENO: checking for $ac_func" >&5
35616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35617 if eval "test \"\${$as_ac_var+set}\" = set"; then
35618 echo $ECHO_N "(cached) $ECHO_C" >&6
35620 cat >conftest.$ac_ext <<_ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h. */
35626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35628 #define $ac_func innocuous_$ac_func
35630 /* System header to define __stub macros and hopefully few prototypes,
35631 which can conflict with char $ac_func (); below.
35632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35633 <limits.h> exists even on freestanding compilers. */
35636 # include <limits.h>
35638 # include <assert.h>
35643 /* Override any gcc2 internal prototype to avoid an error. */
35648 /* We use char because int might match the return type of a gcc2
35649 builtin and then its argument prototype would still apply. */
35651 /* The GNU C library defines this for functions which it implements
35652 to always fail with ENOSYS. Some functions are actually named
35653 something starting with __ and the normal name is an alias. */
35654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35657 char (*f) () = $ac_func;
35666 return f != $ac_func;
35671 rm -f conftest.$ac_objext conftest$ac_exeext
35672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35673 (eval $ac_link) 2>conftest.er1
35675 grep -v '^ *+' conftest.er1 >conftest.err
35677 cat conftest.err >&5
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } &&
35680 { ac_try='test -z "$ac_c_werror_flag"
35681 || test ! -s conftest.err'
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; } &&
35687 { ac_try='test -s conftest$ac_exeext'
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; }; then
35693 eval "$as_ac_var=yes"
35695 echo "$as_me: failed program was:" >&5
35696 sed 's/^/| /' conftest.$ac_ext >&5
35698 eval "$as_ac_var=no"
35700 rm -f conftest.err conftest.$ac_objext \
35701 conftest$ac_exeext conftest.$ac_ext
35703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35705 if test `eval echo '${'$as_ac_var'}'` = yes; then
35706 cat >>confdefs.h <<_ACEOF
35707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35709 ice_have_closelog=yes
35713 if test "${ice_have_closelog}" = yes; then
35714 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
35715 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
35716 if test "${ice_cv_have_closelog_decl+set}" = set; then
35717 echo $ECHO_N "(cached) $ECHO_C" >&6
35720 ice_cv_have_closelog_decl=no
35721 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35722 ice_re_word='(^|[^a-zA-Z0-9_])'
35723 for header in syslog.h; do
35724 # Check for ordinary declaration
35725 cat >conftest.$ac_ext <<_ACEOF
35728 cat confdefs.h >>conftest.$ac_ext
35729 cat >>conftest.$ac_ext <<_ACEOF
35730 /* end confdefs.h. */
35734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35735 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
35736 ice_cv_have_closelog_decl=yes
35740 if test "$ice_cv_have_closelog_decl" = yes; then
35743 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35744 cat >conftest.$ac_ext <<_ACEOF
35747 cat confdefs.h >>conftest.$ac_ext
35748 cat >>conftest.$ac_ext <<_ACEOF
35749 /* end confdefs.h. */
35753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35754 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35755 ice_cv_have_closelog_decl=yes
35759 if test "$ice_cv_have_closelog_decl" = yes; then
35766 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
35767 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
35768 if test "$ice_cv_have_closelog_decl" = yes; then
35770 cat >>confdefs.h <<_ACEOF
35771 #define HAVE_CLOSELOG_DECL 1
35778 ice_have_connect=no
35780 for ac_func in connect
35782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35783 echo "$as_me:$LINENO: checking for $ac_func" >&5
35784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35785 if eval "test \"\${$as_ac_var+set}\" = set"; then
35786 echo $ECHO_N "(cached) $ECHO_C" >&6
35788 cat >conftest.$ac_ext <<_ACEOF
35791 cat confdefs.h >>conftest.$ac_ext
35792 cat >>conftest.$ac_ext <<_ACEOF
35793 /* end confdefs.h. */
35794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35796 #define $ac_func innocuous_$ac_func
35798 /* System header to define __stub macros and hopefully few prototypes,
35799 which can conflict with char $ac_func (); below.
35800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35801 <limits.h> exists even on freestanding compilers. */
35804 # include <limits.h>
35806 # include <assert.h>
35811 /* Override any gcc2 internal prototype to avoid an error. */
35816 /* We use char because int might match the return type of a gcc2
35817 builtin and then its argument prototype would still apply. */
35819 /* The GNU C library defines this for functions which it implements
35820 to always fail with ENOSYS. Some functions are actually named
35821 something starting with __ and the normal name is an alias. */
35822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35825 char (*f) () = $ac_func;
35834 return f != $ac_func;
35839 rm -f conftest.$ac_objext conftest$ac_exeext
35840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35841 (eval $ac_link) 2>conftest.er1
35843 grep -v '^ *+' conftest.er1 >conftest.err
35845 cat conftest.err >&5
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); } &&
35848 { ac_try='test -z "$ac_c_werror_flag"
35849 || test ! -s conftest.err'
35850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35851 (eval $ac_try) 2>&5
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); }; } &&
35855 { ac_try='test -s conftest$ac_exeext'
35856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857 (eval $ac_try) 2>&5
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); }; }; then
35861 eval "$as_ac_var=yes"
35863 echo "$as_me: failed program was:" >&5
35864 sed 's/^/| /' conftest.$ac_ext >&5
35866 eval "$as_ac_var=no"
35868 rm -f conftest.err conftest.$ac_objext \
35869 conftest$ac_exeext conftest.$ac_ext
35871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35873 if test `eval echo '${'$as_ac_var'}'` = yes; then
35874 cat >>confdefs.h <<_ACEOF
35875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35877 ice_have_connect=yes
35881 if test "${ice_have_connect}" = yes; then
35882 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
35883 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35884 if test "${ice_cv_have_connect_decl+set}" = set; then
35885 echo $ECHO_N "(cached) $ECHO_C" >&6
35888 ice_cv_have_connect_decl=no
35889 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35890 ice_re_word='(^|[^a-zA-Z0-9_])'
35891 for header in sys/types.h sys/socket.h; do
35892 # Check for ordinary declaration
35893 cat >conftest.$ac_ext <<_ACEOF
35896 cat confdefs.h >>conftest.$ac_ext
35897 cat >>conftest.$ac_ext <<_ACEOF
35898 /* end confdefs.h. */
35902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35903 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
35904 ice_cv_have_connect_decl=yes
35908 if test "$ice_cv_have_connect_decl" = yes; then
35911 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35912 cat >conftest.$ac_ext <<_ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h. */
35921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35922 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35923 ice_cv_have_connect_decl=yes
35927 if test "$ice_cv_have_connect_decl" = yes; then
35934 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
35935 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
35936 if test "$ice_cv_have_connect_decl" = yes; then
35938 cat >>confdefs.h <<_ACEOF
35939 #define HAVE_CONNECT_DECL 1
35946 ice_have_dbm_open=no
35948 for ac_func in dbm_open
35950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35951 echo "$as_me:$LINENO: checking for $ac_func" >&5
35952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35953 if eval "test \"\${$as_ac_var+set}\" = set"; then
35954 echo $ECHO_N "(cached) $ECHO_C" >&6
35956 cat >conftest.$ac_ext <<_ACEOF
35959 cat confdefs.h >>conftest.$ac_ext
35960 cat >>conftest.$ac_ext <<_ACEOF
35961 /* end confdefs.h. */
35962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35964 #define $ac_func innocuous_$ac_func
35966 /* System header to define __stub macros and hopefully few prototypes,
35967 which can conflict with char $ac_func (); below.
35968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35969 <limits.h> exists even on freestanding compilers. */
35972 # include <limits.h>
35974 # include <assert.h>
35979 /* Override any gcc2 internal prototype to avoid an error. */
35984 /* We use char because int might match the return type of a gcc2
35985 builtin and then its argument prototype would still apply. */
35987 /* The GNU C library defines this for functions which it implements
35988 to always fail with ENOSYS. Some functions are actually named
35989 something starting with __ and the normal name is an alias. */
35990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35993 char (*f) () = $ac_func;
36002 return f != $ac_func;
36007 rm -f conftest.$ac_objext conftest$ac_exeext
36008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36009 (eval $ac_link) 2>conftest.er1
36011 grep -v '^ *+' conftest.er1 >conftest.err
36013 cat conftest.err >&5
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); } &&
36016 { ac_try='test -z "$ac_c_werror_flag"
36017 || test ! -s conftest.err'
36018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36019 (eval $ac_try) 2>&5
36021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36022 (exit $ac_status); }; } &&
36023 { ac_try='test -s conftest$ac_exeext'
36024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36025 (eval $ac_try) 2>&5
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); }; }; then
36029 eval "$as_ac_var=yes"
36031 echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36034 eval "$as_ac_var=no"
36036 rm -f conftest.err conftest.$ac_objext \
36037 conftest$ac_exeext conftest.$ac_ext
36039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36041 if test `eval echo '${'$as_ac_var'}'` = yes; then
36042 cat >>confdefs.h <<_ACEOF
36043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36045 ice_have_dbm_open=yes
36049 if test "${ice_have_dbm_open}" = yes; then
36050 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
36051 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
36052 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
36053 echo $ECHO_N "(cached) $ECHO_C" >&6
36056 ice_cv_have_dbm_open_decl=no
36057 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36058 ice_re_word='(^|[^a-zA-Z0-9_])'
36059 for header in ${DB_HEADER-no/db/header/file}; do
36060 # Check for ordinary declaration
36061 cat >conftest.$ac_ext <<_ACEOF
36064 cat confdefs.h >>conftest.$ac_ext
36065 cat >>conftest.$ac_ext <<_ACEOF
36066 /* end confdefs.h. */
36070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36071 $EGREP "${ice_re_word}dbm_open[ ]*\(" >/dev/null 2>&1; then
36072 ice_cv_have_dbm_open_decl=yes
36076 if test "$ice_cv_have_dbm_open_decl" = yes; then
36079 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36080 cat >conftest.$ac_ext <<_ACEOF
36083 cat confdefs.h >>conftest.$ac_ext
36084 cat >>conftest.$ac_ext <<_ACEOF
36085 /* end confdefs.h. */
36089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36090 $EGREP "${ice_re_word}dbm_open[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36091 ice_cv_have_dbm_open_decl=yes
36095 if test "$ice_cv_have_dbm_open_decl" = yes; then
36102 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
36103 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
36104 if test "$ice_cv_have_dbm_open_decl" = yes; then
36106 cat >>confdefs.h <<_ACEOF
36107 #define HAVE_DBM_OPEN_DECL 1
36114 for ac_func in endmntent
36116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36117 echo "$as_me:$LINENO: checking for $ac_func" >&5
36118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36119 if eval "test \"\${$as_ac_var+set}\" = set"; then
36120 echo $ECHO_N "(cached) $ECHO_C" >&6
36122 cat >conftest.$ac_ext <<_ACEOF
36125 cat confdefs.h >>conftest.$ac_ext
36126 cat >>conftest.$ac_ext <<_ACEOF
36127 /* end confdefs.h. */
36128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36130 #define $ac_func innocuous_$ac_func
36132 /* System header to define __stub macros and hopefully few prototypes,
36133 which can conflict with char $ac_func (); below.
36134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36135 <limits.h> exists even on freestanding compilers. */
36138 # include <limits.h>
36140 # include <assert.h>
36145 /* Override any gcc2 internal prototype to avoid an error. */
36150 /* We use char because int might match the return type of a gcc2
36151 builtin and then its argument prototype would still apply. */
36153 /* The GNU C library defines this for functions which it implements
36154 to always fail with ENOSYS. Some functions are actually named
36155 something starting with __ and the normal name is an alias. */
36156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36159 char (*f) () = $ac_func;
36168 return f != $ac_func;
36173 rm -f conftest.$ac_objext conftest$ac_exeext
36174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36175 (eval $ac_link) 2>conftest.er1
36177 grep -v '^ *+' conftest.er1 >conftest.err
36179 cat conftest.err >&5
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); } &&
36182 { ac_try='test -z "$ac_c_werror_flag"
36183 || test ! -s conftest.err'
36184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185 (eval $ac_try) 2>&5
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); }; } &&
36189 { ac_try='test -s conftest$ac_exeext'
36190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36191 (eval $ac_try) 2>&5
36193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36194 (exit $ac_status); }; }; then
36195 eval "$as_ac_var=yes"
36197 echo "$as_me: failed program was:" >&5
36198 sed 's/^/| /' conftest.$ac_ext >&5
36200 eval "$as_ac_var=no"
36202 rm -f conftest.err conftest.$ac_objext \
36203 conftest$ac_exeext conftest.$ac_ext
36205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36207 if test `eval echo '${'$as_ac_var'}'` = yes; then
36208 cat >>confdefs.h <<_ACEOF
36209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36218 for ac_func in fclose
36220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36221 echo "$as_me:$LINENO: checking for $ac_func" >&5
36222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36223 if eval "test \"\${$as_ac_var+set}\" = set"; then
36224 echo $ECHO_N "(cached) $ECHO_C" >&6
36226 cat >conftest.$ac_ext <<_ACEOF
36229 cat confdefs.h >>conftest.$ac_ext
36230 cat >>conftest.$ac_ext <<_ACEOF
36231 /* end confdefs.h. */
36232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36234 #define $ac_func innocuous_$ac_func
36236 /* System header to define __stub macros and hopefully few prototypes,
36237 which can conflict with char $ac_func (); below.
36238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36239 <limits.h> exists even on freestanding compilers. */
36242 # include <limits.h>
36244 # include <assert.h>
36249 /* Override any gcc2 internal prototype to avoid an error. */
36254 /* We use char because int might match the return type of a gcc2
36255 builtin and then its argument prototype would still apply. */
36257 /* The GNU C library defines this for functions which it implements
36258 to always fail with ENOSYS. Some functions are actually named
36259 something starting with __ and the normal name is an alias. */
36260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36263 char (*f) () = $ac_func;
36272 return f != $ac_func;
36277 rm -f conftest.$ac_objext conftest$ac_exeext
36278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36279 (eval $ac_link) 2>conftest.er1
36281 grep -v '^ *+' conftest.er1 >conftest.err
36283 cat conftest.err >&5
36284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285 (exit $ac_status); } &&
36286 { ac_try='test -z "$ac_c_werror_flag"
36287 || test ! -s conftest.err'
36288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36289 (eval $ac_try) 2>&5
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); }; } &&
36293 { ac_try='test -s conftest$ac_exeext'
36294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36295 (eval $ac_try) 2>&5
36297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); }; }; then
36299 eval "$as_ac_var=yes"
36301 echo "$as_me: failed program was:" >&5
36302 sed 's/^/| /' conftest.$ac_ext >&5
36304 eval "$as_ac_var=no"
36306 rm -f conftest.err conftest.$ac_objext \
36307 conftest$ac_exeext conftest.$ac_ext
36309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36311 if test `eval echo '${'$as_ac_var'}'` = yes; then
36312 cat >>confdefs.h <<_ACEOF
36313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36315 ice_have_fclose=yes
36319 if test "${ice_have_fclose}" = yes; then
36320 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
36321 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
36322 if test "${ice_cv_have_fclose_decl+set}" = set; then
36323 echo $ECHO_N "(cached) $ECHO_C" >&6
36326 ice_cv_have_fclose_decl=no
36327 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36328 ice_re_word='(^|[^a-zA-Z0-9_])'
36329 for header in stdio.h; do
36330 # Check for ordinary declaration
36331 cat >conftest.$ac_ext <<_ACEOF
36334 cat confdefs.h >>conftest.$ac_ext
36335 cat >>conftest.$ac_ext <<_ACEOF
36336 /* end confdefs.h. */
36340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36341 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
36342 ice_cv_have_fclose_decl=yes
36346 if test "$ice_cv_have_fclose_decl" = yes; then
36349 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36350 cat >conftest.$ac_ext <<_ACEOF
36353 cat confdefs.h >>conftest.$ac_ext
36354 cat >>conftest.$ac_ext <<_ACEOF
36355 /* end confdefs.h. */
36359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36360 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36361 ice_cv_have_fclose_decl=yes
36365 if test "$ice_cv_have_fclose_decl" = yes; then
36372 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
36373 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
36374 if test "$ice_cv_have_fclose_decl" = yes; then
36376 cat >>confdefs.h <<_ACEOF
36377 #define HAVE_FCLOSE_DECL 1
36386 for ac_func in fflush
36388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36389 echo "$as_me:$LINENO: checking for $ac_func" >&5
36390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36391 if eval "test \"\${$as_ac_var+set}\" = set"; then
36392 echo $ECHO_N "(cached) $ECHO_C" >&6
36394 cat >conftest.$ac_ext <<_ACEOF
36397 cat confdefs.h >>conftest.$ac_ext
36398 cat >>conftest.$ac_ext <<_ACEOF
36399 /* end confdefs.h. */
36400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36402 #define $ac_func innocuous_$ac_func
36404 /* System header to define __stub macros and hopefully few prototypes,
36405 which can conflict with char $ac_func (); below.
36406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36407 <limits.h> exists even on freestanding compilers. */
36410 # include <limits.h>
36412 # include <assert.h>
36417 /* Override any gcc2 internal prototype to avoid an error. */
36422 /* We use char because int might match the return type of a gcc2
36423 builtin and then its argument prototype would still apply. */
36425 /* The GNU C library defines this for functions which it implements
36426 to always fail with ENOSYS. Some functions are actually named
36427 something starting with __ and the normal name is an alias. */
36428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36431 char (*f) () = $ac_func;
36440 return f != $ac_func;
36445 rm -f conftest.$ac_objext conftest$ac_exeext
36446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36447 (eval $ac_link) 2>conftest.er1
36449 grep -v '^ *+' conftest.er1 >conftest.err
36451 cat conftest.err >&5
36452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453 (exit $ac_status); } &&
36454 { ac_try='test -z "$ac_c_werror_flag"
36455 || test ! -s conftest.err'
36456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457 (eval $ac_try) 2>&5
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); }; } &&
36461 { ac_try='test -s conftest$ac_exeext'
36462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463 (eval $ac_try) 2>&5
36465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466 (exit $ac_status); }; }; then
36467 eval "$as_ac_var=yes"
36469 echo "$as_me: failed program was:" >&5
36470 sed 's/^/| /' conftest.$ac_ext >&5
36472 eval "$as_ac_var=no"
36474 rm -f conftest.err conftest.$ac_objext \
36475 conftest$ac_exeext conftest.$ac_ext
36477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36479 if test `eval echo '${'$as_ac_var'}'` = yes; then
36480 cat >>confdefs.h <<_ACEOF
36481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36483 ice_have_fflush=yes
36487 if test "${ice_have_fflush}" = yes; then
36488 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
36489 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
36490 if test "${ice_cv_have_fflush_decl+set}" = set; then
36491 echo $ECHO_N "(cached) $ECHO_C" >&6
36494 ice_cv_have_fflush_decl=no
36495 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36496 ice_re_word='(^|[^a-zA-Z0-9_])'
36497 for header in stdio.h; do
36498 # Check for ordinary declaration
36499 cat >conftest.$ac_ext <<_ACEOF
36502 cat confdefs.h >>conftest.$ac_ext
36503 cat >>conftest.$ac_ext <<_ACEOF
36504 /* end confdefs.h. */
36508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36509 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
36510 ice_cv_have_fflush_decl=yes
36514 if test "$ice_cv_have_fflush_decl" = yes; then
36517 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36518 cat >conftest.$ac_ext <<_ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h. */
36527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36528 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36529 ice_cv_have_fflush_decl=yes
36533 if test "$ice_cv_have_fflush_decl" = yes; then
36540 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
36541 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
36542 if test "$ice_cv_have_fflush_decl" = yes; then
36544 cat >>confdefs.h <<_ACEOF
36545 #define HAVE_FFLUSH_DECL 1
36554 for ac_func in flock
36556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36557 echo "$as_me:$LINENO: checking for $ac_func" >&5
36558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36559 if eval "test \"\${$as_ac_var+set}\" = set"; then
36560 echo $ECHO_N "(cached) $ECHO_C" >&6
36562 cat >conftest.$ac_ext <<_ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h. */
36568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36570 #define $ac_func innocuous_$ac_func
36572 /* System header to define __stub macros and hopefully few prototypes,
36573 which can conflict with char $ac_func (); below.
36574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36575 <limits.h> exists even on freestanding compilers. */
36578 # include <limits.h>
36580 # include <assert.h>
36585 /* Override any gcc2 internal prototype to avoid an error. */
36590 /* We use char because int might match the return type of a gcc2
36591 builtin and then its argument prototype would still apply. */
36593 /* The GNU C library defines this for functions which it implements
36594 to always fail with ENOSYS. Some functions are actually named
36595 something starting with __ and the normal name is an alias. */
36596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36599 char (*f) () = $ac_func;
36608 return f != $ac_func;
36613 rm -f conftest.$ac_objext conftest$ac_exeext
36614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36615 (eval $ac_link) 2>conftest.er1
36617 grep -v '^ *+' conftest.er1 >conftest.err
36619 cat conftest.err >&5
36620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621 (exit $ac_status); } &&
36622 { ac_try='test -z "$ac_c_werror_flag"
36623 || test ! -s conftest.err'
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; } &&
36629 { ac_try='test -s conftest$ac_exeext'
36630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 (eval $ac_try) 2>&5
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); }; }; then
36635 eval "$as_ac_var=yes"
36637 echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36640 eval "$as_ac_var=no"
36642 rm -f conftest.err conftest.$ac_objext \
36643 conftest$ac_exeext conftest.$ac_ext
36645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36647 if test `eval echo '${'$as_ac_var'}'` = yes; then
36648 cat >>confdefs.h <<_ACEOF
36649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36655 if test "${ice_have_flock}" = yes; then
36656 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
36657 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
36658 if test "${ice_cv_have_flock_decl+set}" = set; then
36659 echo $ECHO_N "(cached) $ECHO_C" >&6
36662 ice_cv_have_flock_decl=no
36663 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36664 ice_re_word='(^|[^a-zA-Z0-9_])'
36665 for header in sys/file.h; do
36666 # Check for ordinary declaration
36667 cat >conftest.$ac_ext <<_ACEOF
36670 cat confdefs.h >>conftest.$ac_ext
36671 cat >>conftest.$ac_ext <<_ACEOF
36672 /* end confdefs.h. */
36676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36677 $EGREP "${ice_re_word}flock[ ]*\(" >/dev/null 2>&1; then
36678 ice_cv_have_flock_decl=yes
36682 if test "$ice_cv_have_flock_decl" = yes; then
36685 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36686 cat >conftest.$ac_ext <<_ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h. */
36695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36696 $EGREP "${ice_re_word}flock[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36697 ice_cv_have_flock_decl=yes
36701 if test "$ice_cv_have_flock_decl" = yes; then
36708 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
36709 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
36710 if test "$ice_cv_have_flock_decl" = yes; then
36712 cat >>confdefs.h <<_ACEOF
36713 #define HAVE_FLOCK_DECL 1
36720 ice_have_fprintf=no
36722 for ac_func in fprintf
36724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36725 echo "$as_me:$LINENO: checking for $ac_func" >&5
36726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36727 if eval "test \"\${$as_ac_var+set}\" = set"; then
36728 echo $ECHO_N "(cached) $ECHO_C" >&6
36730 cat >conftest.$ac_ext <<_ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h. */
36736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36738 #define $ac_func innocuous_$ac_func
36740 /* System header to define __stub macros and hopefully few prototypes,
36741 which can conflict with char $ac_func (); below.
36742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36743 <limits.h> exists even on freestanding compilers. */
36746 # include <limits.h>
36748 # include <assert.h>
36753 /* Override any gcc2 internal prototype to avoid an error. */
36758 /* We use char because int might match the return type of a gcc2
36759 builtin and then its argument prototype would still apply. */
36761 /* The GNU C library defines this for functions which it implements
36762 to always fail with ENOSYS. Some functions are actually named
36763 something starting with __ and the normal name is an alias. */
36764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36767 char (*f) () = $ac_func;
36776 return f != $ac_func;
36781 rm -f conftest.$ac_objext conftest$ac_exeext
36782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36783 (eval $ac_link) 2>conftest.er1
36785 grep -v '^ *+' conftest.er1 >conftest.err
36787 cat conftest.err >&5
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); } &&
36790 { ac_try='test -z "$ac_c_werror_flag"
36791 || test ! -s conftest.err'
36792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 (eval $ac_try) 2>&5
36795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; } &&
36797 { ac_try='test -s conftest$ac_exeext'
36798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799 (eval $ac_try) 2>&5
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); }; }; then
36803 eval "$as_ac_var=yes"
36805 echo "$as_me: failed program was:" >&5
36806 sed 's/^/| /' conftest.$ac_ext >&5
36808 eval "$as_ac_var=no"
36810 rm -f conftest.err conftest.$ac_objext \
36811 conftest$ac_exeext conftest.$ac_ext
36813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36815 if test `eval echo '${'$as_ac_var'}'` = yes; then
36816 cat >>confdefs.h <<_ACEOF
36817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36819 ice_have_fprintf=yes
36823 if test "${ice_have_fprintf}" = yes; then
36824 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
36825 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
36826 if test "${ice_cv_have_fprintf_decl+set}" = set; then
36827 echo $ECHO_N "(cached) $ECHO_C" >&6
36830 ice_cv_have_fprintf_decl=no
36831 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36832 ice_re_word='(^|[^a-zA-Z0-9_])'
36833 for header in stdio.h; do
36834 # Check for ordinary declaration
36835 cat >conftest.$ac_ext <<_ACEOF
36838 cat confdefs.h >>conftest.$ac_ext
36839 cat >>conftest.$ac_ext <<_ACEOF
36840 /* end confdefs.h. */
36844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36845 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
36846 ice_cv_have_fprintf_decl=yes
36850 if test "$ice_cv_have_fprintf_decl" = yes; then
36853 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36854 cat >conftest.$ac_ext <<_ACEOF
36857 cat confdefs.h >>conftest.$ac_ext
36858 cat >>conftest.$ac_ext <<_ACEOF
36859 /* end confdefs.h. */
36863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36864 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36865 ice_cv_have_fprintf_decl=yes
36869 if test "$ice_cv_have_fprintf_decl" = yes; then
36876 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
36877 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
36878 if test "$ice_cv_have_fprintf_decl" = yes; then
36880 cat >>confdefs.h <<_ACEOF
36881 #define HAVE_FPRINTF_DECL 1
36890 for ac_func in fputc
36892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36893 echo "$as_me:$LINENO: checking for $ac_func" >&5
36894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36895 if eval "test \"\${$as_ac_var+set}\" = set"; then
36896 echo $ECHO_N "(cached) $ECHO_C" >&6
36898 cat >conftest.$ac_ext <<_ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h. */
36904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36906 #define $ac_func innocuous_$ac_func
36908 /* System header to define __stub macros and hopefully few prototypes,
36909 which can conflict with char $ac_func (); below.
36910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36911 <limits.h> exists even on freestanding compilers. */
36914 # include <limits.h>
36916 # include <assert.h>
36921 /* Override any gcc2 internal prototype to avoid an error. */
36926 /* We use char because int might match the return type of a gcc2
36927 builtin and then its argument prototype would still apply. */
36929 /* The GNU C library defines this for functions which it implements
36930 to always fail with ENOSYS. Some functions are actually named
36931 something starting with __ and the normal name is an alias. */
36932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36935 char (*f) () = $ac_func;
36944 return f != $ac_func;
36949 rm -f conftest.$ac_objext conftest$ac_exeext
36950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36951 (eval $ac_link) 2>conftest.er1
36953 grep -v '^ *+' conftest.er1 >conftest.err
36955 cat conftest.err >&5
36956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957 (exit $ac_status); } &&
36958 { ac_try='test -z "$ac_c_werror_flag"
36959 || test ! -s conftest.err'
36960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36961 (eval $ac_try) 2>&5
36963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); }; } &&
36965 { ac_try='test -s conftest$ac_exeext'
36966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36967 (eval $ac_try) 2>&5
36969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970 (exit $ac_status); }; }; then
36971 eval "$as_ac_var=yes"
36973 echo "$as_me: failed program was:" >&5
36974 sed 's/^/| /' conftest.$ac_ext >&5
36976 eval "$as_ac_var=no"
36978 rm -f conftest.err conftest.$ac_objext \
36979 conftest$ac_exeext conftest.$ac_ext
36981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36983 if test `eval echo '${'$as_ac_var'}'` = yes; then
36984 cat >>confdefs.h <<_ACEOF
36985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36991 if test "${ice_have_fputc}" = yes; then
36992 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
36993 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
36994 if test "${ice_cv_have_fputc_decl+set}" = set; then
36995 echo $ECHO_N "(cached) $ECHO_C" >&6
36998 ice_cv_have_fputc_decl=no
36999 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37000 ice_re_word='(^|[^a-zA-Z0-9_])'
37001 for header in stdio.h; do
37002 # Check for ordinary declaration
37003 cat >conftest.$ac_ext <<_ACEOF
37006 cat confdefs.h >>conftest.$ac_ext
37007 cat >>conftest.$ac_ext <<_ACEOF
37008 /* end confdefs.h. */
37012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37013 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
37014 ice_cv_have_fputc_decl=yes
37018 if test "$ice_cv_have_fputc_decl" = yes; then
37021 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37022 cat >conftest.$ac_ext <<_ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h. */
37031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37032 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37033 ice_cv_have_fputc_decl=yes
37037 if test "$ice_cv_have_fputc_decl" = yes; then
37044 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
37045 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
37046 if test "$ice_cv_have_fputc_decl" = yes; then
37048 cat >>confdefs.h <<_ACEOF
37049 #define HAVE_FPUTC_DECL 1
37058 for ac_func in fputs
37060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37061 echo "$as_me:$LINENO: checking for $ac_func" >&5
37062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37063 if eval "test \"\${$as_ac_var+set}\" = set"; then
37064 echo $ECHO_N "(cached) $ECHO_C" >&6
37066 cat >conftest.$ac_ext <<_ACEOF
37069 cat confdefs.h >>conftest.$ac_ext
37070 cat >>conftest.$ac_ext <<_ACEOF
37071 /* end confdefs.h. */
37072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37074 #define $ac_func innocuous_$ac_func
37076 /* System header to define __stub macros and hopefully few prototypes,
37077 which can conflict with char $ac_func (); below.
37078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37079 <limits.h> exists even on freestanding compilers. */
37082 # include <limits.h>
37084 # include <assert.h>
37089 /* Override any gcc2 internal prototype to avoid an error. */
37094 /* We use char because int might match the return type of a gcc2
37095 builtin and then its argument prototype would still apply. */
37097 /* The GNU C library defines this for functions which it implements
37098 to always fail with ENOSYS. Some functions are actually named
37099 something starting with __ and the normal name is an alias. */
37100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37103 char (*f) () = $ac_func;
37112 return f != $ac_func;
37117 rm -f conftest.$ac_objext conftest$ac_exeext
37118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37119 (eval $ac_link) 2>conftest.er1
37121 grep -v '^ *+' conftest.er1 >conftest.err
37123 cat conftest.err >&5
37124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); } &&
37126 { ac_try='test -z "$ac_c_werror_flag"
37127 || test ! -s conftest.err'
37128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129 (eval $ac_try) 2>&5
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); }; } &&
37133 { ac_try='test -s conftest$ac_exeext'
37134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135 (eval $ac_try) 2>&5
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); }; }; then
37139 eval "$as_ac_var=yes"
37141 echo "$as_me: failed program was:" >&5
37142 sed 's/^/| /' conftest.$ac_ext >&5
37144 eval "$as_ac_var=no"
37146 rm -f conftest.err conftest.$ac_objext \
37147 conftest$ac_exeext conftest.$ac_ext
37149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37151 if test `eval echo '${'$as_ac_var'}'` = yes; then
37152 cat >>confdefs.h <<_ACEOF
37153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37159 if test "${ice_have_fputs}" = yes; then
37160 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
37161 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
37162 if test "${ice_cv_have_fputs_decl+set}" = set; then
37163 echo $ECHO_N "(cached) $ECHO_C" >&6
37166 ice_cv_have_fputs_decl=no
37167 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37168 ice_re_word='(^|[^a-zA-Z0-9_])'
37169 for header in stdio.h; do
37170 # Check for ordinary declaration
37171 cat >conftest.$ac_ext <<_ACEOF
37174 cat confdefs.h >>conftest.$ac_ext
37175 cat >>conftest.$ac_ext <<_ACEOF
37176 /* end confdefs.h. */
37180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37181 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
37182 ice_cv_have_fputs_decl=yes
37186 if test "$ice_cv_have_fputs_decl" = yes; then
37189 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37190 cat >conftest.$ac_ext <<_ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h. */
37199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37200 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37201 ice_cv_have_fputs_decl=yes
37205 if test "$ice_cv_have_fputs_decl" = yes; then
37212 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
37213 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
37214 if test "$ice_cv_have_fputs_decl" = yes; then
37216 cat >>confdefs.h <<_ACEOF
37217 #define HAVE_FPUTS_DECL 1
37226 for ac_func in fread
37228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37229 echo "$as_me:$LINENO: checking for $ac_func" >&5
37230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37231 if eval "test \"\${$as_ac_var+set}\" = set"; then
37232 echo $ECHO_N "(cached) $ECHO_C" >&6
37234 cat >conftest.$ac_ext <<_ACEOF
37237 cat confdefs.h >>conftest.$ac_ext
37238 cat >>conftest.$ac_ext <<_ACEOF
37239 /* end confdefs.h. */
37240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37242 #define $ac_func innocuous_$ac_func
37244 /* System header to define __stub macros and hopefully few prototypes,
37245 which can conflict with char $ac_func (); below.
37246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37247 <limits.h> exists even on freestanding compilers. */
37250 # include <limits.h>
37252 # include <assert.h>
37257 /* Override any gcc2 internal prototype to avoid an error. */
37262 /* We use char because int might match the return type of a gcc2
37263 builtin and then its argument prototype would still apply. */
37265 /* The GNU C library defines this for functions which it implements
37266 to always fail with ENOSYS. Some functions are actually named
37267 something starting with __ and the normal name is an alias. */
37268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37271 char (*f) () = $ac_func;
37280 return f != $ac_func;
37285 rm -f conftest.$ac_objext conftest$ac_exeext
37286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37287 (eval $ac_link) 2>conftest.er1
37289 grep -v '^ *+' conftest.er1 >conftest.err
37291 cat conftest.err >&5
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); } &&
37294 { ac_try='test -z "$ac_c_werror_flag"
37295 || test ! -s conftest.err'
37296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297 (eval $ac_try) 2>&5
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); }; } &&
37301 { ac_try='test -s conftest$ac_exeext'
37302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37303 (eval $ac_try) 2>&5
37305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306 (exit $ac_status); }; }; then
37307 eval "$as_ac_var=yes"
37309 echo "$as_me: failed program was:" >&5
37310 sed 's/^/| /' conftest.$ac_ext >&5
37312 eval "$as_ac_var=no"
37314 rm -f conftest.err conftest.$ac_objext \
37315 conftest$ac_exeext conftest.$ac_ext
37317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37319 if test `eval echo '${'$as_ac_var'}'` = yes; then
37320 cat >>confdefs.h <<_ACEOF
37321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37327 if test "${ice_have_fread}" = yes; then
37328 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
37329 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
37330 if test "${ice_cv_have_fread_decl+set}" = set; then
37331 echo $ECHO_N "(cached) $ECHO_C" >&6
37334 ice_cv_have_fread_decl=no
37335 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37336 ice_re_word='(^|[^a-zA-Z0-9_])'
37337 for header in stdio.h stdlib.h; do
37338 # Check for ordinary declaration
37339 cat >conftest.$ac_ext <<_ACEOF
37342 cat confdefs.h >>conftest.$ac_ext
37343 cat >>conftest.$ac_ext <<_ACEOF
37344 /* end confdefs.h. */
37348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37349 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
37350 ice_cv_have_fread_decl=yes
37354 if test "$ice_cv_have_fread_decl" = yes; then
37357 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37358 cat >conftest.$ac_ext <<_ACEOF
37361 cat confdefs.h >>conftest.$ac_ext
37362 cat >>conftest.$ac_ext <<_ACEOF
37363 /* end confdefs.h. */
37367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37368 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37369 ice_cv_have_fread_decl=yes
37373 if test "$ice_cv_have_fread_decl" = yes; then
37380 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
37381 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
37382 if test "$ice_cv_have_fread_decl" = yes; then
37384 cat >>confdefs.h <<_ACEOF
37385 #define HAVE_FREAD_DECL 1
37394 for ac_func in fseek
37396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37397 echo "$as_me:$LINENO: checking for $ac_func" >&5
37398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37399 if eval "test \"\${$as_ac_var+set}\" = set"; then
37400 echo $ECHO_N "(cached) $ECHO_C" >&6
37402 cat >conftest.$ac_ext <<_ACEOF
37405 cat confdefs.h >>conftest.$ac_ext
37406 cat >>conftest.$ac_ext <<_ACEOF
37407 /* end confdefs.h. */
37408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37410 #define $ac_func innocuous_$ac_func
37412 /* System header to define __stub macros and hopefully few prototypes,
37413 which can conflict with char $ac_func (); below.
37414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37415 <limits.h> exists even on freestanding compilers. */
37418 # include <limits.h>
37420 # include <assert.h>
37425 /* Override any gcc2 internal prototype to avoid an error. */
37430 /* We use char because int might match the return type of a gcc2
37431 builtin and then its argument prototype would still apply. */
37433 /* The GNU C library defines this for functions which it implements
37434 to always fail with ENOSYS. Some functions are actually named
37435 something starting with __ and the normal name is an alias. */
37436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37439 char (*f) () = $ac_func;
37448 return f != $ac_func;
37453 rm -f conftest.$ac_objext conftest$ac_exeext
37454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37455 (eval $ac_link) 2>conftest.er1
37457 grep -v '^ *+' conftest.er1 >conftest.err
37459 cat conftest.err >&5
37460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461 (exit $ac_status); } &&
37462 { ac_try='test -z "$ac_c_werror_flag"
37463 || test ! -s conftest.err'
37464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37465 (eval $ac_try) 2>&5
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); }; } &&
37469 { ac_try='test -s conftest$ac_exeext'
37470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471 (eval $ac_try) 2>&5
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); }; }; then
37475 eval "$as_ac_var=yes"
37477 echo "$as_me: failed program was:" >&5
37478 sed 's/^/| /' conftest.$ac_ext >&5
37480 eval "$as_ac_var=no"
37482 rm -f conftest.err conftest.$ac_objext \
37483 conftest$ac_exeext conftest.$ac_ext
37485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37487 if test `eval echo '${'$as_ac_var'}'` = yes; then
37488 cat >>confdefs.h <<_ACEOF
37489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37495 if test "${ice_have_fseek}" = yes; then
37496 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
37497 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
37498 if test "${ice_cv_have_fseek_decl+set}" = set; then
37499 echo $ECHO_N "(cached) $ECHO_C" >&6
37502 ice_cv_have_fseek_decl=no
37503 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37504 ice_re_word='(^|[^a-zA-Z0-9_])'
37505 for header in stdio.h; do
37506 # Check for ordinary declaration
37507 cat >conftest.$ac_ext <<_ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h. */
37516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37517 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
37518 ice_cv_have_fseek_decl=yes
37522 if test "$ice_cv_have_fseek_decl" = yes; then
37525 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37526 cat >conftest.$ac_ext <<_ACEOF
37529 cat confdefs.h >>conftest.$ac_ext
37530 cat >>conftest.$ac_ext <<_ACEOF
37531 /* end confdefs.h. */
37535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37536 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37537 ice_cv_have_fseek_decl=yes
37541 if test "$ice_cv_have_fseek_decl" = yes; then
37548 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
37549 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
37550 if test "$ice_cv_have_fseek_decl" = yes; then
37552 cat >>confdefs.h <<_ACEOF
37553 #define HAVE_FSEEK_DECL 1
37562 for ac_func in fwrite
37564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37565 echo "$as_me:$LINENO: checking for $ac_func" >&5
37566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37567 if eval "test \"\${$as_ac_var+set}\" = set"; then
37568 echo $ECHO_N "(cached) $ECHO_C" >&6
37570 cat >conftest.$ac_ext <<_ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h. */
37576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37578 #define $ac_func innocuous_$ac_func
37580 /* System header to define __stub macros and hopefully few prototypes,
37581 which can conflict with char $ac_func (); below.
37582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37583 <limits.h> exists even on freestanding compilers. */
37586 # include <limits.h>
37588 # include <assert.h>
37593 /* Override any gcc2 internal prototype to avoid an error. */
37598 /* We use char because int might match the return type of a gcc2
37599 builtin and then its argument prototype would still apply. */
37601 /* The GNU C library defines this for functions which it implements
37602 to always fail with ENOSYS. Some functions are actually named
37603 something starting with __ and the normal name is an alias. */
37604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37607 char (*f) () = $ac_func;
37616 return f != $ac_func;
37621 rm -f conftest.$ac_objext conftest$ac_exeext
37622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37623 (eval $ac_link) 2>conftest.er1
37625 grep -v '^ *+' conftest.er1 >conftest.err
37627 cat conftest.err >&5
37628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629 (exit $ac_status); } &&
37630 { ac_try='test -z "$ac_c_werror_flag"
37631 || test ! -s conftest.err'
37632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37633 (eval $ac_try) 2>&5
37635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636 (exit $ac_status); }; } &&
37637 { ac_try='test -s conftest$ac_exeext'
37638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37639 (eval $ac_try) 2>&5
37641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642 (exit $ac_status); }; }; then
37643 eval "$as_ac_var=yes"
37645 echo "$as_me: failed program was:" >&5
37646 sed 's/^/| /' conftest.$ac_ext >&5
37648 eval "$as_ac_var=no"
37650 rm -f conftest.err conftest.$ac_objext \
37651 conftest$ac_exeext conftest.$ac_ext
37653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37655 if test `eval echo '${'$as_ac_var'}'` = yes; then
37656 cat >>confdefs.h <<_ACEOF
37657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37659 ice_have_fwrite=yes
37663 if test "${ice_have_fwrite}" = yes; then
37664 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
37665 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
37666 if test "${ice_cv_have_fwrite_decl+set}" = set; then
37667 echo $ECHO_N "(cached) $ECHO_C" >&6
37670 ice_cv_have_fwrite_decl=no
37671 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37672 ice_re_word='(^|[^a-zA-Z0-9_])'
37673 for header in stdio.h stdlib.h; do
37674 # Check for ordinary declaration
37675 cat >conftest.$ac_ext <<_ACEOF
37678 cat confdefs.h >>conftest.$ac_ext
37679 cat >>conftest.$ac_ext <<_ACEOF
37680 /* end confdefs.h. */
37684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37685 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
37686 ice_cv_have_fwrite_decl=yes
37690 if test "$ice_cv_have_fwrite_decl" = yes; then
37693 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37694 cat >conftest.$ac_ext <<_ACEOF
37697 cat confdefs.h >>conftest.$ac_ext
37698 cat >>conftest.$ac_ext <<_ACEOF
37699 /* end confdefs.h. */
37703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37704 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37705 ice_cv_have_fwrite_decl=yes
37709 if test "$ice_cv_have_fwrite_decl" = yes; then
37716 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
37717 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
37718 if test "$ice_cv_have_fwrite_decl" = yes; then
37720 cat >>confdefs.h <<_ACEOF
37721 #define HAVE_FWRITE_DECL 1
37728 for ac_func in getcwd
37730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37731 echo "$as_me:$LINENO: checking for $ac_func" >&5
37732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37733 if eval "test \"\${$as_ac_var+set}\" = set"; then
37734 echo $ECHO_N "(cached) $ECHO_C" >&6
37736 cat >conftest.$ac_ext <<_ACEOF
37739 cat confdefs.h >>conftest.$ac_ext
37740 cat >>conftest.$ac_ext <<_ACEOF
37741 /* end confdefs.h. */
37742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37744 #define $ac_func innocuous_$ac_func
37746 /* System header to define __stub macros and hopefully few prototypes,
37747 which can conflict with char $ac_func (); below.
37748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37749 <limits.h> exists even on freestanding compilers. */
37752 # include <limits.h>
37754 # include <assert.h>
37759 /* Override any gcc2 internal prototype to avoid an error. */
37764 /* We use char because int might match the return type of a gcc2
37765 builtin and then its argument prototype would still apply. */
37767 /* The GNU C library defines this for functions which it implements
37768 to always fail with ENOSYS. Some functions are actually named
37769 something starting with __ and the normal name is an alias. */
37770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37773 char (*f) () = $ac_func;
37782 return f != $ac_func;
37787 rm -f conftest.$ac_objext conftest$ac_exeext
37788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37789 (eval $ac_link) 2>conftest.er1
37791 grep -v '^ *+' conftest.er1 >conftest.err
37793 cat conftest.err >&5
37794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795 (exit $ac_status); } &&
37796 { ac_try='test -z "$ac_c_werror_flag"
37797 || test ! -s conftest.err'
37798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799 (eval $ac_try) 2>&5
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); }; } &&
37803 { ac_try='test -s conftest$ac_exeext'
37804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37805 (eval $ac_try) 2>&5
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); }; }; then
37809 eval "$as_ac_var=yes"
37811 echo "$as_me: failed program was:" >&5
37812 sed 's/^/| /' conftest.$ac_ext >&5
37814 eval "$as_ac_var=no"
37816 rm -f conftest.err conftest.$ac_objext \
37817 conftest$ac_exeext conftest.$ac_ext
37819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37821 if test `eval echo '${'$as_ac_var'}'` = yes; then
37822 cat >>confdefs.h <<_ACEOF
37823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37828 "$ac_func.$ac_objext" | \
37829 *" $ac_func.$ac_objext" | \
37830 "$ac_func.$ac_objext "* | \
37831 *" $ac_func.$ac_objext "* ) ;;
37832 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37840 for ac_func in getfsent
37842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37843 echo "$as_me:$LINENO: checking for $ac_func" >&5
37844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37845 if eval "test \"\${$as_ac_var+set}\" = set"; then
37846 echo $ECHO_N "(cached) $ECHO_C" >&6
37848 cat >conftest.$ac_ext <<_ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h. */
37854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37856 #define $ac_func innocuous_$ac_func
37858 /* System header to define __stub macros and hopefully few prototypes,
37859 which can conflict with char $ac_func (); below.
37860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37861 <limits.h> exists even on freestanding compilers. */
37864 # include <limits.h>
37866 # include <assert.h>
37871 /* Override any gcc2 internal prototype to avoid an error. */
37876 /* We use char because int might match the return type of a gcc2
37877 builtin and then its argument prototype would still apply. */
37879 /* The GNU C library defines this for functions which it implements
37880 to always fail with ENOSYS. Some functions are actually named
37881 something starting with __ and the normal name is an alias. */
37882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37885 char (*f) () = $ac_func;
37894 return f != $ac_func;
37899 rm -f conftest.$ac_objext conftest$ac_exeext
37900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37901 (eval $ac_link) 2>conftest.er1
37903 grep -v '^ *+' conftest.er1 >conftest.err
37905 cat conftest.err >&5
37906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907 (exit $ac_status); } &&
37908 { ac_try='test -z "$ac_c_werror_flag"
37909 || test ! -s conftest.err'
37910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37911 (eval $ac_try) 2>&5
37913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914 (exit $ac_status); }; } &&
37915 { ac_try='test -s conftest$ac_exeext'
37916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917 (eval $ac_try) 2>&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); }; }; then
37921 eval "$as_ac_var=yes"
37923 echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37926 eval "$as_ac_var=no"
37928 rm -f conftest.err conftest.$ac_objext \
37929 conftest$ac_exeext conftest.$ac_ext
37931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37933 if test `eval echo '${'$as_ac_var'}'` = yes; then
37934 cat >>confdefs.h <<_ACEOF
37935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37942 ice_have_gethostname=no
37944 for ac_func in gethostname
37946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37947 echo "$as_me:$LINENO: checking for $ac_func" >&5
37948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37949 if eval "test \"\${$as_ac_var+set}\" = set"; then
37950 echo $ECHO_N "(cached) $ECHO_C" >&6
37952 cat >conftest.$ac_ext <<_ACEOF
37955 cat confdefs.h >>conftest.$ac_ext
37956 cat >>conftest.$ac_ext <<_ACEOF
37957 /* end confdefs.h. */
37958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37960 #define $ac_func innocuous_$ac_func
37962 /* System header to define __stub macros and hopefully few prototypes,
37963 which can conflict with char $ac_func (); below.
37964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37965 <limits.h> exists even on freestanding compilers. */
37968 # include <limits.h>
37970 # include <assert.h>
37975 /* Override any gcc2 internal prototype to avoid an error. */
37980 /* We use char because int might match the return type of a gcc2
37981 builtin and then its argument prototype would still apply. */
37983 /* The GNU C library defines this for functions which it implements
37984 to always fail with ENOSYS. Some functions are actually named
37985 something starting with __ and the normal name is an alias. */
37986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37989 char (*f) () = $ac_func;
37998 return f != $ac_func;
38003 rm -f conftest.$ac_objext conftest$ac_exeext
38004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38005 (eval $ac_link) 2>conftest.er1
38007 grep -v '^ *+' conftest.er1 >conftest.err
38009 cat conftest.err >&5
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); } &&
38012 { ac_try='test -z "$ac_c_werror_flag"
38013 || test ! -s conftest.err'
38014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38015 (eval $ac_try) 2>&5
38017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018 (exit $ac_status); }; } &&
38019 { ac_try='test -s conftest$ac_exeext'
38020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38021 (eval $ac_try) 2>&5
38023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38024 (exit $ac_status); }; }; then
38025 eval "$as_ac_var=yes"
38027 echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38030 eval "$as_ac_var=no"
38032 rm -f conftest.err conftest.$ac_objext \
38033 conftest$ac_exeext conftest.$ac_ext
38035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38037 if test `eval echo '${'$as_ac_var'}'` = yes; then
38038 cat >>confdefs.h <<_ACEOF
38039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38041 ice_have_gethostname=yes
38045 if test "${ice_have_gethostname}" = yes; then
38046 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
38047 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
38048 if test "${ice_cv_have_gethostname_decl+set}" = set; then
38049 echo $ECHO_N "(cached) $ECHO_C" >&6
38052 ice_cv_have_gethostname_decl=no
38053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38054 ice_re_word='(^|[^a-zA-Z0-9_])'
38055 for header in unistd.h; do
38056 # Check for ordinary declaration
38057 cat >conftest.$ac_ext <<_ACEOF
38060 cat confdefs.h >>conftest.$ac_ext
38061 cat >>conftest.$ac_ext <<_ACEOF
38062 /* end confdefs.h. */
38066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38067 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
38068 ice_cv_have_gethostname_decl=yes
38072 if test "$ice_cv_have_gethostname_decl" = yes; then
38075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38076 cat >conftest.$ac_ext <<_ACEOF
38079 cat confdefs.h >>conftest.$ac_ext
38080 cat >>conftest.$ac_ext <<_ACEOF
38081 /* end confdefs.h. */
38085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38086 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38087 ice_cv_have_gethostname_decl=yes
38091 if test "$ice_cv_have_gethostname_decl" = yes; then
38098 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
38099 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
38100 if test "$ice_cv_have_gethostname_decl" = yes; then
38102 cat >>confdefs.h <<_ACEOF
38103 #define HAVE_GETHOSTNAME_DECL 1
38109 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
38110 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
38111 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
38112 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
38113 echo $ECHO_N "(cached) $ECHO_C" >&6
38115 ac_check_lib_save_LIBS=$LIBS
38117 cat >conftest.$ac_ext <<_ACEOF
38120 cat confdefs.h >>conftest.$ac_ext
38121 cat >>conftest.$ac_ext <<_ACEOF
38122 /* end confdefs.h. */
38124 /* Override any gcc2 internal prototype to avoid an error. */
38128 /* We use char because int might match the return type of a gcc2
38129 builtin and then its argument prototype would still apply. */
38139 rm -f conftest.$ac_objext conftest$ac_exeext
38140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38141 (eval $ac_link) 2>conftest.er1
38143 grep -v '^ *+' conftest.er1 >conftest.err
38145 cat conftest.err >&5
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); } &&
38148 { ac_try='test -z "$ac_c_werror_flag"
38149 || test ! -s conftest.err'
38150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38151 (eval $ac_try) 2>&5
38153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154 (exit $ac_status); }; } &&
38155 { ac_try='test -s conftest$ac_exeext'
38156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38157 (eval $ac_try) 2>&5
38159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160 (exit $ac_status); }; }; then
38161 ac_cv_lib_sun_getmntent=yes
38163 echo "$as_me: failed program was:" >&5
38164 sed 's/^/| /' conftest.$ac_ext >&5
38166 ac_cv_lib_sun_getmntent=no
38168 rm -f conftest.err conftest.$ac_objext \
38169 conftest$ac_exeext conftest.$ac_ext
38170 LIBS=$ac_check_lib_save_LIBS
38172 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
38173 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
38174 if test $ac_cv_lib_sun_getmntent = yes; then
38177 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
38178 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
38179 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
38180 echo $ECHO_N "(cached) $ECHO_C" >&6
38182 ac_check_lib_save_LIBS=$LIBS
38184 cat >conftest.$ac_ext <<_ACEOF
38187 cat confdefs.h >>conftest.$ac_ext
38188 cat >>conftest.$ac_ext <<_ACEOF
38189 /* end confdefs.h. */
38191 /* Override any gcc2 internal prototype to avoid an error. */
38195 /* We use char because int might match the return type of a gcc2
38196 builtin and then its argument prototype would still apply. */
38206 rm -f conftest.$ac_objext conftest$ac_exeext
38207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38208 (eval $ac_link) 2>conftest.er1
38210 grep -v '^ *+' conftest.er1 >conftest.err
38212 cat conftest.err >&5
38213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); } &&
38215 { ac_try='test -z "$ac_c_werror_flag"
38216 || test ! -s conftest.err'
38217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218 (eval $ac_try) 2>&5
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); }; } &&
38222 { ac_try='test -s conftest$ac_exeext'
38223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224 (eval $ac_try) 2>&5
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); }; }; then
38228 ac_cv_lib_seq_getmntent=yes
38230 echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38233 ac_cv_lib_seq_getmntent=no
38235 rm -f conftest.err conftest.$ac_objext \
38236 conftest$ac_exeext conftest.$ac_ext
38237 LIBS=$ac_check_lib_save_LIBS
38239 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
38240 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
38241 if test $ac_cv_lib_seq_getmntent = yes; then
38244 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
38245 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
38246 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
38247 echo $ECHO_N "(cached) $ECHO_C" >&6
38249 ac_check_lib_save_LIBS=$LIBS
38251 cat >conftest.$ac_ext <<_ACEOF
38254 cat confdefs.h >>conftest.$ac_ext
38255 cat >>conftest.$ac_ext <<_ACEOF
38256 /* end confdefs.h. */
38258 /* Override any gcc2 internal prototype to avoid an error. */
38262 /* We use char because int might match the return type of a gcc2
38263 builtin and then its argument prototype would still apply. */
38273 rm -f conftest.$ac_objext conftest$ac_exeext
38274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38275 (eval $ac_link) 2>conftest.er1
38277 grep -v '^ *+' conftest.er1 >conftest.err
38279 cat conftest.err >&5
38280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281 (exit $ac_status); } &&
38282 { ac_try='test -z "$ac_c_werror_flag"
38283 || test ! -s conftest.err'
38284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285 (eval $ac_try) 2>&5
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); }; } &&
38289 { ac_try='test -s conftest$ac_exeext'
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; }; then
38295 ac_cv_lib_gen_getmntent=yes
38297 echo "$as_me: failed program was:" >&5
38298 sed 's/^/| /' conftest.$ac_ext >&5
38300 ac_cv_lib_gen_getmntent=no
38302 rm -f conftest.err conftest.$ac_objext \
38303 conftest$ac_exeext conftest.$ac_ext
38304 LIBS=$ac_check_lib_save_LIBS
38306 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
38307 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
38308 if test $ac_cv_lib_gen_getmntent = yes; then
38317 for ac_func in getmntent
38319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38320 echo "$as_me:$LINENO: checking for $ac_func" >&5
38321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38322 if eval "test \"\${$as_ac_var+set}\" = set"; then
38323 echo $ECHO_N "(cached) $ECHO_C" >&6
38325 cat >conftest.$ac_ext <<_ACEOF
38328 cat confdefs.h >>conftest.$ac_ext
38329 cat >>conftest.$ac_ext <<_ACEOF
38330 /* end confdefs.h. */
38331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38333 #define $ac_func innocuous_$ac_func
38335 /* System header to define __stub macros and hopefully few prototypes,
38336 which can conflict with char $ac_func (); below.
38337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38338 <limits.h> exists even on freestanding compilers. */
38341 # include <limits.h>
38343 # include <assert.h>
38348 /* Override any gcc2 internal prototype to avoid an error. */
38353 /* We use char because int might match the return type of a gcc2
38354 builtin and then its argument prototype would still apply. */
38356 /* The GNU C library defines this for functions which it implements
38357 to always fail with ENOSYS. Some functions are actually named
38358 something starting with __ and the normal name is an alias. */
38359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38362 char (*f) () = $ac_func;
38371 return f != $ac_func;
38376 rm -f conftest.$ac_objext conftest$ac_exeext
38377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38378 (eval $ac_link) 2>conftest.er1
38380 grep -v '^ *+' conftest.er1 >conftest.err
38382 cat conftest.err >&5
38383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384 (exit $ac_status); } &&
38385 { ac_try='test -z "$ac_c_werror_flag"
38386 || test ! -s conftest.err'
38387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388 (eval $ac_try) 2>&5
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); }; } &&
38392 { ac_try='test -s conftest$ac_exeext'
38393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38394 (eval $ac_try) 2>&5
38396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397 (exit $ac_status); }; }; then
38398 eval "$as_ac_var=yes"
38400 echo "$as_me: failed program was:" >&5
38401 sed 's/^/| /' conftest.$ac_ext >&5
38403 eval "$as_ac_var=no"
38405 rm -f conftest.err conftest.$ac_objext \
38406 conftest$ac_exeext conftest.$ac_ext
38408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38410 if test `eval echo '${'$as_ac_var'}'` = yes; then
38411 cat >>confdefs.h <<_ACEOF
38412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38422 for ac_func in getopt
38424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38425 echo "$as_me:$LINENO: checking for $ac_func" >&5
38426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38427 if eval "test \"\${$as_ac_var+set}\" = set"; then
38428 echo $ECHO_N "(cached) $ECHO_C" >&6
38430 cat >conftest.$ac_ext <<_ACEOF
38433 cat confdefs.h >>conftest.$ac_ext
38434 cat >>conftest.$ac_ext <<_ACEOF
38435 /* end confdefs.h. */
38436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38438 #define $ac_func innocuous_$ac_func
38440 /* System header to define __stub macros and hopefully few prototypes,
38441 which can conflict with char $ac_func (); below.
38442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38443 <limits.h> exists even on freestanding compilers. */
38446 # include <limits.h>
38448 # include <assert.h>
38453 /* Override any gcc2 internal prototype to avoid an error. */
38458 /* We use char because int might match the return type of a gcc2
38459 builtin and then its argument prototype would still apply. */
38461 /* The GNU C library defines this for functions which it implements
38462 to always fail with ENOSYS. Some functions are actually named
38463 something starting with __ and the normal name is an alias. */
38464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38467 char (*f) () = $ac_func;
38476 return f != $ac_func;
38481 rm -f conftest.$ac_objext conftest$ac_exeext
38482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38483 (eval $ac_link) 2>conftest.er1
38485 grep -v '^ *+' conftest.er1 >conftest.err
38487 cat conftest.err >&5
38488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489 (exit $ac_status); } &&
38490 { ac_try='test -z "$ac_c_werror_flag"
38491 || test ! -s conftest.err'
38492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38493 (eval $ac_try) 2>&5
38495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38496 (exit $ac_status); }; } &&
38497 { ac_try='test -s conftest$ac_exeext'
38498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38499 (eval $ac_try) 2>&5
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); }; }; then
38503 eval "$as_ac_var=yes"
38505 echo "$as_me: failed program was:" >&5
38506 sed 's/^/| /' conftest.$ac_ext >&5
38508 eval "$as_ac_var=no"
38510 rm -f conftest.err conftest.$ac_objext \
38511 conftest$ac_exeext conftest.$ac_ext
38513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38515 if test `eval echo '${'$as_ac_var'}'` = yes; then
38516 cat >>confdefs.h <<_ACEOF
38517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38519 ice_have_getopt=yes
38523 if test "${ice_have_getopt}" = yes; then
38524 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
38525 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
38526 if test "${ice_cv_have_getopt_decl+set}" = set; then
38527 echo $ECHO_N "(cached) $ECHO_C" >&6
38530 ice_cv_have_getopt_decl=no
38531 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38532 ice_re_word='(^|[^a-zA-Z0-9_])'
38533 for header in stdlib.h unistd.h libc.h; do
38534 # Check for ordinary declaration
38535 cat >conftest.$ac_ext <<_ACEOF
38538 cat confdefs.h >>conftest.$ac_ext
38539 cat >>conftest.$ac_ext <<_ACEOF
38540 /* end confdefs.h. */
38544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38545 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
38546 ice_cv_have_getopt_decl=yes
38550 if test "$ice_cv_have_getopt_decl" = yes; then
38553 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38554 cat >conftest.$ac_ext <<_ACEOF
38557 cat confdefs.h >>conftest.$ac_ext
38558 cat >>conftest.$ac_ext <<_ACEOF
38559 /* end confdefs.h. */
38563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38564 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38565 ice_cv_have_getopt_decl=yes
38569 if test "$ice_cv_have_getopt_decl" = yes; then
38576 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
38577 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
38578 if test "$ice_cv_have_getopt_decl" = yes; then
38580 cat >>confdefs.h <<_ACEOF
38581 #define HAVE_GETOPT_DECL 1
38588 ice_have_getpeername=no
38590 for ac_func in getpeername
38592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38593 echo "$as_me:$LINENO: checking for $ac_func" >&5
38594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38595 if eval "test \"\${$as_ac_var+set}\" = set"; then
38596 echo $ECHO_N "(cached) $ECHO_C" >&6
38598 cat >conftest.$ac_ext <<_ACEOF
38601 cat confdefs.h >>conftest.$ac_ext
38602 cat >>conftest.$ac_ext <<_ACEOF
38603 /* end confdefs.h. */
38604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38606 #define $ac_func innocuous_$ac_func
38608 /* System header to define __stub macros and hopefully few prototypes,
38609 which can conflict with char $ac_func (); below.
38610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38611 <limits.h> exists even on freestanding compilers. */
38614 # include <limits.h>
38616 # include <assert.h>
38621 /* Override any gcc2 internal prototype to avoid an error. */
38626 /* We use char because int might match the return type of a gcc2
38627 builtin and then its argument prototype would still apply. */
38629 /* The GNU C library defines this for functions which it implements
38630 to always fail with ENOSYS. Some functions are actually named
38631 something starting with __ and the normal name is an alias. */
38632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38635 char (*f) () = $ac_func;
38644 return f != $ac_func;
38649 rm -f conftest.$ac_objext conftest$ac_exeext
38650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38651 (eval $ac_link) 2>conftest.er1
38653 grep -v '^ *+' conftest.er1 >conftest.err
38655 cat conftest.err >&5
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); } &&
38658 { ac_try='test -z "$ac_c_werror_flag"
38659 || test ! -s conftest.err'
38660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661 (eval $ac_try) 2>&5
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); }; } &&
38665 { ac_try='test -s conftest$ac_exeext'
38666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38667 (eval $ac_try) 2>&5
38669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670 (exit $ac_status); }; }; then
38671 eval "$as_ac_var=yes"
38673 echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.$ac_ext >&5
38676 eval "$as_ac_var=no"
38678 rm -f conftest.err conftest.$ac_objext \
38679 conftest$ac_exeext conftest.$ac_ext
38681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38683 if test `eval echo '${'$as_ac_var'}'` = yes; then
38684 cat >>confdefs.h <<_ACEOF
38685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38687 ice_have_getpeername=yes
38691 if test "${ice_have_getpeername}" = yes; then
38692 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
38693 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38694 if test "${ice_cv_have_getpeername_decl+set}" = set; then
38695 echo $ECHO_N "(cached) $ECHO_C" >&6
38698 ice_cv_have_getpeername_decl=no
38699 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38700 ice_re_word='(^|[^a-zA-Z0-9_])'
38701 for header in sys/types.h sys/socket.h; do
38702 # Check for ordinary declaration
38703 cat >conftest.$ac_ext <<_ACEOF
38706 cat confdefs.h >>conftest.$ac_ext
38707 cat >>conftest.$ac_ext <<_ACEOF
38708 /* end confdefs.h. */
38712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38713 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
38714 ice_cv_have_getpeername_decl=yes
38718 if test "$ice_cv_have_getpeername_decl" = yes; then
38721 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38722 cat >conftest.$ac_ext <<_ACEOF
38725 cat confdefs.h >>conftest.$ac_ext
38726 cat >>conftest.$ac_ext <<_ACEOF
38727 /* end confdefs.h. */
38731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38732 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38733 ice_cv_have_getpeername_decl=yes
38737 if test "$ice_cv_have_getpeername_decl" = yes; then
38744 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
38745 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
38746 if test "$ice_cv_have_getpeername_decl" = yes; then
38748 cat >>confdefs.h <<_ACEOF
38749 #define HAVE_GETPEERNAME_DECL 1
38756 for ac_func in getpgrp
38758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38759 echo "$as_me:$LINENO: checking for $ac_func" >&5
38760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38761 if eval "test \"\${$as_ac_var+set}\" = set"; then
38762 echo $ECHO_N "(cached) $ECHO_C" >&6
38764 cat >conftest.$ac_ext <<_ACEOF
38767 cat confdefs.h >>conftest.$ac_ext
38768 cat >>conftest.$ac_ext <<_ACEOF
38769 /* end confdefs.h. */
38770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38772 #define $ac_func innocuous_$ac_func
38774 /* System header to define __stub macros and hopefully few prototypes,
38775 which can conflict with char $ac_func (); below.
38776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38777 <limits.h> exists even on freestanding compilers. */
38780 # include <limits.h>
38782 # include <assert.h>
38787 /* Override any gcc2 internal prototype to avoid an error. */
38792 /* We use char because int might match the return type of a gcc2
38793 builtin and then its argument prototype would still apply. */
38795 /* The GNU C library defines this for functions which it implements
38796 to always fail with ENOSYS. Some functions are actually named
38797 something starting with __ and the normal name is an alias. */
38798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38801 char (*f) () = $ac_func;
38810 return f != $ac_func;
38815 rm -f conftest.$ac_objext conftest$ac_exeext
38816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38817 (eval $ac_link) 2>conftest.er1
38819 grep -v '^ *+' conftest.er1 >conftest.err
38821 cat conftest.err >&5
38822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823 (exit $ac_status); } &&
38824 { ac_try='test -z "$ac_c_werror_flag"
38825 || test ! -s conftest.err'
38826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38827 (eval $ac_try) 2>&5
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); }; } &&
38831 { ac_try='test -s conftest$ac_exeext'
38832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833 (eval $ac_try) 2>&5
38835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836 (exit $ac_status); }; }; then
38837 eval "$as_ac_var=yes"
38839 echo "$as_me: failed program was:" >&5
38840 sed 's/^/| /' conftest.$ac_ext >&5
38842 eval "$as_ac_var=no"
38844 rm -f conftest.err conftest.$ac_objext \
38845 conftest$ac_exeext conftest.$ac_ext
38847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38849 if test `eval echo '${'$as_ac_var'}'` = yes; then
38850 cat >>confdefs.h <<_ACEOF
38851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38857 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
38858 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
38859 if test "${ac_cv_func_getpgrp_void+set}" = set; then
38860 echo $ECHO_N "(cached) $ECHO_C" >&6
38862 # Use it with a single arg.
38863 cat >conftest.$ac_ext <<_ACEOF
38866 cat confdefs.h >>conftest.$ac_ext
38867 cat >>conftest.$ac_ext <<_ACEOF
38868 /* end confdefs.h. */
38869 $ac_includes_default
38878 rm -f conftest.$ac_objext
38879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38880 (eval $ac_compile) 2>conftest.er1
38882 grep -v '^ *+' conftest.er1 >conftest.err
38884 cat conftest.err >&5
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); } &&
38887 { ac_try='test -z "$ac_c_werror_flag"
38888 || test ! -s conftest.err'
38889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890 (eval $ac_try) 2>&5
38892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893 (exit $ac_status); }; } &&
38894 { ac_try='test -s conftest.$ac_objext'
38895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896 (eval $ac_try) 2>&5
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); }; }; then
38900 ac_cv_func_getpgrp_void=no
38902 echo "$as_me: failed program was:" >&5
38903 sed 's/^/| /' conftest.$ac_ext >&5
38905 ac_cv_func_getpgrp_void=yes
38907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38910 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
38911 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
38912 if test $ac_cv_func_getpgrp_void = yes; then
38914 cat >>confdefs.h <<\_ACEOF
38915 #define GETPGRP_VOID 1
38921 ice_have_getsockname=no
38923 for ac_func in getsockname
38925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38926 echo "$as_me:$LINENO: checking for $ac_func" >&5
38927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38928 if eval "test \"\${$as_ac_var+set}\" = set"; then
38929 echo $ECHO_N "(cached) $ECHO_C" >&6
38931 cat >conftest.$ac_ext <<_ACEOF
38934 cat confdefs.h >>conftest.$ac_ext
38935 cat >>conftest.$ac_ext <<_ACEOF
38936 /* end confdefs.h. */
38937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38939 #define $ac_func innocuous_$ac_func
38941 /* System header to define __stub macros and hopefully few prototypes,
38942 which can conflict with char $ac_func (); below.
38943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38944 <limits.h> exists even on freestanding compilers. */
38947 # include <limits.h>
38949 # include <assert.h>
38954 /* Override any gcc2 internal prototype to avoid an error. */
38959 /* We use char because int might match the return type of a gcc2
38960 builtin and then its argument prototype would still apply. */
38962 /* The GNU C library defines this for functions which it implements
38963 to always fail with ENOSYS. Some functions are actually named
38964 something starting with __ and the normal name is an alias. */
38965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38968 char (*f) () = $ac_func;
38977 return f != $ac_func;
38982 rm -f conftest.$ac_objext conftest$ac_exeext
38983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38984 (eval $ac_link) 2>conftest.er1
38986 grep -v '^ *+' conftest.er1 >conftest.err
38988 cat conftest.err >&5
38989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38990 (exit $ac_status); } &&
38991 { ac_try='test -z "$ac_c_werror_flag"
38992 || test ! -s conftest.err'
38993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38994 (eval $ac_try) 2>&5
38996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997 (exit $ac_status); }; } &&
38998 { ac_try='test -s conftest$ac_exeext'
38999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39000 (eval $ac_try) 2>&5
39002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003 (exit $ac_status); }; }; then
39004 eval "$as_ac_var=yes"
39006 echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39009 eval "$as_ac_var=no"
39011 rm -f conftest.err conftest.$ac_objext \
39012 conftest$ac_exeext conftest.$ac_ext
39014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39016 if test `eval echo '${'$as_ac_var'}'` = yes; then
39017 cat >>confdefs.h <<_ACEOF
39018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39020 ice_have_getsockname=yes
39024 if test "${ice_have_getsockname}" = yes; then
39025 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
39026 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
39027 if test "${ice_cv_have_getsockname_decl+set}" = set; then
39028 echo $ECHO_N "(cached) $ECHO_C" >&6
39031 ice_cv_have_getsockname_decl=no
39032 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39033 ice_re_word='(^|[^a-zA-Z0-9_])'
39034 for header in sys/types.h sys/socket.h; do
39035 # Check for ordinary declaration
39036 cat >conftest.$ac_ext <<_ACEOF
39039 cat confdefs.h >>conftest.$ac_ext
39040 cat >>conftest.$ac_ext <<_ACEOF
39041 /* end confdefs.h. */
39045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39046 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
39047 ice_cv_have_getsockname_decl=yes
39051 if test "$ice_cv_have_getsockname_decl" = yes; then
39054 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39055 cat >conftest.$ac_ext <<_ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h. */
39064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39065 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39066 ice_cv_have_getsockname_decl=yes
39070 if test "$ice_cv_have_getsockname_decl" = yes; then
39077 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
39078 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
39079 if test "$ice_cv_have_getsockname_decl" = yes; then
39081 cat >>confdefs.h <<_ACEOF
39082 #define HAVE_GETSOCKNAME_DECL 1
39089 ice_have_getsockopt=no
39091 for ac_func in getsockopt
39093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39094 echo "$as_me:$LINENO: checking for $ac_func" >&5
39095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39096 if eval "test \"\${$as_ac_var+set}\" = set"; then
39097 echo $ECHO_N "(cached) $ECHO_C" >&6
39099 cat >conftest.$ac_ext <<_ACEOF
39102 cat confdefs.h >>conftest.$ac_ext
39103 cat >>conftest.$ac_ext <<_ACEOF
39104 /* end confdefs.h. */
39105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39107 #define $ac_func innocuous_$ac_func
39109 /* System header to define __stub macros and hopefully few prototypes,
39110 which can conflict with char $ac_func (); below.
39111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39112 <limits.h> exists even on freestanding compilers. */
39115 # include <limits.h>
39117 # include <assert.h>
39122 /* Override any gcc2 internal prototype to avoid an error. */
39127 /* We use char because int might match the return type of a gcc2
39128 builtin and then its argument prototype would still apply. */
39130 /* The GNU C library defines this for functions which it implements
39131 to always fail with ENOSYS. Some functions are actually named
39132 something starting with __ and the normal name is an alias. */
39133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39136 char (*f) () = $ac_func;
39145 return f != $ac_func;
39150 rm -f conftest.$ac_objext conftest$ac_exeext
39151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39152 (eval $ac_link) 2>conftest.er1
39154 grep -v '^ *+' conftest.er1 >conftest.err
39156 cat conftest.err >&5
39157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158 (exit $ac_status); } &&
39159 { ac_try='test -z "$ac_c_werror_flag"
39160 || test ! -s conftest.err'
39161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39162 (eval $ac_try) 2>&5
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); }; } &&
39166 { ac_try='test -s conftest$ac_exeext'
39167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39168 (eval $ac_try) 2>&5
39170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39171 (exit $ac_status); }; }; then
39172 eval "$as_ac_var=yes"
39174 echo "$as_me: failed program was:" >&5
39175 sed 's/^/| /' conftest.$ac_ext >&5
39177 eval "$as_ac_var=no"
39179 rm -f conftest.err conftest.$ac_objext \
39180 conftest$ac_exeext conftest.$ac_ext
39182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39184 if test `eval echo '${'$as_ac_var'}'` = yes; then
39185 cat >>confdefs.h <<_ACEOF
39186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39188 ice_have_getsockopt=yes
39192 if test "${ice_have_getsockopt}" = yes; then
39193 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
39194 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
39195 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
39196 echo $ECHO_N "(cached) $ECHO_C" >&6
39199 ice_cv_have_getsockopt_decl=no
39200 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39201 ice_re_word='(^|[^a-zA-Z0-9_])'
39202 for header in sys/types.h sys/socket.h; do
39203 # Check for ordinary declaration
39204 cat >conftest.$ac_ext <<_ACEOF
39207 cat confdefs.h >>conftest.$ac_ext
39208 cat >>conftest.$ac_ext <<_ACEOF
39209 /* end confdefs.h. */
39213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39214 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
39215 ice_cv_have_getsockopt_decl=yes
39219 if test "$ice_cv_have_getsockopt_decl" = yes; then
39222 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39223 cat >conftest.$ac_ext <<_ACEOF
39226 cat confdefs.h >>conftest.$ac_ext
39227 cat >>conftest.$ac_ext <<_ACEOF
39228 /* end confdefs.h. */
39232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39233 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39234 ice_cv_have_getsockopt_decl=yes
39238 if test "$ice_cv_have_getsockopt_decl" = yes; then
39245 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
39246 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
39247 if test "$ice_cv_have_getsockopt_decl" = yes; then
39249 cat >>confdefs.h <<_ACEOF
39250 #define HAVE_GETSOCKOPT_DECL 1
39257 ice_have_gettimeofday=no
39259 for ac_func in gettimeofday
39261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39262 echo "$as_me:$LINENO: checking for $ac_func" >&5
39263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39264 if eval "test \"\${$as_ac_var+set}\" = set"; then
39265 echo $ECHO_N "(cached) $ECHO_C" >&6
39267 cat >conftest.$ac_ext <<_ACEOF
39270 cat confdefs.h >>conftest.$ac_ext
39271 cat >>conftest.$ac_ext <<_ACEOF
39272 /* end confdefs.h. */
39273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39275 #define $ac_func innocuous_$ac_func
39277 /* System header to define __stub macros and hopefully few prototypes,
39278 which can conflict with char $ac_func (); below.
39279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39280 <limits.h> exists even on freestanding compilers. */
39283 # include <limits.h>
39285 # include <assert.h>
39290 /* Override any gcc2 internal prototype to avoid an error. */
39295 /* We use char because int might match the return type of a gcc2
39296 builtin and then its argument prototype would still apply. */
39298 /* The GNU C library defines this for functions which it implements
39299 to always fail with ENOSYS. Some functions are actually named
39300 something starting with __ and the normal name is an alias. */
39301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39304 char (*f) () = $ac_func;
39313 return f != $ac_func;
39318 rm -f conftest.$ac_objext conftest$ac_exeext
39319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39320 (eval $ac_link) 2>conftest.er1
39322 grep -v '^ *+' conftest.er1 >conftest.err
39324 cat conftest.err >&5
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); } &&
39327 { ac_try='test -z "$ac_c_werror_flag"
39328 || test ! -s conftest.err'
39329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330 (eval $ac_try) 2>&5
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); }; } &&
39334 { ac_try='test -s conftest$ac_exeext'
39335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336 (eval $ac_try) 2>&5
39338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339 (exit $ac_status); }; }; then
39340 eval "$as_ac_var=yes"
39342 echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39345 eval "$as_ac_var=no"
39347 rm -f conftest.err conftest.$ac_objext \
39348 conftest$ac_exeext conftest.$ac_ext
39350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39352 if test `eval echo '${'$as_ac_var'}'` = yes; then
39353 cat >>confdefs.h <<_ACEOF
39354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39356 ice_have_gettimeofday=yes
39360 if test "${ice_have_gettimeofday}" = yes; then
39361 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
39362 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
39363 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
39364 echo $ECHO_N "(cached) $ECHO_C" >&6
39367 ice_cv_have_gettimeofday_decl=no
39368 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39369 ice_re_word='(^|[^a-zA-Z0-9_])'
39370 for header in time.h sys/time.h; do
39371 # Check for ordinary declaration
39372 cat >conftest.$ac_ext <<_ACEOF
39375 cat confdefs.h >>conftest.$ac_ext
39376 cat >>conftest.$ac_ext <<_ACEOF
39377 /* end confdefs.h. */
39381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39382 $EGREP "${ice_re_word}gettimeofday[ ]*\(" >/dev/null 2>&1; then
39383 ice_cv_have_gettimeofday_decl=yes
39387 if test "$ice_cv_have_gettimeofday_decl" = yes; then
39390 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39391 cat >conftest.$ac_ext <<_ACEOF
39394 cat confdefs.h >>conftest.$ac_ext
39395 cat >>conftest.$ac_ext <<_ACEOF
39396 /* end confdefs.h. */
39400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39401 $EGREP "${ice_re_word}gettimeofday[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39402 ice_cv_have_gettimeofday_decl=yes
39406 if test "$ice_cv_have_gettimeofday_decl" = yes; then
39413 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
39414 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
39415 if test "$ice_cv_have_gettimeofday_decl" = yes; then
39417 cat >>confdefs.h <<_ACEOF
39418 #define HAVE_GETTIMEOFDAY_DECL 1
39426 echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
39427 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
39428 if test "${amanda_cv_gettimeofday_args+set}" = set; then
39429 echo $ECHO_N "(cached) $ECHO_C" >&6
39432 cat >conftest.$ac_ext <<_ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h. */
39439 #ifdef TIME_WITH_SYS_TIME
39440 # include <sys/time.h>
39443 # ifdef HAVE_SYS_TIME_H
39444 # include <sys/time.h>
39454 struct timeval val;
39455 struct timezone zone;
39456 gettimeofday(&val, &zone);
39462 rm -f conftest.$ac_objext
39463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39464 (eval $ac_compile) 2>conftest.er1
39466 grep -v '^ *+' conftest.er1 >conftest.err
39468 cat conftest.err >&5
39469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470 (exit $ac_status); } &&
39471 { ac_try='test -z "$ac_c_werror_flag"
39472 || test ! -s conftest.err'
39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; } &&
39478 { ac_try='test -s conftest.$ac_objext'
39479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39480 (eval $ac_try) 2>&5
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); }; }; then
39484 amanda_cv_gettimeofday_args=2
39486 echo "$as_me: failed program was:" >&5
39487 sed 's/^/| /' conftest.$ac_ext >&5
39489 amanda_cv_gettimeofday_args=1
39492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39496 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
39497 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
39498 if test "$amanda_cv_gettimeofday_args" = 2; then
39500 cat >>confdefs.h <<\_ACEOF
39501 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
39510 for ac_func in getvfsent initgroups isascii
39512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39513 echo "$as_me:$LINENO: checking for $ac_func" >&5
39514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39515 if eval "test \"\${$as_ac_var+set}\" = set"; then
39516 echo $ECHO_N "(cached) $ECHO_C" >&6
39518 cat >conftest.$ac_ext <<_ACEOF
39521 cat confdefs.h >>conftest.$ac_ext
39522 cat >>conftest.$ac_ext <<_ACEOF
39523 /* end confdefs.h. */
39524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39526 #define $ac_func innocuous_$ac_func
39528 /* System header to define __stub macros and hopefully few prototypes,
39529 which can conflict with char $ac_func (); below.
39530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39531 <limits.h> exists even on freestanding compilers. */
39534 # include <limits.h>
39536 # include <assert.h>
39541 /* Override any gcc2 internal prototype to avoid an error. */
39546 /* We use char because int might match the return type of a gcc2
39547 builtin and then its argument prototype would still apply. */
39549 /* The GNU C library defines this for functions which it implements
39550 to always fail with ENOSYS. Some functions are actually named
39551 something starting with __ and the normal name is an alias. */
39552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39555 char (*f) () = $ac_func;
39564 return f != $ac_func;
39569 rm -f conftest.$ac_objext conftest$ac_exeext
39570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39571 (eval $ac_link) 2>conftest.er1
39573 grep -v '^ *+' conftest.er1 >conftest.err
39575 cat conftest.err >&5
39576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577 (exit $ac_status); } &&
39578 { ac_try='test -z "$ac_c_werror_flag"
39579 || test ! -s conftest.err'
39580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39581 (eval $ac_try) 2>&5
39583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584 (exit $ac_status); }; } &&
39585 { ac_try='test -s conftest$ac_exeext'
39586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39587 (eval $ac_try) 2>&5
39589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); }; }; then
39591 eval "$as_ac_var=yes"
39593 echo "$as_me: failed program was:" >&5
39594 sed 's/^/| /' conftest.$ac_ext >&5
39596 eval "$as_ac_var=no"
39598 rm -f conftest.err conftest.$ac_objext \
39599 conftest$ac_exeext conftest.$ac_ext
39601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39603 if test `eval echo '${'$as_ac_var'}'` = yes; then
39604 cat >>confdefs.h <<_ACEOF
39605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39612 ice_have_initgroups=no
39614 for ac_func in initgroups
39616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39617 echo "$as_me:$LINENO: checking for $ac_func" >&5
39618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39619 if eval "test \"\${$as_ac_var+set}\" = set"; then
39620 echo $ECHO_N "(cached) $ECHO_C" >&6
39622 cat >conftest.$ac_ext <<_ACEOF
39625 cat confdefs.h >>conftest.$ac_ext
39626 cat >>conftest.$ac_ext <<_ACEOF
39627 /* end confdefs.h. */
39628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39630 #define $ac_func innocuous_$ac_func
39632 /* System header to define __stub macros and hopefully few prototypes,
39633 which can conflict with char $ac_func (); below.
39634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39635 <limits.h> exists even on freestanding compilers. */
39638 # include <limits.h>
39640 # include <assert.h>
39645 /* Override any gcc2 internal prototype to avoid an error. */
39650 /* We use char because int might match the return type of a gcc2
39651 builtin and then its argument prototype would still apply. */
39653 /* The GNU C library defines this for functions which it implements
39654 to always fail with ENOSYS. Some functions are actually named
39655 something starting with __ and the normal name is an alias. */
39656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39659 char (*f) () = $ac_func;
39668 return f != $ac_func;
39673 rm -f conftest.$ac_objext conftest$ac_exeext
39674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39675 (eval $ac_link) 2>conftest.er1
39677 grep -v '^ *+' conftest.er1 >conftest.err
39679 cat conftest.err >&5
39680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 (exit $ac_status); } &&
39682 { ac_try='test -z "$ac_c_werror_flag"
39683 || test ! -s conftest.err'
39684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39685 (eval $ac_try) 2>&5
39687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39688 (exit $ac_status); }; } &&
39689 { ac_try='test -s conftest$ac_exeext'
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691 (eval $ac_try) 2>&5
39693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; }; then
39695 eval "$as_ac_var=yes"
39697 echo "$as_me: failed program was:" >&5
39698 sed 's/^/| /' conftest.$ac_ext >&5
39700 eval "$as_ac_var=no"
39702 rm -f conftest.err conftest.$ac_objext \
39703 conftest$ac_exeext conftest.$ac_ext
39705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39707 if test `eval echo '${'$as_ac_var'}'` = yes; then
39708 cat >>confdefs.h <<_ACEOF
39709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39711 ice_have_initgroups=yes
39715 if test "${ice_have_initgroups}" = yes; then
39716 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
39717 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
39718 if test "${ice_cv_have_initgroups_decl+set}" = set; then
39719 echo $ECHO_N "(cached) $ECHO_C" >&6
39722 ice_cv_have_initgroups_decl=no
39723 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39724 ice_re_word='(^|[^a-zA-Z0-9_])'
39725 for header in grp.h sys/types.h unistd.h libc.h; do
39726 # Check for ordinary declaration
39727 cat >conftest.$ac_ext <<_ACEOF
39730 cat confdefs.h >>conftest.$ac_ext
39731 cat >>conftest.$ac_ext <<_ACEOF
39732 /* end confdefs.h. */
39736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39737 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
39738 ice_cv_have_initgroups_decl=yes
39742 if test "$ice_cv_have_initgroups_decl" = yes; then
39745 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39746 cat >conftest.$ac_ext <<_ACEOF
39749 cat confdefs.h >>conftest.$ac_ext
39750 cat >>conftest.$ac_ext <<_ACEOF
39751 /* end confdefs.h. */
39755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39756 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39757 ice_cv_have_initgroups_decl=yes
39761 if test "$ice_cv_have_initgroups_decl" = yes; then
39768 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
39769 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
39770 if test "$ice_cv_have_initgroups_decl" = yes; then
39772 cat >>confdefs.h <<_ACEOF
39773 #define HAVE_INITGROUPS_DECL 1
39782 for ac_func in ioctl
39784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39785 echo "$as_me:$LINENO: checking for $ac_func" >&5
39786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39787 if eval "test \"\${$as_ac_var+set}\" = set"; then
39788 echo $ECHO_N "(cached) $ECHO_C" >&6
39790 cat >conftest.$ac_ext <<_ACEOF
39793 cat confdefs.h >>conftest.$ac_ext
39794 cat >>conftest.$ac_ext <<_ACEOF
39795 /* end confdefs.h. */
39796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39798 #define $ac_func innocuous_$ac_func
39800 /* System header to define __stub macros and hopefully few prototypes,
39801 which can conflict with char $ac_func (); below.
39802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39803 <limits.h> exists even on freestanding compilers. */
39806 # include <limits.h>
39808 # include <assert.h>
39813 /* Override any gcc2 internal prototype to avoid an error. */
39818 /* We use char because int might match the return type of a gcc2
39819 builtin and then its argument prototype would still apply. */
39821 /* The GNU C library defines this for functions which it implements
39822 to always fail with ENOSYS. Some functions are actually named
39823 something starting with __ and the normal name is an alias. */
39824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39827 char (*f) () = $ac_func;
39836 return f != $ac_func;
39841 rm -f conftest.$ac_objext conftest$ac_exeext
39842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39843 (eval $ac_link) 2>conftest.er1
39845 grep -v '^ *+' conftest.er1 >conftest.err
39847 cat conftest.err >&5
39848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849 (exit $ac_status); } &&
39850 { ac_try='test -z "$ac_c_werror_flag"
39851 || test ! -s conftest.err'
39852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39853 (eval $ac_try) 2>&5
39855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856 (exit $ac_status); }; } &&
39857 { ac_try='test -s conftest$ac_exeext'
39858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39859 (eval $ac_try) 2>&5
39861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862 (exit $ac_status); }; }; then
39863 eval "$as_ac_var=yes"
39865 echo "$as_me: failed program was:" >&5
39866 sed 's/^/| /' conftest.$ac_ext >&5
39868 eval "$as_ac_var=no"
39870 rm -f conftest.err conftest.$ac_objext \
39871 conftest$ac_exeext conftest.$ac_ext
39873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39875 if test `eval echo '${'$as_ac_var'}'` = yes; then
39876 cat >>confdefs.h <<_ACEOF
39877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39883 if test "${ice_have_ioctl}" = yes; then
39884 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
39885 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
39886 if test "${ice_cv_have_ioctl_decl+set}" = set; then
39887 echo $ECHO_N "(cached) $ECHO_C" >&6
39890 ice_cv_have_ioctl_decl=no
39891 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39892 ice_re_word='(^|[^a-zA-Z0-9_])'
39893 for header in sys/ioctl.h unistd.h libc.h; do
39894 # Check for ordinary declaration
39895 cat >conftest.$ac_ext <<_ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h. */
39904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39905 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
39906 ice_cv_have_ioctl_decl=yes
39910 if test "$ice_cv_have_ioctl_decl" = yes; then
39913 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39914 cat >conftest.$ac_ext <<_ACEOF
39917 cat confdefs.h >>conftest.$ac_ext
39918 cat >>conftest.$ac_ext <<_ACEOF
39919 /* end confdefs.h. */
39923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39924 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39925 ice_cv_have_ioctl_decl=yes
39929 if test "$ice_cv_have_ioctl_decl" = yes; then
39936 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
39937 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
39938 if test "$ice_cv_have_ioctl_decl" = yes; then
39940 cat >>confdefs.h <<_ACEOF
39941 #define HAVE_IOCTL_DECL 1
39950 for ac_func in listen
39952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39953 echo "$as_me:$LINENO: checking for $ac_func" >&5
39954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39955 if eval "test \"\${$as_ac_var+set}\" = set"; then
39956 echo $ECHO_N "(cached) $ECHO_C" >&6
39958 cat >conftest.$ac_ext <<_ACEOF
39961 cat confdefs.h >>conftest.$ac_ext
39962 cat >>conftest.$ac_ext <<_ACEOF
39963 /* end confdefs.h. */
39964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39966 #define $ac_func innocuous_$ac_func
39968 /* System header to define __stub macros and hopefully few prototypes,
39969 which can conflict with char $ac_func (); below.
39970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39971 <limits.h> exists even on freestanding compilers. */
39974 # include <limits.h>
39976 # include <assert.h>
39981 /* Override any gcc2 internal prototype to avoid an error. */
39986 /* We use char because int might match the return type of a gcc2
39987 builtin and then its argument prototype would still apply. */
39989 /* The GNU C library defines this for functions which it implements
39990 to always fail with ENOSYS. Some functions are actually named
39991 something starting with __ and the normal name is an alias. */
39992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39995 char (*f) () = $ac_func;
40004 return f != $ac_func;
40009 rm -f conftest.$ac_objext conftest$ac_exeext
40010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40011 (eval $ac_link) 2>conftest.er1
40013 grep -v '^ *+' conftest.er1 >conftest.err
40015 cat conftest.err >&5
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); } &&
40018 { ac_try='test -z "$ac_c_werror_flag"
40019 || test ! -s conftest.err'
40020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40021 (eval $ac_try) 2>&5
40023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024 (exit $ac_status); }; } &&
40025 { ac_try='test -s conftest$ac_exeext'
40026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40027 (eval $ac_try) 2>&5
40029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40030 (exit $ac_status); }; }; then
40031 eval "$as_ac_var=yes"
40033 echo "$as_me: failed program was:" >&5
40034 sed 's/^/| /' conftest.$ac_ext >&5
40036 eval "$as_ac_var=no"
40038 rm -f conftest.err conftest.$ac_objext \
40039 conftest$ac_exeext conftest.$ac_ext
40041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40043 if test `eval echo '${'$as_ac_var'}'` = yes; then
40044 cat >>confdefs.h <<_ACEOF
40045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40047 ice_have_listen=yes
40051 if test "${ice_have_listen}" = yes; then
40052 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
40053 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40054 if test "${ice_cv_have_listen_decl+set}" = set; then
40055 echo $ECHO_N "(cached) $ECHO_C" >&6
40058 ice_cv_have_listen_decl=no
40059 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40060 ice_re_word='(^|[^a-zA-Z0-9_])'
40061 for header in sys/types.h sys/socket.h; do
40062 # Check for ordinary declaration
40063 cat >conftest.$ac_ext <<_ACEOF
40066 cat confdefs.h >>conftest.$ac_ext
40067 cat >>conftest.$ac_ext <<_ACEOF
40068 /* end confdefs.h. */
40072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40073 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
40074 ice_cv_have_listen_decl=yes
40078 if test "$ice_cv_have_listen_decl" = yes; then
40081 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40082 cat >conftest.$ac_ext <<_ACEOF
40085 cat confdefs.h >>conftest.$ac_ext
40086 cat >>conftest.$ac_ext <<_ACEOF
40087 /* end confdefs.h. */
40091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40092 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40093 ice_cv_have_listen_decl=yes
40097 if test "$ice_cv_have_listen_decl" = yes; then
40104 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
40105 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
40106 if test "$ice_cv_have_listen_decl" = yes; then
40108 cat >>confdefs.h <<_ACEOF
40109 #define HAVE_LISTEN_DECL 1
40118 for ac_func in lstat
40120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40121 echo "$as_me:$LINENO: checking for $ac_func" >&5
40122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40123 if eval "test \"\${$as_ac_var+set}\" = set"; then
40124 echo $ECHO_N "(cached) $ECHO_C" >&6
40126 cat >conftest.$ac_ext <<_ACEOF
40129 cat confdefs.h >>conftest.$ac_ext
40130 cat >>conftest.$ac_ext <<_ACEOF
40131 /* end confdefs.h. */
40132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40134 #define $ac_func innocuous_$ac_func
40136 /* System header to define __stub macros and hopefully few prototypes,
40137 which can conflict with char $ac_func (); below.
40138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40139 <limits.h> exists even on freestanding compilers. */
40142 # include <limits.h>
40144 # include <assert.h>
40149 /* Override any gcc2 internal prototype to avoid an error. */
40154 /* We use char because int might match the return type of a gcc2
40155 builtin and then its argument prototype would still apply. */
40157 /* The GNU C library defines this for functions which it implements
40158 to always fail with ENOSYS. Some functions are actually named
40159 something starting with __ and the normal name is an alias. */
40160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40163 char (*f) () = $ac_func;
40172 return f != $ac_func;
40177 rm -f conftest.$ac_objext conftest$ac_exeext
40178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40179 (eval $ac_link) 2>conftest.er1
40181 grep -v '^ *+' conftest.er1 >conftest.err
40183 cat conftest.err >&5
40184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185 (exit $ac_status); } &&
40186 { ac_try='test -z "$ac_c_werror_flag"
40187 || test ! -s conftest.err'
40188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189 (eval $ac_try) 2>&5
40191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192 (exit $ac_status); }; } &&
40193 { ac_try='test -s conftest$ac_exeext'
40194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40195 (eval $ac_try) 2>&5
40197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198 (exit $ac_status); }; }; then
40199 eval "$as_ac_var=yes"
40201 echo "$as_me: failed program was:" >&5
40202 sed 's/^/| /' conftest.$ac_ext >&5
40204 eval "$as_ac_var=no"
40206 rm -f conftest.err conftest.$ac_objext \
40207 conftest$ac_exeext conftest.$ac_ext
40209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40211 if test `eval echo '${'$as_ac_var'}'` = yes; then
40212 cat >>confdefs.h <<_ACEOF
40213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40219 if test "${ice_have_lstat}" = yes; then
40220 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40221 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
40222 if test "${ice_cv_have_lstat_decl+set}" = set; then
40223 echo $ECHO_N "(cached) $ECHO_C" >&6
40226 ice_cv_have_lstat_decl=no
40227 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40228 ice_re_word='(^|[^a-zA-Z0-9_])'
40229 for header in sys/types.h sys/stat.h; do
40230 # Check for ordinary declaration
40231 cat >conftest.$ac_ext <<_ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h. */
40240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40241 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
40242 ice_cv_have_lstat_decl=yes
40246 if test "$ice_cv_have_lstat_decl" = yes; then
40249 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40250 cat >conftest.$ac_ext <<_ACEOF
40253 cat confdefs.h >>conftest.$ac_ext
40254 cat >>conftest.$ac_ext <<_ACEOF
40255 /* end confdefs.h. */
40259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40260 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40261 ice_cv_have_lstat_decl=yes
40265 if test "$ice_cv_have_lstat_decl" = yes; then
40272 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
40273 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
40274 if test "$ice_cv_have_lstat_decl" = yes; then
40276 cat >>confdefs.h <<_ACEOF
40277 #define HAVE_LSTAT_DECL 1
40286 for ac_func in malloc
40288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40289 echo "$as_me:$LINENO: checking for $ac_func" >&5
40290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40291 if eval "test \"\${$as_ac_var+set}\" = set"; then
40292 echo $ECHO_N "(cached) $ECHO_C" >&6
40294 cat >conftest.$ac_ext <<_ACEOF
40297 cat confdefs.h >>conftest.$ac_ext
40298 cat >>conftest.$ac_ext <<_ACEOF
40299 /* end confdefs.h. */
40300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40302 #define $ac_func innocuous_$ac_func
40304 /* System header to define __stub macros and hopefully few prototypes,
40305 which can conflict with char $ac_func (); below.
40306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40307 <limits.h> exists even on freestanding compilers. */
40310 # include <limits.h>
40312 # include <assert.h>
40317 /* Override any gcc2 internal prototype to avoid an error. */
40322 /* We use char because int might match the return type of a gcc2
40323 builtin and then its argument prototype would still apply. */
40325 /* The GNU C library defines this for functions which it implements
40326 to always fail with ENOSYS. Some functions are actually named
40327 something starting with __ and the normal name is an alias. */
40328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40331 char (*f) () = $ac_func;
40340 return f != $ac_func;
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40347 (eval $ac_link) 2>conftest.er1
40349 grep -v '^ *+' conftest.er1 >conftest.err
40351 cat conftest.err >&5
40352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353 (exit $ac_status); } &&
40354 { ac_try='test -z "$ac_c_werror_flag"
40355 || test ! -s conftest.err'
40356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40357 (eval $ac_try) 2>&5
40359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360 (exit $ac_status); }; } &&
40361 { ac_try='test -s conftest$ac_exeext'
40362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40363 (eval $ac_try) 2>&5
40365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366 (exit $ac_status); }; }; then
40367 eval "$as_ac_var=yes"
40369 echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40372 eval "$as_ac_var=no"
40374 rm -f conftest.err conftest.$ac_objext \
40375 conftest$ac_exeext conftest.$ac_ext
40377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40379 if test `eval echo '${'$as_ac_var'}'` = yes; then
40380 cat >>confdefs.h <<_ACEOF
40381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40383 ice_have_malloc=yes
40387 if test "${ice_have_malloc}" = yes; then
40388 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
40389 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
40390 if test "${ice_cv_have_malloc_decl+set}" = set; then
40391 echo $ECHO_N "(cached) $ECHO_C" >&6
40394 ice_cv_have_malloc_decl=no
40395 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40396 ice_re_word='(^|[^a-zA-Z0-9_])'
40397 for header in stdlib.h; do
40398 # Check for ordinary declaration
40399 cat >conftest.$ac_ext <<_ACEOF
40402 cat confdefs.h >>conftest.$ac_ext
40403 cat >>conftest.$ac_ext <<_ACEOF
40404 /* end confdefs.h. */
40408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40409 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
40410 ice_cv_have_malloc_decl=yes
40414 if test "$ice_cv_have_malloc_decl" = yes; then
40417 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40418 cat >conftest.$ac_ext <<_ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h. */
40427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40428 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40429 ice_cv_have_malloc_decl=yes
40433 if test "$ice_cv_have_malloc_decl" = yes; then
40440 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
40441 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
40442 if test "$ice_cv_have_malloc_decl" = yes; then
40444 cat >>confdefs.h <<_ACEOF
40445 #define HAVE_MALLOC_DECL 1
40452 for ac_func in memmove
40454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40455 echo "$as_me:$LINENO: checking for $ac_func" >&5
40456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40457 if eval "test \"\${$as_ac_var+set}\" = set"; then
40458 echo $ECHO_N "(cached) $ECHO_C" >&6
40460 cat >conftest.$ac_ext <<_ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h. */
40466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40468 #define $ac_func innocuous_$ac_func
40470 /* System header to define __stub macros and hopefully few prototypes,
40471 which can conflict with char $ac_func (); below.
40472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40473 <limits.h> exists even on freestanding compilers. */
40476 # include <limits.h>
40478 # include <assert.h>
40483 /* Override any gcc2 internal prototype to avoid an error. */
40488 /* We use char because int might match the return type of a gcc2
40489 builtin and then its argument prototype would still apply. */
40491 /* The GNU C library defines this for functions which it implements
40492 to always fail with ENOSYS. Some functions are actually named
40493 something starting with __ and the normal name is an alias. */
40494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40497 char (*f) () = $ac_func;
40506 return f != $ac_func;
40511 rm -f conftest.$ac_objext conftest$ac_exeext
40512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40513 (eval $ac_link) 2>conftest.er1
40515 grep -v '^ *+' conftest.er1 >conftest.err
40517 cat conftest.err >&5
40518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40519 (exit $ac_status); } &&
40520 { ac_try='test -z "$ac_c_werror_flag"
40521 || test ! -s conftest.err'
40522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40523 (eval $ac_try) 2>&5
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); }; } &&
40527 { ac_try='test -s conftest$ac_exeext'
40528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40529 (eval $ac_try) 2>&5
40531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532 (exit $ac_status); }; }; then
40533 eval "$as_ac_var=yes"
40535 echo "$as_me: failed program was:" >&5
40536 sed 's/^/| /' conftest.$ac_ext >&5
40538 eval "$as_ac_var=no"
40540 rm -f conftest.err conftest.$ac_objext \
40541 conftest$ac_exeext conftest.$ac_ext
40543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40545 if test `eval echo '${'$as_ac_var'}'` = yes; then
40546 cat >>confdefs.h <<_ACEOF
40547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40552 "$ac_func.$ac_objext" | \
40553 *" $ac_func.$ac_objext" | \
40554 "$ac_func.$ac_objext "* | \
40555 *" $ac_func.$ac_objext "* ) ;;
40556 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40564 ice_have_memmove=no
40566 for ac_func in memmove
40568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40569 echo "$as_me:$LINENO: checking for $ac_func" >&5
40570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40571 if eval "test \"\${$as_ac_var+set}\" = set"; then
40572 echo $ECHO_N "(cached) $ECHO_C" >&6
40574 cat >conftest.$ac_ext <<_ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h. */
40580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40582 #define $ac_func innocuous_$ac_func
40584 /* System header to define __stub macros and hopefully few prototypes,
40585 which can conflict with char $ac_func (); below.
40586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40587 <limits.h> exists even on freestanding compilers. */
40590 # include <limits.h>
40592 # include <assert.h>
40597 /* Override any gcc2 internal prototype to avoid an error. */
40602 /* We use char because int might match the return type of a gcc2
40603 builtin and then its argument prototype would still apply. */
40605 /* The GNU C library defines this for functions which it implements
40606 to always fail with ENOSYS. Some functions are actually named
40607 something starting with __ and the normal name is an alias. */
40608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40611 char (*f) () = $ac_func;
40620 return f != $ac_func;
40625 rm -f conftest.$ac_objext conftest$ac_exeext
40626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40627 (eval $ac_link) 2>conftest.er1
40629 grep -v '^ *+' conftest.er1 >conftest.err
40631 cat conftest.err >&5
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); } &&
40634 { ac_try='test -z "$ac_c_werror_flag"
40635 || test ! -s conftest.err'
40636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40637 (eval $ac_try) 2>&5
40639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640 (exit $ac_status); }; } &&
40641 { ac_try='test -s conftest$ac_exeext'
40642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40643 (eval $ac_try) 2>&5
40645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646 (exit $ac_status); }; }; then
40647 eval "$as_ac_var=yes"
40649 echo "$as_me: failed program was:" >&5
40650 sed 's/^/| /' conftest.$ac_ext >&5
40652 eval "$as_ac_var=no"
40654 rm -f conftest.err conftest.$ac_objext \
40655 conftest$ac_exeext conftest.$ac_ext
40657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40659 if test `eval echo '${'$as_ac_var'}'` = yes; then
40660 cat >>confdefs.h <<_ACEOF
40661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40663 ice_have_memmove=yes
40667 if test "${ice_have_memmove}" = yes; then
40668 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
40669 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
40670 if test "${ice_cv_have_memmove_decl+set}" = set; then
40671 echo $ECHO_N "(cached) $ECHO_C" >&6
40674 ice_cv_have_memmove_decl=no
40675 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40676 ice_re_word='(^|[^a-zA-Z0-9_])'
40677 for header in string.h strings.h; do
40678 # Check for ordinary declaration
40679 cat >conftest.$ac_ext <<_ACEOF
40682 cat confdefs.h >>conftest.$ac_ext
40683 cat >>conftest.$ac_ext <<_ACEOF
40684 /* end confdefs.h. */
40688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40689 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
40690 ice_cv_have_memmove_decl=yes
40694 if test "$ice_cv_have_memmove_decl" = yes; then
40697 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40698 cat >conftest.$ac_ext <<_ACEOF
40701 cat confdefs.h >>conftest.$ac_ext
40702 cat >>conftest.$ac_ext <<_ACEOF
40703 /* end confdefs.h. */
40707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40708 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40709 ice_cv_have_memmove_decl=yes
40713 if test "$ice_cv_have_memmove_decl" = yes; then
40720 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
40721 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
40722 if test "$ice_cv_have_memmove_decl" = yes; then
40724 cat >>confdefs.h <<_ACEOF
40725 #define HAVE_MEMMOVE_DECL 1
40734 for ac_func in memset
40736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40737 echo "$as_me:$LINENO: checking for $ac_func" >&5
40738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40739 if eval "test \"\${$as_ac_var+set}\" = set"; then
40740 echo $ECHO_N "(cached) $ECHO_C" >&6
40742 cat >conftest.$ac_ext <<_ACEOF
40745 cat confdefs.h >>conftest.$ac_ext
40746 cat >>conftest.$ac_ext <<_ACEOF
40747 /* end confdefs.h. */
40748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40750 #define $ac_func innocuous_$ac_func
40752 /* System header to define __stub macros and hopefully few prototypes,
40753 which can conflict with char $ac_func (); below.
40754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40755 <limits.h> exists even on freestanding compilers. */
40758 # include <limits.h>
40760 # include <assert.h>
40765 /* Override any gcc2 internal prototype to avoid an error. */
40770 /* We use char because int might match the return type of a gcc2
40771 builtin and then its argument prototype would still apply. */
40773 /* The GNU C library defines this for functions which it implements
40774 to always fail with ENOSYS. Some functions are actually named
40775 something starting with __ and the normal name is an alias. */
40776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40779 char (*f) () = $ac_func;
40788 return f != $ac_func;
40793 rm -f conftest.$ac_objext conftest$ac_exeext
40794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40795 (eval $ac_link) 2>conftest.er1
40797 grep -v '^ *+' conftest.er1 >conftest.err
40799 cat conftest.err >&5
40800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40801 (exit $ac_status); } &&
40802 { ac_try='test -z "$ac_c_werror_flag"
40803 || test ! -s conftest.err'
40804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40805 (eval $ac_try) 2>&5
40807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40808 (exit $ac_status); }; } &&
40809 { ac_try='test -s conftest$ac_exeext'
40810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40811 (eval $ac_try) 2>&5
40813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40814 (exit $ac_status); }; }; then
40815 eval "$as_ac_var=yes"
40817 echo "$as_me: failed program was:" >&5
40818 sed 's/^/| /' conftest.$ac_ext >&5
40820 eval "$as_ac_var=no"
40822 rm -f conftest.err conftest.$ac_objext \
40823 conftest$ac_exeext conftest.$ac_ext
40825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40827 if test `eval echo '${'$as_ac_var'}'` = yes; then
40828 cat >>confdefs.h <<_ACEOF
40829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40831 ice_have_memset=yes
40835 if test "${ice_have_memset}" = yes; then
40836 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
40837 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
40838 if test "${ice_cv_have_memset_decl+set}" = set; then
40839 echo $ECHO_N "(cached) $ECHO_C" >&6
40842 ice_cv_have_memset_decl=no
40843 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40844 ice_re_word='(^|[^a-zA-Z0-9_])'
40845 for header in string.h strings.h; do
40846 # Check for ordinary declaration
40847 cat >conftest.$ac_ext <<_ACEOF
40850 cat confdefs.h >>conftest.$ac_ext
40851 cat >>conftest.$ac_ext <<_ACEOF
40852 /* end confdefs.h. */
40856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40857 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
40858 ice_cv_have_memset_decl=yes
40862 if test "$ice_cv_have_memset_decl" = yes; then
40865 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40866 cat >conftest.$ac_ext <<_ACEOF
40869 cat confdefs.h >>conftest.$ac_ext
40870 cat >>conftest.$ac_ext <<_ACEOF
40871 /* end confdefs.h. */
40875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40876 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40877 ice_cv_have_memset_decl=yes
40881 if test "$ice_cv_have_memset_decl" = yes; then
40888 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
40889 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
40890 if test "$ice_cv_have_memset_decl" = yes; then
40892 cat >>confdefs.h <<_ACEOF
40893 #define HAVE_MEMSET_DECL 1
40900 for ac_func in mkdir
40902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40903 echo "$as_me:$LINENO: checking for $ac_func" >&5
40904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40905 if eval "test \"\${$as_ac_var+set}\" = set"; then
40906 echo $ECHO_N "(cached) $ECHO_C" >&6
40908 cat >conftest.$ac_ext <<_ACEOF
40911 cat confdefs.h >>conftest.$ac_ext
40912 cat >>conftest.$ac_ext <<_ACEOF
40913 /* end confdefs.h. */
40914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40916 #define $ac_func innocuous_$ac_func
40918 /* System header to define __stub macros and hopefully few prototypes,
40919 which can conflict with char $ac_func (); below.
40920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40921 <limits.h> exists even on freestanding compilers. */
40924 # include <limits.h>
40926 # include <assert.h>
40931 /* Override any gcc2 internal prototype to avoid an error. */
40936 /* We use char because int might match the return type of a gcc2
40937 builtin and then its argument prototype would still apply. */
40939 /* The GNU C library defines this for functions which it implements
40940 to always fail with ENOSYS. Some functions are actually named
40941 something starting with __ and the normal name is an alias. */
40942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40945 char (*f) () = $ac_func;
40954 return f != $ac_func;
40959 rm -f conftest.$ac_objext conftest$ac_exeext
40960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40961 (eval $ac_link) 2>conftest.er1
40963 grep -v '^ *+' conftest.er1 >conftest.err
40965 cat conftest.err >&5
40966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40967 (exit $ac_status); } &&
40968 { ac_try='test -z "$ac_c_werror_flag"
40969 || test ! -s conftest.err'
40970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40971 (eval $ac_try) 2>&5
40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); }; } &&
40975 { ac_try='test -s conftest$ac_exeext'
40976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40977 (eval $ac_try) 2>&5
40979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40980 (exit $ac_status); }; }; then
40981 eval "$as_ac_var=yes"
40983 echo "$as_me: failed program was:" >&5
40984 sed 's/^/| /' conftest.$ac_ext >&5
40986 eval "$as_ac_var=no"
40988 rm -f conftest.err conftest.$ac_objext \
40989 conftest$ac_exeext conftest.$ac_ext
40991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40993 if test `eval echo '${'$as_ac_var'}'` = yes; then
40994 cat >>confdefs.h <<_ACEOF
40995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41002 ice_have_mkstemp=no
41004 for ac_func in mkstemp
41006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41007 echo "$as_me:$LINENO: checking for $ac_func" >&5
41008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41009 if eval "test \"\${$as_ac_var+set}\" = set"; then
41010 echo $ECHO_N "(cached) $ECHO_C" >&6
41012 cat >conftest.$ac_ext <<_ACEOF
41015 cat confdefs.h >>conftest.$ac_ext
41016 cat >>conftest.$ac_ext <<_ACEOF
41017 /* end confdefs.h. */
41018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41020 #define $ac_func innocuous_$ac_func
41022 /* System header to define __stub macros and hopefully few prototypes,
41023 which can conflict with char $ac_func (); below.
41024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41025 <limits.h> exists even on freestanding compilers. */
41028 # include <limits.h>
41030 # include <assert.h>
41035 /* Override any gcc2 internal prototype to avoid an error. */
41040 /* We use char because int might match the return type of a gcc2
41041 builtin and then its argument prototype would still apply. */
41043 /* The GNU C library defines this for functions which it implements
41044 to always fail with ENOSYS. Some functions are actually named
41045 something starting with __ and the normal name is an alias. */
41046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41049 char (*f) () = $ac_func;
41058 return f != $ac_func;
41063 rm -f conftest.$ac_objext conftest$ac_exeext
41064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41065 (eval $ac_link) 2>conftest.er1
41067 grep -v '^ *+' conftest.er1 >conftest.err
41069 cat conftest.err >&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); } &&
41072 { ac_try='test -z "$ac_c_werror_flag"
41073 || test ! -s conftest.err'
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; } &&
41079 { ac_try='test -s conftest$ac_exeext'
41080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081 (eval $ac_try) 2>&5
41083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084 (exit $ac_status); }; }; then
41085 eval "$as_ac_var=yes"
41087 echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41090 eval "$as_ac_var=no"
41092 rm -f conftest.err conftest.$ac_objext \
41093 conftest$ac_exeext conftest.$ac_ext
41095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41097 if test `eval echo '${'$as_ac_var'}'` = yes; then
41098 cat >>confdefs.h <<_ACEOF
41099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41101 ice_have_mkstemp=yes
41105 if test "${ice_have_mkstemp}" = yes; then
41106 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
41107 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
41108 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
41109 echo $ECHO_N "(cached) $ECHO_C" >&6
41112 ice_cv_have_mkstemp_decl=no
41113 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41114 ice_re_word='(^|[^a-zA-Z0-9_])'
41115 for header in stdlib.h; do
41116 # Check for ordinary declaration
41117 cat >conftest.$ac_ext <<_ACEOF
41120 cat confdefs.h >>conftest.$ac_ext
41121 cat >>conftest.$ac_ext <<_ACEOF
41122 /* end confdefs.h. */
41126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41127 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then
41128 ice_cv_have_mkstemp_decl=yes
41132 if test "$ice_cv_have_mkstemp_decl" = yes; then
41135 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41136 cat >conftest.$ac_ext <<_ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h. */
41145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41146 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41147 ice_cv_have_mkstemp_decl=yes
41151 if test "$ice_cv_have_mkstemp_decl" = yes; then
41158 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
41159 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
41160 if test "$ice_cv_have_mkstemp_decl" = yes; then
41162 cat >>confdefs.h <<_ACEOF
41163 #define HAVE_MKSTEMP_DECL 1
41172 for ac_func in mktemp
41174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41175 echo "$as_me:$LINENO: checking for $ac_func" >&5
41176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41177 if eval "test \"\${$as_ac_var+set}\" = set"; then
41178 echo $ECHO_N "(cached) $ECHO_C" >&6
41180 cat >conftest.$ac_ext <<_ACEOF
41183 cat confdefs.h >>conftest.$ac_ext
41184 cat >>conftest.$ac_ext <<_ACEOF
41185 /* end confdefs.h. */
41186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41188 #define $ac_func innocuous_$ac_func
41190 /* System header to define __stub macros and hopefully few prototypes,
41191 which can conflict with char $ac_func (); below.
41192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41193 <limits.h> exists even on freestanding compilers. */
41196 # include <limits.h>
41198 # include <assert.h>
41203 /* Override any gcc2 internal prototype to avoid an error. */
41208 /* We use char because int might match the return type of a gcc2
41209 builtin and then its argument prototype would still apply. */
41211 /* The GNU C library defines this for functions which it implements
41212 to always fail with ENOSYS. Some functions are actually named
41213 something starting with __ and the normal name is an alias. */
41214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41217 char (*f) () = $ac_func;
41226 return f != $ac_func;
41231 rm -f conftest.$ac_objext conftest$ac_exeext
41232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41233 (eval $ac_link) 2>conftest.er1
41235 grep -v '^ *+' conftest.er1 >conftest.err
41237 cat conftest.err >&5
41238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41239 (exit $ac_status); } &&
41240 { ac_try='test -z "$ac_c_werror_flag"
41241 || test ! -s conftest.err'
41242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41243 (eval $ac_try) 2>&5
41245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246 (exit $ac_status); }; } &&
41247 { ac_try='test -s conftest$ac_exeext'
41248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41249 (eval $ac_try) 2>&5
41251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252 (exit $ac_status); }; }; then
41253 eval "$as_ac_var=yes"
41255 echo "$as_me: failed program was:" >&5
41256 sed 's/^/| /' conftest.$ac_ext >&5
41258 eval "$as_ac_var=no"
41260 rm -f conftest.err conftest.$ac_objext \
41261 conftest$ac_exeext conftest.$ac_ext
41263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41265 if test `eval echo '${'$as_ac_var'}'` = yes; then
41266 cat >>confdefs.h <<_ACEOF
41267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41269 ice_have_mktemp=yes
41273 if test "${ice_have_mktemp}" = yes; then
41274 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
41275 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
41276 if test "${ice_cv_have_mktemp_decl+set}" = set; then
41277 echo $ECHO_N "(cached) $ECHO_C" >&6
41280 ice_cv_have_mktemp_decl=no
41281 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41282 ice_re_word='(^|[^a-zA-Z0-9_])'
41283 for header in stdlib.h; do
41284 # Check for ordinary declaration
41285 cat >conftest.$ac_ext <<_ACEOF
41288 cat confdefs.h >>conftest.$ac_ext
41289 cat >>conftest.$ac_ext <<_ACEOF
41290 /* end confdefs.h. */
41294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41295 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
41296 ice_cv_have_mktemp_decl=yes
41300 if test "$ice_cv_have_mktemp_decl" = yes; then
41303 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41304 cat >conftest.$ac_ext <<_ACEOF
41307 cat confdefs.h >>conftest.$ac_ext
41308 cat >>conftest.$ac_ext <<_ACEOF
41309 /* end confdefs.h. */
41313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41314 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41315 ice_cv_have_mktemp_decl=yes
41319 if test "$ice_cv_have_mktemp_decl" = yes; then
41326 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
41327 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
41328 if test "$ice_cv_have_mktemp_decl" = yes; then
41330 cat >>confdefs.h <<_ACEOF
41331 #define HAVE_MKTEMP_DECL 1
41338 for ac_func in mktime
41340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41341 echo "$as_me:$LINENO: checking for $ac_func" >&5
41342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41343 if eval "test \"\${$as_ac_var+set}\" = set"; then
41344 echo $ECHO_N "(cached) $ECHO_C" >&6
41346 cat >conftest.$ac_ext <<_ACEOF
41349 cat confdefs.h >>conftest.$ac_ext
41350 cat >>conftest.$ac_ext <<_ACEOF
41351 /* end confdefs.h. */
41352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41354 #define $ac_func innocuous_$ac_func
41356 /* System header to define __stub macros and hopefully few prototypes,
41357 which can conflict with char $ac_func (); below.
41358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41359 <limits.h> exists even on freestanding compilers. */
41362 # include <limits.h>
41364 # include <assert.h>
41369 /* Override any gcc2 internal prototype to avoid an error. */
41374 /* We use char because int might match the return type of a gcc2
41375 builtin and then its argument prototype would still apply. */
41377 /* The GNU C library defines this for functions which it implements
41378 to always fail with ENOSYS. Some functions are actually named
41379 something starting with __ and the normal name is an alias. */
41380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41383 char (*f) () = $ac_func;
41392 return f != $ac_func;
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41399 (eval $ac_link) 2>conftest.er1
41401 grep -v '^ *+' conftest.er1 >conftest.err
41403 cat conftest.err >&5
41404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405 (exit $ac_status); } &&
41406 { ac_try='test -z "$ac_c_werror_flag"
41407 || test ! -s conftest.err'
41408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41409 (eval $ac_try) 2>&5
41411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41412 (exit $ac_status); }; } &&
41413 { ac_try='test -s conftest$ac_exeext'
41414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41415 (eval $ac_try) 2>&5
41417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418 (exit $ac_status); }; }; then
41419 eval "$as_ac_var=yes"
41421 echo "$as_me: failed program was:" >&5
41422 sed 's/^/| /' conftest.$ac_ext >&5
41424 eval "$as_ac_var=no"
41426 rm -f conftest.err conftest.$ac_objext \
41427 conftest$ac_exeext conftest.$ac_ext
41429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41431 if test `eval echo '${'$as_ac_var'}'` = yes; then
41432 cat >>confdefs.h <<_ACEOF
41433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41438 "$ac_func.$ac_objext" | \
41439 *" $ac_func.$ac_objext" | \
41440 "$ac_func.$ac_objext "* | \
41441 *" $ac_func.$ac_objext "* ) ;;
41442 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41452 for ac_func in mktime
41454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41455 echo "$as_me:$LINENO: checking for $ac_func" >&5
41456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41457 if eval "test \"\${$as_ac_var+set}\" = set"; then
41458 echo $ECHO_N "(cached) $ECHO_C" >&6
41460 cat >conftest.$ac_ext <<_ACEOF
41463 cat confdefs.h >>conftest.$ac_ext
41464 cat >>conftest.$ac_ext <<_ACEOF
41465 /* end confdefs.h. */
41466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41468 #define $ac_func innocuous_$ac_func
41470 /* System header to define __stub macros and hopefully few prototypes,
41471 which can conflict with char $ac_func (); below.
41472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41473 <limits.h> exists even on freestanding compilers. */
41476 # include <limits.h>
41478 # include <assert.h>
41483 /* Override any gcc2 internal prototype to avoid an error. */
41488 /* We use char because int might match the return type of a gcc2
41489 builtin and then its argument prototype would still apply. */
41491 /* The GNU C library defines this for functions which it implements
41492 to always fail with ENOSYS. Some functions are actually named
41493 something starting with __ and the normal name is an alias. */
41494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41497 char (*f) () = $ac_func;
41506 return f != $ac_func;
41511 rm -f conftest.$ac_objext conftest$ac_exeext
41512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41513 (eval $ac_link) 2>conftest.er1
41515 grep -v '^ *+' conftest.er1 >conftest.err
41517 cat conftest.err >&5
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); } &&
41520 { ac_try='test -z "$ac_c_werror_flag"
41521 || test ! -s conftest.err'
41522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41523 (eval $ac_try) 2>&5
41525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526 (exit $ac_status); }; } &&
41527 { ac_try='test -s conftest$ac_exeext'
41528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41529 (eval $ac_try) 2>&5
41531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532 (exit $ac_status); }; }; then
41533 eval "$as_ac_var=yes"
41535 echo "$as_me: failed program was:" >&5
41536 sed 's/^/| /' conftest.$ac_ext >&5
41538 eval "$as_ac_var=no"
41540 rm -f conftest.err conftest.$ac_objext \
41541 conftest$ac_exeext conftest.$ac_ext
41543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41545 if test `eval echo '${'$as_ac_var'}'` = yes; then
41546 cat >>confdefs.h <<_ACEOF
41547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41549 ice_have_mktime=yes
41553 if test "${ice_have_mktime}" = yes; then
41554 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
41555 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
41556 if test "${ice_cv_have_mktime_decl+set}" = set; then
41557 echo $ECHO_N "(cached) $ECHO_C" >&6
41560 ice_cv_have_mktime_decl=no
41561 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41562 ice_re_word='(^|[^a-zA-Z0-9_])'
41563 for header in time.h sys/time.h; do
41564 # Check for ordinary declaration
41565 cat >conftest.$ac_ext <<_ACEOF
41568 cat confdefs.h >>conftest.$ac_ext
41569 cat >>conftest.$ac_ext <<_ACEOF
41570 /* end confdefs.h. */
41574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41575 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
41576 ice_cv_have_mktime_decl=yes
41580 if test "$ice_cv_have_mktime_decl" = yes; then
41583 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41584 cat >conftest.$ac_ext <<_ACEOF
41587 cat confdefs.h >>conftest.$ac_ext
41588 cat >>conftest.$ac_ext <<_ACEOF
41589 /* end confdefs.h. */
41593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41594 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41595 ice_cv_have_mktime_decl=yes
41599 if test "$ice_cv_have_mktime_decl" = yes; then
41606 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
41607 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
41608 if test "$ice_cv_have_mktime_decl" = yes; then
41610 cat >>confdefs.h <<_ACEOF
41611 #define HAVE_MKTIME_DECL 1
41619 for ac_header in stdlib.h unistd.h
41621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41623 echo "$as_me:$LINENO: checking for $ac_header" >&5
41624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41626 echo $ECHO_N "(cached) $ECHO_C" >&6
41628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41631 # Is the header compilable?
41632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41634 cat >conftest.$ac_ext <<_ACEOF
41637 cat confdefs.h >>conftest.$ac_ext
41638 cat >>conftest.$ac_ext <<_ACEOF
41639 /* end confdefs.h. */
41640 $ac_includes_default
41641 #include <$ac_header>
41643 rm -f conftest.$ac_objext
41644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41645 (eval $ac_compile) 2>conftest.er1
41647 grep -v '^ *+' conftest.er1 >conftest.err
41649 cat conftest.err >&5
41650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651 (exit $ac_status); } &&
41652 { ac_try='test -z "$ac_c_werror_flag"
41653 || test ! -s conftest.err'
41654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41655 (eval $ac_try) 2>&5
41657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658 (exit $ac_status); }; } &&
41659 { ac_try='test -s conftest.$ac_objext'
41660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41661 (eval $ac_try) 2>&5
41663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664 (exit $ac_status); }; }; then
41665 ac_header_compiler=yes
41667 echo "$as_me: failed program was:" >&5
41668 sed 's/^/| /' conftest.$ac_ext >&5
41670 ac_header_compiler=no
41672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41674 echo "${ECHO_T}$ac_header_compiler" >&6
41676 # Is the header present?
41677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41679 cat >conftest.$ac_ext <<_ACEOF
41682 cat confdefs.h >>conftest.$ac_ext
41683 cat >>conftest.$ac_ext <<_ACEOF
41684 /* end confdefs.h. */
41685 #include <$ac_header>
41687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41690 grep -v '^ *+' conftest.er1 >conftest.err
41692 cat conftest.err >&5
41693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694 (exit $ac_status); } >/dev/null; then
41695 if test -s conftest.err; then
41696 ac_cpp_err=$ac_c_preproc_warn_flag
41697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41704 if test -z "$ac_cpp_err"; then
41705 ac_header_preproc=yes
41707 echo "$as_me: failed program was:" >&5
41708 sed 's/^/| /' conftest.$ac_ext >&5
41710 ac_header_preproc=no
41712 rm -f conftest.err conftest.$ac_ext
41713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41714 echo "${ECHO_T}$ac_header_preproc" >&6
41716 # So? What about this header?
41717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41723 ac_header_preproc=yes
41726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41740 ## ------------------------------------------ ##
41741 ## Report this to the AC_PACKAGE_NAME lists. ##
41742 ## ------------------------------------------ ##
41745 sed "s/^/$as_me: WARNING: /" >&2
41748 echo "$as_me:$LINENO: checking for $ac_header" >&5
41749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41751 echo $ECHO_N "(cached) $ECHO_C" >&6
41753 eval "$as_ac_Header=\$ac_header_preproc"
41755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41760 cat >>confdefs.h <<_ACEOF
41761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41769 for ac_func in getpagesize
41771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41772 echo "$as_me:$LINENO: checking for $ac_func" >&5
41773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41774 if eval "test \"\${$as_ac_var+set}\" = set"; then
41775 echo $ECHO_N "(cached) $ECHO_C" >&6
41777 cat >conftest.$ac_ext <<_ACEOF
41780 cat confdefs.h >>conftest.$ac_ext
41781 cat >>conftest.$ac_ext <<_ACEOF
41782 /* end confdefs.h. */
41783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41785 #define $ac_func innocuous_$ac_func
41787 /* System header to define __stub macros and hopefully few prototypes,
41788 which can conflict with char $ac_func (); below.
41789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41790 <limits.h> exists even on freestanding compilers. */
41793 # include <limits.h>
41795 # include <assert.h>
41800 /* Override any gcc2 internal prototype to avoid an error. */
41805 /* We use char because int might match the return type of a gcc2
41806 builtin and then its argument prototype would still apply. */
41808 /* The GNU C library defines this for functions which it implements
41809 to always fail with ENOSYS. Some functions are actually named
41810 something starting with __ and the normal name is an alias. */
41811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41814 char (*f) () = $ac_func;
41823 return f != $ac_func;
41828 rm -f conftest.$ac_objext conftest$ac_exeext
41829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41830 (eval $ac_link) 2>conftest.er1
41832 grep -v '^ *+' conftest.er1 >conftest.err
41834 cat conftest.err >&5
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); } &&
41837 { ac_try='test -z "$ac_c_werror_flag"
41838 || test ! -s conftest.err'
41839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41840 (eval $ac_try) 2>&5
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); }; } &&
41844 { ac_try='test -s conftest$ac_exeext'
41845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846 (eval $ac_try) 2>&5
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); }; }; then
41850 eval "$as_ac_var=yes"
41852 echo "$as_me: failed program was:" >&5
41853 sed 's/^/| /' conftest.$ac_ext >&5
41855 eval "$as_ac_var=no"
41857 rm -f conftest.err conftest.$ac_objext \
41858 conftest$ac_exeext conftest.$ac_ext
41860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41862 if test `eval echo '${'$as_ac_var'}'` = yes; then
41863 cat >>confdefs.h <<_ACEOF
41864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41870 echo "$as_me:$LINENO: checking for working mmap" >&5
41871 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
41872 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
41873 echo $ECHO_N "(cached) $ECHO_C" >&6
41875 if test "$cross_compiling" = yes; then
41876 ac_cv_func_mmap_fixed_mapped=no
41878 cat >conftest.$ac_ext <<_ACEOF
41881 cat confdefs.h >>conftest.$ac_ext
41882 cat >>conftest.$ac_ext <<_ACEOF
41883 /* end confdefs.h. */
41884 $ac_includes_default
41885 /* malloc might have been renamed as rpl_malloc. */
41888 /* Thanks to Mike Haertel and Jim Avera for this test.
41889 Here is a matrix of mmap possibilities:
41890 mmap private not fixed
41891 mmap private fixed at somewhere currently unmapped
41892 mmap private fixed at somewhere already mapped
41893 mmap shared not fixed
41894 mmap shared fixed at somewhere currently unmapped
41895 mmap shared fixed at somewhere already mapped
41896 For private mappings, we should verify that changes cannot be read()
41897 back from the file, nor mmap's back from the file at a different
41898 address. (There have been systems where private was not correctly
41899 implemented like the infamous i386 svr4.0, and systems where the
41900 VM page cache was not coherent with the file system buffer cache
41901 like early versions of FreeBSD and possibly contemporary NetBSD.)
41902 For shared mappings, we should conversely verify that changes get
41903 propagated back to all the places they're supposed to be.
41905 Grep wants private fixed already mapped.
41906 The main things grep needs to know about mmap are:
41907 * does it exist and is it safe to write into the mmap'd area
41908 * how to use it (BSD variants) */
41911 #include <sys/mman.h>
41913 #if !STDC_HEADERS && !HAVE_STDLIB_H
41917 /* This mess was copied from the GNU getpagesize.h. */
41918 #if !HAVE_GETPAGESIZE
41919 /* Assume that all systems that can run configure have sys/param.h. */
41920 # if !HAVE_SYS_PARAM_H
41921 # define HAVE_SYS_PARAM_H 1
41924 # ifdef _SC_PAGESIZE
41925 # define getpagesize() sysconf(_SC_PAGESIZE)
41926 # else /* no _SC_PAGESIZE */
41927 # if HAVE_SYS_PARAM_H
41928 # include <sys/param.h>
41929 # ifdef EXEC_PAGESIZE
41930 # define getpagesize() EXEC_PAGESIZE
41931 # else /* no EXEC_PAGESIZE */
41933 # define getpagesize() NBPG * CLSIZE
41936 # endif /* no CLSIZE */
41937 # else /* no NBPG */
41939 # define getpagesize() NBPC
41940 # else /* no NBPC */
41942 # define getpagesize() PAGESIZE
41943 # endif /* PAGESIZE */
41944 # endif /* no NBPC */
41945 # endif /* no NBPG */
41946 # endif /* no EXEC_PAGESIZE */
41947 # else /* no HAVE_SYS_PARAM_H */
41948 # define getpagesize() 8192 /* punt totally */
41949 # endif /* no HAVE_SYS_PARAM_H */
41950 # endif /* no _SC_PAGESIZE */
41952 #endif /* no HAVE_GETPAGESIZE */
41957 char *data, *data2, *data3;
41961 pagesize = getpagesize ();
41963 /* First, make a file with some known garbage in it. */
41964 data = (char *) malloc (pagesize);
41967 for (i = 0; i < pagesize; ++i)
41968 *(data + i) = rand ();
41970 fd = creat ("conftest.mmap", 0600);
41973 if (write (fd, data, pagesize) != pagesize)
41977 /* Next, try to mmap the file at a fixed address which already has
41978 something else allocated at it. If we can, also make sure that
41979 we see the same garbage. */
41980 fd = open ("conftest.mmap", O_RDWR);
41983 data2 = (char *) malloc (2 * pagesize);
41986 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
41987 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
41988 MAP_PRIVATE | MAP_FIXED, fd, 0L))
41990 for (i = 0; i < pagesize; ++i)
41991 if (*(data + i) != *(data2 + i))
41994 /* Finally, make sure that changes to the mapped area do not
41995 percolate back to the file as seen by read(). (This is a bug on
41996 some variants of i386 svr4.0.) */
41997 for (i = 0; i < pagesize; ++i)
41998 *(data2 + i) = *(data2 + i) + 1;
41999 data3 = (char *) malloc (pagesize);
42002 if (read (fd, data3, pagesize) != pagesize)
42004 for (i = 0; i < pagesize; ++i)
42005 if (*(data + i) != *(data3 + i))
42011 rm -f conftest$ac_exeext
42012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42013 (eval $ac_link) 2>&5
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42018 (eval $ac_try) 2>&5
42020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021 (exit $ac_status); }; }; then
42022 ac_cv_func_mmap_fixed_mapped=yes
42024 echo "$as_me: program exited with status $ac_status" >&5
42025 echo "$as_me: failed program was:" >&5
42026 sed 's/^/| /' conftest.$ac_ext >&5
42028 ( exit $ac_status )
42029 ac_cv_func_mmap_fixed_mapped=no
42031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42034 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
42035 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
42036 if test $ac_cv_func_mmap_fixed_mapped = yes; then
42038 cat >>confdefs.h <<\_ACEOF
42039 #define HAVE_MMAP 1
42043 rm -f conftest.mmap
42046 for ac_func in on_exit
42048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42049 echo "$as_me:$LINENO: checking for $ac_func" >&5
42050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42051 if eval "test \"\${$as_ac_var+set}\" = set"; then
42052 echo $ECHO_N "(cached) $ECHO_C" >&6
42054 cat >conftest.$ac_ext <<_ACEOF
42057 cat confdefs.h >>conftest.$ac_ext
42058 cat >>conftest.$ac_ext <<_ACEOF
42059 /* end confdefs.h. */
42060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42062 #define $ac_func innocuous_$ac_func
42064 /* System header to define __stub macros and hopefully few prototypes,
42065 which can conflict with char $ac_func (); below.
42066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42067 <limits.h> exists even on freestanding compilers. */
42070 # include <limits.h>
42072 # include <assert.h>
42077 /* Override any gcc2 internal prototype to avoid an error. */
42082 /* We use char because int might match the return type of a gcc2
42083 builtin and then its argument prototype would still apply. */
42085 /* The GNU C library defines this for functions which it implements
42086 to always fail with ENOSYS. Some functions are actually named
42087 something starting with __ and the normal name is an alias. */
42088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42091 char (*f) () = $ac_func;
42100 return f != $ac_func;
42105 rm -f conftest.$ac_objext conftest$ac_exeext
42106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42107 (eval $ac_link) 2>conftest.er1
42109 grep -v '^ *+' conftest.er1 >conftest.err
42111 cat conftest.err >&5
42112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113 (exit $ac_status); } &&
42114 { ac_try='test -z "$ac_c_werror_flag"
42115 || test ! -s conftest.err'
42116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42117 (eval $ac_try) 2>&5
42119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120 (exit $ac_status); }; } &&
42121 { ac_try='test -s conftest$ac_exeext'
42122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42123 (eval $ac_try) 2>&5
42125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126 (exit $ac_status); }; }; then
42127 eval "$as_ac_var=yes"
42129 echo "$as_me: failed program was:" >&5
42130 sed 's/^/| /' conftest.$ac_ext >&5
42132 eval "$as_ac_var=no"
42134 rm -f conftest.err conftest.$ac_objext \
42135 conftest$ac_exeext conftest.$ac_ext
42137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42139 if test `eval echo '${'$as_ac_var'}'` = yes; then
42140 cat >>confdefs.h <<_ACEOF
42141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42148 ice_have_openlog=no
42150 for ac_func in openlog
42152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42153 echo "$as_me:$LINENO: checking for $ac_func" >&5
42154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42155 if eval "test \"\${$as_ac_var+set}\" = set"; then
42156 echo $ECHO_N "(cached) $ECHO_C" >&6
42158 cat >conftest.$ac_ext <<_ACEOF
42161 cat confdefs.h >>conftest.$ac_ext
42162 cat >>conftest.$ac_ext <<_ACEOF
42163 /* end confdefs.h. */
42164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42166 #define $ac_func innocuous_$ac_func
42168 /* System header to define __stub macros and hopefully few prototypes,
42169 which can conflict with char $ac_func (); below.
42170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42171 <limits.h> exists even on freestanding compilers. */
42174 # include <limits.h>
42176 # include <assert.h>
42181 /* Override any gcc2 internal prototype to avoid an error. */
42186 /* We use char because int might match the return type of a gcc2
42187 builtin and then its argument prototype would still apply. */
42189 /* The GNU C library defines this for functions which it implements
42190 to always fail with ENOSYS. Some functions are actually named
42191 something starting with __ and the normal name is an alias. */
42192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42195 char (*f) () = $ac_func;
42204 return f != $ac_func;
42209 rm -f conftest.$ac_objext conftest$ac_exeext
42210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42211 (eval $ac_link) 2>conftest.er1
42213 grep -v '^ *+' conftest.er1 >conftest.err
42215 cat conftest.err >&5
42216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217 (exit $ac_status); } &&
42218 { ac_try='test -z "$ac_c_werror_flag"
42219 || test ! -s conftest.err'
42220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42221 (eval $ac_try) 2>&5
42223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42224 (exit $ac_status); }; } &&
42225 { ac_try='test -s conftest$ac_exeext'
42226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42227 (eval $ac_try) 2>&5
42229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42230 (exit $ac_status); }; }; then
42231 eval "$as_ac_var=yes"
42233 echo "$as_me: failed program was:" >&5
42234 sed 's/^/| /' conftest.$ac_ext >&5
42236 eval "$as_ac_var=no"
42238 rm -f conftest.err conftest.$ac_objext \
42239 conftest$ac_exeext conftest.$ac_ext
42241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42243 if test `eval echo '${'$as_ac_var'}'` = yes; then
42244 cat >>confdefs.h <<_ACEOF
42245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42247 ice_have_openlog=yes
42251 if test "${ice_have_openlog}" = yes; then
42252 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
42253 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
42254 if test "${ice_cv_have_openlog_decl+set}" = set; then
42255 echo $ECHO_N "(cached) $ECHO_C" >&6
42258 ice_cv_have_openlog_decl=no
42259 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42260 ice_re_word='(^|[^a-zA-Z0-9_])'
42261 for header in syslog.h; do
42262 # Check for ordinary declaration
42263 cat >conftest.$ac_ext <<_ACEOF
42266 cat confdefs.h >>conftest.$ac_ext
42267 cat >>conftest.$ac_ext <<_ACEOF
42268 /* end confdefs.h. */
42272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42273 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
42274 ice_cv_have_openlog_decl=yes
42278 if test "$ice_cv_have_openlog_decl" = yes; then
42281 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42282 cat >conftest.$ac_ext <<_ACEOF
42285 cat confdefs.h >>conftest.$ac_ext
42286 cat >>conftest.$ac_ext <<_ACEOF
42287 /* end confdefs.h. */
42291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42292 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42293 ice_cv_have_openlog_decl=yes
42297 if test "$ice_cv_have_openlog_decl" = yes; then
42304 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
42305 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
42306 if test "$ice_cv_have_openlog_decl" = yes; then
42308 cat >>confdefs.h <<_ACEOF
42309 #define HAVE_OPENLOG_DECL 1
42318 for ac_func in pclose
42320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42321 echo "$as_me:$LINENO: checking for $ac_func" >&5
42322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42323 if eval "test \"\${$as_ac_var+set}\" = set"; then
42324 echo $ECHO_N "(cached) $ECHO_C" >&6
42326 cat >conftest.$ac_ext <<_ACEOF
42329 cat confdefs.h >>conftest.$ac_ext
42330 cat >>conftest.$ac_ext <<_ACEOF
42331 /* end confdefs.h. */
42332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42334 #define $ac_func innocuous_$ac_func
42336 /* System header to define __stub macros and hopefully few prototypes,
42337 which can conflict with char $ac_func (); below.
42338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42339 <limits.h> exists even on freestanding compilers. */
42342 # include <limits.h>
42344 # include <assert.h>
42349 /* Override any gcc2 internal prototype to avoid an error. */
42354 /* We use char because int might match the return type of a gcc2
42355 builtin and then its argument prototype would still apply. */
42357 /* The GNU C library defines this for functions which it implements
42358 to always fail with ENOSYS. Some functions are actually named
42359 something starting with __ and the normal name is an alias. */
42360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42363 char (*f) () = $ac_func;
42372 return f != $ac_func;
42377 rm -f conftest.$ac_objext conftest$ac_exeext
42378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42379 (eval $ac_link) 2>conftest.er1
42381 grep -v '^ *+' conftest.er1 >conftest.err
42383 cat conftest.err >&5
42384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42385 (exit $ac_status); } &&
42386 { ac_try='test -z "$ac_c_werror_flag"
42387 || test ! -s conftest.err'
42388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42389 (eval $ac_try) 2>&5
42391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392 (exit $ac_status); }; } &&
42393 { ac_try='test -s conftest$ac_exeext'
42394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395 (eval $ac_try) 2>&5
42397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); }; }; then
42399 eval "$as_ac_var=yes"
42401 echo "$as_me: failed program was:" >&5
42402 sed 's/^/| /' conftest.$ac_ext >&5
42404 eval "$as_ac_var=no"
42406 rm -f conftest.err conftest.$ac_objext \
42407 conftest$ac_exeext conftest.$ac_ext
42409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42411 if test `eval echo '${'$as_ac_var'}'` = yes; then
42412 cat >>confdefs.h <<_ACEOF
42413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42415 ice_have_pclose=yes
42419 if test "${ice_have_pclose}" = yes; then
42420 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
42421 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
42422 if test "${ice_cv_have_pclose_decl+set}" = set; then
42423 echo $ECHO_N "(cached) $ECHO_C" >&6
42426 ice_cv_have_pclose_decl=no
42427 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42428 ice_re_word='(^|[^a-zA-Z0-9_])'
42429 for header in stdio.h; do
42430 # Check for ordinary declaration
42431 cat >conftest.$ac_ext <<_ACEOF
42434 cat confdefs.h >>conftest.$ac_ext
42435 cat >>conftest.$ac_ext <<_ACEOF
42436 /* end confdefs.h. */
42440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42441 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
42442 ice_cv_have_pclose_decl=yes
42446 if test "$ice_cv_have_pclose_decl" = yes; then
42449 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42450 cat >conftest.$ac_ext <<_ACEOF
42453 cat confdefs.h >>conftest.$ac_ext
42454 cat >>conftest.$ac_ext <<_ACEOF
42455 /* end confdefs.h. */
42459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42460 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42461 ice_cv_have_pclose_decl=yes
42465 if test "$ice_cv_have_pclose_decl" = yes; then
42472 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
42473 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
42474 if test "$ice_cv_have_pclose_decl" = yes; then
42476 cat >>confdefs.h <<_ACEOF
42477 #define HAVE_PCLOSE_DECL 1
42486 for ac_func in perror
42488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42489 echo "$as_me:$LINENO: checking for $ac_func" >&5
42490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42491 if eval "test \"\${$as_ac_var+set}\" = set"; then
42492 echo $ECHO_N "(cached) $ECHO_C" >&6
42494 cat >conftest.$ac_ext <<_ACEOF
42497 cat confdefs.h >>conftest.$ac_ext
42498 cat >>conftest.$ac_ext <<_ACEOF
42499 /* end confdefs.h. */
42500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42502 #define $ac_func innocuous_$ac_func
42504 /* System header to define __stub macros and hopefully few prototypes,
42505 which can conflict with char $ac_func (); below.
42506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42507 <limits.h> exists even on freestanding compilers. */
42510 # include <limits.h>
42512 # include <assert.h>
42517 /* Override any gcc2 internal prototype to avoid an error. */
42522 /* We use char because int might match the return type of a gcc2
42523 builtin and then its argument prototype would still apply. */
42525 /* The GNU C library defines this for functions which it implements
42526 to always fail with ENOSYS. Some functions are actually named
42527 something starting with __ and the normal name is an alias. */
42528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42531 char (*f) () = $ac_func;
42540 return f != $ac_func;
42545 rm -f conftest.$ac_objext conftest$ac_exeext
42546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42547 (eval $ac_link) 2>conftest.er1
42549 grep -v '^ *+' conftest.er1 >conftest.err
42551 cat conftest.err >&5
42552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42553 (exit $ac_status); } &&
42554 { ac_try='test -z "$ac_c_werror_flag"
42555 || test ! -s conftest.err'
42556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42557 (eval $ac_try) 2>&5
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); }; } &&
42561 { ac_try='test -s conftest$ac_exeext'
42562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42563 (eval $ac_try) 2>&5
42565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42566 (exit $ac_status); }; }; then
42567 eval "$as_ac_var=yes"
42569 echo "$as_me: failed program was:" >&5
42570 sed 's/^/| /' conftest.$ac_ext >&5
42572 eval "$as_ac_var=no"
42574 rm -f conftest.err conftest.$ac_objext \
42575 conftest$ac_exeext conftest.$ac_ext
42577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42579 if test `eval echo '${'$as_ac_var'}'` = yes; then
42580 cat >>confdefs.h <<_ACEOF
42581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42583 ice_have_perror=yes
42587 if test "${ice_have_perror}" = yes; then
42588 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
42589 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
42590 if test "${ice_cv_have_perror_decl+set}" = set; then
42591 echo $ECHO_N "(cached) $ECHO_C" >&6
42594 ice_cv_have_perror_decl=no
42595 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42596 ice_re_word='(^|[^a-zA-Z0-9_])'
42597 for header in stdio.h; do
42598 # Check for ordinary declaration
42599 cat >conftest.$ac_ext <<_ACEOF
42602 cat confdefs.h >>conftest.$ac_ext
42603 cat >>conftest.$ac_ext <<_ACEOF
42604 /* end confdefs.h. */
42608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42609 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
42610 ice_cv_have_perror_decl=yes
42614 if test "$ice_cv_have_perror_decl" = yes; then
42617 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42618 cat >conftest.$ac_ext <<_ACEOF
42621 cat confdefs.h >>conftest.$ac_ext
42622 cat >>conftest.$ac_ext <<_ACEOF
42623 /* end confdefs.h. */
42627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42628 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42629 ice_cv_have_perror_decl=yes
42633 if test "$ice_cv_have_perror_decl" = yes; then
42640 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
42641 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
42642 if test "$ice_cv_have_perror_decl" = yes; then
42644 cat >>confdefs.h <<_ACEOF
42645 #define HAVE_PERROR_DECL 1
42654 for ac_func in printf
42656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42657 echo "$as_me:$LINENO: checking for $ac_func" >&5
42658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42659 if eval "test \"\${$as_ac_var+set}\" = set"; then
42660 echo $ECHO_N "(cached) $ECHO_C" >&6
42662 cat >conftest.$ac_ext <<_ACEOF
42665 cat confdefs.h >>conftest.$ac_ext
42666 cat >>conftest.$ac_ext <<_ACEOF
42667 /* end confdefs.h. */
42668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42670 #define $ac_func innocuous_$ac_func
42672 /* System header to define __stub macros and hopefully few prototypes,
42673 which can conflict with char $ac_func (); below.
42674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42675 <limits.h> exists even on freestanding compilers. */
42678 # include <limits.h>
42680 # include <assert.h>
42685 /* Override any gcc2 internal prototype to avoid an error. */
42690 /* We use char because int might match the return type of a gcc2
42691 builtin and then its argument prototype would still apply. */
42693 /* The GNU C library defines this for functions which it implements
42694 to always fail with ENOSYS. Some functions are actually named
42695 something starting with __ and the normal name is an alias. */
42696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42699 char (*f) () = $ac_func;
42708 return f != $ac_func;
42713 rm -f conftest.$ac_objext conftest$ac_exeext
42714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42715 (eval $ac_link) 2>conftest.er1
42717 grep -v '^ *+' conftest.er1 >conftest.err
42719 cat conftest.err >&5
42720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42721 (exit $ac_status); } &&
42722 { ac_try='test -z "$ac_c_werror_flag"
42723 || test ! -s conftest.err'
42724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42725 (eval $ac_try) 2>&5
42727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42728 (exit $ac_status); }; } &&
42729 { ac_try='test -s conftest$ac_exeext'
42730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42731 (eval $ac_try) 2>&5
42733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734 (exit $ac_status); }; }; then
42735 eval "$as_ac_var=yes"
42737 echo "$as_me: failed program was:" >&5
42738 sed 's/^/| /' conftest.$ac_ext >&5
42740 eval "$as_ac_var=no"
42742 rm -f conftest.err conftest.$ac_objext \
42743 conftest$ac_exeext conftest.$ac_ext
42745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42747 if test `eval echo '${'$as_ac_var'}'` = yes; then
42748 cat >>confdefs.h <<_ACEOF
42749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42751 ice_have_printf=yes
42755 if test "${ice_have_printf}" = yes; then
42756 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
42757 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
42758 if test "${ice_cv_have_printf_decl+set}" = set; then
42759 echo $ECHO_N "(cached) $ECHO_C" >&6
42762 ice_cv_have_printf_decl=no
42763 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42764 ice_re_word='(^|[^a-zA-Z0-9_])'
42765 for header in stdio.h; do
42766 # Check for ordinary declaration
42767 cat >conftest.$ac_ext <<_ACEOF
42770 cat confdefs.h >>conftest.$ac_ext
42771 cat >>conftest.$ac_ext <<_ACEOF
42772 /* end confdefs.h. */
42776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42777 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
42778 ice_cv_have_printf_decl=yes
42782 if test "$ice_cv_have_printf_decl" = yes; then
42785 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42786 cat >conftest.$ac_ext <<_ACEOF
42789 cat confdefs.h >>conftest.$ac_ext
42790 cat >>conftest.$ac_ext <<_ACEOF
42791 /* end confdefs.h. */
42795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42796 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42797 ice_cv_have_printf_decl=yes
42801 if test "$ice_cv_have_printf_decl" = yes; then
42808 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
42809 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
42810 if test "$ice_cv_have_printf_decl" = yes; then
42812 cat >>confdefs.h <<_ACEOF
42813 #define HAVE_PRINTF_DECL 1
42820 for ac_func in putenv
42822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42823 echo "$as_me:$LINENO: checking for $ac_func" >&5
42824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42825 if eval "test \"\${$as_ac_var+set}\" = set"; then
42826 echo $ECHO_N "(cached) $ECHO_C" >&6
42828 cat >conftest.$ac_ext <<_ACEOF
42831 cat confdefs.h >>conftest.$ac_ext
42832 cat >>conftest.$ac_ext <<_ACEOF
42833 /* end confdefs.h. */
42834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42836 #define $ac_func innocuous_$ac_func
42838 /* System header to define __stub macros and hopefully few prototypes,
42839 which can conflict with char $ac_func (); below.
42840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42841 <limits.h> exists even on freestanding compilers. */
42844 # include <limits.h>
42846 # include <assert.h>
42851 /* Override any gcc2 internal prototype to avoid an error. */
42856 /* We use char because int might match the return type of a gcc2
42857 builtin and then its argument prototype would still apply. */
42859 /* The GNU C library defines this for functions which it implements
42860 to always fail with ENOSYS. Some functions are actually named
42861 something starting with __ and the normal name is an alias. */
42862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42865 char (*f) () = $ac_func;
42874 return f != $ac_func;
42879 rm -f conftest.$ac_objext conftest$ac_exeext
42880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42881 (eval $ac_link) 2>conftest.er1
42883 grep -v '^ *+' conftest.er1 >conftest.err
42885 cat conftest.err >&5
42886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); } &&
42888 { ac_try='test -z "$ac_c_werror_flag"
42889 || test ! -s conftest.err'
42890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42891 (eval $ac_try) 2>&5
42893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894 (exit $ac_status); }; } &&
42895 { ac_try='test -s conftest$ac_exeext'
42896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42897 (eval $ac_try) 2>&5
42899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42900 (exit $ac_status); }; }; then
42901 eval "$as_ac_var=yes"
42903 echo "$as_me: failed program was:" >&5
42904 sed 's/^/| /' conftest.$ac_ext >&5
42906 eval "$as_ac_var=no"
42908 rm -f conftest.err conftest.$ac_objext \
42909 conftest$ac_exeext conftest.$ac_ext
42911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42913 if test `eval echo '${'$as_ac_var'}'` = yes; then
42914 cat >>confdefs.h <<_ACEOF
42915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42924 for ac_func in puts
42926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42927 echo "$as_me:$LINENO: checking for $ac_func" >&5
42928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42929 if eval "test \"\${$as_ac_var+set}\" = set"; then
42930 echo $ECHO_N "(cached) $ECHO_C" >&6
42932 cat >conftest.$ac_ext <<_ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h. */
42938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42940 #define $ac_func innocuous_$ac_func
42942 /* System header to define __stub macros and hopefully few prototypes,
42943 which can conflict with char $ac_func (); below.
42944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42945 <limits.h> exists even on freestanding compilers. */
42948 # include <limits.h>
42950 # include <assert.h>
42955 /* Override any gcc2 internal prototype to avoid an error. */
42960 /* We use char because int might match the return type of a gcc2
42961 builtin and then its argument prototype would still apply. */
42963 /* The GNU C library defines this for functions which it implements
42964 to always fail with ENOSYS. Some functions are actually named
42965 something starting with __ and the normal name is an alias. */
42966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42969 char (*f) () = $ac_func;
42978 return f != $ac_func;
42983 rm -f conftest.$ac_objext conftest$ac_exeext
42984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42985 (eval $ac_link) 2>conftest.er1
42987 grep -v '^ *+' conftest.er1 >conftest.err
42989 cat conftest.err >&5
42990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991 (exit $ac_status); } &&
42992 { ac_try='test -z "$ac_c_werror_flag"
42993 || test ! -s conftest.err'
42994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42995 (eval $ac_try) 2>&5
42997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42998 (exit $ac_status); }; } &&
42999 { ac_try='test -s conftest$ac_exeext'
43000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43001 (eval $ac_try) 2>&5
43003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004 (exit $ac_status); }; }; then
43005 eval "$as_ac_var=yes"
43007 echo "$as_me: failed program was:" >&5
43008 sed 's/^/| /' conftest.$ac_ext >&5
43010 eval "$as_ac_var=no"
43012 rm -f conftest.err conftest.$ac_objext \
43013 conftest$ac_exeext conftest.$ac_ext
43015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43017 if test `eval echo '${'$as_ac_var'}'` = yes; then
43018 cat >>confdefs.h <<_ACEOF
43019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43025 if test "${ice_have_puts}" = yes; then
43026 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
43027 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
43028 if test "${ice_cv_have_puts_decl+set}" = set; then
43029 echo $ECHO_N "(cached) $ECHO_C" >&6
43032 ice_cv_have_puts_decl=no
43033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43034 ice_re_word='(^|[^a-zA-Z0-9_])'
43035 for header in stdio.h; do
43036 # Check for ordinary declaration
43037 cat >conftest.$ac_ext <<_ACEOF
43040 cat confdefs.h >>conftest.$ac_ext
43041 cat >>conftest.$ac_ext <<_ACEOF
43042 /* end confdefs.h. */
43046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43047 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
43048 ice_cv_have_puts_decl=yes
43052 if test "$ice_cv_have_puts_decl" = yes; then
43055 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43056 cat >conftest.$ac_ext <<_ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h. */
43065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43066 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43067 ice_cv_have_puts_decl=yes
43071 if test "$ice_cv_have_puts_decl" = yes; then
43078 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
43079 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
43080 if test "$ice_cv_have_puts_decl" = yes; then
43082 cat >>confdefs.h <<_ACEOF
43083 #define HAVE_PUTS_DECL 1
43090 ice_have_realloc=no
43092 for ac_func in realloc
43094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43095 echo "$as_me:$LINENO: checking for $ac_func" >&5
43096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43097 if eval "test \"\${$as_ac_var+set}\" = set"; then
43098 echo $ECHO_N "(cached) $ECHO_C" >&6
43100 cat >conftest.$ac_ext <<_ACEOF
43103 cat confdefs.h >>conftest.$ac_ext
43104 cat >>conftest.$ac_ext <<_ACEOF
43105 /* end confdefs.h. */
43106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43108 #define $ac_func innocuous_$ac_func
43110 /* System header to define __stub macros and hopefully few prototypes,
43111 which can conflict with char $ac_func (); below.
43112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43113 <limits.h> exists even on freestanding compilers. */
43116 # include <limits.h>
43118 # include <assert.h>
43123 /* Override any gcc2 internal prototype to avoid an error. */
43128 /* We use char because int might match the return type of a gcc2
43129 builtin and then its argument prototype would still apply. */
43131 /* The GNU C library defines this for functions which it implements
43132 to always fail with ENOSYS. Some functions are actually named
43133 something starting with __ and the normal name is an alias. */
43134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43137 char (*f) () = $ac_func;
43146 return f != $ac_func;
43151 rm -f conftest.$ac_objext conftest$ac_exeext
43152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43153 (eval $ac_link) 2>conftest.er1
43155 grep -v '^ *+' conftest.er1 >conftest.err
43157 cat conftest.err >&5
43158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159 (exit $ac_status); } &&
43160 { ac_try='test -z "$ac_c_werror_flag"
43161 || test ! -s conftest.err'
43162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43163 (eval $ac_try) 2>&5
43165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43166 (exit $ac_status); }; } &&
43167 { ac_try='test -s conftest$ac_exeext'
43168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43169 (eval $ac_try) 2>&5
43171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43172 (exit $ac_status); }; }; then
43173 eval "$as_ac_var=yes"
43175 echo "$as_me: failed program was:" >&5
43176 sed 's/^/| /' conftest.$ac_ext >&5
43178 eval "$as_ac_var=no"
43180 rm -f conftest.err conftest.$ac_objext \
43181 conftest$ac_exeext conftest.$ac_ext
43183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43185 if test `eval echo '${'$as_ac_var'}'` = yes; then
43186 cat >>confdefs.h <<_ACEOF
43187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43189 ice_have_realloc=yes
43193 if test "${ice_have_realloc}" = yes; then
43194 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
43195 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
43196 if test "${ice_cv_have_realloc_decl+set}" = set; then
43197 echo $ECHO_N "(cached) $ECHO_C" >&6
43200 ice_cv_have_realloc_decl=no
43201 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43202 ice_re_word='(^|[^a-zA-Z0-9_])'
43203 for header in stdlib.h; do
43204 # Check for ordinary declaration
43205 cat >conftest.$ac_ext <<_ACEOF
43208 cat confdefs.h >>conftest.$ac_ext
43209 cat >>conftest.$ac_ext <<_ACEOF
43210 /* end confdefs.h. */
43214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43215 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
43216 ice_cv_have_realloc_decl=yes
43220 if test "$ice_cv_have_realloc_decl" = yes; then
43223 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43224 cat >conftest.$ac_ext <<_ACEOF
43227 cat confdefs.h >>conftest.$ac_ext
43228 cat >>conftest.$ac_ext <<_ACEOF
43229 /* end confdefs.h. */
43233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43234 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43235 ice_cv_have_realloc_decl=yes
43239 if test "$ice_cv_have_realloc_decl" = yes; then
43246 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
43247 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
43248 if test "$ice_cv_have_realloc_decl" = yes; then
43250 cat >>confdefs.h <<_ACEOF
43251 #define HAVE_REALLOC_DECL 1
43258 ice_have_recvfrom=no
43260 for ac_func in recvfrom
43262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43263 echo "$as_me:$LINENO: checking for $ac_func" >&5
43264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43265 if eval "test \"\${$as_ac_var+set}\" = set"; then
43266 echo $ECHO_N "(cached) $ECHO_C" >&6
43268 cat >conftest.$ac_ext <<_ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h. */
43274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43276 #define $ac_func innocuous_$ac_func
43278 /* System header to define __stub macros and hopefully few prototypes,
43279 which can conflict with char $ac_func (); below.
43280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43281 <limits.h> exists even on freestanding compilers. */
43284 # include <limits.h>
43286 # include <assert.h>
43291 /* Override any gcc2 internal prototype to avoid an error. */
43296 /* We use char because int might match the return type of a gcc2
43297 builtin and then its argument prototype would still apply. */
43299 /* The GNU C library defines this for functions which it implements
43300 to always fail with ENOSYS. Some functions are actually named
43301 something starting with __ and the normal name is an alias. */
43302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43305 char (*f) () = $ac_func;
43314 return f != $ac_func;
43319 rm -f conftest.$ac_objext conftest$ac_exeext
43320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43321 (eval $ac_link) 2>conftest.er1
43323 grep -v '^ *+' conftest.er1 >conftest.err
43325 cat conftest.err >&5
43326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327 (exit $ac_status); } &&
43328 { ac_try='test -z "$ac_c_werror_flag"
43329 || test ! -s conftest.err'
43330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43331 (eval $ac_try) 2>&5
43333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43334 (exit $ac_status); }; } &&
43335 { ac_try='test -s conftest$ac_exeext'
43336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337 (eval $ac_try) 2>&5
43339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340 (exit $ac_status); }; }; then
43341 eval "$as_ac_var=yes"
43343 echo "$as_me: failed program was:" >&5
43344 sed 's/^/| /' conftest.$ac_ext >&5
43346 eval "$as_ac_var=no"
43348 rm -f conftest.err conftest.$ac_objext \
43349 conftest$ac_exeext conftest.$ac_ext
43351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43353 if test `eval echo '${'$as_ac_var'}'` = yes; then
43354 cat >>confdefs.h <<_ACEOF
43355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43357 ice_have_recvfrom=yes
43361 if test "${ice_have_recvfrom}" = yes; then
43362 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
43363 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43364 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
43365 echo $ECHO_N "(cached) $ECHO_C" >&6
43368 ice_cv_have_recvfrom_decl=no
43369 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43370 ice_re_word='(^|[^a-zA-Z0-9_])'
43371 for header in sys/types.h sys/socket.h; do
43372 # Check for ordinary declaration
43373 cat >conftest.$ac_ext <<_ACEOF
43376 cat confdefs.h >>conftest.$ac_ext
43377 cat >>conftest.$ac_ext <<_ACEOF
43378 /* end confdefs.h. */
43382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43383 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
43384 ice_cv_have_recvfrom_decl=yes
43388 if test "$ice_cv_have_recvfrom_decl" = yes; then
43391 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43392 cat >conftest.$ac_ext <<_ACEOF
43395 cat confdefs.h >>conftest.$ac_ext
43396 cat >>conftest.$ac_ext <<_ACEOF
43397 /* end confdefs.h. */
43401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43402 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43403 ice_cv_have_recvfrom_decl=yes
43407 if test "$ice_cv_have_recvfrom_decl" = yes; then
43414 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
43415 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
43416 if test "$ice_cv_have_recvfrom_decl" = yes; then
43418 cat >>confdefs.h <<_ACEOF
43419 #define HAVE_RECVFROM_DECL 1
43428 for ac_func in remove
43430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43431 echo "$as_me:$LINENO: checking for $ac_func" >&5
43432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43433 if eval "test \"\${$as_ac_var+set}\" = set"; then
43434 echo $ECHO_N "(cached) $ECHO_C" >&6
43436 cat >conftest.$ac_ext <<_ACEOF
43439 cat confdefs.h >>conftest.$ac_ext
43440 cat >>conftest.$ac_ext <<_ACEOF
43441 /* end confdefs.h. */
43442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43444 #define $ac_func innocuous_$ac_func
43446 /* System header to define __stub macros and hopefully few prototypes,
43447 which can conflict with char $ac_func (); below.
43448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43449 <limits.h> exists even on freestanding compilers. */
43452 # include <limits.h>
43454 # include <assert.h>
43459 /* Override any gcc2 internal prototype to avoid an error. */
43464 /* We use char because int might match the return type of a gcc2
43465 builtin and then its argument prototype would still apply. */
43467 /* The GNU C library defines this for functions which it implements
43468 to always fail with ENOSYS. Some functions are actually named
43469 something starting with __ and the normal name is an alias. */
43470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43473 char (*f) () = $ac_func;
43482 return f != $ac_func;
43487 rm -f conftest.$ac_objext conftest$ac_exeext
43488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43489 (eval $ac_link) 2>conftest.er1
43491 grep -v '^ *+' conftest.er1 >conftest.err
43493 cat conftest.err >&5
43494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43495 (exit $ac_status); } &&
43496 { ac_try='test -z "$ac_c_werror_flag"
43497 || test ! -s conftest.err'
43498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43499 (eval $ac_try) 2>&5
43501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502 (exit $ac_status); }; } &&
43503 { ac_try='test -s conftest$ac_exeext'
43504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43505 (eval $ac_try) 2>&5
43507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43508 (exit $ac_status); }; }; then
43509 eval "$as_ac_var=yes"
43511 echo "$as_me: failed program was:" >&5
43512 sed 's/^/| /' conftest.$ac_ext >&5
43514 eval "$as_ac_var=no"
43516 rm -f conftest.err conftest.$ac_objext \
43517 conftest$ac_exeext conftest.$ac_ext
43519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43521 if test `eval echo '${'$as_ac_var'}'` = yes; then
43522 cat >>confdefs.h <<_ACEOF
43523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43525 ice_have_remove=yes
43529 if test "${ice_have_remove}" = yes; then
43530 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
43531 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
43532 if test "${ice_cv_have_remove_decl+set}" = set; then
43533 echo $ECHO_N "(cached) $ECHO_C" >&6
43536 ice_cv_have_remove_decl=no
43537 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43538 ice_re_word='(^|[^a-zA-Z0-9_])'
43539 for header in stdio.h; do
43540 # Check for ordinary declaration
43541 cat >conftest.$ac_ext <<_ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h. */
43550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43551 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
43552 ice_cv_have_remove_decl=yes
43556 if test "$ice_cv_have_remove_decl" = yes; then
43559 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43560 cat >conftest.$ac_ext <<_ACEOF
43563 cat confdefs.h >>conftest.$ac_ext
43564 cat >>conftest.$ac_ext <<_ACEOF
43565 /* end confdefs.h. */
43569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43570 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43571 ice_cv_have_remove_decl=yes
43575 if test "$ice_cv_have_remove_decl" = yes; then
43582 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
43583 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
43584 if test "$ice_cv_have_remove_decl" = yes; then
43586 cat >>confdefs.h <<_ACEOF
43587 #define HAVE_REMOVE_DECL 1
43596 for ac_func in rename
43598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43599 echo "$as_me:$LINENO: checking for $ac_func" >&5
43600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43601 if eval "test \"\${$as_ac_var+set}\" = set"; then
43602 echo $ECHO_N "(cached) $ECHO_C" >&6
43604 cat >conftest.$ac_ext <<_ACEOF
43607 cat confdefs.h >>conftest.$ac_ext
43608 cat >>conftest.$ac_ext <<_ACEOF
43609 /* end confdefs.h. */
43610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43612 #define $ac_func innocuous_$ac_func
43614 /* System header to define __stub macros and hopefully few prototypes,
43615 which can conflict with char $ac_func (); below.
43616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43617 <limits.h> exists even on freestanding compilers. */
43620 # include <limits.h>
43622 # include <assert.h>
43627 /* Override any gcc2 internal prototype to avoid an error. */
43632 /* We use char because int might match the return type of a gcc2
43633 builtin and then its argument prototype would still apply. */
43635 /* The GNU C library defines this for functions which it implements
43636 to always fail with ENOSYS. Some functions are actually named
43637 something starting with __ and the normal name is an alias. */
43638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43641 char (*f) () = $ac_func;
43650 return f != $ac_func;
43655 rm -f conftest.$ac_objext conftest$ac_exeext
43656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43657 (eval $ac_link) 2>conftest.er1
43659 grep -v '^ *+' conftest.er1 >conftest.err
43661 cat conftest.err >&5
43662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43663 (exit $ac_status); } &&
43664 { ac_try='test -z "$ac_c_werror_flag"
43665 || test ! -s conftest.err'
43666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667 (eval $ac_try) 2>&5
43669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 (exit $ac_status); }; } &&
43671 { ac_try='test -s conftest$ac_exeext'
43672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673 (eval $ac_try) 2>&5
43675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676 (exit $ac_status); }; }; then
43677 eval "$as_ac_var=yes"
43679 echo "$as_me: failed program was:" >&5
43680 sed 's/^/| /' conftest.$ac_ext >&5
43682 eval "$as_ac_var=no"
43684 rm -f conftest.err conftest.$ac_objext \
43685 conftest$ac_exeext conftest.$ac_ext
43687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43689 if test `eval echo '${'$as_ac_var'}'` = yes; then
43690 cat >>confdefs.h <<_ACEOF
43691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43693 ice_have_rename=yes
43697 if test "${ice_have_rename}" = yes; then
43698 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
43699 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
43700 if test "${ice_cv_have_rename_decl+set}" = set; then
43701 echo $ECHO_N "(cached) $ECHO_C" >&6
43704 ice_cv_have_rename_decl=no
43705 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43706 ice_re_word='(^|[^a-zA-Z0-9_])'
43707 for header in stdio.h; do
43708 # Check for ordinary declaration
43709 cat >conftest.$ac_ext <<_ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h. */
43718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43719 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
43720 ice_cv_have_rename_decl=yes
43724 if test "$ice_cv_have_rename_decl" = yes; then
43727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43728 cat >conftest.$ac_ext <<_ACEOF
43731 cat confdefs.h >>conftest.$ac_ext
43732 cat >>conftest.$ac_ext <<_ACEOF
43733 /* end confdefs.h. */
43737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43738 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43739 ice_cv_have_rename_decl=yes
43743 if test "$ice_cv_have_rename_decl" = yes; then
43750 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
43751 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
43752 if test "$ice_cv_have_rename_decl" = yes; then
43754 cat >>confdefs.h <<_ACEOF
43755 #define HAVE_RENAME_DECL 1
43764 for ac_func in rewind
43766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43767 echo "$as_me:$LINENO: checking for $ac_func" >&5
43768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43769 if eval "test \"\${$as_ac_var+set}\" = set"; then
43770 echo $ECHO_N "(cached) $ECHO_C" >&6
43772 cat >conftest.$ac_ext <<_ACEOF
43775 cat confdefs.h >>conftest.$ac_ext
43776 cat >>conftest.$ac_ext <<_ACEOF
43777 /* end confdefs.h. */
43778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43780 #define $ac_func innocuous_$ac_func
43782 /* System header to define __stub macros and hopefully few prototypes,
43783 which can conflict with char $ac_func (); below.
43784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43785 <limits.h> exists even on freestanding compilers. */
43788 # include <limits.h>
43790 # include <assert.h>
43795 /* Override any gcc2 internal prototype to avoid an error. */
43800 /* We use char because int might match the return type of a gcc2
43801 builtin and then its argument prototype would still apply. */
43803 /* The GNU C library defines this for functions which it implements
43804 to always fail with ENOSYS. Some functions are actually named
43805 something starting with __ and the normal name is an alias. */
43806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43809 char (*f) () = $ac_func;
43818 return f != $ac_func;
43823 rm -f conftest.$ac_objext conftest$ac_exeext
43824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43825 (eval $ac_link) 2>conftest.er1
43827 grep -v '^ *+' conftest.er1 >conftest.err
43829 cat conftest.err >&5
43830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43831 (exit $ac_status); } &&
43832 { ac_try='test -z "$ac_c_werror_flag"
43833 || test ! -s conftest.err'
43834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43835 (eval $ac_try) 2>&5
43837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838 (exit $ac_status); }; } &&
43839 { ac_try='test -s conftest$ac_exeext'
43840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43841 (eval $ac_try) 2>&5
43843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43844 (exit $ac_status); }; }; then
43845 eval "$as_ac_var=yes"
43847 echo "$as_me: failed program was:" >&5
43848 sed 's/^/| /' conftest.$ac_ext >&5
43850 eval "$as_ac_var=no"
43852 rm -f conftest.err conftest.$ac_objext \
43853 conftest$ac_exeext conftest.$ac_ext
43855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43857 if test `eval echo '${'$as_ac_var'}'` = yes; then
43858 cat >>confdefs.h <<_ACEOF
43859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43861 ice_have_rewind=yes
43865 if test "${ice_have_rewind}" = yes; then
43866 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
43867 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
43868 if test "${ice_cv_have_rewind_decl+set}" = set; then
43869 echo $ECHO_N "(cached) $ECHO_C" >&6
43872 ice_cv_have_rewind_decl=no
43873 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43874 ice_re_word='(^|[^a-zA-Z0-9_])'
43875 for header in stdio.h; do
43876 # Check for ordinary declaration
43877 cat >conftest.$ac_ext <<_ACEOF
43880 cat confdefs.h >>conftest.$ac_ext
43881 cat >>conftest.$ac_ext <<_ACEOF
43882 /* end confdefs.h. */
43886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43887 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
43888 ice_cv_have_rewind_decl=yes
43892 if test "$ice_cv_have_rewind_decl" = yes; then
43895 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43896 cat >conftest.$ac_ext <<_ACEOF
43899 cat confdefs.h >>conftest.$ac_ext
43900 cat >>conftest.$ac_ext <<_ACEOF
43901 /* end confdefs.h. */
43905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43906 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43907 ice_cv_have_rewind_decl=yes
43911 if test "$ice_cv_have_rewind_decl" = yes; then
43918 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
43919 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
43920 if test "$ice_cv_have_rewind_decl" = yes; then
43922 cat >>confdefs.h <<_ACEOF
43923 #define HAVE_REWIND_DECL 1
43930 for ac_func in rmdir
43932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43933 echo "$as_me:$LINENO: checking for $ac_func" >&5
43934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43935 if eval "test \"\${$as_ac_var+set}\" = set"; then
43936 echo $ECHO_N "(cached) $ECHO_C" >&6
43938 cat >conftest.$ac_ext <<_ACEOF
43941 cat confdefs.h >>conftest.$ac_ext
43942 cat >>conftest.$ac_ext <<_ACEOF
43943 /* end confdefs.h. */
43944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43946 #define $ac_func innocuous_$ac_func
43948 /* System header to define __stub macros and hopefully few prototypes,
43949 which can conflict with char $ac_func (); below.
43950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43951 <limits.h> exists even on freestanding compilers. */
43954 # include <limits.h>
43956 # include <assert.h>
43961 /* Override any gcc2 internal prototype to avoid an error. */
43966 /* We use char because int might match the return type of a gcc2
43967 builtin and then its argument prototype would still apply. */
43969 /* The GNU C library defines this for functions which it implements
43970 to always fail with ENOSYS. Some functions are actually named
43971 something starting with __ and the normal name is an alias. */
43972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43975 char (*f) () = $ac_func;
43984 return f != $ac_func;
43989 rm -f conftest.$ac_objext conftest$ac_exeext
43990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43991 (eval $ac_link) 2>conftest.er1
43993 grep -v '^ *+' conftest.er1 >conftest.err
43995 cat conftest.err >&5
43996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43997 (exit $ac_status); } &&
43998 { ac_try='test -z "$ac_c_werror_flag"
43999 || test ! -s conftest.err'
44000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44001 (eval $ac_try) 2>&5
44003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44004 (exit $ac_status); }; } &&
44005 { ac_try='test -s conftest$ac_exeext'
44006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44007 (eval $ac_try) 2>&5
44009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010 (exit $ac_status); }; }; then
44011 eval "$as_ac_var=yes"
44013 echo "$as_me: failed program was:" >&5
44014 sed 's/^/| /' conftest.$ac_ext >&5
44016 eval "$as_ac_var=no"
44018 rm -f conftest.err conftest.$ac_objext \
44019 conftest$ac_exeext conftest.$ac_ext
44021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44023 if test `eval echo '${'$as_ac_var'}'` = yes; then
44024 cat >>confdefs.h <<_ACEOF
44025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44032 ice_have_ruserok=no
44034 for ac_func in ruserok
44036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44037 echo "$as_me:$LINENO: checking for $ac_func" >&5
44038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44039 if eval "test \"\${$as_ac_var+set}\" = set"; then
44040 echo $ECHO_N "(cached) $ECHO_C" >&6
44042 cat >conftest.$ac_ext <<_ACEOF
44045 cat confdefs.h >>conftest.$ac_ext
44046 cat >>conftest.$ac_ext <<_ACEOF
44047 /* end confdefs.h. */
44048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44050 #define $ac_func innocuous_$ac_func
44052 /* System header to define __stub macros and hopefully few prototypes,
44053 which can conflict with char $ac_func (); below.
44054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44055 <limits.h> exists even on freestanding compilers. */
44058 # include <limits.h>
44060 # include <assert.h>
44065 /* Override any gcc2 internal prototype to avoid an error. */
44070 /* We use char because int might match the return type of a gcc2
44071 builtin and then its argument prototype would still apply. */
44073 /* The GNU C library defines this for functions which it implements
44074 to always fail with ENOSYS. Some functions are actually named
44075 something starting with __ and the normal name is an alias. */
44076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44079 char (*f) () = $ac_func;
44088 return f != $ac_func;
44093 rm -f conftest.$ac_objext conftest$ac_exeext
44094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44095 (eval $ac_link) 2>conftest.er1
44097 grep -v '^ *+' conftest.er1 >conftest.err
44099 cat conftest.err >&5
44100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44101 (exit $ac_status); } &&
44102 { ac_try='test -z "$ac_c_werror_flag"
44103 || test ! -s conftest.err'
44104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105 (eval $ac_try) 2>&5
44107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108 (exit $ac_status); }; } &&
44109 { ac_try='test -s conftest$ac_exeext'
44110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111 (eval $ac_try) 2>&5
44113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114 (exit $ac_status); }; }; then
44115 eval "$as_ac_var=yes"
44117 echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44120 eval "$as_ac_var=no"
44122 rm -f conftest.err conftest.$ac_objext \
44123 conftest$ac_exeext conftest.$ac_ext
44125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44127 if test `eval echo '${'$as_ac_var'}'` = yes; then
44128 cat >>confdefs.h <<_ACEOF
44129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44131 ice_have_ruserok=yes
44135 if test "${ice_have_ruserok}" = yes; then
44136 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
44137 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
44138 if test "${ice_cv_have_ruserok_decl+set}" = set; then
44139 echo $ECHO_N "(cached) $ECHO_C" >&6
44142 ice_cv_have_ruserok_decl=no
44143 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44144 ice_re_word='(^|[^a-zA-Z0-9_])'
44145 for header in netdb.h sys/socket.h libc.h unistd.h; do
44146 # Check for ordinary declaration
44147 cat >conftest.$ac_ext <<_ACEOF
44150 cat confdefs.h >>conftest.$ac_ext
44151 cat >>conftest.$ac_ext <<_ACEOF
44152 /* end confdefs.h. */
44156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44157 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
44158 ice_cv_have_ruserok_decl=yes
44162 if test "$ice_cv_have_ruserok_decl" = yes; then
44165 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44166 cat >conftest.$ac_ext <<_ACEOF
44169 cat confdefs.h >>conftest.$ac_ext
44170 cat >>conftest.$ac_ext <<_ACEOF
44171 /* end confdefs.h. */
44175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44176 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44177 ice_cv_have_ruserok_decl=yes
44181 if test "$ice_cv_have_ruserok_decl" = yes; then
44188 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
44189 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
44190 if test "$ice_cv_have_ruserok_decl" = yes; then
44192 cat >>confdefs.h <<_ACEOF
44193 #define HAVE_RUSEROK_DECL 1
44202 for ac_func in select
44204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44205 echo "$as_me:$LINENO: checking for $ac_func" >&5
44206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44207 if eval "test \"\${$as_ac_var+set}\" = set"; then
44208 echo $ECHO_N "(cached) $ECHO_C" >&6
44210 cat >conftest.$ac_ext <<_ACEOF
44213 cat confdefs.h >>conftest.$ac_ext
44214 cat >>conftest.$ac_ext <<_ACEOF
44215 /* end confdefs.h. */
44216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44218 #define $ac_func innocuous_$ac_func
44220 /* System header to define __stub macros and hopefully few prototypes,
44221 which can conflict with char $ac_func (); below.
44222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44223 <limits.h> exists even on freestanding compilers. */
44226 # include <limits.h>
44228 # include <assert.h>
44233 /* Override any gcc2 internal prototype to avoid an error. */
44238 /* We use char because int might match the return type of a gcc2
44239 builtin and then its argument prototype would still apply. */
44241 /* The GNU C library defines this for functions which it implements
44242 to always fail with ENOSYS. Some functions are actually named
44243 something starting with __ and the normal name is an alias. */
44244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44247 char (*f) () = $ac_func;
44256 return f != $ac_func;
44261 rm -f conftest.$ac_objext conftest$ac_exeext
44262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44263 (eval $ac_link) 2>conftest.er1
44265 grep -v '^ *+' conftest.er1 >conftest.err
44267 cat conftest.err >&5
44268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44269 (exit $ac_status); } &&
44270 { ac_try='test -z "$ac_c_werror_flag"
44271 || test ! -s conftest.err'
44272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44273 (eval $ac_try) 2>&5
44275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44276 (exit $ac_status); }; } &&
44277 { ac_try='test -s conftest$ac_exeext'
44278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44279 (eval $ac_try) 2>&5
44281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44282 (exit $ac_status); }; }; then
44283 eval "$as_ac_var=yes"
44285 echo "$as_me: failed program was:" >&5
44286 sed 's/^/| /' conftest.$ac_ext >&5
44288 eval "$as_ac_var=no"
44290 rm -f conftest.err conftest.$ac_objext \
44291 conftest$ac_exeext conftest.$ac_ext
44293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44295 if test `eval echo '${'$as_ac_var'}'` = yes; then
44296 cat >>confdefs.h <<_ACEOF
44297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44299 ice_have_select=yes
44303 if test "${ice_have_select}" = yes; then
44304 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
44305 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
44306 if test "${ice_cv_have_select_decl+set}" = set; then
44307 echo $ECHO_N "(cached) $ECHO_C" >&6
44310 ice_cv_have_select_decl=no
44311 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44312 ice_re_word='(^|[^a-zA-Z0-9_])'
44313 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
44314 # Check for ordinary declaration
44315 cat >conftest.$ac_ext <<_ACEOF
44318 cat confdefs.h >>conftest.$ac_ext
44319 cat >>conftest.$ac_ext <<_ACEOF
44320 /* end confdefs.h. */
44324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44325 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
44326 ice_cv_have_select_decl=yes
44330 if test "$ice_cv_have_select_decl" = yes; then
44333 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44334 cat >conftest.$ac_ext <<_ACEOF
44337 cat confdefs.h >>conftest.$ac_ext
44338 cat >>conftest.$ac_ext <<_ACEOF
44339 /* end confdefs.h. */
44343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44344 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44345 ice_cv_have_select_decl=yes
44349 if test "$ice_cv_have_select_decl" = yes; then
44356 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
44357 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
44358 if test "$ice_cv_have_select_decl" = yes; then
44360 cat >>confdefs.h <<_ACEOF
44361 #define HAVE_SELECT_DECL 1
44368 echo "$as_me:$LINENO: checking for select() argument type" >&5
44369 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
44370 if test "${amanda_cv_select_arg_type+set}" = set; then
44371 echo $ECHO_N "(cached) $ECHO_C" >&6
44375 cat <<EOF >conftest.$ac_ext
44376 #include "confdefs.h"
44377 #ifdef HAVE_SYS_TIME_H
44378 # include <sys/time.h>
44380 #ifdef HAVE_SYS_TYPES_H
44381 # include <sys/types.h>
44383 #ifdef HAVE_SYS_SELECT_H
44384 # include <sys/select.h>
44386 #ifdef HAVE_SYS_SOCKET_H
44387 # include <sys/socket.h>
44389 #ifdef HAVE_UNISTD_H
44390 # include <unistd.h>
44395 #ifdef FD_SET_POINTER
44396 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
44398 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
44404 amanda_cv_select_arg_type=no
44405 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
44406 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
44407 if test $? -ne 0; then
44408 amanda_cv_select_arg_type=int
44410 if test "$amanda_cv_select_arg_type" = no; then
44411 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
44412 if test $? -ne 0; then
44413 amanda_cv_select_arg_type=fd_set
44416 if test "$amanda_cv_select_arg_type" = no; then
44417 wc_fdset=`wc -l <conftest.fd_set`
44418 wc_int=`wc -l <conftest.int`
44419 if test "$wc_fdset" -le "$wc_int"; then
44420 amanda_cv_select_arg_type=fd_set
44422 amanda_cv_select_arg_type=int
44429 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
44430 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
44432 cat >>confdefs.h <<_ACEOF
44433 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
44441 for ac_func in sendto
44443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44444 echo "$as_me:$LINENO: checking for $ac_func" >&5
44445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44446 if eval "test \"\${$as_ac_var+set}\" = set"; then
44447 echo $ECHO_N "(cached) $ECHO_C" >&6
44449 cat >conftest.$ac_ext <<_ACEOF
44452 cat confdefs.h >>conftest.$ac_ext
44453 cat >>conftest.$ac_ext <<_ACEOF
44454 /* end confdefs.h. */
44455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44457 #define $ac_func innocuous_$ac_func
44459 /* System header to define __stub macros and hopefully few prototypes,
44460 which can conflict with char $ac_func (); below.
44461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44462 <limits.h> exists even on freestanding compilers. */
44465 # include <limits.h>
44467 # include <assert.h>
44472 /* Override any gcc2 internal prototype to avoid an error. */
44477 /* We use char because int might match the return type of a gcc2
44478 builtin and then its argument prototype would still apply. */
44480 /* The GNU C library defines this for functions which it implements
44481 to always fail with ENOSYS. Some functions are actually named
44482 something starting with __ and the normal name is an alias. */
44483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44486 char (*f) () = $ac_func;
44495 return f != $ac_func;
44500 rm -f conftest.$ac_objext conftest$ac_exeext
44501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44502 (eval $ac_link) 2>conftest.er1
44504 grep -v '^ *+' conftest.er1 >conftest.err
44506 cat conftest.err >&5
44507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508 (exit $ac_status); } &&
44509 { ac_try='test -z "$ac_c_werror_flag"
44510 || test ! -s conftest.err'
44511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44512 (eval $ac_try) 2>&5
44514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44515 (exit $ac_status); }; } &&
44516 { ac_try='test -s conftest$ac_exeext'
44517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44518 (eval $ac_try) 2>&5
44520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44521 (exit $ac_status); }; }; then
44522 eval "$as_ac_var=yes"
44524 echo "$as_me: failed program was:" >&5
44525 sed 's/^/| /' conftest.$ac_ext >&5
44527 eval "$as_ac_var=no"
44529 rm -f conftest.err conftest.$ac_objext \
44530 conftest$ac_exeext conftest.$ac_ext
44532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44534 if test `eval echo '${'$as_ac_var'}'` = yes; then
44535 cat >>confdefs.h <<_ACEOF
44536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44538 ice_have_sendto=yes
44542 if test "${ice_have_sendto}" = yes; then
44543 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
44544 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44545 if test "${ice_cv_have_sendto_decl+set}" = set; then
44546 echo $ECHO_N "(cached) $ECHO_C" >&6
44549 ice_cv_have_sendto_decl=no
44550 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44551 ice_re_word='(^|[^a-zA-Z0-9_])'
44552 for header in sys/types.h sys/socket.h; do
44553 # Check for ordinary declaration
44554 cat >conftest.$ac_ext <<_ACEOF
44557 cat confdefs.h >>conftest.$ac_ext
44558 cat >>conftest.$ac_ext <<_ACEOF
44559 /* end confdefs.h. */
44563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44564 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
44565 ice_cv_have_sendto_decl=yes
44569 if test "$ice_cv_have_sendto_decl" = yes; then
44572 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44573 cat >conftest.$ac_ext <<_ACEOF
44576 cat confdefs.h >>conftest.$ac_ext
44577 cat >>conftest.$ac_ext <<_ACEOF
44578 /* end confdefs.h. */
44582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44583 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44584 ice_cv_have_sendto_decl=yes
44588 if test "$ice_cv_have_sendto_decl" = yes; then
44595 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
44596 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
44597 if test "$ice_cv_have_sendto_decl" = yes; then
44599 cat >>confdefs.h <<_ACEOF
44600 #define HAVE_SENDTO_DECL 1
44607 ice_have_setegid=no
44609 for ac_func in setegid
44611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44612 echo "$as_me:$LINENO: checking for $ac_func" >&5
44613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44614 if eval "test \"\${$as_ac_var+set}\" = set"; then
44615 echo $ECHO_N "(cached) $ECHO_C" >&6
44617 cat >conftest.$ac_ext <<_ACEOF
44620 cat confdefs.h >>conftest.$ac_ext
44621 cat >>conftest.$ac_ext <<_ACEOF
44622 /* end confdefs.h. */
44623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44625 #define $ac_func innocuous_$ac_func
44627 /* System header to define __stub macros and hopefully few prototypes,
44628 which can conflict with char $ac_func (); below.
44629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44630 <limits.h> exists even on freestanding compilers. */
44633 # include <limits.h>
44635 # include <assert.h>
44640 /* Override any gcc2 internal prototype to avoid an error. */
44645 /* We use char because int might match the return type of a gcc2
44646 builtin and then its argument prototype would still apply. */
44648 /* The GNU C library defines this for functions which it implements
44649 to always fail with ENOSYS. Some functions are actually named
44650 something starting with __ and the normal name is an alias. */
44651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44654 char (*f) () = $ac_func;
44663 return f != $ac_func;
44668 rm -f conftest.$ac_objext conftest$ac_exeext
44669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44670 (eval $ac_link) 2>conftest.er1
44672 grep -v '^ *+' conftest.er1 >conftest.err
44674 cat conftest.err >&5
44675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44676 (exit $ac_status); } &&
44677 { ac_try='test -z "$ac_c_werror_flag"
44678 || test ! -s conftest.err'
44679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44680 (eval $ac_try) 2>&5
44682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683 (exit $ac_status); }; } &&
44684 { ac_try='test -s conftest$ac_exeext'
44685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44686 (eval $ac_try) 2>&5
44688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44689 (exit $ac_status); }; }; then
44690 eval "$as_ac_var=yes"
44692 echo "$as_me: failed program was:" >&5
44693 sed 's/^/| /' conftest.$ac_ext >&5
44695 eval "$as_ac_var=no"
44697 rm -f conftest.err conftest.$ac_objext \
44698 conftest$ac_exeext conftest.$ac_ext
44700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44702 if test `eval echo '${'$as_ac_var'}'` = yes; then
44703 cat >>confdefs.h <<_ACEOF
44704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44706 ice_have_setegid=yes
44710 if test "${ice_have_setegid}" = yes; then
44711 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
44712 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
44713 if test "${ice_cv_have_setegid_decl+set}" = set; then
44714 echo $ECHO_N "(cached) $ECHO_C" >&6
44717 ice_cv_have_setegid_decl=no
44718 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44719 ice_re_word='(^|[^a-zA-Z0-9_])'
44720 for header in unistd.h; do
44721 # Check for ordinary declaration
44722 cat >conftest.$ac_ext <<_ACEOF
44725 cat confdefs.h >>conftest.$ac_ext
44726 cat >>conftest.$ac_ext <<_ACEOF
44727 /* end confdefs.h. */
44731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44732 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
44733 ice_cv_have_setegid_decl=yes
44737 if test "$ice_cv_have_setegid_decl" = yes; then
44740 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44741 cat >conftest.$ac_ext <<_ACEOF
44744 cat confdefs.h >>conftest.$ac_ext
44745 cat >>conftest.$ac_ext <<_ACEOF
44746 /* end confdefs.h. */
44750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44751 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44752 ice_cv_have_setegid_decl=yes
44756 if test "$ice_cv_have_setegid_decl" = yes; then
44763 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
44764 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
44765 if test "$ice_cv_have_setegid_decl" = yes; then
44767 cat >>confdefs.h <<_ACEOF
44768 #define HAVE_SETEGID_DECL 1
44775 ice_have_seteuid=no
44777 for ac_func in seteuid
44779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44780 echo "$as_me:$LINENO: checking for $ac_func" >&5
44781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44782 if eval "test \"\${$as_ac_var+set}\" = set"; then
44783 echo $ECHO_N "(cached) $ECHO_C" >&6
44785 cat >conftest.$ac_ext <<_ACEOF
44788 cat confdefs.h >>conftest.$ac_ext
44789 cat >>conftest.$ac_ext <<_ACEOF
44790 /* end confdefs.h. */
44791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44793 #define $ac_func innocuous_$ac_func
44795 /* System header to define __stub macros and hopefully few prototypes,
44796 which can conflict with char $ac_func (); below.
44797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44798 <limits.h> exists even on freestanding compilers. */
44801 # include <limits.h>
44803 # include <assert.h>
44808 /* Override any gcc2 internal prototype to avoid an error. */
44813 /* We use char because int might match the return type of a gcc2
44814 builtin and then its argument prototype would still apply. */
44816 /* The GNU C library defines this for functions which it implements
44817 to always fail with ENOSYS. Some functions are actually named
44818 something starting with __ and the normal name is an alias. */
44819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44822 char (*f) () = $ac_func;
44831 return f != $ac_func;
44836 rm -f conftest.$ac_objext conftest$ac_exeext
44837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44838 (eval $ac_link) 2>conftest.er1
44840 grep -v '^ *+' conftest.er1 >conftest.err
44842 cat conftest.err >&5
44843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44844 (exit $ac_status); } &&
44845 { ac_try='test -z "$ac_c_werror_flag"
44846 || test ! -s conftest.err'
44847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44848 (eval $ac_try) 2>&5
44850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851 (exit $ac_status); }; } &&
44852 { ac_try='test -s conftest$ac_exeext'
44853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854 (eval $ac_try) 2>&5
44856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857 (exit $ac_status); }; }; then
44858 eval "$as_ac_var=yes"
44860 echo "$as_me: failed program was:" >&5
44861 sed 's/^/| /' conftest.$ac_ext >&5
44863 eval "$as_ac_var=no"
44865 rm -f conftest.err conftest.$ac_objext \
44866 conftest$ac_exeext conftest.$ac_ext
44868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44870 if test `eval echo '${'$as_ac_var'}'` = yes; then
44871 cat >>confdefs.h <<_ACEOF
44872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44874 ice_have_seteuid=yes
44878 if test "${ice_have_seteuid}" = yes; then
44879 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
44880 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
44881 if test "${ice_cv_have_seteuid_decl+set}" = set; then
44882 echo $ECHO_N "(cached) $ECHO_C" >&6
44885 ice_cv_have_seteuid_decl=no
44886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44887 ice_re_word='(^|[^a-zA-Z0-9_])'
44888 for header in unistd.h; do
44889 # Check for ordinary declaration
44890 cat >conftest.$ac_ext <<_ACEOF
44893 cat confdefs.h >>conftest.$ac_ext
44894 cat >>conftest.$ac_ext <<_ACEOF
44895 /* end confdefs.h. */
44899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44900 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
44901 ice_cv_have_seteuid_decl=yes
44905 if test "$ice_cv_have_seteuid_decl" = yes; then
44908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44909 cat >conftest.$ac_ext <<_ACEOF
44912 cat confdefs.h >>conftest.$ac_ext
44913 cat >>conftest.$ac_ext <<_ACEOF
44914 /* end confdefs.h. */
44918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44919 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44920 ice_cv_have_seteuid_decl=yes
44924 if test "$ice_cv_have_seteuid_decl" = yes; then
44931 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
44932 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
44933 if test "$ice_cv_have_seteuid_decl" = yes; then
44935 cat >>confdefs.h <<_ACEOF
44936 #define HAVE_SETEUID_DECL 1
44943 for ac_func in setmntent
44945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44946 echo "$as_me:$LINENO: checking for $ac_func" >&5
44947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44948 if eval "test \"\${$as_ac_var+set}\" = set"; then
44949 echo $ECHO_N "(cached) $ECHO_C" >&6
44951 cat >conftest.$ac_ext <<_ACEOF
44954 cat confdefs.h >>conftest.$ac_ext
44955 cat >>conftest.$ac_ext <<_ACEOF
44956 /* end confdefs.h. */
44957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44959 #define $ac_func innocuous_$ac_func
44961 /* System header to define __stub macros and hopefully few prototypes,
44962 which can conflict with char $ac_func (); below.
44963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44964 <limits.h> exists even on freestanding compilers. */
44967 # include <limits.h>
44969 # include <assert.h>
44974 /* Override any gcc2 internal prototype to avoid an error. */
44979 /* We use char because int might match the return type of a gcc2
44980 builtin and then its argument prototype would still apply. */
44982 /* The GNU C library defines this for functions which it implements
44983 to always fail with ENOSYS. Some functions are actually named
44984 something starting with __ and the normal name is an alias. */
44985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44988 char (*f) () = $ac_func;
44997 return f != $ac_func;
45002 rm -f conftest.$ac_objext conftest$ac_exeext
45003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45004 (eval $ac_link) 2>conftest.er1
45006 grep -v '^ *+' conftest.er1 >conftest.err
45008 cat conftest.err >&5
45009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010 (exit $ac_status); } &&
45011 { ac_try='test -z "$ac_c_werror_flag"
45012 || test ! -s conftest.err'
45013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45014 (eval $ac_try) 2>&5
45016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45017 (exit $ac_status); }; } &&
45018 { ac_try='test -s conftest$ac_exeext'
45019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45020 (eval $ac_try) 2>&5
45022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023 (exit $ac_status); }; }; then
45024 eval "$as_ac_var=yes"
45026 echo "$as_me: failed program was:" >&5
45027 sed 's/^/| /' conftest.$ac_ext >&5
45029 eval "$as_ac_var=no"
45031 rm -f conftest.err conftest.$ac_objext \
45032 conftest$ac_exeext conftest.$ac_ext
45034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45036 if test `eval echo '${'$as_ac_var'}'` = yes; then
45037 cat >>confdefs.h <<_ACEOF
45038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45045 for ac_func in shquote
45047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45048 echo "$as_me:$LINENO: checking for $ac_func" >&5
45049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45050 if eval "test \"\${$as_ac_var+set}\" = set"; then
45051 echo $ECHO_N "(cached) $ECHO_C" >&6
45053 cat >conftest.$ac_ext <<_ACEOF
45056 cat confdefs.h >>conftest.$ac_ext
45057 cat >>conftest.$ac_ext <<_ACEOF
45058 /* end confdefs.h. */
45059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45061 #define $ac_func innocuous_$ac_func
45063 /* System header to define __stub macros and hopefully few prototypes,
45064 which can conflict with char $ac_func (); below.
45065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45066 <limits.h> exists even on freestanding compilers. */
45069 # include <limits.h>
45071 # include <assert.h>
45076 /* Override any gcc2 internal prototype to avoid an error. */
45081 /* We use char because int might match the return type of a gcc2
45082 builtin and then its argument prototype would still apply. */
45084 /* The GNU C library defines this for functions which it implements
45085 to always fail with ENOSYS. Some functions are actually named
45086 something starting with __ and the normal name is an alias. */
45087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45090 char (*f) () = $ac_func;
45099 return f != $ac_func;
45104 rm -f conftest.$ac_objext conftest$ac_exeext
45105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45106 (eval $ac_link) 2>conftest.er1
45108 grep -v '^ *+' conftest.er1 >conftest.err
45110 cat conftest.err >&5
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); } &&
45113 { ac_try='test -z "$ac_c_werror_flag"
45114 || test ! -s conftest.err'
45115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45116 (eval $ac_try) 2>&5
45118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119 (exit $ac_status); }; } &&
45120 { ac_try='test -s conftest$ac_exeext'
45121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45122 (eval $ac_try) 2>&5
45124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45125 (exit $ac_status); }; }; then
45126 eval "$as_ac_var=yes"
45128 echo "$as_me: failed program was:" >&5
45129 sed 's/^/| /' conftest.$ac_ext >&5
45131 eval "$as_ac_var=no"
45133 rm -f conftest.err conftest.$ac_objext \
45134 conftest$ac_exeext conftest.$ac_ext
45136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45138 if test `eval echo '${'$as_ac_var'}'` = yes; then
45139 cat >>confdefs.h <<_ACEOF
45140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45148 ice_have_setresgid=no
45150 for ac_func in setresgid
45152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45153 echo "$as_me:$LINENO: checking for $ac_func" >&5
45154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45155 if eval "test \"\${$as_ac_var+set}\" = set"; then
45156 echo $ECHO_N "(cached) $ECHO_C" >&6
45158 cat >conftest.$ac_ext <<_ACEOF
45161 cat confdefs.h >>conftest.$ac_ext
45162 cat >>conftest.$ac_ext <<_ACEOF
45163 /* end confdefs.h. */
45164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45166 #define $ac_func innocuous_$ac_func
45168 /* System header to define __stub macros and hopefully few prototypes,
45169 which can conflict with char $ac_func (); below.
45170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45171 <limits.h> exists even on freestanding compilers. */
45174 # include <limits.h>
45176 # include <assert.h>
45181 /* Override any gcc2 internal prototype to avoid an error. */
45186 /* We use char because int might match the return type of a gcc2
45187 builtin and then its argument prototype would still apply. */
45189 /* The GNU C library defines this for functions which it implements
45190 to always fail with ENOSYS. Some functions are actually named
45191 something starting with __ and the normal name is an alias. */
45192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45195 char (*f) () = $ac_func;
45204 return f != $ac_func;
45209 rm -f conftest.$ac_objext conftest$ac_exeext
45210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45211 (eval $ac_link) 2>conftest.er1
45213 grep -v '^ *+' conftest.er1 >conftest.err
45215 cat conftest.err >&5
45216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45217 (exit $ac_status); } &&
45218 { ac_try='test -z "$ac_c_werror_flag"
45219 || test ! -s conftest.err'
45220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45221 (eval $ac_try) 2>&5
45223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45224 (exit $ac_status); }; } &&
45225 { ac_try='test -s conftest$ac_exeext'
45226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45227 (eval $ac_try) 2>&5
45229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45230 (exit $ac_status); }; }; then
45231 eval "$as_ac_var=yes"
45233 echo "$as_me: failed program was:" >&5
45234 sed 's/^/| /' conftest.$ac_ext >&5
45236 eval "$as_ac_var=no"
45238 rm -f conftest.err conftest.$ac_objext \
45239 conftest$ac_exeext conftest.$ac_ext
45241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45243 if test `eval echo '${'$as_ac_var'}'` = yes; then
45244 cat >>confdefs.h <<_ACEOF
45245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45247 ice_have_setresgid=yes
45251 if test "${ice_have_setresgid}" = yes; then
45252 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
45253 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
45254 if test "${ice_cv_have_setresgid_decl+set}" = set; then
45255 echo $ECHO_N "(cached) $ECHO_C" >&6
45258 ice_cv_have_setresgid_decl=no
45259 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45260 ice_re_word='(^|[^a-zA-Z0-9_])'
45261 for header in unistd.h; do
45262 # Check for ordinary declaration
45263 cat >conftest.$ac_ext <<_ACEOF
45266 cat confdefs.h >>conftest.$ac_ext
45267 cat >>conftest.$ac_ext <<_ACEOF
45268 /* end confdefs.h. */
45272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45273 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
45274 ice_cv_have_setresgid_decl=yes
45278 if test "$ice_cv_have_setresgid_decl" = yes; then
45281 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45282 cat >conftest.$ac_ext <<_ACEOF
45285 cat confdefs.h >>conftest.$ac_ext
45286 cat >>conftest.$ac_ext <<_ACEOF
45287 /* end confdefs.h. */
45291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45292 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45293 ice_cv_have_setresgid_decl=yes
45297 if test "$ice_cv_have_setresgid_decl" = yes; then
45304 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
45305 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
45306 if test "$ice_cv_have_setresgid_decl" = yes; then
45308 cat >>confdefs.h <<_ACEOF
45309 #define HAVE_SETRESGID_DECL 1
45316 ice_have_setresuid=no
45318 for ac_func in setresuid
45320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45321 echo "$as_me:$LINENO: checking for $ac_func" >&5
45322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45323 if eval "test \"\${$as_ac_var+set}\" = set"; then
45324 echo $ECHO_N "(cached) $ECHO_C" >&6
45326 cat >conftest.$ac_ext <<_ACEOF
45329 cat confdefs.h >>conftest.$ac_ext
45330 cat >>conftest.$ac_ext <<_ACEOF
45331 /* end confdefs.h. */
45332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45334 #define $ac_func innocuous_$ac_func
45336 /* System header to define __stub macros and hopefully few prototypes,
45337 which can conflict with char $ac_func (); below.
45338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45339 <limits.h> exists even on freestanding compilers. */
45342 # include <limits.h>
45344 # include <assert.h>
45349 /* Override any gcc2 internal prototype to avoid an error. */
45354 /* We use char because int might match the return type of a gcc2
45355 builtin and then its argument prototype would still apply. */
45357 /* The GNU C library defines this for functions which it implements
45358 to always fail with ENOSYS. Some functions are actually named
45359 something starting with __ and the normal name is an alias. */
45360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45363 char (*f) () = $ac_func;
45372 return f != $ac_func;
45377 rm -f conftest.$ac_objext conftest$ac_exeext
45378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45379 (eval $ac_link) 2>conftest.er1
45381 grep -v '^ *+' conftest.er1 >conftest.err
45383 cat conftest.err >&5
45384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385 (exit $ac_status); } &&
45386 { ac_try='test -z "$ac_c_werror_flag"
45387 || test ! -s conftest.err'
45388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45389 (eval $ac_try) 2>&5
45391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45392 (exit $ac_status); }; } &&
45393 { ac_try='test -s conftest$ac_exeext'
45394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45395 (eval $ac_try) 2>&5
45397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45398 (exit $ac_status); }; }; then
45399 eval "$as_ac_var=yes"
45401 echo "$as_me: failed program was:" >&5
45402 sed 's/^/| /' conftest.$ac_ext >&5
45404 eval "$as_ac_var=no"
45406 rm -f conftest.err conftest.$ac_objext \
45407 conftest$ac_exeext conftest.$ac_ext
45409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45411 if test `eval echo '${'$as_ac_var'}'` = yes; then
45412 cat >>confdefs.h <<_ACEOF
45413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45415 ice_have_setresuid=yes
45419 if test "${ice_have_setresuid}" = yes; then
45420 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
45421 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
45422 if test "${ice_cv_have_setresuid_decl+set}" = set; then
45423 echo $ECHO_N "(cached) $ECHO_C" >&6
45426 ice_cv_have_setresuid_decl=no
45427 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45428 ice_re_word='(^|[^a-zA-Z0-9_])'
45429 for header in unistd.h; do
45430 # Check for ordinary declaration
45431 cat >conftest.$ac_ext <<_ACEOF
45434 cat confdefs.h >>conftest.$ac_ext
45435 cat >>conftest.$ac_ext <<_ACEOF
45436 /* end confdefs.h. */
45440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45441 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
45442 ice_cv_have_setresuid_decl=yes
45446 if test "$ice_cv_have_setresuid_decl" = yes; then
45449 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45450 cat >conftest.$ac_ext <<_ACEOF
45453 cat confdefs.h >>conftest.$ac_ext
45454 cat >>conftest.$ac_ext <<_ACEOF
45455 /* end confdefs.h. */
45459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45460 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45461 ice_cv_have_setresuid_decl=yes
45465 if test "$ice_cv_have_setresuid_decl" = yes; then
45472 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
45473 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
45474 if test "$ice_cv_have_setresuid_decl" = yes; then
45476 cat >>confdefs.h <<_ACEOF
45477 #define HAVE_SETRESUID_DECL 1
45484 echo "$as_me:$LINENO: checking for setpgid" >&5
45485 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
45486 if test "${ac_cv_func_setpgid+set}" = set; then
45487 echo $ECHO_N "(cached) $ECHO_C" >&6
45489 cat >conftest.$ac_ext <<_ACEOF
45492 cat confdefs.h >>conftest.$ac_ext
45493 cat >>conftest.$ac_ext <<_ACEOF
45494 /* end confdefs.h. */
45495 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
45496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45497 #define setpgid innocuous_setpgid
45499 /* System header to define __stub macros and hopefully few prototypes,
45500 which can conflict with char setpgid (); below.
45501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45502 <limits.h> exists even on freestanding compilers. */
45505 # include <limits.h>
45507 # include <assert.h>
45512 /* Override any gcc2 internal prototype to avoid an error. */
45517 /* We use char because int might match the return type of a gcc2
45518 builtin and then its argument prototype would still apply. */
45520 /* The GNU C library defines this for functions which it implements
45521 to always fail with ENOSYS. Some functions are actually named
45522 something starting with __ and the normal name is an alias. */
45523 #if defined (__stub_setpgid) || defined (__stub___setpgid)
45526 char (*f) () = setpgid;
45535 return f != setpgid;
45540 rm -f conftest.$ac_objext conftest$ac_exeext
45541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45542 (eval $ac_link) 2>conftest.er1
45544 grep -v '^ *+' conftest.er1 >conftest.err
45546 cat conftest.err >&5
45547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 (exit $ac_status); } &&
45549 { ac_try='test -z "$ac_c_werror_flag"
45550 || test ! -s conftest.err'
45551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45552 (eval $ac_try) 2>&5
45554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45555 (exit $ac_status); }; } &&
45556 { ac_try='test -s conftest$ac_exeext'
45557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45558 (eval $ac_try) 2>&5
45560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45561 (exit $ac_status); }; }; then
45562 ac_cv_func_setpgid=yes
45564 echo "$as_me: failed program was:" >&5
45565 sed 's/^/| /' conftest.$ac_ext >&5
45567 ac_cv_func_setpgid=no
45569 rm -f conftest.err conftest.$ac_objext \
45570 conftest$ac_exeext conftest.$ac_ext
45572 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
45573 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
45574 if test $ac_cv_func_setpgid = yes; then
45577 cat >>confdefs.h <<\_ACEOF
45578 #define HAVE_SETPGID 1
45582 ice_have_setpgid=no
45584 for ac_func in setpgid
45586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45587 echo "$as_me:$LINENO: checking for $ac_func" >&5
45588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45589 if eval "test \"\${$as_ac_var+set}\" = set"; then
45590 echo $ECHO_N "(cached) $ECHO_C" >&6
45592 cat >conftest.$ac_ext <<_ACEOF
45595 cat confdefs.h >>conftest.$ac_ext
45596 cat >>conftest.$ac_ext <<_ACEOF
45597 /* end confdefs.h. */
45598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45600 #define $ac_func innocuous_$ac_func
45602 /* System header to define __stub macros and hopefully few prototypes,
45603 which can conflict with char $ac_func (); below.
45604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45605 <limits.h> exists even on freestanding compilers. */
45608 # include <limits.h>
45610 # include <assert.h>
45615 /* Override any gcc2 internal prototype to avoid an error. */
45620 /* We use char because int might match the return type of a gcc2
45621 builtin and then its argument prototype would still apply. */
45623 /* The GNU C library defines this for functions which it implements
45624 to always fail with ENOSYS. Some functions are actually named
45625 something starting with __ and the normal name is an alias. */
45626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45629 char (*f) () = $ac_func;
45638 return f != $ac_func;
45643 rm -f conftest.$ac_objext conftest$ac_exeext
45644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45645 (eval $ac_link) 2>conftest.er1
45647 grep -v '^ *+' conftest.er1 >conftest.err
45649 cat conftest.err >&5
45650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45651 (exit $ac_status); } &&
45652 { ac_try='test -z "$ac_c_werror_flag"
45653 || test ! -s conftest.err'
45654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45655 (eval $ac_try) 2>&5
45657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45658 (exit $ac_status); }; } &&
45659 { ac_try='test -s conftest$ac_exeext'
45660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45661 (eval $ac_try) 2>&5
45663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45664 (exit $ac_status); }; }; then
45665 eval "$as_ac_var=yes"
45667 echo "$as_me: failed program was:" >&5
45668 sed 's/^/| /' conftest.$ac_ext >&5
45670 eval "$as_ac_var=no"
45672 rm -f conftest.err conftest.$ac_objext \
45673 conftest$ac_exeext conftest.$ac_ext
45675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45677 if test `eval echo '${'$as_ac_var'}'` = yes; then
45678 cat >>confdefs.h <<_ACEOF
45679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45681 ice_have_setpgid=yes
45685 if test "${ice_have_setpgid}" = yes; then
45686 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
45687 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
45688 if test "${ice_cv_have_setpgid_decl+set}" = set; then
45689 echo $ECHO_N "(cached) $ECHO_C" >&6
45692 ice_cv_have_setpgid_decl=no
45693 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45694 ice_re_word='(^|[^a-zA-Z0-9_])'
45695 for header in sys/types.h unistd.h; do
45696 # Check for ordinary declaration
45697 cat >conftest.$ac_ext <<_ACEOF
45700 cat confdefs.h >>conftest.$ac_ext
45701 cat >>conftest.$ac_ext <<_ACEOF
45702 /* end confdefs.h. */
45706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45707 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
45708 ice_cv_have_setpgid_decl=yes
45712 if test "$ice_cv_have_setpgid_decl" = yes; then
45715 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45716 cat >conftest.$ac_ext <<_ACEOF
45719 cat confdefs.h >>conftest.$ac_ext
45720 cat >>conftest.$ac_ext <<_ACEOF
45721 /* end confdefs.h. */
45725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45726 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45727 ice_cv_have_setpgid_decl=yes
45731 if test "$ice_cv_have_setpgid_decl" = yes; then
45738 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
45739 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
45740 if test "$ice_cv_have_setpgid_decl" = yes; then
45742 cat >>confdefs.h <<_ACEOF
45743 #define HAVE_SETPGID_DECL 1
45752 echo "$as_me:$LINENO: checking for setpgrp" >&5
45753 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
45754 if test "${ac_cv_func_setpgrp+set}" = set; then
45755 echo $ECHO_N "(cached) $ECHO_C" >&6
45757 cat >conftest.$ac_ext <<_ACEOF
45760 cat confdefs.h >>conftest.$ac_ext
45761 cat >>conftest.$ac_ext <<_ACEOF
45762 /* end confdefs.h. */
45763 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
45764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45765 #define setpgrp innocuous_setpgrp
45767 /* System header to define __stub macros and hopefully few prototypes,
45768 which can conflict with char setpgrp (); below.
45769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45770 <limits.h> exists even on freestanding compilers. */
45773 # include <limits.h>
45775 # include <assert.h>
45780 /* Override any gcc2 internal prototype to avoid an error. */
45785 /* We use char because int might match the return type of a gcc2
45786 builtin and then its argument prototype would still apply. */
45788 /* The GNU C library defines this for functions which it implements
45789 to always fail with ENOSYS. Some functions are actually named
45790 something starting with __ and the normal name is an alias. */
45791 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
45794 char (*f) () = setpgrp;
45803 return f != setpgrp;
45808 rm -f conftest.$ac_objext conftest$ac_exeext
45809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45810 (eval $ac_link) 2>conftest.er1
45812 grep -v '^ *+' conftest.er1 >conftest.err
45814 cat conftest.err >&5
45815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45816 (exit $ac_status); } &&
45817 { ac_try='test -z "$ac_c_werror_flag"
45818 || test ! -s conftest.err'
45819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45820 (eval $ac_try) 2>&5
45822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45823 (exit $ac_status); }; } &&
45824 { ac_try='test -s conftest$ac_exeext'
45825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45826 (eval $ac_try) 2>&5
45828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45829 (exit $ac_status); }; }; then
45830 ac_cv_func_setpgrp=yes
45832 echo "$as_me: failed program was:" >&5
45833 sed 's/^/| /' conftest.$ac_ext >&5
45835 ac_cv_func_setpgrp=no
45837 rm -f conftest.err conftest.$ac_objext \
45838 conftest$ac_exeext conftest.$ac_ext
45840 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
45841 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
45842 if test $ac_cv_func_setpgrp = yes; then
45843 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
45844 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
45845 if test "${ac_cv_func_setpgrp_void+set}" = set; then
45846 echo $ECHO_N "(cached) $ECHO_C" >&6
45848 if test "$cross_compiling" = yes; then
45849 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
45850 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
45851 { (exit 1); exit 1; }; }
45853 cat >conftest.$ac_ext <<_ACEOF
45856 cat confdefs.h >>conftest.$ac_ext
45857 cat >>conftest.$ac_ext <<_ACEOF
45858 /* end confdefs.h. */
45860 # include <unistd.h>
45866 /* If this system has a BSD-style setpgrp which takes arguments,
45867 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
45868 exit successfully. */
45869 exit (setpgrp (1,1) == -1 ? 0 : 1);
45874 rm -f conftest$ac_exeext
45875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45876 (eval $ac_link) 2>&5
45878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45881 (eval $ac_try) 2>&5
45883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45884 (exit $ac_status); }; }; then
45885 ac_cv_func_setpgrp_void=no
45887 echo "$as_me: program exited with status $ac_status" >&5
45888 echo "$as_me: failed program was:" >&5
45889 sed 's/^/| /' conftest.$ac_ext >&5
45891 ( exit $ac_status )
45892 ac_cv_func_setpgrp_void=yes
45894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45897 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
45898 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
45899 if test $ac_cv_func_setpgrp_void = yes; then
45901 cat >>confdefs.h <<\_ACEOF
45902 #define SETPGRP_VOID 1
45910 ice_have_setpgrp=no
45912 for ac_func in setpgrp
45914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45915 echo "$as_me:$LINENO: checking for $ac_func" >&5
45916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45917 if eval "test \"\${$as_ac_var+set}\" = set"; then
45918 echo $ECHO_N "(cached) $ECHO_C" >&6
45920 cat >conftest.$ac_ext <<_ACEOF
45923 cat confdefs.h >>conftest.$ac_ext
45924 cat >>conftest.$ac_ext <<_ACEOF
45925 /* end confdefs.h. */
45926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45928 #define $ac_func innocuous_$ac_func
45930 /* System header to define __stub macros and hopefully few prototypes,
45931 which can conflict with char $ac_func (); below.
45932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45933 <limits.h> exists even on freestanding compilers. */
45936 # include <limits.h>
45938 # include <assert.h>
45943 /* Override any gcc2 internal prototype to avoid an error. */
45948 /* We use char because int might match the return type of a gcc2
45949 builtin and then its argument prototype would still apply. */
45951 /* The GNU C library defines this for functions which it implements
45952 to always fail with ENOSYS. Some functions are actually named
45953 something starting with __ and the normal name is an alias. */
45954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45957 char (*f) () = $ac_func;
45966 return f != $ac_func;
45971 rm -f conftest.$ac_objext conftest$ac_exeext
45972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45973 (eval $ac_link) 2>conftest.er1
45975 grep -v '^ *+' conftest.er1 >conftest.err
45977 cat conftest.err >&5
45978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45979 (exit $ac_status); } &&
45980 { ac_try='test -z "$ac_c_werror_flag"
45981 || test ! -s conftest.err'
45982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45983 (eval $ac_try) 2>&5
45985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45986 (exit $ac_status); }; } &&
45987 { ac_try='test -s conftest$ac_exeext'
45988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45989 (eval $ac_try) 2>&5
45991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45992 (exit $ac_status); }; }; then
45993 eval "$as_ac_var=yes"
45995 echo "$as_me: failed program was:" >&5
45996 sed 's/^/| /' conftest.$ac_ext >&5
45998 eval "$as_ac_var=no"
46000 rm -f conftest.err conftest.$ac_objext \
46001 conftest$ac_exeext conftest.$ac_ext
46003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46005 if test `eval echo '${'$as_ac_var'}'` = yes; then
46006 cat >>confdefs.h <<_ACEOF
46007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46009 ice_have_setpgrp=yes
46013 if test "${ice_have_setpgrp}" = yes; then
46014 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
46015 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
46016 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
46017 echo $ECHO_N "(cached) $ECHO_C" >&6
46020 ice_cv_have_setpgrp_decl=no
46021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46022 ice_re_word='(^|[^a-zA-Z0-9_])'
46023 for header in sys/types.h unistd.h libc.h; do
46024 # Check for ordinary declaration
46025 cat >conftest.$ac_ext <<_ACEOF
46028 cat confdefs.h >>conftest.$ac_ext
46029 cat >>conftest.$ac_ext <<_ACEOF
46030 /* end confdefs.h. */
46034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46035 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
46036 ice_cv_have_setpgrp_decl=yes
46040 if test "$ice_cv_have_setpgrp_decl" = yes; then
46043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46044 cat >conftest.$ac_ext <<_ACEOF
46047 cat confdefs.h >>conftest.$ac_ext
46048 cat >>conftest.$ac_ext <<_ACEOF
46049 /* end confdefs.h. */
46053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46054 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46055 ice_cv_have_setpgrp_decl=yes
46059 if test "$ice_cv_have_setpgrp_decl" = yes; then
46066 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
46067 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
46068 if test "$ice_cv_have_setpgrp_decl" = yes; then
46070 cat >>confdefs.h <<_ACEOF
46071 #define HAVE_SETPGRP_DECL 1
46079 ice_have_setsockopt=no
46081 for ac_func in setsockopt
46083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46084 echo "$as_me:$LINENO: checking for $ac_func" >&5
46085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46086 if eval "test \"\${$as_ac_var+set}\" = set"; then
46087 echo $ECHO_N "(cached) $ECHO_C" >&6
46089 cat >conftest.$ac_ext <<_ACEOF
46092 cat confdefs.h >>conftest.$ac_ext
46093 cat >>conftest.$ac_ext <<_ACEOF
46094 /* end confdefs.h. */
46095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46097 #define $ac_func innocuous_$ac_func
46099 /* System header to define __stub macros and hopefully few prototypes,
46100 which can conflict with char $ac_func (); below.
46101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46102 <limits.h> exists even on freestanding compilers. */
46105 # include <limits.h>
46107 # include <assert.h>
46112 /* Override any gcc2 internal prototype to avoid an error. */
46117 /* We use char because int might match the return type of a gcc2
46118 builtin and then its argument prototype would still apply. */
46120 /* The GNU C library defines this for functions which it implements
46121 to always fail with ENOSYS. Some functions are actually named
46122 something starting with __ and the normal name is an alias. */
46123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46126 char (*f) () = $ac_func;
46135 return f != $ac_func;
46140 rm -f conftest.$ac_objext conftest$ac_exeext
46141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46142 (eval $ac_link) 2>conftest.er1
46144 grep -v '^ *+' conftest.er1 >conftest.err
46146 cat conftest.err >&5
46147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46148 (exit $ac_status); } &&
46149 { ac_try='test -z "$ac_c_werror_flag"
46150 || test ! -s conftest.err'
46151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46152 (eval $ac_try) 2>&5
46154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46155 (exit $ac_status); }; } &&
46156 { ac_try='test -s conftest$ac_exeext'
46157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46158 (eval $ac_try) 2>&5
46160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46161 (exit $ac_status); }; }; then
46162 eval "$as_ac_var=yes"
46164 echo "$as_me: failed program was:" >&5
46165 sed 's/^/| /' conftest.$ac_ext >&5
46167 eval "$as_ac_var=no"
46169 rm -f conftest.err conftest.$ac_objext \
46170 conftest$ac_exeext conftest.$ac_ext
46172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46174 if test `eval echo '${'$as_ac_var'}'` = yes; then
46175 cat >>confdefs.h <<_ACEOF
46176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46178 ice_have_setsockopt=yes
46182 if test "${ice_have_setsockopt}" = yes; then
46183 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
46184 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46185 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
46186 echo $ECHO_N "(cached) $ECHO_C" >&6
46189 ice_cv_have_setsockopt_decl=no
46190 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46191 ice_re_word='(^|[^a-zA-Z0-9_])'
46192 for header in sys/types.h sys/socket.h; do
46193 # Check for ordinary declaration
46194 cat >conftest.$ac_ext <<_ACEOF
46197 cat confdefs.h >>conftest.$ac_ext
46198 cat >>conftest.$ac_ext <<_ACEOF
46199 /* end confdefs.h. */
46203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46204 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
46205 ice_cv_have_setsockopt_decl=yes
46209 if test "$ice_cv_have_setsockopt_decl" = yes; then
46212 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46213 cat >conftest.$ac_ext <<_ACEOF
46216 cat confdefs.h >>conftest.$ac_ext
46217 cat >>conftest.$ac_ext <<_ACEOF
46218 /* end confdefs.h. */
46222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46223 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46224 ice_cv_have_setsockopt_decl=yes
46228 if test "$ice_cv_have_setsockopt_decl" = yes; then
46235 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
46236 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
46237 if test "$ice_cv_have_setsockopt_decl" = yes; then
46239 cat >>confdefs.h <<_ACEOF
46240 #define HAVE_SETSOCKOPT_DECL 1
46248 for ac_func in shmget
46250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46251 echo "$as_me:$LINENO: checking for $ac_func" >&5
46252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46253 if eval "test \"\${$as_ac_var+set}\" = set"; then
46254 echo $ECHO_N "(cached) $ECHO_C" >&6
46256 cat >conftest.$ac_ext <<_ACEOF
46259 cat confdefs.h >>conftest.$ac_ext
46260 cat >>conftest.$ac_ext <<_ACEOF
46261 /* end confdefs.h. */
46262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46264 #define $ac_func innocuous_$ac_func
46266 /* System header to define __stub macros and hopefully few prototypes,
46267 which can conflict with char $ac_func (); below.
46268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46269 <limits.h> exists even on freestanding compilers. */
46272 # include <limits.h>
46274 # include <assert.h>
46279 /* Override any gcc2 internal prototype to avoid an error. */
46284 /* We use char because int might match the return type of a gcc2
46285 builtin and then its argument prototype would still apply. */
46287 /* The GNU C library defines this for functions which it implements
46288 to always fail with ENOSYS. Some functions are actually named
46289 something starting with __ and the normal name is an alias. */
46290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46293 char (*f) () = $ac_func;
46302 return f != $ac_func;
46307 rm -f conftest.$ac_objext conftest$ac_exeext
46308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46309 (eval $ac_link) 2>conftest.er1
46311 grep -v '^ *+' conftest.er1 >conftest.err
46313 cat conftest.err >&5
46314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46315 (exit $ac_status); } &&
46316 { ac_try='test -z "$ac_c_werror_flag"
46317 || test ! -s conftest.err'
46318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46319 (eval $ac_try) 2>&5
46321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46322 (exit $ac_status); }; } &&
46323 { ac_try='test -s conftest$ac_exeext'
46324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46325 (eval $ac_try) 2>&5
46327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46328 (exit $ac_status); }; }; then
46329 eval "$as_ac_var=yes"
46331 echo "$as_me: failed program was:" >&5
46332 sed 's/^/| /' conftest.$ac_ext >&5
46334 eval "$as_ac_var=no"
46336 rm -f conftest.err conftest.$ac_objext \
46337 conftest$ac_exeext conftest.$ac_ext
46339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46341 if test `eval echo '${'$as_ac_var'}'` = yes; then
46342 cat >>confdefs.h <<_ACEOF
46343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46347 echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
46348 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
46349 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
46350 echo $ECHO_N "(cached) $ECHO_C" >&6
46353 if test "$ac_cv_func_shmget" = yes; then
46354 cat <<EOF >conftest.$ac_ext
46355 #include "confdefs.h"
46356 #ifdef HAVE_SYS_TYPES_H
46357 # include <sys/types.h>
46359 #ifdef HAVE_SYS_IPC_H
46360 # include <sys/ipc.h>
46362 #ifdef HAVE_SYS_SHM_H
46363 # include <sys/shm.h>
46367 extern "C" void *shmat(int, void *, int);
46378 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
46379 if test $? = 0; then
46380 amanda_cv_shmdt_arg_type=void
46382 amanda_cv_shmdt_arg_type=char
46386 amanda_cv_shmdt_arg_type=nothing
46391 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
46392 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
46394 cat >>confdefs.h <<_ACEOF
46395 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
46400 case "$FORCE_MMAP" in
46403 cat >>confdefs.h <<\_ACEOF
46404 #define HAVE_SYSVSHM 1
46417 for ac_func in shmat
46419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46420 echo "$as_me:$LINENO: checking for $ac_func" >&5
46421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46422 if eval "test \"\${$as_ac_var+set}\" = set"; then
46423 echo $ECHO_N "(cached) $ECHO_C" >&6
46425 cat >conftest.$ac_ext <<_ACEOF
46428 cat confdefs.h >>conftest.$ac_ext
46429 cat >>conftest.$ac_ext <<_ACEOF
46430 /* end confdefs.h. */
46431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46433 #define $ac_func innocuous_$ac_func
46435 /* System header to define __stub macros and hopefully few prototypes,
46436 which can conflict with char $ac_func (); below.
46437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46438 <limits.h> exists even on freestanding compilers. */
46441 # include <limits.h>
46443 # include <assert.h>
46448 /* Override any gcc2 internal prototype to avoid an error. */
46453 /* We use char because int might match the return type of a gcc2
46454 builtin and then its argument prototype would still apply. */
46456 /* The GNU C library defines this for functions which it implements
46457 to always fail with ENOSYS. Some functions are actually named
46458 something starting with __ and the normal name is an alias. */
46459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46462 char (*f) () = $ac_func;
46471 return f != $ac_func;
46476 rm -f conftest.$ac_objext conftest$ac_exeext
46477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46478 (eval $ac_link) 2>conftest.er1
46480 grep -v '^ *+' conftest.er1 >conftest.err
46482 cat conftest.err >&5
46483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46484 (exit $ac_status); } &&
46485 { ac_try='test -z "$ac_c_werror_flag"
46486 || test ! -s conftest.err'
46487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46488 (eval $ac_try) 2>&5
46490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46491 (exit $ac_status); }; } &&
46492 { ac_try='test -s conftest$ac_exeext'
46493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46494 (eval $ac_try) 2>&5
46496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46497 (exit $ac_status); }; }; then
46498 eval "$as_ac_var=yes"
46500 echo "$as_me: failed program was:" >&5
46501 sed 's/^/| /' conftest.$ac_ext >&5
46503 eval "$as_ac_var=no"
46505 rm -f conftest.err conftest.$ac_objext \
46506 conftest$ac_exeext conftest.$ac_ext
46508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46510 if test `eval echo '${'$as_ac_var'}'` = yes; then
46511 cat >>confdefs.h <<_ACEOF
46512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46518 if test "${ice_have_shmat}" = yes; then
46519 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
46520 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
46521 if test "${ice_cv_have_shmat_decl+set}" = set; then
46522 echo $ECHO_N "(cached) $ECHO_C" >&6
46525 ice_cv_have_shmat_decl=no
46526 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46527 ice_re_word='(^|[^a-zA-Z0-9_])'
46528 for header in sys/types.h sys/ipc.h sys/shm.h; do
46529 # Check for ordinary declaration
46530 cat >conftest.$ac_ext <<_ACEOF
46533 cat confdefs.h >>conftest.$ac_ext
46534 cat >>conftest.$ac_ext <<_ACEOF
46535 /* end confdefs.h. */
46539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46540 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
46541 ice_cv_have_shmat_decl=yes
46545 if test "$ice_cv_have_shmat_decl" = yes; then
46548 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46549 cat >conftest.$ac_ext <<_ACEOF
46552 cat confdefs.h >>conftest.$ac_ext
46553 cat >>conftest.$ac_ext <<_ACEOF
46554 /* end confdefs.h. */
46558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46559 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46560 ice_cv_have_shmat_decl=yes
46564 if test "$ice_cv_have_shmat_decl" = yes; then
46571 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
46572 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
46573 if test "$ice_cv_have_shmat_decl" = yes; then
46575 cat >>confdefs.h <<_ACEOF
46576 #define HAVE_SHMAT_DECL 1
46585 for ac_func in shmctl
46587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46588 echo "$as_me:$LINENO: checking for $ac_func" >&5
46589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46590 if eval "test \"\${$as_ac_var+set}\" = set"; then
46591 echo $ECHO_N "(cached) $ECHO_C" >&6
46593 cat >conftest.$ac_ext <<_ACEOF
46596 cat confdefs.h >>conftest.$ac_ext
46597 cat >>conftest.$ac_ext <<_ACEOF
46598 /* end confdefs.h. */
46599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46601 #define $ac_func innocuous_$ac_func
46603 /* System header to define __stub macros and hopefully few prototypes,
46604 which can conflict with char $ac_func (); below.
46605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46606 <limits.h> exists even on freestanding compilers. */
46609 # include <limits.h>
46611 # include <assert.h>
46616 /* Override any gcc2 internal prototype to avoid an error. */
46621 /* We use char because int might match the return type of a gcc2
46622 builtin and then its argument prototype would still apply. */
46624 /* The GNU C library defines this for functions which it implements
46625 to always fail with ENOSYS. Some functions are actually named
46626 something starting with __ and the normal name is an alias. */
46627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46630 char (*f) () = $ac_func;
46639 return f != $ac_func;
46644 rm -f conftest.$ac_objext conftest$ac_exeext
46645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46646 (eval $ac_link) 2>conftest.er1
46648 grep -v '^ *+' conftest.er1 >conftest.err
46650 cat conftest.err >&5
46651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46652 (exit $ac_status); } &&
46653 { ac_try='test -z "$ac_c_werror_flag"
46654 || test ! -s conftest.err'
46655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46656 (eval $ac_try) 2>&5
46658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46659 (exit $ac_status); }; } &&
46660 { ac_try='test -s conftest$ac_exeext'
46661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46662 (eval $ac_try) 2>&5
46664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46665 (exit $ac_status); }; }; then
46666 eval "$as_ac_var=yes"
46668 echo "$as_me: failed program was:" >&5
46669 sed 's/^/| /' conftest.$ac_ext >&5
46671 eval "$as_ac_var=no"
46673 rm -f conftest.err conftest.$ac_objext \
46674 conftest$ac_exeext conftest.$ac_ext
46676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46678 if test `eval echo '${'$as_ac_var'}'` = yes; then
46679 cat >>confdefs.h <<_ACEOF
46680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46682 ice_have_shmctl=yes
46686 if test "${ice_have_shmctl}" = yes; then
46687 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
46688 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
46689 if test "${ice_cv_have_shmctl_decl+set}" = set; then
46690 echo $ECHO_N "(cached) $ECHO_C" >&6
46693 ice_cv_have_shmctl_decl=no
46694 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46695 ice_re_word='(^|[^a-zA-Z0-9_])'
46696 for header in sys/types.h sys/ipc.h sys/shm.h; do
46697 # Check for ordinary declaration
46698 cat >conftest.$ac_ext <<_ACEOF
46701 cat confdefs.h >>conftest.$ac_ext
46702 cat >>conftest.$ac_ext <<_ACEOF
46703 /* end confdefs.h. */
46707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46708 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
46709 ice_cv_have_shmctl_decl=yes
46713 if test "$ice_cv_have_shmctl_decl" = yes; then
46716 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46717 cat >conftest.$ac_ext <<_ACEOF
46720 cat confdefs.h >>conftest.$ac_ext
46721 cat >>conftest.$ac_ext <<_ACEOF
46722 /* end confdefs.h. */
46726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46727 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46728 ice_cv_have_shmctl_decl=yes
46732 if test "$ice_cv_have_shmctl_decl" = yes; then
46739 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
46740 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
46741 if test "$ice_cv_have_shmctl_decl" = yes; then
46743 cat >>confdefs.h <<_ACEOF
46744 #define HAVE_SHMCTL_DECL 1
46753 for ac_func in shmdt
46755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46756 echo "$as_me:$LINENO: checking for $ac_func" >&5
46757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46758 if eval "test \"\${$as_ac_var+set}\" = set"; then
46759 echo $ECHO_N "(cached) $ECHO_C" >&6
46761 cat >conftest.$ac_ext <<_ACEOF
46764 cat confdefs.h >>conftest.$ac_ext
46765 cat >>conftest.$ac_ext <<_ACEOF
46766 /* end confdefs.h. */
46767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46769 #define $ac_func innocuous_$ac_func
46771 /* System header to define __stub macros and hopefully few prototypes,
46772 which can conflict with char $ac_func (); below.
46773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46774 <limits.h> exists even on freestanding compilers. */
46777 # include <limits.h>
46779 # include <assert.h>
46784 /* Override any gcc2 internal prototype to avoid an error. */
46789 /* We use char because int might match the return type of a gcc2
46790 builtin and then its argument prototype would still apply. */
46792 /* The GNU C library defines this for functions which it implements
46793 to always fail with ENOSYS. Some functions are actually named
46794 something starting with __ and the normal name is an alias. */
46795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46798 char (*f) () = $ac_func;
46807 return f != $ac_func;
46812 rm -f conftest.$ac_objext conftest$ac_exeext
46813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46814 (eval $ac_link) 2>conftest.er1
46816 grep -v '^ *+' conftest.er1 >conftest.err
46818 cat conftest.err >&5
46819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46820 (exit $ac_status); } &&
46821 { ac_try='test -z "$ac_c_werror_flag"
46822 || test ! -s conftest.err'
46823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46824 (eval $ac_try) 2>&5
46826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46827 (exit $ac_status); }; } &&
46828 { ac_try='test -s conftest$ac_exeext'
46829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46830 (eval $ac_try) 2>&5
46832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46833 (exit $ac_status); }; }; then
46834 eval "$as_ac_var=yes"
46836 echo "$as_me: failed program was:" >&5
46837 sed 's/^/| /' conftest.$ac_ext >&5
46839 eval "$as_ac_var=no"
46841 rm -f conftest.err conftest.$ac_objext \
46842 conftest$ac_exeext conftest.$ac_ext
46844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46846 if test `eval echo '${'$as_ac_var'}'` = yes; then
46847 cat >>confdefs.h <<_ACEOF
46848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46854 if test "${ice_have_shmdt}" = yes; then
46855 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
46856 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
46857 if test "${ice_cv_have_shmdt_decl+set}" = set; then
46858 echo $ECHO_N "(cached) $ECHO_C" >&6
46861 ice_cv_have_shmdt_decl=no
46862 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46863 ice_re_word='(^|[^a-zA-Z0-9_])'
46864 for header in sys/types.h sys/ipc.h sys/shm.h; do
46865 # Check for ordinary declaration
46866 cat >conftest.$ac_ext <<_ACEOF
46869 cat confdefs.h >>conftest.$ac_ext
46870 cat >>conftest.$ac_ext <<_ACEOF
46871 /* end confdefs.h. */
46875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46876 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
46877 ice_cv_have_shmdt_decl=yes
46881 if test "$ice_cv_have_shmdt_decl" = yes; then
46884 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46885 cat >conftest.$ac_ext <<_ACEOF
46888 cat confdefs.h >>conftest.$ac_ext
46889 cat >>conftest.$ac_ext <<_ACEOF
46890 /* end confdefs.h. */
46894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46895 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46896 ice_cv_have_shmdt_decl=yes
46900 if test "$ice_cv_have_shmdt_decl" = yes; then
46907 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
46908 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
46909 if test "$ice_cv_have_shmdt_decl" = yes; then
46911 cat >>confdefs.h <<_ACEOF
46912 #define HAVE_SHMDT_DECL 1
46921 for ac_func in shmget
46923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46924 echo "$as_me:$LINENO: checking for $ac_func" >&5
46925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46926 if eval "test \"\${$as_ac_var+set}\" = set"; then
46927 echo $ECHO_N "(cached) $ECHO_C" >&6
46929 cat >conftest.$ac_ext <<_ACEOF
46932 cat confdefs.h >>conftest.$ac_ext
46933 cat >>conftest.$ac_ext <<_ACEOF
46934 /* end confdefs.h. */
46935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46937 #define $ac_func innocuous_$ac_func
46939 /* System header to define __stub macros and hopefully few prototypes,
46940 which can conflict with char $ac_func (); below.
46941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46942 <limits.h> exists even on freestanding compilers. */
46945 # include <limits.h>
46947 # include <assert.h>
46952 /* Override any gcc2 internal prototype to avoid an error. */
46957 /* We use char because int might match the return type of a gcc2
46958 builtin and then its argument prototype would still apply. */
46960 /* The GNU C library defines this for functions which it implements
46961 to always fail with ENOSYS. Some functions are actually named
46962 something starting with __ and the normal name is an alias. */
46963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46966 char (*f) () = $ac_func;
46975 return f != $ac_func;
46980 rm -f conftest.$ac_objext conftest$ac_exeext
46981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46982 (eval $ac_link) 2>conftest.er1
46984 grep -v '^ *+' conftest.er1 >conftest.err
46986 cat conftest.err >&5
46987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46988 (exit $ac_status); } &&
46989 { ac_try='test -z "$ac_c_werror_flag"
46990 || test ! -s conftest.err'
46991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46992 (eval $ac_try) 2>&5
46994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46995 (exit $ac_status); }; } &&
46996 { ac_try='test -s conftest$ac_exeext'
46997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46998 (eval $ac_try) 2>&5
47000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47001 (exit $ac_status); }; }; then
47002 eval "$as_ac_var=yes"
47004 echo "$as_me: failed program was:" >&5
47005 sed 's/^/| /' conftest.$ac_ext >&5
47007 eval "$as_ac_var=no"
47009 rm -f conftest.err conftest.$ac_objext \
47010 conftest$ac_exeext conftest.$ac_ext
47012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47014 if test `eval echo '${'$as_ac_var'}'` = yes; then
47015 cat >>confdefs.h <<_ACEOF
47016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47018 ice_have_shmget=yes
47022 if test "${ice_have_shmget}" = yes; then
47023 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
47024 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
47025 if test "${ice_cv_have_shmget_decl+set}" = set; then
47026 echo $ECHO_N "(cached) $ECHO_C" >&6
47029 ice_cv_have_shmget_decl=no
47030 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47031 ice_re_word='(^|[^a-zA-Z0-9_])'
47032 for header in sys/types.h sys/ipc.h sys/shm.h; do
47033 # Check for ordinary declaration
47034 cat >conftest.$ac_ext <<_ACEOF
47037 cat confdefs.h >>conftest.$ac_ext
47038 cat >>conftest.$ac_ext <<_ACEOF
47039 /* end confdefs.h. */
47043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47044 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
47045 ice_cv_have_shmget_decl=yes
47049 if test "$ice_cv_have_shmget_decl" = yes; then
47052 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47053 cat >conftest.$ac_ext <<_ACEOF
47056 cat confdefs.h >>conftest.$ac_ext
47057 cat >>conftest.$ac_ext <<_ACEOF
47058 /* end confdefs.h. */
47062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47063 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47064 ice_cv_have_shmget_decl=yes
47068 if test "$ice_cv_have_shmget_decl" = yes; then
47075 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
47076 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
47077 if test "$ice_cv_have_shmget_decl" = yes; then
47079 cat >>confdefs.h <<_ACEOF
47080 #define HAVE_SHMGET_DECL 1
47087 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
47088 case "$FORCE_MMAP" in
47090 if test "x$ac_cv_func_shmget" != xyes; then
47091 { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
47092 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
47093 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
47094 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
47095 NO_SERVER_MODE=true
47099 { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
47100 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
47101 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
47102 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
47103 NO_SERVER_MODE=true
47109 ice_have_snprintf=no
47111 for ac_func in snprintf
47113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47114 echo "$as_me:$LINENO: checking for $ac_func" >&5
47115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47116 if eval "test \"\${$as_ac_var+set}\" = set"; then
47117 echo $ECHO_N "(cached) $ECHO_C" >&6
47119 cat >conftest.$ac_ext <<_ACEOF
47122 cat confdefs.h >>conftest.$ac_ext
47123 cat >>conftest.$ac_ext <<_ACEOF
47124 /* end confdefs.h. */
47125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47127 #define $ac_func innocuous_$ac_func
47129 /* System header to define __stub macros and hopefully few prototypes,
47130 which can conflict with char $ac_func (); below.
47131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47132 <limits.h> exists even on freestanding compilers. */
47135 # include <limits.h>
47137 # include <assert.h>
47142 /* Override any gcc2 internal prototype to avoid an error. */
47147 /* We use char because int might match the return type of a gcc2
47148 builtin and then its argument prototype would still apply. */
47150 /* The GNU C library defines this for functions which it implements
47151 to always fail with ENOSYS. Some functions are actually named
47152 something starting with __ and the normal name is an alias. */
47153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47156 char (*f) () = $ac_func;
47165 return f != $ac_func;
47170 rm -f conftest.$ac_objext conftest$ac_exeext
47171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47172 (eval $ac_link) 2>conftest.er1
47174 grep -v '^ *+' conftest.er1 >conftest.err
47176 cat conftest.err >&5
47177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47178 (exit $ac_status); } &&
47179 { ac_try='test -z "$ac_c_werror_flag"
47180 || test ! -s conftest.err'
47181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47182 (eval $ac_try) 2>&5
47184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47185 (exit $ac_status); }; } &&
47186 { ac_try='test -s conftest$ac_exeext'
47187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47188 (eval $ac_try) 2>&5
47190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47191 (exit $ac_status); }; }; then
47192 eval "$as_ac_var=yes"
47194 echo "$as_me: failed program was:" >&5
47195 sed 's/^/| /' conftest.$ac_ext >&5
47197 eval "$as_ac_var=no"
47199 rm -f conftest.err conftest.$ac_objext \
47200 conftest$ac_exeext conftest.$ac_ext
47202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47204 if test `eval echo '${'$as_ac_var'}'` = yes; then
47205 cat >>confdefs.h <<_ACEOF
47206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47208 ice_have_snprintf=yes
47212 if test "${ice_have_snprintf}" = yes; then
47213 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
47214 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
47215 if test "${ice_cv_have_snprintf_decl+set}" = set; then
47216 echo $ECHO_N "(cached) $ECHO_C" >&6
47219 ice_cv_have_snprintf_decl=no
47220 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47221 ice_re_word='(^|[^a-zA-Z0-9_])'
47222 for header in stdio.h; do
47223 # Check for ordinary declaration
47224 cat >conftest.$ac_ext <<_ACEOF
47227 cat confdefs.h >>conftest.$ac_ext
47228 cat >>conftest.$ac_ext <<_ACEOF
47229 /* end confdefs.h. */
47233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47234 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
47235 ice_cv_have_snprintf_decl=yes
47239 if test "$ice_cv_have_snprintf_decl" = yes; then
47242 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47243 cat >conftest.$ac_ext <<_ACEOF
47246 cat confdefs.h >>conftest.$ac_ext
47247 cat >>conftest.$ac_ext <<_ACEOF
47248 /* end confdefs.h. */
47252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47253 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47254 ice_cv_have_snprintf_decl=yes
47258 if test "$ice_cv_have_snprintf_decl" = yes; then
47265 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
47266 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
47267 if test "$ice_cv_have_snprintf_decl" = yes; then
47269 cat >>confdefs.h <<_ACEOF
47270 #define HAVE_SNPRINTF_DECL 1
47277 ice_have_vsnprintf=no
47279 for ac_func in vsnprintf
47281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47282 echo "$as_me:$LINENO: checking for $ac_func" >&5
47283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47284 if eval "test \"\${$as_ac_var+set}\" = set"; then
47285 echo $ECHO_N "(cached) $ECHO_C" >&6
47287 cat >conftest.$ac_ext <<_ACEOF
47290 cat confdefs.h >>conftest.$ac_ext
47291 cat >>conftest.$ac_ext <<_ACEOF
47292 /* end confdefs.h. */
47293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47295 #define $ac_func innocuous_$ac_func
47297 /* System header to define __stub macros and hopefully few prototypes,
47298 which can conflict with char $ac_func (); below.
47299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47300 <limits.h> exists even on freestanding compilers. */
47303 # include <limits.h>
47305 # include <assert.h>
47310 /* Override any gcc2 internal prototype to avoid an error. */
47315 /* We use char because int might match the return type of a gcc2
47316 builtin and then its argument prototype would still apply. */
47318 /* The GNU C library defines this for functions which it implements
47319 to always fail with ENOSYS. Some functions are actually named
47320 something starting with __ and the normal name is an alias. */
47321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47324 char (*f) () = $ac_func;
47333 return f != $ac_func;
47338 rm -f conftest.$ac_objext conftest$ac_exeext
47339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47340 (eval $ac_link) 2>conftest.er1
47342 grep -v '^ *+' conftest.er1 >conftest.err
47344 cat conftest.err >&5
47345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346 (exit $ac_status); } &&
47347 { ac_try='test -z "$ac_c_werror_flag"
47348 || test ! -s conftest.err'
47349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47350 (eval $ac_try) 2>&5
47352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47353 (exit $ac_status); }; } &&
47354 { ac_try='test -s conftest$ac_exeext'
47355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47356 (eval $ac_try) 2>&5
47358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47359 (exit $ac_status); }; }; then
47360 eval "$as_ac_var=yes"
47362 echo "$as_me: failed program was:" >&5
47363 sed 's/^/| /' conftest.$ac_ext >&5
47365 eval "$as_ac_var=no"
47367 rm -f conftest.err conftest.$ac_objext \
47368 conftest$ac_exeext conftest.$ac_ext
47370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47372 if test `eval echo '${'$as_ac_var'}'` = yes; then
47373 cat >>confdefs.h <<_ACEOF
47374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47376 ice_have_vsnprintf=yes
47380 if test "${ice_have_vsnprintf}" = yes; then
47381 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
47382 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
47383 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
47384 echo $ECHO_N "(cached) $ECHO_C" >&6
47387 ice_cv_have_vsnprintf_decl=no
47388 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47389 ice_re_word='(^|[^a-zA-Z0-9_])'
47390 for header in stdio.h; do
47391 # Check for ordinary declaration
47392 cat >conftest.$ac_ext <<_ACEOF
47395 cat confdefs.h >>conftest.$ac_ext
47396 cat >>conftest.$ac_ext <<_ACEOF
47397 /* end confdefs.h. */
47401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47402 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
47403 ice_cv_have_vsnprintf_decl=yes
47407 if test "$ice_cv_have_vsnprintf_decl" = yes; then
47410 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47411 cat >conftest.$ac_ext <<_ACEOF
47414 cat confdefs.h >>conftest.$ac_ext
47415 cat >>conftest.$ac_ext <<_ACEOF
47416 /* end confdefs.h. */
47420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47421 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47422 ice_cv_have_vsnprintf_decl=yes
47426 if test "$ice_cv_have_vsnprintf_decl" = yes; then
47433 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
47434 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
47435 if test "$ice_cv_have_vsnprintf_decl" = yes; then
47437 cat >>confdefs.h <<_ACEOF
47438 #define HAVE_VSNPRINTF_DECL 1
47444 if test x"$ice_have_snprintf" != x"yes" ||
47445 test x"$ice_have_vsnprintf" != x"yes"; then
47447 "snprintf.$ac_objext" | \
47448 *" snprintf.$ac_objext" | \
47449 "snprintf.$ac_objext "* | \
47450 *" snprintf.$ac_objext "* ) ;;
47451 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
47456 for ac_func in snprintf
47458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47459 echo "$as_me:$LINENO: checking for $ac_func" >&5
47460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47461 if eval "test \"\${$as_ac_var+set}\" = set"; then
47462 echo $ECHO_N "(cached) $ECHO_C" >&6
47464 cat >conftest.$ac_ext <<_ACEOF
47467 cat confdefs.h >>conftest.$ac_ext
47468 cat >>conftest.$ac_ext <<_ACEOF
47469 /* end confdefs.h. */
47470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47472 #define $ac_func innocuous_$ac_func
47474 /* System header to define __stub macros and hopefully few prototypes,
47475 which can conflict with char $ac_func (); below.
47476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47477 <limits.h> exists even on freestanding compilers. */
47480 # include <limits.h>
47482 # include <assert.h>
47487 /* Override any gcc2 internal prototype to avoid an error. */
47492 /* We use char because int might match the return type of a gcc2
47493 builtin and then its argument prototype would still apply. */
47495 /* The GNU C library defines this for functions which it implements
47496 to always fail with ENOSYS. Some functions are actually named
47497 something starting with __ and the normal name is an alias. */
47498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47501 char (*f) () = $ac_func;
47510 return f != $ac_func;
47515 rm -f conftest.$ac_objext conftest$ac_exeext
47516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47517 (eval $ac_link) 2>conftest.er1
47519 grep -v '^ *+' conftest.er1 >conftest.err
47521 cat conftest.err >&5
47522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47523 (exit $ac_status); } &&
47524 { ac_try='test -z "$ac_c_werror_flag"
47525 || test ! -s conftest.err'
47526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47527 (eval $ac_try) 2>&5
47529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47530 (exit $ac_status); }; } &&
47531 { ac_try='test -s conftest$ac_exeext'
47532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47533 (eval $ac_try) 2>&5
47535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47536 (exit $ac_status); }; }; then
47537 eval "$as_ac_var=yes"
47539 echo "$as_me: failed program was:" >&5
47540 sed 's/^/| /' conftest.$ac_ext >&5
47542 eval "$as_ac_var=no"
47544 rm -f conftest.err conftest.$ac_objext \
47545 conftest$ac_exeext conftest.$ac_ext
47547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47549 if test `eval echo '${'$as_ac_var'}'` = yes; then
47550 cat >>confdefs.h <<_ACEOF
47551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47556 "$ac_func.$ac_objext" | \
47557 *" $ac_func.$ac_objext" | \
47558 "$ac_func.$ac_objext "* | \
47559 *" $ac_func.$ac_objext "* ) ;;
47560 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
47573 for ac_func in sigaction sigemptyset sigvec
47575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47576 echo "$as_me:$LINENO: checking for $ac_func" >&5
47577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47578 if eval "test \"\${$as_ac_var+set}\" = set"; then
47579 echo $ECHO_N "(cached) $ECHO_C" >&6
47581 cat >conftest.$ac_ext <<_ACEOF
47584 cat confdefs.h >>conftest.$ac_ext
47585 cat >>conftest.$ac_ext <<_ACEOF
47586 /* end confdefs.h. */
47587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47589 #define $ac_func innocuous_$ac_func
47591 /* System header to define __stub macros and hopefully few prototypes,
47592 which can conflict with char $ac_func (); below.
47593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47594 <limits.h> exists even on freestanding compilers. */
47597 # include <limits.h>
47599 # include <assert.h>
47604 /* Override any gcc2 internal prototype to avoid an error. */
47609 /* We use char because int might match the return type of a gcc2
47610 builtin and then its argument prototype would still apply. */
47612 /* The GNU C library defines this for functions which it implements
47613 to always fail with ENOSYS. Some functions are actually named
47614 something starting with __ and the normal name is an alias. */
47615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47618 char (*f) () = $ac_func;
47627 return f != $ac_func;
47632 rm -f conftest.$ac_objext conftest$ac_exeext
47633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47634 (eval $ac_link) 2>conftest.er1
47636 grep -v '^ *+' conftest.er1 >conftest.err
47638 cat conftest.err >&5
47639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47640 (exit $ac_status); } &&
47641 { ac_try='test -z "$ac_c_werror_flag"
47642 || test ! -s conftest.err'
47643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47644 (eval $ac_try) 2>&5
47646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47647 (exit $ac_status); }; } &&
47648 { ac_try='test -s conftest$ac_exeext'
47649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47650 (eval $ac_try) 2>&5
47652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47653 (exit $ac_status); }; }; then
47654 eval "$as_ac_var=yes"
47656 echo "$as_me: failed program was:" >&5
47657 sed 's/^/| /' conftest.$ac_ext >&5
47659 eval "$as_ac_var=no"
47661 rm -f conftest.err conftest.$ac_objext \
47662 conftest$ac_exeext conftest.$ac_ext
47664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47666 if test `eval echo '${'$as_ac_var'}'` = yes; then
47667 cat >>confdefs.h <<_ACEOF
47668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47677 for ac_func in socket
47679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47680 echo "$as_me:$LINENO: checking for $ac_func" >&5
47681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47682 if eval "test \"\${$as_ac_var+set}\" = set"; then
47683 echo $ECHO_N "(cached) $ECHO_C" >&6
47685 cat >conftest.$ac_ext <<_ACEOF
47688 cat confdefs.h >>conftest.$ac_ext
47689 cat >>conftest.$ac_ext <<_ACEOF
47690 /* end confdefs.h. */
47691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47693 #define $ac_func innocuous_$ac_func
47695 /* System header to define __stub macros and hopefully few prototypes,
47696 which can conflict with char $ac_func (); below.
47697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47698 <limits.h> exists even on freestanding compilers. */
47701 # include <limits.h>
47703 # include <assert.h>
47708 /* Override any gcc2 internal prototype to avoid an error. */
47713 /* We use char because int might match the return type of a gcc2
47714 builtin and then its argument prototype would still apply. */
47716 /* The GNU C library defines this for functions which it implements
47717 to always fail with ENOSYS. Some functions are actually named
47718 something starting with __ and the normal name is an alias. */
47719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47722 char (*f) () = $ac_func;
47731 return f != $ac_func;
47736 rm -f conftest.$ac_objext conftest$ac_exeext
47737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47738 (eval $ac_link) 2>conftest.er1
47740 grep -v '^ *+' conftest.er1 >conftest.err
47742 cat conftest.err >&5
47743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47744 (exit $ac_status); } &&
47745 { ac_try='test -z "$ac_c_werror_flag"
47746 || test ! -s conftest.err'
47747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47748 (eval $ac_try) 2>&5
47750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47751 (exit $ac_status); }; } &&
47752 { ac_try='test -s conftest$ac_exeext'
47753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47754 (eval $ac_try) 2>&5
47756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47757 (exit $ac_status); }; }; then
47758 eval "$as_ac_var=yes"
47760 echo "$as_me: failed program was:" >&5
47761 sed 's/^/| /' conftest.$ac_ext >&5
47763 eval "$as_ac_var=no"
47765 rm -f conftest.err conftest.$ac_objext \
47766 conftest$ac_exeext conftest.$ac_ext
47768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47770 if test `eval echo '${'$as_ac_var'}'` = yes; then
47771 cat >>confdefs.h <<_ACEOF
47772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47774 ice_have_socket=yes
47778 if test "${ice_have_socket}" = yes; then
47779 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
47780 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47781 if test "${ice_cv_have_socket_decl+set}" = set; then
47782 echo $ECHO_N "(cached) $ECHO_C" >&6
47785 ice_cv_have_socket_decl=no
47786 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47787 ice_re_word='(^|[^a-zA-Z0-9_])'
47788 for header in sys/types.h sys/socket.h; do
47789 # Check for ordinary declaration
47790 cat >conftest.$ac_ext <<_ACEOF
47793 cat confdefs.h >>conftest.$ac_ext
47794 cat >>conftest.$ac_ext <<_ACEOF
47795 /* end confdefs.h. */
47799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47800 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
47801 ice_cv_have_socket_decl=yes
47805 if test "$ice_cv_have_socket_decl" = yes; then
47808 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47809 cat >conftest.$ac_ext <<_ACEOF
47812 cat confdefs.h >>conftest.$ac_ext
47813 cat >>conftest.$ac_ext <<_ACEOF
47814 /* end confdefs.h. */
47818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47819 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47820 ice_cv_have_socket_decl=yes
47824 if test "$ice_cv_have_socket_decl" = yes; then
47831 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
47832 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
47833 if test "$ice_cv_have_socket_decl" = yes; then
47835 cat >>confdefs.h <<_ACEOF
47836 #define HAVE_SOCKET_DECL 1
47843 ice_have_socketpair=no
47845 for ac_func in socketpair
47847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47848 echo "$as_me:$LINENO: checking for $ac_func" >&5
47849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47850 if eval "test \"\${$as_ac_var+set}\" = set"; then
47851 echo $ECHO_N "(cached) $ECHO_C" >&6
47853 cat >conftest.$ac_ext <<_ACEOF
47856 cat confdefs.h >>conftest.$ac_ext
47857 cat >>conftest.$ac_ext <<_ACEOF
47858 /* end confdefs.h. */
47859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47861 #define $ac_func innocuous_$ac_func
47863 /* System header to define __stub macros and hopefully few prototypes,
47864 which can conflict with char $ac_func (); below.
47865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47866 <limits.h> exists even on freestanding compilers. */
47869 # include <limits.h>
47871 # include <assert.h>
47876 /* Override any gcc2 internal prototype to avoid an error. */
47881 /* We use char because int might match the return type of a gcc2
47882 builtin and then its argument prototype would still apply. */
47884 /* The GNU C library defines this for functions which it implements
47885 to always fail with ENOSYS. Some functions are actually named
47886 something starting with __ and the normal name is an alias. */
47887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47890 char (*f) () = $ac_func;
47899 return f != $ac_func;
47904 rm -f conftest.$ac_objext conftest$ac_exeext
47905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47906 (eval $ac_link) 2>conftest.er1
47908 grep -v '^ *+' conftest.er1 >conftest.err
47910 cat conftest.err >&5
47911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47912 (exit $ac_status); } &&
47913 { ac_try='test -z "$ac_c_werror_flag"
47914 || test ! -s conftest.err'
47915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47916 (eval $ac_try) 2>&5
47918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47919 (exit $ac_status); }; } &&
47920 { ac_try='test -s conftest$ac_exeext'
47921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47922 (eval $ac_try) 2>&5
47924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47925 (exit $ac_status); }; }; then
47926 eval "$as_ac_var=yes"
47928 echo "$as_me: failed program was:" >&5
47929 sed 's/^/| /' conftest.$ac_ext >&5
47931 eval "$as_ac_var=no"
47933 rm -f conftest.err conftest.$ac_objext \
47934 conftest$ac_exeext conftest.$ac_ext
47936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47938 if test `eval echo '${'$as_ac_var'}'` = yes; then
47939 cat >>confdefs.h <<_ACEOF
47940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47942 ice_have_socketpair=yes
47946 if test "${ice_have_socketpair}" = yes; then
47947 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
47948 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47949 if test "${ice_cv_have_socketpair_decl+set}" = set; then
47950 echo $ECHO_N "(cached) $ECHO_C" >&6
47953 ice_cv_have_socketpair_decl=no
47954 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47955 ice_re_word='(^|[^a-zA-Z0-9_])'
47956 for header in sys/types.h sys/socket.h; do
47957 # Check for ordinary declaration
47958 cat >conftest.$ac_ext <<_ACEOF
47961 cat confdefs.h >>conftest.$ac_ext
47962 cat >>conftest.$ac_ext <<_ACEOF
47963 /* end confdefs.h. */
47967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47968 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
47969 ice_cv_have_socketpair_decl=yes
47973 if test "$ice_cv_have_socketpair_decl" = yes; then
47976 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47977 cat >conftest.$ac_ext <<_ACEOF
47980 cat confdefs.h >>conftest.$ac_ext
47981 cat >>conftest.$ac_ext <<_ACEOF
47982 /* end confdefs.h. */
47986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47987 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47988 ice_cv_have_socketpair_decl=yes
47992 if test "$ice_cv_have_socketpair_decl" = yes; then
47999 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
48000 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
48001 if test "$ice_cv_have_socketpair_decl" = yes; then
48003 cat >>confdefs.h <<_ACEOF
48004 #define HAVE_SOCKETPAIR_DECL 1
48013 for ac_func in sscanf
48015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48016 echo "$as_me:$LINENO: checking for $ac_func" >&5
48017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48018 if eval "test \"\${$as_ac_var+set}\" = set"; then
48019 echo $ECHO_N "(cached) $ECHO_C" >&6
48021 cat >conftest.$ac_ext <<_ACEOF
48024 cat confdefs.h >>conftest.$ac_ext
48025 cat >>conftest.$ac_ext <<_ACEOF
48026 /* end confdefs.h. */
48027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48029 #define $ac_func innocuous_$ac_func
48031 /* System header to define __stub macros and hopefully few prototypes,
48032 which can conflict with char $ac_func (); below.
48033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48034 <limits.h> exists even on freestanding compilers. */
48037 # include <limits.h>
48039 # include <assert.h>
48044 /* Override any gcc2 internal prototype to avoid an error. */
48049 /* We use char because int might match the return type of a gcc2
48050 builtin and then its argument prototype would still apply. */
48052 /* The GNU C library defines this for functions which it implements
48053 to always fail with ENOSYS. Some functions are actually named
48054 something starting with __ and the normal name is an alias. */
48055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48058 char (*f) () = $ac_func;
48067 return f != $ac_func;
48072 rm -f conftest.$ac_objext conftest$ac_exeext
48073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48074 (eval $ac_link) 2>conftest.er1
48076 grep -v '^ *+' conftest.er1 >conftest.err
48078 cat conftest.err >&5
48079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48080 (exit $ac_status); } &&
48081 { ac_try='test -z "$ac_c_werror_flag"
48082 || test ! -s conftest.err'
48083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48084 (eval $ac_try) 2>&5
48086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48087 (exit $ac_status); }; } &&
48088 { ac_try='test -s conftest$ac_exeext'
48089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48090 (eval $ac_try) 2>&5
48092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48093 (exit $ac_status); }; }; then
48094 eval "$as_ac_var=yes"
48096 echo "$as_me: failed program was:" >&5
48097 sed 's/^/| /' conftest.$ac_ext >&5
48099 eval "$as_ac_var=no"
48101 rm -f conftest.err conftest.$ac_objext \
48102 conftest$ac_exeext conftest.$ac_ext
48104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48106 if test `eval echo '${'$as_ac_var'}'` = yes; then
48107 cat >>confdefs.h <<_ACEOF
48108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48110 ice_have_sscanf=yes
48114 if test "${ice_have_sscanf}" = yes; then
48115 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
48116 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
48117 if test "${ice_cv_have_sscanf_decl+set}" = set; then
48118 echo $ECHO_N "(cached) $ECHO_C" >&6
48121 ice_cv_have_sscanf_decl=no
48122 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48123 ice_re_word='(^|[^a-zA-Z0-9_])'
48124 for header in stdio.h; do
48125 # Check for ordinary declaration
48126 cat >conftest.$ac_ext <<_ACEOF
48129 cat confdefs.h >>conftest.$ac_ext
48130 cat >>conftest.$ac_ext <<_ACEOF
48131 /* end confdefs.h. */
48135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48136 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
48137 ice_cv_have_sscanf_decl=yes
48141 if test "$ice_cv_have_sscanf_decl" = yes; then
48144 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48145 cat >conftest.$ac_ext <<_ACEOF
48148 cat confdefs.h >>conftest.$ac_ext
48149 cat >>conftest.$ac_ext <<_ACEOF
48150 /* end confdefs.h. */
48154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48155 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48156 ice_cv_have_sscanf_decl=yes
48160 if test "$ice_cv_have_sscanf_decl" = yes; then
48167 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
48168 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
48169 if test "$ice_cv_have_sscanf_decl" = yes; then
48171 cat >>confdefs.h <<_ACEOF
48172 #define HAVE_SSCANF_DECL 1
48180 for ac_func in statfs statvfs
48182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48183 echo "$as_me:$LINENO: checking for $ac_func" >&5
48184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48185 if eval "test \"\${$as_ac_var+set}\" = set"; then
48186 echo $ECHO_N "(cached) $ECHO_C" >&6
48188 cat >conftest.$ac_ext <<_ACEOF
48191 cat confdefs.h >>conftest.$ac_ext
48192 cat >>conftest.$ac_ext <<_ACEOF
48193 /* end confdefs.h. */
48194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48196 #define $ac_func innocuous_$ac_func
48198 /* System header to define __stub macros and hopefully few prototypes,
48199 which can conflict with char $ac_func (); below.
48200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48201 <limits.h> exists even on freestanding compilers. */
48204 # include <limits.h>
48206 # include <assert.h>
48211 /* Override any gcc2 internal prototype to avoid an error. */
48216 /* We use char because int might match the return type of a gcc2
48217 builtin and then its argument prototype would still apply. */
48219 /* The GNU C library defines this for functions which it implements
48220 to always fail with ENOSYS. Some functions are actually named
48221 something starting with __ and the normal name is an alias. */
48222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48225 char (*f) () = $ac_func;
48234 return f != $ac_func;
48239 rm -f conftest.$ac_objext conftest$ac_exeext
48240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48241 (eval $ac_link) 2>conftest.er1
48243 grep -v '^ *+' conftest.er1 >conftest.err
48245 cat conftest.err >&5
48246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48247 (exit $ac_status); } &&
48248 { ac_try='test -z "$ac_c_werror_flag"
48249 || test ! -s conftest.err'
48250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48251 (eval $ac_try) 2>&5
48253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48254 (exit $ac_status); }; } &&
48255 { ac_try='test -s conftest$ac_exeext'
48256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48257 (eval $ac_try) 2>&5
48259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48260 (exit $ac_status); }; }; then
48261 eval "$as_ac_var=yes"
48263 echo "$as_me: failed program was:" >&5
48264 sed 's/^/| /' conftest.$ac_ext >&5
48266 eval "$as_ac_var=no"
48268 rm -f conftest.err conftest.$ac_objext \
48269 conftest$ac_exeext conftest.$ac_ext
48271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48273 if test `eval echo '${'$as_ac_var'}'` = yes; then
48274 cat >>confdefs.h <<_ACEOF
48275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48282 for ac_func in strerror
48284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48285 echo "$as_me:$LINENO: checking for $ac_func" >&5
48286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48287 if eval "test \"\${$as_ac_var+set}\" = set"; then
48288 echo $ECHO_N "(cached) $ECHO_C" >&6
48290 cat >conftest.$ac_ext <<_ACEOF
48293 cat confdefs.h >>conftest.$ac_ext
48294 cat >>conftest.$ac_ext <<_ACEOF
48295 /* end confdefs.h. */
48296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48298 #define $ac_func innocuous_$ac_func
48300 /* System header to define __stub macros and hopefully few prototypes,
48301 which can conflict with char $ac_func (); below.
48302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48303 <limits.h> exists even on freestanding compilers. */
48306 # include <limits.h>
48308 # include <assert.h>
48313 /* Override any gcc2 internal prototype to avoid an error. */
48318 /* We use char because int might match the return type of a gcc2
48319 builtin and then its argument prototype would still apply. */
48321 /* The GNU C library defines this for functions which it implements
48322 to always fail with ENOSYS. Some functions are actually named
48323 something starting with __ and the normal name is an alias. */
48324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48327 char (*f) () = $ac_func;
48336 return f != $ac_func;
48341 rm -f conftest.$ac_objext conftest$ac_exeext
48342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48343 (eval $ac_link) 2>conftest.er1
48345 grep -v '^ *+' conftest.er1 >conftest.err
48347 cat conftest.err >&5
48348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48349 (exit $ac_status); } &&
48350 { ac_try='test -z "$ac_c_werror_flag"
48351 || test ! -s conftest.err'
48352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48353 (eval $ac_try) 2>&5
48355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48356 (exit $ac_status); }; } &&
48357 { ac_try='test -s conftest$ac_exeext'
48358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48359 (eval $ac_try) 2>&5
48361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362 (exit $ac_status); }; }; then
48363 eval "$as_ac_var=yes"
48365 echo "$as_me: failed program was:" >&5
48366 sed 's/^/| /' conftest.$ac_ext >&5
48368 eval "$as_ac_var=no"
48370 rm -f conftest.err conftest.$ac_objext \
48371 conftest$ac_exeext conftest.$ac_ext
48373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48375 if test `eval echo '${'$as_ac_var'}'` = yes; then
48376 cat >>confdefs.h <<_ACEOF
48377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48382 "$ac_func.$ac_objext" | \
48383 *" $ac_func.$ac_objext" | \
48384 "$ac_func.$ac_objext "* | \
48385 *" $ac_func.$ac_objext "* ) ;;
48386 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48394 ice_have_strerror=no
48396 for ac_func in strerror
48398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48399 echo "$as_me:$LINENO: checking for $ac_func" >&5
48400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48401 if eval "test \"\${$as_ac_var+set}\" = set"; then
48402 echo $ECHO_N "(cached) $ECHO_C" >&6
48404 cat >conftest.$ac_ext <<_ACEOF
48407 cat confdefs.h >>conftest.$ac_ext
48408 cat >>conftest.$ac_ext <<_ACEOF
48409 /* end confdefs.h. */
48410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48412 #define $ac_func innocuous_$ac_func
48414 /* System header to define __stub macros and hopefully few prototypes,
48415 which can conflict with char $ac_func (); below.
48416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48417 <limits.h> exists even on freestanding compilers. */
48420 # include <limits.h>
48422 # include <assert.h>
48427 /* Override any gcc2 internal prototype to avoid an error. */
48432 /* We use char because int might match the return type of a gcc2
48433 builtin and then its argument prototype would still apply. */
48435 /* The GNU C library defines this for functions which it implements
48436 to always fail with ENOSYS. Some functions are actually named
48437 something starting with __ and the normal name is an alias. */
48438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48441 char (*f) () = $ac_func;
48450 return f != $ac_func;
48455 rm -f conftest.$ac_objext conftest$ac_exeext
48456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48457 (eval $ac_link) 2>conftest.er1
48459 grep -v '^ *+' conftest.er1 >conftest.err
48461 cat conftest.err >&5
48462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48463 (exit $ac_status); } &&
48464 { ac_try='test -z "$ac_c_werror_flag"
48465 || test ! -s conftest.err'
48466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48467 (eval $ac_try) 2>&5
48469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48470 (exit $ac_status); }; } &&
48471 { ac_try='test -s conftest$ac_exeext'
48472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48473 (eval $ac_try) 2>&5
48475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48476 (exit $ac_status); }; }; then
48477 eval "$as_ac_var=yes"
48479 echo "$as_me: failed program was:" >&5
48480 sed 's/^/| /' conftest.$ac_ext >&5
48482 eval "$as_ac_var=no"
48484 rm -f conftest.err conftest.$ac_objext \
48485 conftest$ac_exeext conftest.$ac_ext
48487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48489 if test `eval echo '${'$as_ac_var'}'` = yes; then
48490 cat >>confdefs.h <<_ACEOF
48491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48493 ice_have_strerror=yes
48497 if test "${ice_have_strerror}" = yes; then
48498 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
48499 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
48500 if test "${ice_cv_have_strerror_decl+set}" = set; then
48501 echo $ECHO_N "(cached) $ECHO_C" >&6
48504 ice_cv_have_strerror_decl=no
48505 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48506 ice_re_word='(^|[^a-zA-Z0-9_])'
48507 for header in string.h strings.h; do
48508 # Check for ordinary declaration
48509 cat >conftest.$ac_ext <<_ACEOF
48512 cat confdefs.h >>conftest.$ac_ext
48513 cat >>conftest.$ac_ext <<_ACEOF
48514 /* end confdefs.h. */
48518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48519 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
48520 ice_cv_have_strerror_decl=yes
48524 if test "$ice_cv_have_strerror_decl" = yes; then
48527 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48528 cat >conftest.$ac_ext <<_ACEOF
48531 cat confdefs.h >>conftest.$ac_ext
48532 cat >>conftest.$ac_ext <<_ACEOF
48533 /* end confdefs.h. */
48537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48538 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48539 ice_cv_have_strerror_decl=yes
48543 if test "$ice_cv_have_strerror_decl" = yes; then
48550 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
48551 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
48552 if test "$ice_cv_have_strerror_decl" = yes; then
48554 cat >>confdefs.h <<_ACEOF
48555 #define HAVE_STRERROR_DECL 1
48562 for ac_func in strftime
48564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48565 echo "$as_me:$LINENO: checking for $ac_func" >&5
48566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48567 if eval "test \"\${$as_ac_var+set}\" = set"; then
48568 echo $ECHO_N "(cached) $ECHO_C" >&6
48570 cat >conftest.$ac_ext <<_ACEOF
48573 cat confdefs.h >>conftest.$ac_ext
48574 cat >>conftest.$ac_ext <<_ACEOF
48575 /* end confdefs.h. */
48576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48578 #define $ac_func innocuous_$ac_func
48580 /* System header to define __stub macros and hopefully few prototypes,
48581 which can conflict with char $ac_func (); below.
48582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48583 <limits.h> exists even on freestanding compilers. */
48586 # include <limits.h>
48588 # include <assert.h>
48593 /* Override any gcc2 internal prototype to avoid an error. */
48598 /* We use char because int might match the return type of a gcc2
48599 builtin and then its argument prototype would still apply. */
48601 /* The GNU C library defines this for functions which it implements
48602 to always fail with ENOSYS. Some functions are actually named
48603 something starting with __ and the normal name is an alias. */
48604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48607 char (*f) () = $ac_func;
48616 return f != $ac_func;
48621 rm -f conftest.$ac_objext conftest$ac_exeext
48622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48623 (eval $ac_link) 2>conftest.er1
48625 grep -v '^ *+' conftest.er1 >conftest.err
48627 cat conftest.err >&5
48628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48629 (exit $ac_status); } &&
48630 { ac_try='test -z "$ac_c_werror_flag"
48631 || test ! -s conftest.err'
48632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48633 (eval $ac_try) 2>&5
48635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48636 (exit $ac_status); }; } &&
48637 { ac_try='test -s conftest$ac_exeext'
48638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48639 (eval $ac_try) 2>&5
48641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48642 (exit $ac_status); }; }; then
48643 eval "$as_ac_var=yes"
48645 echo "$as_me: failed program was:" >&5
48646 sed 's/^/| /' conftest.$ac_ext >&5
48648 eval "$as_ac_var=no"
48650 rm -f conftest.err conftest.$ac_objext \
48651 conftest$ac_exeext conftest.$ac_ext
48653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48655 if test `eval echo '${'$as_ac_var'}'` = yes; then
48656 cat >>confdefs.h <<_ACEOF
48657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48661 # strftime is in -lintl on SCO UNIX.
48662 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
48663 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
48664 if test "${ac_cv_lib_intl_strftime+set}" = set; then
48665 echo $ECHO_N "(cached) $ECHO_C" >&6
48667 ac_check_lib_save_LIBS=$LIBS
48668 LIBS="-lintl $LIBS"
48669 cat >conftest.$ac_ext <<_ACEOF
48672 cat confdefs.h >>conftest.$ac_ext
48673 cat >>conftest.$ac_ext <<_ACEOF
48674 /* end confdefs.h. */
48676 /* Override any gcc2 internal prototype to avoid an error. */
48680 /* We use char because int might match the return type of a gcc2
48681 builtin and then its argument prototype would still apply. */
48691 rm -f conftest.$ac_objext conftest$ac_exeext
48692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48693 (eval $ac_link) 2>conftest.er1
48695 grep -v '^ *+' conftest.er1 >conftest.err
48697 cat conftest.err >&5
48698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48699 (exit $ac_status); } &&
48700 { ac_try='test -z "$ac_c_werror_flag"
48701 || test ! -s conftest.err'
48702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48703 (eval $ac_try) 2>&5
48705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48706 (exit $ac_status); }; } &&
48707 { ac_try='test -s conftest$ac_exeext'
48708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48709 (eval $ac_try) 2>&5
48711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48712 (exit $ac_status); }; }; then
48713 ac_cv_lib_intl_strftime=yes
48715 echo "$as_me: failed program was:" >&5
48716 sed 's/^/| /' conftest.$ac_ext >&5
48718 ac_cv_lib_intl_strftime=no
48720 rm -f conftest.err conftest.$ac_objext \
48721 conftest$ac_exeext conftest.$ac_ext
48722 LIBS=$ac_check_lib_save_LIBS
48724 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
48725 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
48726 if test $ac_cv_lib_intl_strftime = yes; then
48727 cat >>confdefs.h <<\_ACEOF
48728 #define HAVE_STRFTIME 1
48731 LIBS="-lintl $LIBS"
48738 for ac_func in strftime
48740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48741 echo "$as_me:$LINENO: checking for $ac_func" >&5
48742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48743 if eval "test \"\${$as_ac_var+set}\" = set"; then
48744 echo $ECHO_N "(cached) $ECHO_C" >&6
48746 cat >conftest.$ac_ext <<_ACEOF
48749 cat confdefs.h >>conftest.$ac_ext
48750 cat >>conftest.$ac_ext <<_ACEOF
48751 /* end confdefs.h. */
48752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48754 #define $ac_func innocuous_$ac_func
48756 /* System header to define __stub macros and hopefully few prototypes,
48757 which can conflict with char $ac_func (); below.
48758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48759 <limits.h> exists even on freestanding compilers. */
48762 # include <limits.h>
48764 # include <assert.h>
48769 /* Override any gcc2 internal prototype to avoid an error. */
48774 /* We use char because int might match the return type of a gcc2
48775 builtin and then its argument prototype would still apply. */
48777 /* The GNU C library defines this for functions which it implements
48778 to always fail with ENOSYS. Some functions are actually named
48779 something starting with __ and the normal name is an alias. */
48780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48783 char (*f) () = $ac_func;
48792 return f != $ac_func;
48797 rm -f conftest.$ac_objext conftest$ac_exeext
48798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48799 (eval $ac_link) 2>conftest.er1
48801 grep -v '^ *+' conftest.er1 >conftest.err
48803 cat conftest.err >&5
48804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48805 (exit $ac_status); } &&
48806 { ac_try='test -z "$ac_c_werror_flag"
48807 || test ! -s conftest.err'
48808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48809 (eval $ac_try) 2>&5
48811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48812 (exit $ac_status); }; } &&
48813 { ac_try='test -s conftest$ac_exeext'
48814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48815 (eval $ac_try) 2>&5
48817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48818 (exit $ac_status); }; }; then
48819 eval "$as_ac_var=yes"
48821 echo "$as_me: failed program was:" >&5
48822 sed 's/^/| /' conftest.$ac_ext >&5
48824 eval "$as_ac_var=no"
48826 rm -f conftest.err conftest.$ac_objext \
48827 conftest$ac_exeext conftest.$ac_ext
48829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48831 if test `eval echo '${'$as_ac_var'}'` = yes; then
48832 cat >>confdefs.h <<_ACEOF
48833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48838 "$ac_func.$ac_objext" | \
48839 *" $ac_func.$ac_objext" | \
48840 "$ac_func.$ac_objext "* | \
48841 *" $ac_func.$ac_objext "* ) ;;
48842 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48850 ice_have_strftime=no
48852 for ac_func in strftime
48854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48855 echo "$as_me:$LINENO: checking for $ac_func" >&5
48856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48857 if eval "test \"\${$as_ac_var+set}\" = set"; then
48858 echo $ECHO_N "(cached) $ECHO_C" >&6
48860 cat >conftest.$ac_ext <<_ACEOF
48863 cat confdefs.h >>conftest.$ac_ext
48864 cat >>conftest.$ac_ext <<_ACEOF
48865 /* end confdefs.h. */
48866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48868 #define $ac_func innocuous_$ac_func
48870 /* System header to define __stub macros and hopefully few prototypes,
48871 which can conflict with char $ac_func (); below.
48872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48873 <limits.h> exists even on freestanding compilers. */
48876 # include <limits.h>
48878 # include <assert.h>
48883 /* Override any gcc2 internal prototype to avoid an error. */
48888 /* We use char because int might match the return type of a gcc2
48889 builtin and then its argument prototype would still apply. */
48891 /* The GNU C library defines this for functions which it implements
48892 to always fail with ENOSYS. Some functions are actually named
48893 something starting with __ and the normal name is an alias. */
48894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48897 char (*f) () = $ac_func;
48906 return f != $ac_func;
48911 rm -f conftest.$ac_objext conftest$ac_exeext
48912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48913 (eval $ac_link) 2>conftest.er1
48915 grep -v '^ *+' conftest.er1 >conftest.err
48917 cat conftest.err >&5
48918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48919 (exit $ac_status); } &&
48920 { ac_try='test -z "$ac_c_werror_flag"
48921 || test ! -s conftest.err'
48922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48923 (eval $ac_try) 2>&5
48925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48926 (exit $ac_status); }; } &&
48927 { ac_try='test -s conftest$ac_exeext'
48928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48929 (eval $ac_try) 2>&5
48931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48932 (exit $ac_status); }; }; then
48933 eval "$as_ac_var=yes"
48935 echo "$as_me: failed program was:" >&5
48936 sed 's/^/| /' conftest.$ac_ext >&5
48938 eval "$as_ac_var=no"
48940 rm -f conftest.err conftest.$ac_objext \
48941 conftest$ac_exeext conftest.$ac_ext
48943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48945 if test `eval echo '${'$as_ac_var'}'` = yes; then
48946 cat >>confdefs.h <<_ACEOF
48947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48949 ice_have_strftime=yes
48953 if test "${ice_have_strftime}" = yes; then
48954 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
48955 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
48956 if test "${ice_cv_have_strftime_decl+set}" = set; then
48957 echo $ECHO_N "(cached) $ECHO_C" >&6
48960 ice_cv_have_strftime_decl=no
48961 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48962 ice_re_word='(^|[^a-zA-Z0-9_])'
48963 for header in time.h sys/time.h; do
48964 # Check for ordinary declaration
48965 cat >conftest.$ac_ext <<_ACEOF
48968 cat confdefs.h >>conftest.$ac_ext
48969 cat >>conftest.$ac_ext <<_ACEOF
48970 /* end confdefs.h. */
48974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48975 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
48976 ice_cv_have_strftime_decl=yes
48980 if test "$ice_cv_have_strftime_decl" = yes; then
48983 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48984 cat >conftest.$ac_ext <<_ACEOF
48987 cat confdefs.h >>conftest.$ac_ext
48988 cat >>conftest.$ac_ext <<_ACEOF
48989 /* end confdefs.h. */
48993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48994 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48995 ice_cv_have_strftime_decl=yes
48999 if test "$ice_cv_have_strftime_decl" = yes; then
49006 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
49007 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
49008 if test "$ice_cv_have_strftime_decl" = yes; then
49010 cat >>confdefs.h <<_ACEOF
49011 #define HAVE_STRFTIME_DECL 1
49018 for ac_func in strncasecmp
49020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49021 echo "$as_me:$LINENO: checking for $ac_func" >&5
49022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49023 if eval "test \"\${$as_ac_var+set}\" = set"; then
49024 echo $ECHO_N "(cached) $ECHO_C" >&6
49026 cat >conftest.$ac_ext <<_ACEOF
49029 cat confdefs.h >>conftest.$ac_ext
49030 cat >>conftest.$ac_ext <<_ACEOF
49031 /* end confdefs.h. */
49032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49034 #define $ac_func innocuous_$ac_func
49036 /* System header to define __stub macros and hopefully few prototypes,
49037 which can conflict with char $ac_func (); below.
49038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49039 <limits.h> exists even on freestanding compilers. */
49042 # include <limits.h>
49044 # include <assert.h>
49049 /* Override any gcc2 internal prototype to avoid an error. */
49054 /* We use char because int might match the return type of a gcc2
49055 builtin and then its argument prototype would still apply. */
49057 /* The GNU C library defines this for functions which it implements
49058 to always fail with ENOSYS. Some functions are actually named
49059 something starting with __ and the normal name is an alias. */
49060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49063 char (*f) () = $ac_func;
49072 return f != $ac_func;
49077 rm -f conftest.$ac_objext conftest$ac_exeext
49078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49079 (eval $ac_link) 2>conftest.er1
49081 grep -v '^ *+' conftest.er1 >conftest.err
49083 cat conftest.err >&5
49084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49085 (exit $ac_status); } &&
49086 { ac_try='test -z "$ac_c_werror_flag"
49087 || test ! -s conftest.err'
49088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49089 (eval $ac_try) 2>&5
49091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092 (exit $ac_status); }; } &&
49093 { ac_try='test -s conftest$ac_exeext'
49094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49095 (eval $ac_try) 2>&5
49097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49098 (exit $ac_status); }; }; then
49099 eval "$as_ac_var=yes"
49101 echo "$as_me: failed program was:" >&5
49102 sed 's/^/| /' conftest.$ac_ext >&5
49104 eval "$as_ac_var=no"
49106 rm -f conftest.err conftest.$ac_objext \
49107 conftest$ac_exeext conftest.$ac_ext
49109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49111 if test `eval echo '${'$as_ac_var'}'` = yes; then
49112 cat >>confdefs.h <<_ACEOF
49113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49118 "$ac_func.$ac_objext" | \
49119 *" $ac_func.$ac_objext" | \
49120 "$ac_func.$ac_objext "* | \
49121 *" $ac_func.$ac_objext "* ) ;;
49122 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49130 ice_have_strncasecmp=no
49132 for ac_func in strncasecmp
49134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49135 echo "$as_me:$LINENO: checking for $ac_func" >&5
49136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49137 if eval "test \"\${$as_ac_var+set}\" = set"; then
49138 echo $ECHO_N "(cached) $ECHO_C" >&6
49140 cat >conftest.$ac_ext <<_ACEOF
49143 cat confdefs.h >>conftest.$ac_ext
49144 cat >>conftest.$ac_ext <<_ACEOF
49145 /* end confdefs.h. */
49146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49148 #define $ac_func innocuous_$ac_func
49150 /* System header to define __stub macros and hopefully few prototypes,
49151 which can conflict with char $ac_func (); below.
49152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49153 <limits.h> exists even on freestanding compilers. */
49156 # include <limits.h>
49158 # include <assert.h>
49163 /* Override any gcc2 internal prototype to avoid an error. */
49168 /* We use char because int might match the return type of a gcc2
49169 builtin and then its argument prototype would still apply. */
49171 /* The GNU C library defines this for functions which it implements
49172 to always fail with ENOSYS. Some functions are actually named
49173 something starting with __ and the normal name is an alias. */
49174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49177 char (*f) () = $ac_func;
49186 return f != $ac_func;
49191 rm -f conftest.$ac_objext conftest$ac_exeext
49192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49193 (eval $ac_link) 2>conftest.er1
49195 grep -v '^ *+' conftest.er1 >conftest.err
49197 cat conftest.err >&5
49198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49199 (exit $ac_status); } &&
49200 { ac_try='test -z "$ac_c_werror_flag"
49201 || test ! -s conftest.err'
49202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49203 (eval $ac_try) 2>&5
49205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49206 (exit $ac_status); }; } &&
49207 { ac_try='test -s conftest$ac_exeext'
49208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49209 (eval $ac_try) 2>&5
49211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49212 (exit $ac_status); }; }; then
49213 eval "$as_ac_var=yes"
49215 echo "$as_me: failed program was:" >&5
49216 sed 's/^/| /' conftest.$ac_ext >&5
49218 eval "$as_ac_var=no"
49220 rm -f conftest.err conftest.$ac_objext \
49221 conftest$ac_exeext conftest.$ac_ext
49223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49225 if test `eval echo '${'$as_ac_var'}'` = yes; then
49226 cat >>confdefs.h <<_ACEOF
49227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49229 ice_have_strncasecmp=yes
49233 if test "${ice_have_strncasecmp}" = yes; then
49234 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
49235 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
49236 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
49237 echo $ECHO_N "(cached) $ECHO_C" >&6
49240 ice_cv_have_strncasecmp_decl=no
49241 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49242 ice_re_word='(^|[^a-zA-Z0-9_])'
49243 for header in string.h strings.h; do
49244 # Check for ordinary declaration
49245 cat >conftest.$ac_ext <<_ACEOF
49248 cat confdefs.h >>conftest.$ac_ext
49249 cat >>conftest.$ac_ext <<_ACEOF
49250 /* end confdefs.h. */
49254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49255 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
49256 ice_cv_have_strncasecmp_decl=yes
49260 if test "$ice_cv_have_strncasecmp_decl" = yes; then
49263 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49264 cat >conftest.$ac_ext <<_ACEOF
49267 cat confdefs.h >>conftest.$ac_ext
49268 cat >>conftest.$ac_ext <<_ACEOF
49269 /* end confdefs.h. */
49273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49274 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49275 ice_cv_have_strncasecmp_decl=yes
49279 if test "$ice_cv_have_strncasecmp_decl" = yes; then
49286 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
49287 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
49288 if test "$ice_cv_have_strncasecmp_decl" = yes; then
49290 cat >>confdefs.h <<_ACEOF
49291 #define HAVE_STRNCASECMP_DECL 1
49298 for ac_func in strstr
49300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49301 echo "$as_me:$LINENO: checking for $ac_func" >&5
49302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49303 if eval "test \"\${$as_ac_var+set}\" = set"; then
49304 echo $ECHO_N "(cached) $ECHO_C" >&6
49306 cat >conftest.$ac_ext <<_ACEOF
49309 cat confdefs.h >>conftest.$ac_ext
49310 cat >>conftest.$ac_ext <<_ACEOF
49311 /* end confdefs.h. */
49312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49314 #define $ac_func innocuous_$ac_func
49316 /* System header to define __stub macros and hopefully few prototypes,
49317 which can conflict with char $ac_func (); below.
49318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49319 <limits.h> exists even on freestanding compilers. */
49322 # include <limits.h>
49324 # include <assert.h>
49329 /* Override any gcc2 internal prototype to avoid an error. */
49334 /* We use char because int might match the return type of a gcc2
49335 builtin and then its argument prototype would still apply. */
49337 /* The GNU C library defines this for functions which it implements
49338 to always fail with ENOSYS. Some functions are actually named
49339 something starting with __ and the normal name is an alias. */
49340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49343 char (*f) () = $ac_func;
49352 return f != $ac_func;
49357 rm -f conftest.$ac_objext conftest$ac_exeext
49358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49359 (eval $ac_link) 2>conftest.er1
49361 grep -v '^ *+' conftest.er1 >conftest.err
49363 cat conftest.err >&5
49364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49365 (exit $ac_status); } &&
49366 { ac_try='test -z "$ac_c_werror_flag"
49367 || test ! -s conftest.err'
49368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49369 (eval $ac_try) 2>&5
49371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49372 (exit $ac_status); }; } &&
49373 { ac_try='test -s conftest$ac_exeext'
49374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49375 (eval $ac_try) 2>&5
49377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378 (exit $ac_status); }; }; then
49379 eval "$as_ac_var=yes"
49381 echo "$as_me: failed program was:" >&5
49382 sed 's/^/| /' conftest.$ac_ext >&5
49384 eval "$as_ac_var=no"
49386 rm -f conftest.err conftest.$ac_objext \
49387 conftest$ac_exeext conftest.$ac_ext
49389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49391 if test `eval echo '${'$as_ac_var'}'` = yes; then
49392 cat >>confdefs.h <<_ACEOF
49393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49398 "$ac_func.$ac_objext" | \
49399 *" $ac_func.$ac_objext" | \
49400 "$ac_func.$ac_objext "* | \
49401 *" $ac_func.$ac_objext "* ) ;;
49402 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49412 for ac_func in syslog
49414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49415 echo "$as_me:$LINENO: checking for $ac_func" >&5
49416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49417 if eval "test \"\${$as_ac_var+set}\" = set"; then
49418 echo $ECHO_N "(cached) $ECHO_C" >&6
49420 cat >conftest.$ac_ext <<_ACEOF
49423 cat confdefs.h >>conftest.$ac_ext
49424 cat >>conftest.$ac_ext <<_ACEOF
49425 /* end confdefs.h. */
49426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49428 #define $ac_func innocuous_$ac_func
49430 /* System header to define __stub macros and hopefully few prototypes,
49431 which can conflict with char $ac_func (); below.
49432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49433 <limits.h> exists even on freestanding compilers. */
49436 # include <limits.h>
49438 # include <assert.h>
49443 /* Override any gcc2 internal prototype to avoid an error. */
49448 /* We use char because int might match the return type of a gcc2
49449 builtin and then its argument prototype would still apply. */
49451 /* The GNU C library defines this for functions which it implements
49452 to always fail with ENOSYS. Some functions are actually named
49453 something starting with __ and the normal name is an alias. */
49454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49457 char (*f) () = $ac_func;
49466 return f != $ac_func;
49471 rm -f conftest.$ac_objext conftest$ac_exeext
49472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49473 (eval $ac_link) 2>conftest.er1
49475 grep -v '^ *+' conftest.er1 >conftest.err
49477 cat conftest.err >&5
49478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49479 (exit $ac_status); } &&
49480 { ac_try='test -z "$ac_c_werror_flag"
49481 || test ! -s conftest.err'
49482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49483 (eval $ac_try) 2>&5
49485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49486 (exit $ac_status); }; } &&
49487 { ac_try='test -s conftest$ac_exeext'
49488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49489 (eval $ac_try) 2>&5
49491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49492 (exit $ac_status); }; }; then
49493 eval "$as_ac_var=yes"
49495 echo "$as_me: failed program was:" >&5
49496 sed 's/^/| /' conftest.$ac_ext >&5
49498 eval "$as_ac_var=no"
49500 rm -f conftest.err conftest.$ac_objext \
49501 conftest$ac_exeext conftest.$ac_ext
49503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49505 if test `eval echo '${'$as_ac_var'}'` = yes; then
49506 cat >>confdefs.h <<_ACEOF
49507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49509 ice_have_syslog=yes
49513 if test "${ice_have_syslog}" = yes; then
49514 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
49515 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
49516 if test "${ice_cv_have_syslog_decl+set}" = set; then
49517 echo $ECHO_N "(cached) $ECHO_C" >&6
49520 ice_cv_have_syslog_decl=no
49521 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49522 ice_re_word='(^|[^a-zA-Z0-9_])'
49523 for header in syslog.h; do
49524 # Check for ordinary declaration
49525 cat >conftest.$ac_ext <<_ACEOF
49528 cat confdefs.h >>conftest.$ac_ext
49529 cat >>conftest.$ac_ext <<_ACEOF
49530 /* end confdefs.h. */
49534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49535 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
49536 ice_cv_have_syslog_decl=yes
49540 if test "$ice_cv_have_syslog_decl" = yes; then
49543 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49544 cat >conftest.$ac_ext <<_ACEOF
49547 cat confdefs.h >>conftest.$ac_ext
49548 cat >>conftest.$ac_ext <<_ACEOF
49549 /* end confdefs.h. */
49553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49554 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49555 ice_cv_have_syslog_decl=yes
49559 if test "$ice_cv_have_syslog_decl" = yes; then
49566 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
49567 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
49568 if test "$ice_cv_have_syslog_decl" = yes; then
49570 cat >>confdefs.h <<_ACEOF
49571 #define HAVE_SYSLOG_DECL 1
49580 for ac_func in system
49582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49583 echo "$as_me:$LINENO: checking for $ac_func" >&5
49584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49585 if eval "test \"\${$as_ac_var+set}\" = set"; then
49586 echo $ECHO_N "(cached) $ECHO_C" >&6
49588 cat >conftest.$ac_ext <<_ACEOF
49591 cat confdefs.h >>conftest.$ac_ext
49592 cat >>conftest.$ac_ext <<_ACEOF
49593 /* end confdefs.h. */
49594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49596 #define $ac_func innocuous_$ac_func
49598 /* System header to define __stub macros and hopefully few prototypes,
49599 which can conflict with char $ac_func (); below.
49600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49601 <limits.h> exists even on freestanding compilers. */
49604 # include <limits.h>
49606 # include <assert.h>
49611 /* Override any gcc2 internal prototype to avoid an error. */
49616 /* We use char because int might match the return type of a gcc2
49617 builtin and then its argument prototype would still apply. */
49619 /* The GNU C library defines this for functions which it implements
49620 to always fail with ENOSYS. Some functions are actually named
49621 something starting with __ and the normal name is an alias. */
49622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49625 char (*f) () = $ac_func;
49634 return f != $ac_func;
49639 rm -f conftest.$ac_objext conftest$ac_exeext
49640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49641 (eval $ac_link) 2>conftest.er1
49643 grep -v '^ *+' conftest.er1 >conftest.err
49645 cat conftest.err >&5
49646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49647 (exit $ac_status); } &&
49648 { ac_try='test -z "$ac_c_werror_flag"
49649 || test ! -s conftest.err'
49650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49651 (eval $ac_try) 2>&5
49653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49654 (exit $ac_status); }; } &&
49655 { ac_try='test -s conftest$ac_exeext'
49656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49657 (eval $ac_try) 2>&5
49659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49660 (exit $ac_status); }; }; then
49661 eval "$as_ac_var=yes"
49663 echo "$as_me: failed program was:" >&5
49664 sed 's/^/| /' conftest.$ac_ext >&5
49666 eval "$as_ac_var=no"
49668 rm -f conftest.err conftest.$ac_objext \
49669 conftest$ac_exeext conftest.$ac_ext
49671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49673 if test `eval echo '${'$as_ac_var'}'` = yes; then
49674 cat >>confdefs.h <<_ACEOF
49675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49677 ice_have_system=yes
49681 if test "${ice_have_system}" = yes; then
49682 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
49683 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
49684 if test "${ice_cv_have_system_decl+set}" = set; then
49685 echo $ECHO_N "(cached) $ECHO_C" >&6
49688 ice_cv_have_system_decl=no
49689 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49690 ice_re_word='(^|[^a-zA-Z0-9_])'
49691 for header in stdlib.h; do
49692 # Check for ordinary declaration
49693 cat >conftest.$ac_ext <<_ACEOF
49696 cat confdefs.h >>conftest.$ac_ext
49697 cat >>conftest.$ac_ext <<_ACEOF
49698 /* end confdefs.h. */
49702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49703 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
49704 ice_cv_have_system_decl=yes
49708 if test "$ice_cv_have_system_decl" = yes; then
49711 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49712 cat >conftest.$ac_ext <<_ACEOF
49715 cat confdefs.h >>conftest.$ac_ext
49716 cat >>conftest.$ac_ext <<_ACEOF
49717 /* end confdefs.h. */
49721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49722 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49723 ice_cv_have_system_decl=yes
49727 if test "$ice_cv_have_system_decl" = yes; then
49734 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
49735 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
49736 if test "$ice_cv_have_system_decl" = yes; then
49738 cat >>confdefs.h <<_ACEOF
49739 #define HAVE_SYSTEM_DECL 1
49748 for ac_func in time
49750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49751 echo "$as_me:$LINENO: checking for $ac_func" >&5
49752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49753 if eval "test \"\${$as_ac_var+set}\" = set"; then
49754 echo $ECHO_N "(cached) $ECHO_C" >&6
49756 cat >conftest.$ac_ext <<_ACEOF
49759 cat confdefs.h >>conftest.$ac_ext
49760 cat >>conftest.$ac_ext <<_ACEOF
49761 /* end confdefs.h. */
49762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49764 #define $ac_func innocuous_$ac_func
49766 /* System header to define __stub macros and hopefully few prototypes,
49767 which can conflict with char $ac_func (); below.
49768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49769 <limits.h> exists even on freestanding compilers. */
49772 # include <limits.h>
49774 # include <assert.h>
49779 /* Override any gcc2 internal prototype to avoid an error. */
49784 /* We use char because int might match the return type of a gcc2
49785 builtin and then its argument prototype would still apply. */
49787 /* The GNU C library defines this for functions which it implements
49788 to always fail with ENOSYS. Some functions are actually named
49789 something starting with __ and the normal name is an alias. */
49790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49793 char (*f) () = $ac_func;
49802 return f != $ac_func;
49807 rm -f conftest.$ac_objext conftest$ac_exeext
49808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49809 (eval $ac_link) 2>conftest.er1
49811 grep -v '^ *+' conftest.er1 >conftest.err
49813 cat conftest.err >&5
49814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49815 (exit $ac_status); } &&
49816 { ac_try='test -z "$ac_c_werror_flag"
49817 || test ! -s conftest.err'
49818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49819 (eval $ac_try) 2>&5
49821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49822 (exit $ac_status); }; } &&
49823 { ac_try='test -s conftest$ac_exeext'
49824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49825 (eval $ac_try) 2>&5
49827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49828 (exit $ac_status); }; }; then
49829 eval "$as_ac_var=yes"
49831 echo "$as_me: failed program was:" >&5
49832 sed 's/^/| /' conftest.$ac_ext >&5
49834 eval "$as_ac_var=no"
49836 rm -f conftest.err conftest.$ac_objext \
49837 conftest$ac_exeext conftest.$ac_ext
49839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49841 if test `eval echo '${'$as_ac_var'}'` = yes; then
49842 cat >>confdefs.h <<_ACEOF
49843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49849 if test "${ice_have_time}" = yes; then
49850 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
49851 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
49852 if test "${ice_cv_have_time_decl+set}" = set; then
49853 echo $ECHO_N "(cached) $ECHO_C" >&6
49856 ice_cv_have_time_decl=no
49857 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49858 ice_re_word='(^|[^a-zA-Z0-9_])'
49859 for header in time.h sys/time.h; do
49860 # Check for ordinary declaration
49861 cat >conftest.$ac_ext <<_ACEOF
49864 cat confdefs.h >>conftest.$ac_ext
49865 cat >>conftest.$ac_ext <<_ACEOF
49866 /* end confdefs.h. */
49870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49871 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
49872 ice_cv_have_time_decl=yes
49876 if test "$ice_cv_have_time_decl" = yes; then
49879 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49880 cat >conftest.$ac_ext <<_ACEOF
49883 cat confdefs.h >>conftest.$ac_ext
49884 cat >>conftest.$ac_ext <<_ACEOF
49885 /* end confdefs.h. */
49889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49890 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49891 ice_cv_have_time_decl=yes
49895 if test "$ice_cv_have_time_decl" = yes; then
49902 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
49903 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
49904 if test "$ice_cv_have_time_decl" = yes; then
49906 cat >>confdefs.h <<_ACEOF
49907 #define HAVE_TIME_DECL 1
49914 ice_have_tolower=no
49916 for ac_func in tolower
49918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49919 echo "$as_me:$LINENO: checking for $ac_func" >&5
49920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49921 if eval "test \"\${$as_ac_var+set}\" = set"; then
49922 echo $ECHO_N "(cached) $ECHO_C" >&6
49924 cat >conftest.$ac_ext <<_ACEOF
49927 cat confdefs.h >>conftest.$ac_ext
49928 cat >>conftest.$ac_ext <<_ACEOF
49929 /* end confdefs.h. */
49930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49932 #define $ac_func innocuous_$ac_func
49934 /* System header to define __stub macros and hopefully few prototypes,
49935 which can conflict with char $ac_func (); below.
49936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49937 <limits.h> exists even on freestanding compilers. */
49940 # include <limits.h>
49942 # include <assert.h>
49947 /* Override any gcc2 internal prototype to avoid an error. */
49952 /* We use char because int might match the return type of a gcc2
49953 builtin and then its argument prototype would still apply. */
49955 /* The GNU C library defines this for functions which it implements
49956 to always fail with ENOSYS. Some functions are actually named
49957 something starting with __ and the normal name is an alias. */
49958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49961 char (*f) () = $ac_func;
49970 return f != $ac_func;
49975 rm -f conftest.$ac_objext conftest$ac_exeext
49976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49977 (eval $ac_link) 2>conftest.er1
49979 grep -v '^ *+' conftest.er1 >conftest.err
49981 cat conftest.err >&5
49982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983 (exit $ac_status); } &&
49984 { ac_try='test -z "$ac_c_werror_flag"
49985 || test ! -s conftest.err'
49986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49987 (eval $ac_try) 2>&5
49989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49990 (exit $ac_status); }; } &&
49991 { ac_try='test -s conftest$ac_exeext'
49992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49993 (eval $ac_try) 2>&5
49995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49996 (exit $ac_status); }; }; then
49997 eval "$as_ac_var=yes"
49999 echo "$as_me: failed program was:" >&5
50000 sed 's/^/| /' conftest.$ac_ext >&5
50002 eval "$as_ac_var=no"
50004 rm -f conftest.err conftest.$ac_objext \
50005 conftest$ac_exeext conftest.$ac_ext
50007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50009 if test `eval echo '${'$as_ac_var'}'` = yes; then
50010 cat >>confdefs.h <<_ACEOF
50011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50013 ice_have_tolower=yes
50017 if test "${ice_have_tolower}" = yes; then
50018 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
50019 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
50020 if test "${ice_cv_have_tolower_decl+set}" = set; then
50021 echo $ECHO_N "(cached) $ECHO_C" >&6
50024 ice_cv_have_tolower_decl=no
50025 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50026 ice_re_word='(^|[^a-zA-Z0-9_])'
50027 for header in ctype.h; do
50028 # Check for ordinary declaration
50029 cat >conftest.$ac_ext <<_ACEOF
50032 cat confdefs.h >>conftest.$ac_ext
50033 cat >>conftest.$ac_ext <<_ACEOF
50034 /* end confdefs.h. */
50038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50039 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
50040 ice_cv_have_tolower_decl=yes
50044 if test "$ice_cv_have_tolower_decl" = yes; then
50047 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50048 cat >conftest.$ac_ext <<_ACEOF
50051 cat confdefs.h >>conftest.$ac_ext
50052 cat >>conftest.$ac_ext <<_ACEOF
50053 /* end confdefs.h. */
50057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50058 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50059 ice_cv_have_tolower_decl=yes
50063 if test "$ice_cv_have_tolower_decl" = yes; then
50070 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
50071 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
50072 if test "$ice_cv_have_tolower_decl" = yes; then
50074 cat >>confdefs.h <<_ACEOF
50075 #define HAVE_TOLOWER_DECL 1
50082 ice_have_toupper=no
50084 for ac_func in toupper
50086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50087 echo "$as_me:$LINENO: checking for $ac_func" >&5
50088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50089 if eval "test \"\${$as_ac_var+set}\" = set"; then
50090 echo $ECHO_N "(cached) $ECHO_C" >&6
50092 cat >conftest.$ac_ext <<_ACEOF
50095 cat confdefs.h >>conftest.$ac_ext
50096 cat >>conftest.$ac_ext <<_ACEOF
50097 /* end confdefs.h. */
50098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50100 #define $ac_func innocuous_$ac_func
50102 /* System header to define __stub macros and hopefully few prototypes,
50103 which can conflict with char $ac_func (); below.
50104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50105 <limits.h> exists even on freestanding compilers. */
50108 # include <limits.h>
50110 # include <assert.h>
50115 /* Override any gcc2 internal prototype to avoid an error. */
50120 /* We use char because int might match the return type of a gcc2
50121 builtin and then its argument prototype would still apply. */
50123 /* The GNU C library defines this for functions which it implements
50124 to always fail with ENOSYS. Some functions are actually named
50125 something starting with __ and the normal name is an alias. */
50126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50129 char (*f) () = $ac_func;
50138 return f != $ac_func;
50143 rm -f conftest.$ac_objext conftest$ac_exeext
50144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50145 (eval $ac_link) 2>conftest.er1
50147 grep -v '^ *+' conftest.er1 >conftest.err
50149 cat conftest.err >&5
50150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50151 (exit $ac_status); } &&
50152 { ac_try='test -z "$ac_c_werror_flag"
50153 || test ! -s conftest.err'
50154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50155 (eval $ac_try) 2>&5
50157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158 (exit $ac_status); }; } &&
50159 { ac_try='test -s conftest$ac_exeext'
50160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50161 (eval $ac_try) 2>&5
50163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50164 (exit $ac_status); }; }; then
50165 eval "$as_ac_var=yes"
50167 echo "$as_me: failed program was:" >&5
50168 sed 's/^/| /' conftest.$ac_ext >&5
50170 eval "$as_ac_var=no"
50172 rm -f conftest.err conftest.$ac_objext \
50173 conftest$ac_exeext conftest.$ac_ext
50175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50177 if test `eval echo '${'$as_ac_var'}'` = yes; then
50178 cat >>confdefs.h <<_ACEOF
50179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50181 ice_have_toupper=yes
50185 if test "${ice_have_toupper}" = yes; then
50186 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
50187 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
50188 if test "${ice_cv_have_toupper_decl+set}" = set; then
50189 echo $ECHO_N "(cached) $ECHO_C" >&6
50192 ice_cv_have_toupper_decl=no
50193 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50194 ice_re_word='(^|[^a-zA-Z0-9_])'
50195 for header in ctype.h; do
50196 # Check for ordinary declaration
50197 cat >conftest.$ac_ext <<_ACEOF
50200 cat confdefs.h >>conftest.$ac_ext
50201 cat >>conftest.$ac_ext <<_ACEOF
50202 /* end confdefs.h. */
50206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50207 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
50208 ice_cv_have_toupper_decl=yes
50212 if test "$ice_cv_have_toupper_decl" = yes; then
50215 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50216 cat >conftest.$ac_ext <<_ACEOF
50219 cat confdefs.h >>conftest.$ac_ext
50220 cat >>conftest.$ac_ext <<_ACEOF
50221 /* end confdefs.h. */
50225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50226 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50227 ice_cv_have_toupper_decl=yes
50231 if test "$ice_cv_have_toupper_decl" = yes; then
50238 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
50239 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
50240 if test "$ice_cv_have_toupper_decl" = yes; then
50242 cat >>confdefs.h <<_ACEOF
50243 #define HAVE_TOUPPER_DECL 1
50252 for ac_func in ungetc
50254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50255 echo "$as_me:$LINENO: checking for $ac_func" >&5
50256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50257 if eval "test \"\${$as_ac_var+set}\" = set"; then
50258 echo $ECHO_N "(cached) $ECHO_C" >&6
50260 cat >conftest.$ac_ext <<_ACEOF
50263 cat confdefs.h >>conftest.$ac_ext
50264 cat >>conftest.$ac_ext <<_ACEOF
50265 /* end confdefs.h. */
50266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50268 #define $ac_func innocuous_$ac_func
50270 /* System header to define __stub macros and hopefully few prototypes,
50271 which can conflict with char $ac_func (); below.
50272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50273 <limits.h> exists even on freestanding compilers. */
50276 # include <limits.h>
50278 # include <assert.h>
50283 /* Override any gcc2 internal prototype to avoid an error. */
50288 /* We use char because int might match the return type of a gcc2
50289 builtin and then its argument prototype would still apply. */
50291 /* The GNU C library defines this for functions which it implements
50292 to always fail with ENOSYS. Some functions are actually named
50293 something starting with __ and the normal name is an alias. */
50294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50297 char (*f) () = $ac_func;
50306 return f != $ac_func;
50311 rm -f conftest.$ac_objext conftest$ac_exeext
50312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50313 (eval $ac_link) 2>conftest.er1
50315 grep -v '^ *+' conftest.er1 >conftest.err
50317 cat conftest.err >&5
50318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50319 (exit $ac_status); } &&
50320 { ac_try='test -z "$ac_c_werror_flag"
50321 || test ! -s conftest.err'
50322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50323 (eval $ac_try) 2>&5
50325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50326 (exit $ac_status); }; } &&
50327 { ac_try='test -s conftest$ac_exeext'
50328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50329 (eval $ac_try) 2>&5
50331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50332 (exit $ac_status); }; }; then
50333 eval "$as_ac_var=yes"
50335 echo "$as_me: failed program was:" >&5
50336 sed 's/^/| /' conftest.$ac_ext >&5
50338 eval "$as_ac_var=no"
50340 rm -f conftest.err conftest.$ac_objext \
50341 conftest$ac_exeext conftest.$ac_ext
50343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50345 if test `eval echo '${'$as_ac_var'}'` = yes; then
50346 cat >>confdefs.h <<_ACEOF
50347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50349 ice_have_ungetc=yes
50353 if test "${ice_have_ungetc}" = yes; then
50354 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
50355 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
50356 if test "${ice_cv_have_ungetc_decl+set}" = set; then
50357 echo $ECHO_N "(cached) $ECHO_C" >&6
50360 ice_cv_have_ungetc_decl=no
50361 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50362 ice_re_word='(^|[^a-zA-Z0-9_])'
50363 for header in stdio.h; do
50364 # Check for ordinary declaration
50365 cat >conftest.$ac_ext <<_ACEOF
50368 cat confdefs.h >>conftest.$ac_ext
50369 cat >>conftest.$ac_ext <<_ACEOF
50370 /* end confdefs.h. */
50374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50375 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
50376 ice_cv_have_ungetc_decl=yes
50380 if test "$ice_cv_have_ungetc_decl" = yes; then
50383 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50384 cat >conftest.$ac_ext <<_ACEOF
50387 cat confdefs.h >>conftest.$ac_ext
50388 cat >>conftest.$ac_ext <<_ACEOF
50389 /* end confdefs.h. */
50393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50394 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50395 ice_cv_have_ungetc_decl=yes
50399 if test "$ice_cv_have_ungetc_decl" = yes; then
50406 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
50407 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
50408 if test "$ice_cv_have_ungetc_decl" = yes; then
50410 cat >>confdefs.h <<_ACEOF
50411 #define HAVE_UNGETC_DECL 1
50418 for ac_func in vprintf
50420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50421 echo "$as_me:$LINENO: checking for $ac_func" >&5
50422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50423 if eval "test \"\${$as_ac_var+set}\" = set"; then
50424 echo $ECHO_N "(cached) $ECHO_C" >&6
50426 cat >conftest.$ac_ext <<_ACEOF
50429 cat confdefs.h >>conftest.$ac_ext
50430 cat >>conftest.$ac_ext <<_ACEOF
50431 /* end confdefs.h. */
50432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50434 #define $ac_func innocuous_$ac_func
50436 /* System header to define __stub macros and hopefully few prototypes,
50437 which can conflict with char $ac_func (); below.
50438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50439 <limits.h> exists even on freestanding compilers. */
50442 # include <limits.h>
50444 # include <assert.h>
50449 /* Override any gcc2 internal prototype to avoid an error. */
50454 /* We use char because int might match the return type of a gcc2
50455 builtin and then its argument prototype would still apply. */
50457 /* The GNU C library defines this for functions which it implements
50458 to always fail with ENOSYS. Some functions are actually named
50459 something starting with __ and the normal name is an alias. */
50460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50463 char (*f) () = $ac_func;
50472 return f != $ac_func;
50477 rm -f conftest.$ac_objext conftest$ac_exeext
50478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50479 (eval $ac_link) 2>conftest.er1
50481 grep -v '^ *+' conftest.er1 >conftest.err
50483 cat conftest.err >&5
50484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50485 (exit $ac_status); } &&
50486 { ac_try='test -z "$ac_c_werror_flag"
50487 || test ! -s conftest.err'
50488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50489 (eval $ac_try) 2>&5
50491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50492 (exit $ac_status); }; } &&
50493 { ac_try='test -s conftest$ac_exeext'
50494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50495 (eval $ac_try) 2>&5
50497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50498 (exit $ac_status); }; }; then
50499 eval "$as_ac_var=yes"
50501 echo "$as_me: failed program was:" >&5
50502 sed 's/^/| /' conftest.$ac_ext >&5
50504 eval "$as_ac_var=no"
50506 rm -f conftest.err conftest.$ac_objext \
50507 conftest$ac_exeext conftest.$ac_ext
50509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50511 if test `eval echo '${'$as_ac_var'}'` = yes; then
50512 cat >>confdefs.h <<_ACEOF
50513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50516 echo "$as_me:$LINENO: checking for _doprnt" >&5
50517 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
50518 if test "${ac_cv_func__doprnt+set}" = set; then
50519 echo $ECHO_N "(cached) $ECHO_C" >&6
50521 cat >conftest.$ac_ext <<_ACEOF
50524 cat confdefs.h >>conftest.$ac_ext
50525 cat >>conftest.$ac_ext <<_ACEOF
50526 /* end confdefs.h. */
50527 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
50528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50529 #define _doprnt innocuous__doprnt
50531 /* System header to define __stub macros and hopefully few prototypes,
50532 which can conflict with char _doprnt (); below.
50533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50534 <limits.h> exists even on freestanding compilers. */
50537 # include <limits.h>
50539 # include <assert.h>
50544 /* Override any gcc2 internal prototype to avoid an error. */
50549 /* We use char because int might match the return type of a gcc2
50550 builtin and then its argument prototype would still apply. */
50552 /* The GNU C library defines this for functions which it implements
50553 to always fail with ENOSYS. Some functions are actually named
50554 something starting with __ and the normal name is an alias. */
50555 #if defined (__stub__doprnt) || defined (__stub____doprnt)
50558 char (*f) () = _doprnt;
50567 return f != _doprnt;
50572 rm -f conftest.$ac_objext conftest$ac_exeext
50573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50574 (eval $ac_link) 2>conftest.er1
50576 grep -v '^ *+' conftest.er1 >conftest.err
50578 cat conftest.err >&5
50579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50580 (exit $ac_status); } &&
50581 { ac_try='test -z "$ac_c_werror_flag"
50582 || test ! -s conftest.err'
50583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50584 (eval $ac_try) 2>&5
50586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50587 (exit $ac_status); }; } &&
50588 { ac_try='test -s conftest$ac_exeext'
50589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50590 (eval $ac_try) 2>&5
50592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50593 (exit $ac_status); }; }; then
50594 ac_cv_func__doprnt=yes
50596 echo "$as_me: failed program was:" >&5
50597 sed 's/^/| /' conftest.$ac_ext >&5
50599 ac_cv_func__doprnt=no
50601 rm -f conftest.err conftest.$ac_objext \
50602 conftest$ac_exeext conftest.$ac_ext
50604 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
50605 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
50606 if test $ac_cv_func__doprnt = yes; then
50608 cat >>confdefs.h <<\_ACEOF
50609 #define HAVE_DOPRNT 1
50619 ice_have_vfprintf=no
50621 for ac_func in vfprintf
50623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50624 echo "$as_me:$LINENO: checking for $ac_func" >&5
50625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50626 if eval "test \"\${$as_ac_var+set}\" = set"; then
50627 echo $ECHO_N "(cached) $ECHO_C" >&6
50629 cat >conftest.$ac_ext <<_ACEOF
50632 cat confdefs.h >>conftest.$ac_ext
50633 cat >>conftest.$ac_ext <<_ACEOF
50634 /* end confdefs.h. */
50635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50637 #define $ac_func innocuous_$ac_func
50639 /* System header to define __stub macros and hopefully few prototypes,
50640 which can conflict with char $ac_func (); below.
50641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50642 <limits.h> exists even on freestanding compilers. */
50645 # include <limits.h>
50647 # include <assert.h>
50652 /* Override any gcc2 internal prototype to avoid an error. */
50657 /* We use char because int might match the return type of a gcc2
50658 builtin and then its argument prototype would still apply. */
50660 /* The GNU C library defines this for functions which it implements
50661 to always fail with ENOSYS. Some functions are actually named
50662 something starting with __ and the normal name is an alias. */
50663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50666 char (*f) () = $ac_func;
50675 return f != $ac_func;
50680 rm -f conftest.$ac_objext conftest$ac_exeext
50681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50682 (eval $ac_link) 2>conftest.er1
50684 grep -v '^ *+' conftest.er1 >conftest.err
50686 cat conftest.err >&5
50687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50688 (exit $ac_status); } &&
50689 { ac_try='test -z "$ac_c_werror_flag"
50690 || test ! -s conftest.err'
50691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50692 (eval $ac_try) 2>&5
50694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50695 (exit $ac_status); }; } &&
50696 { ac_try='test -s conftest$ac_exeext'
50697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50698 (eval $ac_try) 2>&5
50700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50701 (exit $ac_status); }; }; then
50702 eval "$as_ac_var=yes"
50704 echo "$as_me: failed program was:" >&5
50705 sed 's/^/| /' conftest.$ac_ext >&5
50707 eval "$as_ac_var=no"
50709 rm -f conftest.err conftest.$ac_objext \
50710 conftest$ac_exeext conftest.$ac_ext
50712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50714 if test `eval echo '${'$as_ac_var'}'` = yes; then
50715 cat >>confdefs.h <<_ACEOF
50716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50718 ice_have_vfprintf=yes
50722 if test "${ice_have_vfprintf}" = yes; then
50723 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
50724 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
50725 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
50726 echo $ECHO_N "(cached) $ECHO_C" >&6
50729 ice_cv_have_vfprintf_decl=no
50730 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50731 ice_re_word='(^|[^a-zA-Z0-9_])'
50732 for header in stdio.h stdlib.h; do
50733 # Check for ordinary declaration
50734 cat >conftest.$ac_ext <<_ACEOF
50737 cat confdefs.h >>conftest.$ac_ext
50738 cat >>conftest.$ac_ext <<_ACEOF
50739 /* end confdefs.h. */
50743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50744 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
50745 ice_cv_have_vfprintf_decl=yes
50749 if test "$ice_cv_have_vfprintf_decl" = yes; then
50752 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50753 cat >conftest.$ac_ext <<_ACEOF
50756 cat confdefs.h >>conftest.$ac_ext
50757 cat >>conftest.$ac_ext <<_ACEOF
50758 /* end confdefs.h. */
50762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50763 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50764 ice_cv_have_vfprintf_decl=yes
50768 if test "$ice_cv_have_vfprintf_decl" = yes; then
50775 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
50776 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
50777 if test "$ice_cv_have_vfprintf_decl" = yes; then
50779 cat >>confdefs.h <<_ACEOF
50780 #define HAVE_VFPRINTF_DECL 1
50787 ice_have_vprintf=no
50789 for ac_func in vprintf
50791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50792 echo "$as_me:$LINENO: checking for $ac_func" >&5
50793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50794 if eval "test \"\${$as_ac_var+set}\" = set"; then
50795 echo $ECHO_N "(cached) $ECHO_C" >&6
50797 cat >conftest.$ac_ext <<_ACEOF
50800 cat confdefs.h >>conftest.$ac_ext
50801 cat >>conftest.$ac_ext <<_ACEOF
50802 /* end confdefs.h. */
50803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50805 #define $ac_func innocuous_$ac_func
50807 /* System header to define __stub macros and hopefully few prototypes,
50808 which can conflict with char $ac_func (); below.
50809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50810 <limits.h> exists even on freestanding compilers. */
50813 # include <limits.h>
50815 # include <assert.h>
50820 /* Override any gcc2 internal prototype to avoid an error. */
50825 /* We use char because int might match the return type of a gcc2
50826 builtin and then its argument prototype would still apply. */
50828 /* The GNU C library defines this for functions which it implements
50829 to always fail with ENOSYS. Some functions are actually named
50830 something starting with __ and the normal name is an alias. */
50831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50834 char (*f) () = $ac_func;
50843 return f != $ac_func;
50848 rm -f conftest.$ac_objext conftest$ac_exeext
50849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50850 (eval $ac_link) 2>conftest.er1
50852 grep -v '^ *+' conftest.er1 >conftest.err
50854 cat conftest.err >&5
50855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50856 (exit $ac_status); } &&
50857 { ac_try='test -z "$ac_c_werror_flag"
50858 || test ! -s conftest.err'
50859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50860 (eval $ac_try) 2>&5
50862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50863 (exit $ac_status); }; } &&
50864 { ac_try='test -s conftest$ac_exeext'
50865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50866 (eval $ac_try) 2>&5
50868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50869 (exit $ac_status); }; }; then
50870 eval "$as_ac_var=yes"
50872 echo "$as_me: failed program was:" >&5
50873 sed 's/^/| /' conftest.$ac_ext >&5
50875 eval "$as_ac_var=no"
50877 rm -f conftest.err conftest.$ac_objext \
50878 conftest$ac_exeext conftest.$ac_ext
50880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50882 if test `eval echo '${'$as_ac_var'}'` = yes; then
50883 cat >>confdefs.h <<_ACEOF
50884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50886 ice_have_vprintf=yes
50890 if test "${ice_have_vprintf}" = yes; then
50891 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
50892 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
50893 if test "${ice_cv_have_vprintf_decl+set}" = set; then
50894 echo $ECHO_N "(cached) $ECHO_C" >&6
50897 ice_cv_have_vprintf_decl=no
50898 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50899 ice_re_word='(^|[^a-zA-Z0-9_])'
50900 for header in stdio.h stdlib.h; do
50901 # Check for ordinary declaration
50902 cat >conftest.$ac_ext <<_ACEOF
50905 cat confdefs.h >>conftest.$ac_ext
50906 cat >>conftest.$ac_ext <<_ACEOF
50907 /* end confdefs.h. */
50911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50912 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
50913 ice_cv_have_vprintf_decl=yes
50917 if test "$ice_cv_have_vprintf_decl" = yes; then
50920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50921 cat >conftest.$ac_ext <<_ACEOF
50924 cat confdefs.h >>conftest.$ac_ext
50925 cat >>conftest.$ac_ext <<_ACEOF
50926 /* end confdefs.h. */
50930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50931 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50932 ice_cv_have_vprintf_decl=yes
50936 if test "$ice_cv_have_vprintf_decl" = yes; then
50943 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
50944 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
50945 if test "$ice_cv_have_vprintf_decl" = yes; then
50947 cat >>confdefs.h <<_ACEOF
50948 #define HAVE_VPRINTF_DECL 1
50955 ice_have_vsprintf=no
50957 for ac_func in vsprintf
50959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50960 echo "$as_me:$LINENO: checking for $ac_func" >&5
50961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50962 if eval "test \"\${$as_ac_var+set}\" = set"; then
50963 echo $ECHO_N "(cached) $ECHO_C" >&6
50965 cat >conftest.$ac_ext <<_ACEOF
50968 cat confdefs.h >>conftest.$ac_ext
50969 cat >>conftest.$ac_ext <<_ACEOF
50970 /* end confdefs.h. */
50971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50973 #define $ac_func innocuous_$ac_func
50975 /* System header to define __stub macros and hopefully few prototypes,
50976 which can conflict with char $ac_func (); below.
50977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50978 <limits.h> exists even on freestanding compilers. */
50981 # include <limits.h>
50983 # include <assert.h>
50988 /* Override any gcc2 internal prototype to avoid an error. */
50993 /* We use char because int might match the return type of a gcc2
50994 builtin and then its argument prototype would still apply. */
50996 /* The GNU C library defines this for functions which it implements
50997 to always fail with ENOSYS. Some functions are actually named
50998 something starting with __ and the normal name is an alias. */
50999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51002 char (*f) () = $ac_func;
51011 return f != $ac_func;
51016 rm -f conftest.$ac_objext conftest$ac_exeext
51017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51018 (eval $ac_link) 2>conftest.er1
51020 grep -v '^ *+' conftest.er1 >conftest.err
51022 cat conftest.err >&5
51023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51024 (exit $ac_status); } &&
51025 { ac_try='test -z "$ac_c_werror_flag"
51026 || test ! -s conftest.err'
51027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51028 (eval $ac_try) 2>&5
51030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51031 (exit $ac_status); }; } &&
51032 { ac_try='test -s conftest$ac_exeext'
51033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51034 (eval $ac_try) 2>&5
51036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51037 (exit $ac_status); }; }; then
51038 eval "$as_ac_var=yes"
51040 echo "$as_me: failed program was:" >&5
51041 sed 's/^/| /' conftest.$ac_ext >&5
51043 eval "$as_ac_var=no"
51045 rm -f conftest.err conftest.$ac_objext \
51046 conftest$ac_exeext conftest.$ac_ext
51048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51050 if test `eval echo '${'$as_ac_var'}'` = yes; then
51051 cat >>confdefs.h <<_ACEOF
51052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51054 ice_have_vsprintf=yes
51058 if test "${ice_have_vsprintf}" = yes; then
51059 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
51060 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
51061 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
51062 echo $ECHO_N "(cached) $ECHO_C" >&6
51065 ice_cv_have_vsprintf_decl=no
51066 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51067 ice_re_word='(^|[^a-zA-Z0-9_])'
51068 for header in stdio.h stdlib.h; do
51069 # Check for ordinary declaration
51070 cat >conftest.$ac_ext <<_ACEOF
51073 cat confdefs.h >>conftest.$ac_ext
51074 cat >>conftest.$ac_ext <<_ACEOF
51075 /* end confdefs.h. */
51079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51080 $EGREP "${ice_re_word}vsprintf[ ]*\(" >/dev/null 2>&1; then
51081 ice_cv_have_vsprintf_decl=yes
51085 if test "$ice_cv_have_vsprintf_decl" = yes; then
51088 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51089 cat >conftest.$ac_ext <<_ACEOF
51092 cat confdefs.h >>conftest.$ac_ext
51093 cat >>conftest.$ac_ext <<_ACEOF
51094 /* end confdefs.h. */
51098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51099 $EGREP "${ice_re_word}vsprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51100 ice_cv_have_vsprintf_decl=yes
51104 if test "$ice_cv_have_vsprintf_decl" = yes; then
51111 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
51112 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
51113 if test "$ice_cv_have_vsprintf_decl" = yes; then
51115 cat >>confdefs.h <<_ACEOF
51116 #define HAVE_VSPRINTF_DECL 1
51122 echo "$as_me:$LINENO: checking for wait4" >&5
51123 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
51124 if test "${ac_cv_func_wait4+set}" = set; then
51125 echo $ECHO_N "(cached) $ECHO_C" >&6
51127 cat >conftest.$ac_ext <<_ACEOF
51130 cat confdefs.h >>conftest.$ac_ext
51131 cat >>conftest.$ac_ext <<_ACEOF
51132 /* end confdefs.h. */
51133 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
51134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51135 #define wait4 innocuous_wait4
51137 /* System header to define __stub macros and hopefully few prototypes,
51138 which can conflict with char wait4 (); below.
51139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51140 <limits.h> exists even on freestanding compilers. */
51143 # include <limits.h>
51145 # include <assert.h>
51150 /* Override any gcc2 internal prototype to avoid an error. */
51155 /* We use char because int might match the return type of a gcc2
51156 builtin and then its argument prototype would still apply. */
51158 /* The GNU C library defines this for functions which it implements
51159 to always fail with ENOSYS. Some functions are actually named
51160 something starting with __ and the normal name is an alias. */
51161 #if defined (__stub_wait4) || defined (__stub___wait4)
51164 char (*f) () = wait4;
51178 rm -f conftest.$ac_objext conftest$ac_exeext
51179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51180 (eval $ac_link) 2>conftest.er1
51182 grep -v '^ *+' conftest.er1 >conftest.err
51184 cat conftest.err >&5
51185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51186 (exit $ac_status); } &&
51187 { ac_try='test -z "$ac_c_werror_flag"
51188 || test ! -s conftest.err'
51189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51190 (eval $ac_try) 2>&5
51192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51193 (exit $ac_status); }; } &&
51194 { ac_try='test -s conftest$ac_exeext'
51195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51196 (eval $ac_try) 2>&5
51198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51199 (exit $ac_status); }; }; then
51200 ac_cv_func_wait4=yes
51202 echo "$as_me: failed program was:" >&5
51203 sed 's/^/| /' conftest.$ac_ext >&5
51205 ac_cv_func_wait4=no
51207 rm -f conftest.err conftest.$ac_objext \
51208 conftest$ac_exeext conftest.$ac_ext
51210 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
51211 echo "${ECHO_T}$ac_cv_func_wait4" >&6
51214 for ac_func in waitpid
51216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51217 echo "$as_me:$LINENO: checking for $ac_func" >&5
51218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51219 if eval "test \"\${$as_ac_var+set}\" = set"; then
51220 echo $ECHO_N "(cached) $ECHO_C" >&6
51222 cat >conftest.$ac_ext <<_ACEOF
51225 cat confdefs.h >>conftest.$ac_ext
51226 cat >>conftest.$ac_ext <<_ACEOF
51227 /* end confdefs.h. */
51228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51230 #define $ac_func innocuous_$ac_func
51232 /* System header to define __stub macros and hopefully few prototypes,
51233 which can conflict with char $ac_func (); below.
51234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51235 <limits.h> exists even on freestanding compilers. */
51238 # include <limits.h>
51240 # include <assert.h>
51245 /* Override any gcc2 internal prototype to avoid an error. */
51250 /* We use char because int might match the return type of a gcc2
51251 builtin and then its argument prototype would still apply. */
51253 /* The GNU C library defines this for functions which it implements
51254 to always fail with ENOSYS. Some functions are actually named
51255 something starting with __ and the normal name is an alias. */
51256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51259 char (*f) () = $ac_func;
51268 return f != $ac_func;
51273 rm -f conftest.$ac_objext conftest$ac_exeext
51274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51275 (eval $ac_link) 2>conftest.er1
51277 grep -v '^ *+' conftest.er1 >conftest.err
51279 cat conftest.err >&5
51280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51281 (exit $ac_status); } &&
51282 { ac_try='test -z "$ac_c_werror_flag"
51283 || test ! -s conftest.err'
51284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51285 (eval $ac_try) 2>&5
51287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288 (exit $ac_status); }; } &&
51289 { ac_try='test -s conftest$ac_exeext'
51290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51291 (eval $ac_try) 2>&5
51293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51294 (exit $ac_status); }; }; then
51295 eval "$as_ac_var=yes"
51297 echo "$as_me: failed program was:" >&5
51298 sed 's/^/| /' conftest.$ac_ext >&5
51300 eval "$as_ac_var=no"
51302 rm -f conftest.err conftest.$ac_objext \
51303 conftest$ac_exeext conftest.$ac_ext
51305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51307 if test `eval echo '${'$as_ac_var'}'` = yes; then
51308 cat >>confdefs.h <<_ACEOF
51309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51314 "$ac_func.$ac_objext" | \
51315 *" $ac_func.$ac_objext" | \
51316 "$ac_func.$ac_objext "* | \
51317 *" $ac_func.$ac_objext "* ) ;;
51318 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51326 for ac_func in writev
51328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51329 echo "$as_me:$LINENO: checking for $ac_func" >&5
51330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51331 if eval "test \"\${$as_ac_var+set}\" = set"; then
51332 echo $ECHO_N "(cached) $ECHO_C" >&6
51334 cat >conftest.$ac_ext <<_ACEOF
51337 cat confdefs.h >>conftest.$ac_ext
51338 cat >>conftest.$ac_ext <<_ACEOF
51339 /* end confdefs.h. */
51340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51342 #define $ac_func innocuous_$ac_func
51344 /* System header to define __stub macros and hopefully few prototypes,
51345 which can conflict with char $ac_func (); below.
51346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51347 <limits.h> exists even on freestanding compilers. */
51350 # include <limits.h>
51352 # include <assert.h>
51357 /* Override any gcc2 internal prototype to avoid an error. */
51362 /* We use char because int might match the return type of a gcc2
51363 builtin and then its argument prototype would still apply. */
51365 /* The GNU C library defines this for functions which it implements
51366 to always fail with ENOSYS. Some functions are actually named
51367 something starting with __ and the normal name is an alias. */
51368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51371 char (*f) () = $ac_func;
51380 return f != $ac_func;
51385 rm -f conftest.$ac_objext conftest$ac_exeext
51386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51387 (eval $ac_link) 2>conftest.er1
51389 grep -v '^ *+' conftest.er1 >conftest.err
51391 cat conftest.err >&5
51392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51393 (exit $ac_status); } &&
51394 { ac_try='test -z "$ac_c_werror_flag"
51395 || test ! -s conftest.err'
51396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51397 (eval $ac_try) 2>&5
51399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51400 (exit $ac_status); }; } &&
51401 { ac_try='test -s conftest$ac_exeext'
51402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51403 (eval $ac_try) 2>&5
51405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51406 (exit $ac_status); }; }; then
51407 eval "$as_ac_var=yes"
51409 echo "$as_me: failed program was:" >&5
51410 sed 's/^/| /' conftest.$ac_ext >&5
51412 eval "$as_ac_var=no"
51414 rm -f conftest.err conftest.$ac_objext \
51415 conftest$ac_exeext conftest.$ac_ext
51417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51419 if test `eval echo '${'$as_ac_var'}'` = yes; then
51420 cat >>confdefs.h <<_ACEOF
51421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51426 "$ac_func.$ac_objext" | \
51427 *" $ac_func.$ac_objext" | \
51428 "$ac_func.$ac_objext "* | \
51429 *" $ac_func.$ac_objext "* ) ;;
51430 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51440 for ac_func in writev
51442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51443 echo "$as_me:$LINENO: checking for $ac_func" >&5
51444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51445 if eval "test \"\${$as_ac_var+set}\" = set"; then
51446 echo $ECHO_N "(cached) $ECHO_C" >&6
51448 cat >conftest.$ac_ext <<_ACEOF
51451 cat confdefs.h >>conftest.$ac_ext
51452 cat >>conftest.$ac_ext <<_ACEOF
51453 /* end confdefs.h. */
51454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51456 #define $ac_func innocuous_$ac_func
51458 /* System header to define __stub macros and hopefully few prototypes,
51459 which can conflict with char $ac_func (); below.
51460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51461 <limits.h> exists even on freestanding compilers. */
51464 # include <limits.h>
51466 # include <assert.h>
51471 /* Override any gcc2 internal prototype to avoid an error. */
51476 /* We use char because int might match the return type of a gcc2
51477 builtin and then its argument prototype would still apply. */
51479 /* The GNU C library defines this for functions which it implements
51480 to always fail with ENOSYS. Some functions are actually named
51481 something starting with __ and the normal name is an alias. */
51482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51485 char (*f) () = $ac_func;
51494 return f != $ac_func;
51499 rm -f conftest.$ac_objext conftest$ac_exeext
51500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51501 (eval $ac_link) 2>conftest.er1
51503 grep -v '^ *+' conftest.er1 >conftest.err
51505 cat conftest.err >&5
51506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507 (exit $ac_status); } &&
51508 { ac_try='test -z "$ac_c_werror_flag"
51509 || test ! -s conftest.err'
51510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51511 (eval $ac_try) 2>&5
51513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51514 (exit $ac_status); }; } &&
51515 { ac_try='test -s conftest$ac_exeext'
51516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51517 (eval $ac_try) 2>&5
51519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51520 (exit $ac_status); }; }; then
51521 eval "$as_ac_var=yes"
51523 echo "$as_me: failed program was:" >&5
51524 sed 's/^/| /' conftest.$ac_ext >&5
51526 eval "$as_ac_var=no"
51528 rm -f conftest.err conftest.$ac_objext \
51529 conftest$ac_exeext conftest.$ac_ext
51531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51533 if test `eval echo '${'$as_ac_var'}'` = yes; then
51534 cat >>confdefs.h <<_ACEOF
51535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51537 ice_have_writev=yes
51541 if test "${ice_have_writev}" = yes; then
51542 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
51543 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
51544 if test "${ice_cv_have_writev_decl+set}" = set; then
51545 echo $ECHO_N "(cached) $ECHO_C" >&6
51548 ice_cv_have_writev_decl=no
51549 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51550 ice_re_word='(^|[^a-zA-Z0-9_])'
51551 for header in unistd.h sys/uio.h; do
51552 # Check for ordinary declaration
51553 cat >conftest.$ac_ext <<_ACEOF
51556 cat confdefs.h >>conftest.$ac_ext
51557 cat >>conftest.$ac_ext <<_ACEOF
51558 /* end confdefs.h. */
51562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51563 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then
51564 ice_cv_have_writev_decl=yes
51568 if test "$ice_cv_have_writev_decl" = yes; then
51571 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51572 cat >conftest.$ac_ext <<_ACEOF
51575 cat confdefs.h >>conftest.$ac_ext
51576 cat >>conftest.$ac_ext <<_ACEOF
51577 /* end confdefs.h. */
51581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51582 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51583 ice_cv_have_writev_decl=yes
51587 if test "$ice_cv_have_writev_decl" = yes; then
51594 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
51595 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
51596 if test "$ice_cv_have_writev_decl" = yes; then
51598 cat >>confdefs.h <<_ACEOF
51599 #define HAVE_WRITEV_DECL 1
51606 for ac_func in strcasecmp
51608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51609 echo "$as_me:$LINENO: checking for $ac_func" >&5
51610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51611 if eval "test \"\${$as_ac_var+set}\" = set"; then
51612 echo $ECHO_N "(cached) $ECHO_C" >&6
51614 cat >conftest.$ac_ext <<_ACEOF
51617 cat confdefs.h >>conftest.$ac_ext
51618 cat >>conftest.$ac_ext <<_ACEOF
51619 /* end confdefs.h. */
51620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51622 #define $ac_func innocuous_$ac_func
51624 /* System header to define __stub macros and hopefully few prototypes,
51625 which can conflict with char $ac_func (); below.
51626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51627 <limits.h> exists even on freestanding compilers. */
51630 # include <limits.h>
51632 # include <assert.h>
51637 /* Override any gcc2 internal prototype to avoid an error. */
51642 /* We use char because int might match the return type of a gcc2
51643 builtin and then its argument prototype would still apply. */
51645 /* The GNU C library defines this for functions which it implements
51646 to always fail with ENOSYS. Some functions are actually named
51647 something starting with __ and the normal name is an alias. */
51648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51651 char (*f) () = $ac_func;
51660 return f != $ac_func;
51665 rm -f conftest.$ac_objext conftest$ac_exeext
51666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51667 (eval $ac_link) 2>conftest.er1
51669 grep -v '^ *+' conftest.er1 >conftest.err
51671 cat conftest.err >&5
51672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51673 (exit $ac_status); } &&
51674 { ac_try='test -z "$ac_c_werror_flag"
51675 || test ! -s conftest.err'
51676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51677 (eval $ac_try) 2>&5
51679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51680 (exit $ac_status); }; } &&
51681 { ac_try='test -s conftest$ac_exeext'
51682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51683 (eval $ac_try) 2>&5
51685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51686 (exit $ac_status); }; }; then
51687 eval "$as_ac_var=yes"
51689 echo "$as_me: failed program was:" >&5
51690 sed 's/^/| /' conftest.$ac_ext >&5
51692 eval "$as_ac_var=no"
51694 rm -f conftest.err conftest.$ac_objext \
51695 conftest$ac_exeext conftest.$ac_ext
51697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51699 if test `eval echo '${'$as_ac_var'}'` = yes; then
51700 cat >>confdefs.h <<_ACEOF
51701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51706 "$ac_func.$ac_objext" | \
51707 *" $ac_func.$ac_objext" | \
51708 "$ac_func.$ac_objext "* | \
51709 *" $ac_func.$ac_objext "* ) ;;
51710 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51718 ice_have_strcasecmp=no
51720 for ac_func in strcasecmp
51722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51723 echo "$as_me:$LINENO: checking for $ac_func" >&5
51724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51725 if eval "test \"\${$as_ac_var+set}\" = set"; then
51726 echo $ECHO_N "(cached) $ECHO_C" >&6
51728 cat >conftest.$ac_ext <<_ACEOF
51731 cat confdefs.h >>conftest.$ac_ext
51732 cat >>conftest.$ac_ext <<_ACEOF
51733 /* end confdefs.h. */
51734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51736 #define $ac_func innocuous_$ac_func
51738 /* System header to define __stub macros and hopefully few prototypes,
51739 which can conflict with char $ac_func (); below.
51740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51741 <limits.h> exists even on freestanding compilers. */
51744 # include <limits.h>
51746 # include <assert.h>
51751 /* Override any gcc2 internal prototype to avoid an error. */
51756 /* We use char because int might match the return type of a gcc2
51757 builtin and then its argument prototype would still apply. */
51759 /* The GNU C library defines this for functions which it implements
51760 to always fail with ENOSYS. Some functions are actually named
51761 something starting with __ and the normal name is an alias. */
51762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51765 char (*f) () = $ac_func;
51774 return f != $ac_func;
51779 rm -f conftest.$ac_objext conftest$ac_exeext
51780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51781 (eval $ac_link) 2>conftest.er1
51783 grep -v '^ *+' conftest.er1 >conftest.err
51785 cat conftest.err >&5
51786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51787 (exit $ac_status); } &&
51788 { ac_try='test -z "$ac_c_werror_flag"
51789 || test ! -s conftest.err'
51790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51791 (eval $ac_try) 2>&5
51793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51794 (exit $ac_status); }; } &&
51795 { ac_try='test -s conftest$ac_exeext'
51796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51797 (eval $ac_try) 2>&5
51799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51800 (exit $ac_status); }; }; then
51801 eval "$as_ac_var=yes"
51803 echo "$as_me: failed program was:" >&5
51804 sed 's/^/| /' conftest.$ac_ext >&5
51806 eval "$as_ac_var=no"
51808 rm -f conftest.err conftest.$ac_objext \
51809 conftest$ac_exeext conftest.$ac_ext
51811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51813 if test `eval echo '${'$as_ac_var'}'` = yes; then
51814 cat >>confdefs.h <<_ACEOF
51815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51817 ice_have_strcasecmp=yes
51821 if test "${ice_have_strcasecmp}" = yes; then
51822 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
51823 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
51824 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
51825 echo $ECHO_N "(cached) $ECHO_C" >&6
51828 ice_cv_have_strcasecmp_decl=no
51829 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51830 ice_re_word='(^|[^a-zA-Z0-9_])'
51831 for header in string.h strings.h; do
51832 # Check for ordinary declaration
51833 cat >conftest.$ac_ext <<_ACEOF
51836 cat confdefs.h >>conftest.$ac_ext
51837 cat >>conftest.$ac_ext <<_ACEOF
51838 /* end confdefs.h. */
51842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51843 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
51844 ice_cv_have_strcasecmp_decl=yes
51848 if test "$ice_cv_have_strcasecmp_decl" = yes; then
51851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51852 cat >conftest.$ac_ext <<_ACEOF
51855 cat confdefs.h >>conftest.$ac_ext
51856 cat >>conftest.$ac_ext <<_ACEOF
51857 /* end confdefs.h. */
51861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51862 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51863 ice_cv_have_strcasecmp_decl=yes
51867 if test "$ice_cv_have_strcasecmp_decl" = yes; then
51874 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
51875 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
51876 if test "$ice_cv_have_strcasecmp_decl" = yes; then
51878 cat >>confdefs.h <<_ACEOF
51879 #define HAVE_STRCASECMP_DECL 1
51887 for ac_func in fnmatch
51889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51890 echo "$as_me:$LINENO: checking for $ac_func" >&5
51891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51892 if eval "test \"\${$as_ac_var+set}\" = set"; then
51893 echo $ECHO_N "(cached) $ECHO_C" >&6
51895 cat >conftest.$ac_ext <<_ACEOF
51898 cat confdefs.h >>conftest.$ac_ext
51899 cat >>conftest.$ac_ext <<_ACEOF
51900 /* end confdefs.h. */
51901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51903 #define $ac_func innocuous_$ac_func
51905 /* System header to define __stub macros and hopefully few prototypes,
51906 which can conflict with char $ac_func (); below.
51907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51908 <limits.h> exists even on freestanding compilers. */
51911 # include <limits.h>
51913 # include <assert.h>
51918 /* Override any gcc2 internal prototype to avoid an error. */
51923 /* We use char because int might match the return type of a gcc2
51924 builtin and then its argument prototype would still apply. */
51926 /* The GNU C library defines this for functions which it implements
51927 to always fail with ENOSYS. Some functions are actually named
51928 something starting with __ and the normal name is an alias. */
51929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51932 char (*f) () = $ac_func;
51941 return f != $ac_func;
51946 rm -f conftest.$ac_objext conftest$ac_exeext
51947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51948 (eval $ac_link) 2>conftest.er1
51950 grep -v '^ *+' conftest.er1 >conftest.err
51952 cat conftest.err >&5
51953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51954 (exit $ac_status); } &&
51955 { ac_try='test -z "$ac_c_werror_flag"
51956 || test ! -s conftest.err'
51957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51958 (eval $ac_try) 2>&5
51960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51961 (exit $ac_status); }; } &&
51962 { ac_try='test -s conftest$ac_exeext'
51963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51964 (eval $ac_try) 2>&5
51966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51967 (exit $ac_status); }; }; then
51968 eval "$as_ac_var=yes"
51970 echo "$as_me: failed program was:" >&5
51971 sed 's/^/| /' conftest.$ac_ext >&5
51973 eval "$as_ac_var=no"
51975 rm -f conftest.err conftest.$ac_objext \
51976 conftest$ac_exeext conftest.$ac_ext
51978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51980 if test `eval echo '${'$as_ac_var'}'` = yes; then
51981 cat >>confdefs.h <<_ACEOF
51982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51989 # Check whether --enable-largefile or --disable-largefile was given.
51990 if test "${enable_largefile+set}" = set; then
51991 enableval="$enable_largefile"
51994 if test "$enable_largefile" != no; then
51996 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
51997 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
51998 if test "${ac_cv_sys_largefile_CC+set}" = set; then
51999 echo $ECHO_N "(cached) $ECHO_C" >&6
52001 ac_cv_sys_largefile_CC=no
52002 if test "$GCC" != yes; then
52005 # IRIX 6.2 and later do not support large files by default,
52006 # so use the C compiler's -n32 option if that helps.
52007 cat >conftest.$ac_ext <<_ACEOF
52010 cat confdefs.h >>conftest.$ac_ext
52011 cat >>conftest.$ac_ext <<_ACEOF
52012 /* end confdefs.h. */
52013 #include <sys/types.h>
52014 /* Check that off_t can represent 2**63 - 1 correctly.
52015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52016 since some C++ compilers masquerading as C compilers
52017 incorrectly reject 9223372036854775807. */
52018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52020 && LARGE_OFF_T % 2147483647 == 1)
52030 rm -f conftest.$ac_objext
52031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52032 (eval $ac_compile) 2>conftest.er1
52034 grep -v '^ *+' conftest.er1 >conftest.err
52036 cat conftest.err >&5
52037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52038 (exit $ac_status); } &&
52039 { ac_try='test -z "$ac_c_werror_flag"
52040 || test ! -s conftest.err'
52041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52042 (eval $ac_try) 2>&5
52044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52045 (exit $ac_status); }; } &&
52046 { ac_try='test -s conftest.$ac_objext'
52047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52048 (eval $ac_try) 2>&5
52050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52051 (exit $ac_status); }; }; then
52054 echo "$as_me: failed program was:" >&5
52055 sed 's/^/| /' conftest.$ac_ext >&5
52058 rm -f conftest.err conftest.$ac_objext
52060 rm -f conftest.$ac_objext
52061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52062 (eval $ac_compile) 2>conftest.er1
52064 grep -v '^ *+' conftest.er1 >conftest.err
52066 cat conftest.err >&5
52067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52068 (exit $ac_status); } &&
52069 { ac_try='test -z "$ac_c_werror_flag"
52070 || test ! -s conftest.err'
52071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52072 (eval $ac_try) 2>&5
52074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52075 (exit $ac_status); }; } &&
52076 { ac_try='test -s conftest.$ac_objext'
52077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52078 (eval $ac_try) 2>&5
52080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52081 (exit $ac_status); }; }; then
52082 ac_cv_sys_largefile_CC=' -n32'; break
52084 echo "$as_me: failed program was:" >&5
52085 sed 's/^/| /' conftest.$ac_ext >&5
52088 rm -f conftest.err conftest.$ac_objext
52092 rm -f conftest.$ac_ext
52095 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
52096 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
52097 if test "$ac_cv_sys_largefile_CC" != no; then
52098 CC=$CC$ac_cv_sys_largefile_CC
52101 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
52102 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
52103 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
52104 echo $ECHO_N "(cached) $ECHO_C" >&6
52107 ac_cv_sys_file_offset_bits=no
52108 cat >conftest.$ac_ext <<_ACEOF
52111 cat confdefs.h >>conftest.$ac_ext
52112 cat >>conftest.$ac_ext <<_ACEOF
52113 /* end confdefs.h. */
52114 #include <sys/types.h>
52115 /* Check that off_t can represent 2**63 - 1 correctly.
52116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52117 since some C++ compilers masquerading as C compilers
52118 incorrectly reject 9223372036854775807. */
52119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52121 && LARGE_OFF_T % 2147483647 == 1)
52131 rm -f conftest.$ac_objext
52132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52133 (eval $ac_compile) 2>conftest.er1
52135 grep -v '^ *+' conftest.er1 >conftest.err
52137 cat conftest.err >&5
52138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52139 (exit $ac_status); } &&
52140 { ac_try='test -z "$ac_c_werror_flag"
52141 || test ! -s conftest.err'
52142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52143 (eval $ac_try) 2>&5
52145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52146 (exit $ac_status); }; } &&
52147 { ac_try='test -s conftest.$ac_objext'
52148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52149 (eval $ac_try) 2>&5
52151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52152 (exit $ac_status); }; }; then
52155 echo "$as_me: failed program was:" >&5
52156 sed 's/^/| /' conftest.$ac_ext >&5
52159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52160 cat >conftest.$ac_ext <<_ACEOF
52163 cat confdefs.h >>conftest.$ac_ext
52164 cat >>conftest.$ac_ext <<_ACEOF
52165 /* end confdefs.h. */
52166 #define _FILE_OFFSET_BITS 64
52167 #include <sys/types.h>
52168 /* Check that off_t can represent 2**63 - 1 correctly.
52169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52170 since some C++ compilers masquerading as C compilers
52171 incorrectly reject 9223372036854775807. */
52172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52174 && LARGE_OFF_T % 2147483647 == 1)
52184 rm -f conftest.$ac_objext
52185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52186 (eval $ac_compile) 2>conftest.er1
52188 grep -v '^ *+' conftest.er1 >conftest.err
52190 cat conftest.err >&5
52191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52192 (exit $ac_status); } &&
52193 { ac_try='test -z "$ac_c_werror_flag"
52194 || test ! -s conftest.err'
52195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52196 (eval $ac_try) 2>&5
52198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52199 (exit $ac_status); }; } &&
52200 { ac_try='test -s conftest.$ac_objext'
52201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52202 (eval $ac_try) 2>&5
52204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52205 (exit $ac_status); }; }; then
52206 ac_cv_sys_file_offset_bits=64; break
52208 echo "$as_me: failed program was:" >&5
52209 sed 's/^/| /' conftest.$ac_ext >&5
52212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52216 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
52217 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
52218 if test "$ac_cv_sys_file_offset_bits" != no; then
52220 cat >>confdefs.h <<_ACEOF
52221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
52226 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
52227 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
52228 if test "${ac_cv_sys_large_files+set}" = set; then
52229 echo $ECHO_N "(cached) $ECHO_C" >&6
52232 ac_cv_sys_large_files=no
52233 cat >conftest.$ac_ext <<_ACEOF
52236 cat confdefs.h >>conftest.$ac_ext
52237 cat >>conftest.$ac_ext <<_ACEOF
52238 /* end confdefs.h. */
52239 #include <sys/types.h>
52240 /* Check that off_t can represent 2**63 - 1 correctly.
52241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52242 since some C++ compilers masquerading as C compilers
52243 incorrectly reject 9223372036854775807. */
52244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52246 && LARGE_OFF_T % 2147483647 == 1)
52256 rm -f conftest.$ac_objext
52257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52258 (eval $ac_compile) 2>conftest.er1
52260 grep -v '^ *+' conftest.er1 >conftest.err
52262 cat conftest.err >&5
52263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52264 (exit $ac_status); } &&
52265 { ac_try='test -z "$ac_c_werror_flag"
52266 || test ! -s conftest.err'
52267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52268 (eval $ac_try) 2>&5
52270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52271 (exit $ac_status); }; } &&
52272 { ac_try='test -s conftest.$ac_objext'
52273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52274 (eval $ac_try) 2>&5
52276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52277 (exit $ac_status); }; }; then
52280 echo "$as_me: failed program was:" >&5
52281 sed 's/^/| /' conftest.$ac_ext >&5
52284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52285 cat >conftest.$ac_ext <<_ACEOF
52288 cat confdefs.h >>conftest.$ac_ext
52289 cat >>conftest.$ac_ext <<_ACEOF
52290 /* end confdefs.h. */
52291 #define _LARGE_FILES 1
52292 #include <sys/types.h>
52293 /* Check that off_t can represent 2**63 - 1 correctly.
52294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52295 since some C++ compilers masquerading as C compilers
52296 incorrectly reject 9223372036854775807. */
52297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52299 && LARGE_OFF_T % 2147483647 == 1)
52309 rm -f conftest.$ac_objext
52310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52311 (eval $ac_compile) 2>conftest.er1
52313 grep -v '^ *+' conftest.er1 >conftest.err
52315 cat conftest.err >&5
52316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317 (exit $ac_status); } &&
52318 { ac_try='test -z "$ac_c_werror_flag"
52319 || test ! -s conftest.err'
52320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52321 (eval $ac_try) 2>&5
52323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52324 (exit $ac_status); }; } &&
52325 { ac_try='test -s conftest.$ac_objext'
52326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52327 (eval $ac_try) 2>&5
52329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52330 (exit $ac_status); }; }; then
52331 ac_cv_sys_large_files=1; break
52333 echo "$as_me: failed program was:" >&5
52334 sed 's/^/| /' conftest.$ac_ext >&5
52337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52341 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
52342 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
52343 if test "$ac_cv_sys_large_files" != no; then
52345 cat >>confdefs.h <<_ACEOF
52346 #define _LARGE_FILES $ac_cv_sys_large_files
52354 echo "$as_me:$LINENO: checking disk device prefixes" >&5
52355 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
52357 df / | while read line; do
52359 while test $# -gt 0; do
52360 if test "x$1" = "x/"; then
52367 ) | sed 's/(//' | sed 's/)//' `
52371 while test $# -gt 0; do
52372 if expr "$1" : '.*dev' >/dev/null 2>&1; then
52380 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
52381 echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
52382 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
52384 if test -d /dev/dsk; then
52385 DEV_PREFIX=/dev/dsk/
52386 if test -d /dev/rdsk; then
52387 RDEV_PREFIX=/dev/rdsk/
52389 RDEV_PREFIX=/dev/dsk/
52391 elif test -d /dev; then
52394 dev_prefix=/dev/dsk/
52395 rdev_prefix=/dev/rdsk/
52396 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
52397 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
52402 # Some systems, notably Linux, do not have raw disk devices
52403 # names. Check this by trying to see if a raw disk device name
52404 # exists using the normal raw device path prepended to the
52405 # mount point of the root filesystem.
52406 if test "$mount"; then
52407 dev_name="/dev/r`basename $mount`"
52408 if test -b $dev_name -o -c $dev_name; then
52422 echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
52423 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
52427 cat >>confdefs.h <<_ACEOF
52428 #define DEV_PREFIX "${DEV_PREFIX}"
52432 cat >>confdefs.h <<_ACEOF
52433 #define RDEV_PREFIX "${RDEV_PREFIX}"
52439 { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
52440 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
52444 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
52445 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
52446 if test "${amanda_cv_posix_filelocking+set}" = set; then
52447 echo $ECHO_N "(cached) $ECHO_C" >&6
52450 if test "$cross_compiling" = yes; then
52452 amanda_cv_posix_filelocking="no (cannot run test)"
52455 cat >conftest.$ac_ext <<_ACEOF
52458 cat confdefs.h >>conftest.$ac_ext
52459 cat >>conftest.$ac_ext <<_ACEOF
52460 /* end confdefs.h. */
52463 #define CONFIGURE_TEST
52464 #define USE_POSIX_FCNTL
52465 #include "${srcdir-.}/common-src/amflock.c"
52468 rm -f conftest$ac_exeext
52469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52470 (eval $ac_link) 2>&5
52472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52475 (eval $ac_try) 2>&5
52477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52478 (exit $ac_status); }; }; then
52480 amanda_cv_posix_filelocking=yes
52483 echo "$as_me: program exited with status $ac_status" >&5
52484 echo "$as_me: failed program was:" >&5
52485 sed 's/^/| /' conftest.$ac_ext >&5
52487 ( exit $ac_status )
52489 amanda_cv_posix_filelocking="no"
52492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52494 rm -f /tmp/conftest.lock
52497 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
52498 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
52499 if test "x$amanda_cv_posix_filelocking" = xyes; then
52501 cat >>confdefs.h <<\_ACEOF
52502 #define USE_POSIX_FCNTL 1
52505 HAS_WORKING_FILE_LOCK=1
52508 if test -z "$HAS_WORKING_FILE_LOCK"; then
52509 echo "$as_me:$LINENO: checking whether flock locking works" >&5
52510 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
52511 if test "${amanda_cv_flock_filelocking+set}" = set; then
52512 echo $ECHO_N "(cached) $ECHO_C" >&6
52515 if test "$cross_compiling" = yes; then
52517 amanda_cv_flock_filelocking="no (cannot run test)"
52520 cat >conftest.$ac_ext <<_ACEOF
52523 cat confdefs.h >>conftest.$ac_ext
52524 cat >>conftest.$ac_ext <<_ACEOF
52525 /* end confdefs.h. */
52528 #define CONFIGURE_TEST
52530 #include "${srcdir-.}/common-src/amflock.c"
52533 rm -f conftest$ac_exeext
52534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52535 (eval $ac_link) 2>&5
52537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52540 (eval $ac_try) 2>&5
52542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52543 (exit $ac_status); }; }; then
52545 amanda_cv_flock_filelocking="yes"
52548 echo "$as_me: program exited with status $ac_status" >&5
52549 echo "$as_me: failed program was:" >&5
52550 sed 's/^/| /' conftest.$ac_ext >&5
52552 ( exit $ac_status )
52554 amanda_cv_flock_filelocking="no"
52557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52559 rm -f /tmp/conftest.lock
52562 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
52563 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
52564 if test "x$amanda_cv_flock_filelocking" = xyes; then
52566 cat >>confdefs.h <<\_ACEOF
52567 #define USE_FLOCK 1
52570 HAS_WORKING_FILE_LOCK=1
52574 if test -z "$HAS_WORKING_FILE_LOCK"; then
52575 echo "$as_me:$LINENO: checking whether lockf locking works" >&5
52576 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
52577 if test "${amanda_cv_lockf_filelocking+set}" = set; then
52578 echo $ECHO_N "(cached) $ECHO_C" >&6
52581 if test "$cross_compiling" = yes; then
52583 amanda_cv_lockf_filelocking="no (cannot run test)"
52586 cat >conftest.$ac_ext <<_ACEOF
52589 cat confdefs.h >>conftest.$ac_ext
52590 cat >>conftest.$ac_ext <<_ACEOF
52591 /* end confdefs.h. */
52594 #define CONFIGURE_TEST
52596 #include "${srcdir-.}/common-src/amflock.c"
52599 rm -f conftest$ac_exeext
52600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52601 (eval $ac_link) 2>&5
52603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52606 (eval $ac_try) 2>&5
52608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52609 (exit $ac_status); }; }; then
52611 amanda_cv_lockf_filelocking="yes"
52614 echo "$as_me: program exited with status $ac_status" >&5
52615 echo "$as_me: failed program was:" >&5
52616 sed 's/^/| /' conftest.$ac_ext >&5
52618 ( exit $ac_status )
52620 amanda_cv_lockf_filelocking="no"
52623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52625 rm -f /tmp/conftest.lock
52628 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
52629 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
52630 if test "x$amanda_cv_lockf_filelocking" = xyes; then
52632 cat >>confdefs.h <<\_ACEOF
52633 #define USE_LOCKF 1
52636 HAS_WORKING_FILE_LOCK=1
52640 if test -z "$HAS_WORKING_FILE_LOCK"; then
52641 echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
52642 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
52643 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
52644 echo $ECHO_N "(cached) $ECHO_C" >&6
52647 if test "$cross_compiling" = yes; then
52649 amanda_cv_lnlock_filelocking="no (cannot run test)"
52652 cat >conftest.$ac_ext <<_ACEOF
52655 cat confdefs.h >>conftest.$ac_ext
52656 cat >>conftest.$ac_ext <<_ACEOF
52657 /* end confdefs.h. */
52660 #define CONFIGURE_TEST
52662 #include "${srcdir-.}/common-src/amflock.c"
52663 #include "${srcdir-.}/common-src/alloc.c"
52664 #include "${srcdir-.}/common-src/error.c"
52665 #include "${srcdir-.}/common-src/snprintf.c"
52668 rm -f conftest$ac_exeext
52669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52670 (eval $ac_link) 2>&5
52672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52675 (eval $ac_try) 2>&5
52677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52678 (exit $ac_status); }; }; then
52680 amanda_cv_lnlock_filelocking="yes"
52683 echo "$as_me: program exited with status $ac_status" >&5
52684 echo "$as_me: failed program was:" >&5
52685 sed 's/^/| /' conftest.$ac_ext >&5
52687 ( exit $ac_status )
52689 amanda_cv_lnlock_filelocking="no"
52692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52694 rm -f /tmp/conftest.lock
52697 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
52698 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
52699 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
52701 cat >>confdefs.h <<\_ACEOF
52702 #define USE_LNLOCK 1
52705 HAS_WORKING_FILE_LOCK=1
52709 if test -z "$HAS_WORKING_FILE_LOCK"; then
52710 { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
52711 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
52712 { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
52713 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
52724 if test x"$NO_CLIENT_MODE" != x"true"; then
52726 WANT_CLIENT_FALSE='#'
52728 WANT_CLIENT_TRUE='#'
52734 if test ! -z "$SAMBA_CLIENT"; then
52736 WANT_SAMBA_FALSE='#'
52738 WANT_SAMBA_TRUE='#'
52744 if test x"$NO_RESTORE_MODE" != x"true"; then
52746 WANT_RESTORE_FALSE='#'
52748 WANT_RESTORE_TRUE='#'
52749 WANT_RESTORE_FALSE=
52754 if test x"$NO_SERVER_MODE" != x"true"; then
52756 WANT_SERVER_FALSE='#'
52758 WANT_SERVER_TRUE='#'
52764 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
52766 WANT_RECOVER_FALSE='#'
52768 WANT_RECOVER_TRUE='#'
52769 WANT_RECOVER_FALSE=
52774 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
52776 WANT_TAPE_FALSE='#'
52784 if test x"$NO_AMPLOT_MODE" != x"true"; then
52786 WANT_AMPLOT_FALSE='#'
52788 WANT_AMPLOT_TRUE='#'
52794 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
52795 WANT_CHG_SCSI_TRUE=
52796 WANT_CHG_SCSI_FALSE='#'
52798 WANT_CHG_SCSI_TRUE='#'
52799 WANT_CHG_SCSI_FALSE=
52804 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
52805 WANT_CHIO_SCSI_TRUE=
52806 WANT_CHIO_SCSI_FALSE='#'
52808 WANT_CHIO_SCSI_TRUE='#'
52809 WANT_CHIO_SCSI_FALSE=
52814 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
52815 WANT_RUNTIME_PSEUDO_RELOC_TRUE=
52816 WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
52818 WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
52819 WANT_RUNTIME_PSEUDO_RELOC_FALSE=
52824 if test x"$NEED_SETUID_CLIENT" != x"false"; then
52825 WANT_SETUID_CLIENT_TRUE=
52826 WANT_SETUID_CLIENT_FALSE='#'
52828 WANT_SETUID_CLIENT_TRUE='#'
52829 WANT_SETUID_CLIENT_FALSE=
52834 if test x"$SSH_SECURITY_SET" = x"true"; then
52835 WANT_SSH_SECURITY_TRUE=
52836 WANT_SSH_SECURITY_FALSE='#'
52838 WANT_SSH_SECURITY_TRUE='#'
52839 WANT_SSH_SECURITY_FALSE=
52843 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
52845 cat >>confdefs.h <<\_ACEOF
52846 #define USE_RUNDUMP 1
52851 # This is necessary so that .o files in LIBOBJS are also built via
52852 # the ANSI2KNR-filtering rules.
52853 LIBOBJS=`echo "$LIBOBJS" |
52854 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
52855 LTLIBOBJS=`echo "$LIBOBJS" |
52856 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
52859 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
52862 ## This stuff is needed for the documentation.
52863 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
52867 # Check whether --with-xsltproc or --without-xsltproc was given.
52868 if test "${with_xsltproc+set}" = set; then
52869 withval="$with_xsltproc"
52877 XSLTPROC="$withval";;
52881 USE_XSLTPROC=maybe;
52886 # This looks bad, but && and || have equal precedence in shells, so
52887 # actually it's all OK.
52888 if test "$USE_XSLTPROC" = "yes" || test "$USE_XSLTPROC" = "maybe" && \
52889 test -z "$XSLTPROC"; then
52890 # Extract the first word of "xsltproc", so it can be a program name with args.
52891 set dummy xsltproc; ac_word=$2
52892 echo "$as_me:$LINENO: checking for $ac_word" >&5
52893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
52894 if test "${ac_cv_path_XSLTPROC+set}" = set; then
52895 echo $ECHO_N "(cached) $ECHO_C" >&6
52899 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
52902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52903 for as_dir in $PATH
52906 test -z "$as_dir" && as_dir=.
52907 for ac_exec_ext in '' $ac_executable_extensions; do
52908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52909 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
52910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52919 XSLTPROC=$ac_cv_path_XSLTPROC
52921 if test -n "$XSLTPROC"; then
52922 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
52923 echo "${ECHO_T}$XSLTPROC" >&6
52925 echo "$as_me:$LINENO: result: no" >&5
52926 echo "${ECHO_T}no" >&6
52929 if test -n "$XSLTPROC"; then
52932 if test "$USE_XSLTPROC" = yes; then
52933 { { echo "$as_me:$LINENO: error: can't find xsltproc, but running with --with-xsltproc." >&5
52934 echo "$as_me: error: can't find xsltproc, but running with --with-xsltproc." >&2;}
52935 { (exit 1); exit 1; }; }
52944 if test "$USE_XSLTPROC" = yes; then
52945 HAVE_XSLTPROC_TRUE=
52946 HAVE_XSLTPROC_FALSE='#'
52948 HAVE_XSLTPROC_TRUE='#'
52949 HAVE_XSLTPROC_FALSE=
52953 ac_config_files="$ac_config_files amplot/amcat.awk amplot/amplot.sh amplot/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 man/Makefile docs/Makefile recover-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 tape-src/Makefile config/Makefile Makefile"
52955 cat >confcache <<\_ACEOF
52956 # This file is a shell script that caches the results of configure
52957 # tests run on this system so they can be shared between configure
52958 # scripts and configure runs, see configure's option --config-cache.
52959 # It is not useful on other systems. If it contains results you don't
52960 # want to keep, you may remove or edit it.
52962 # config.status only pays attention to the cache file if you give it
52963 # the --recheck option to rerun configure.
52965 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52967 # following values.
52971 # The following way of writing the cache mishandles newlines in values,
52972 # but we know of no workaround that is simple, portable, and efficient.
52973 # So, don't put newlines in cache variables' values.
52974 # Ultrix sh set writes to stderr and can't be redirected directly,
52975 # and sets the high bit in the cache file unless we assign to the vars.
52978 case `(ac_space=' '; set | grep ac_space) 2>&1` in
52980 # `set' does not quote correctly, so add quotes (double-quote
52981 # substitution turns \\\\ into \\, and sed turns \\ into \).
52984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52987 # `set' quotes correctly as required by POSIX, so do not add quotes.
52989 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
52996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52998 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53000 if diff $cache_file confcache >/dev/null 2>&1; then :; else
53001 if test -w $cache_file; then
53002 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53003 cat confcache >$cache_file
53005 echo "not updating unwritable cache $cache_file"
53010 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53011 # Let make expand exec_prefix.
53012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53016 # trailing colons and then remove the whole line if VPATH becomes empty
53017 # (actually we leave an empty line to preserve line numbers).
53018 if test "x$srcdir" = x.; then
53019 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53020 s/:*\$(srcdir):*/:/;
53021 s/:*\${srcdir}:*/:/;
53023 s/^\([^=]*=[ ]*\):*/\1/;
53029 DEFS=-DHAVE_CONFIG_H
53033 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53034 # 1. Remove the extension, and $U if already installed.
53035 ac_i=`echo "$ac_i" |
53036 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53038 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53039 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53041 LIBOBJS=$ac_libobjs
53043 LTLIBOBJS=$ac_ltlibobjs
53046 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53047 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53048 Usually this means the macro was only invoked conditionally." >&5
53049 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53050 Usually this means the macro was only invoked conditionally." >&2;}
53051 { (exit 1); exit 1; }; }
53053 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53054 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53055 Usually this means the macro was only invoked conditionally." >&5
53056 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53057 Usually this means the macro was only invoked conditionally." >&2;}
53058 { (exit 1); exit 1; }; }
53060 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53061 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53062 Usually this means the macro was only invoked conditionally." >&5
53063 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53064 Usually this means the macro was only invoked conditionally." >&2;}
53065 { (exit 1); exit 1; }; }
53067 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
53068 { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
53069 Usually this means the macro was only invoked conditionally." >&5
53070 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
53071 Usually this means the macro was only invoked conditionally." >&2;}
53072 { (exit 1); exit 1; }; }
53074 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
53075 { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
53076 Usually this means the macro was only invoked conditionally." >&5
53077 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
53078 Usually this means the macro was only invoked conditionally." >&2;}
53079 { (exit 1); exit 1; }; }
53081 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
53082 { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
53083 Usually this means the macro was only invoked conditionally." >&5
53084 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
53085 Usually this means the macro was only invoked conditionally." >&2;}
53086 { (exit 1); exit 1; }; }
53088 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
53089 { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
53090 Usually this means the macro was only invoked conditionally." >&5
53091 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
53092 Usually this means the macro was only invoked conditionally." >&2;}
53093 { (exit 1); exit 1; }; }
53095 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
53096 { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
53097 Usually this means the macro was only invoked conditionally." >&5
53098 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
53099 Usually this means the macro was only invoked conditionally." >&2;}
53100 { (exit 1); exit 1; }; }
53102 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
53103 { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
53104 Usually this means the macro was only invoked conditionally." >&5
53105 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
53106 Usually this means the macro was only invoked conditionally." >&2;}
53107 { (exit 1); exit 1; }; }
53109 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
53110 { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
53111 Usually this means the macro was only invoked conditionally." >&5
53112 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
53113 Usually this means the macro was only invoked conditionally." >&2;}
53114 { (exit 1); exit 1; }; }
53116 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
53117 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
53118 Usually this means the macro was only invoked conditionally." >&5
53119 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
53120 Usually this means the macro was only invoked conditionally." >&2;}
53121 { (exit 1); exit 1; }; }
53123 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
53124 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
53125 Usually this means the macro was only invoked conditionally." >&5
53126 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
53127 Usually this means the macro was only invoked conditionally." >&2;}
53128 { (exit 1); exit 1; }; }
53130 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
53131 { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
53132 Usually this means the macro was only invoked conditionally." >&5
53133 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
53134 Usually this means the macro was only invoked conditionally." >&2;}
53135 { (exit 1); exit 1; }; }
53137 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
53138 { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
53139 Usually this means the macro was only invoked conditionally." >&5
53140 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
53141 Usually this means the macro was only invoked conditionally." >&2;}
53142 { (exit 1); exit 1; }; }
53144 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
53145 { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
53146 Usually this means the macro was only invoked conditionally." >&5
53147 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
53148 Usually this means the macro was only invoked conditionally." >&2;}
53149 { (exit 1); exit 1; }; }
53151 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
53152 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
53153 Usually this means the macro was only invoked conditionally." >&5
53154 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
53155 Usually this means the macro was only invoked conditionally." >&2;}
53156 { (exit 1); exit 1; }; }
53159 : ${CONFIG_STATUS=./config.status}
53160 ac_clean_files_save=$ac_clean_files
53161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53162 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53163 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53164 cat >$CONFIG_STATUS <<_ACEOF
53166 # Generated by $as_me.
53167 # Run this file to recreate the current configuration.
53168 # Compiler output produced by configure, useful for debugging
53169 # configure, is in config.log if it exists.
53172 ac_cs_recheck=false
53174 SHELL=\${CONFIG_SHELL-$SHELL}
53177 cat >>$CONFIG_STATUS <<\_ACEOF
53178 ## --------------------- ##
53179 ## M4sh Initialization. ##
53180 ## --------------------- ##
53182 # Be Bourne compatible
53183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53186 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53187 # is contrary to our usage. Disable this feature.
53188 alias -g '${1+"$@"}'='"$@"'
53189 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53192 DUALCASE=1; export DUALCASE # for MKS sh
53194 # Support unset when possible.
53195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53202 # Work around bugs in pre-3.0 UWIN ksh.
53203 $as_unset ENV MAIL MAILPATH
53210 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53211 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53212 LC_TELEPHONE LC_TIME
53214 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53215 eval $as_var=C; export $as_var
53221 # Required to use basename.
53222 if expr a : '\(a\)' >/dev/null 2>&1; then
53228 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53229 as_basename=basename
53235 # Name of the executable.
53236 as_me=`$as_basename "$0" ||
53237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53238 X"$0" : 'X\(//\)$' \| \
53239 X"$0" : 'X\(/\)$' \| \
53240 . : '\(.\)' 2>/dev/null ||
53242 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53243 /^X\/\(\/\/\)$/{ s//\1/; q; }
53244 /^X\/\(\/\).*/{ s//\1/; q; }
53248 # PATH needs CR, and LINENO needs CR and PATH.
53249 # Avoid depending upon Character Ranges.
53250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53253 as_cr_digits='0123456789'
53254 as_cr_alnum=$as_cr_Letters$as_cr_digits
53256 # The user is always right.
53257 if test "${PATH_SEPARATOR+set}" != set; then
53258 echo "#! /bin/sh" >conf$$.sh
53259 echo "exit 0" >>conf$$.sh
53261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53270 as_lineno_1=$LINENO
53271 as_lineno_2=$LINENO
53272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53273 test "x$as_lineno_1" != "x$as_lineno_2" &&
53274 test "x$as_lineno_3" = "x$as_lineno_2" || {
53275 # Find who we are. Look in the path if we contain no path at all
53278 *[\\/]* ) as_myself=$0 ;;
53279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53280 for as_dir in $PATH
53283 test -z "$as_dir" && as_dir=.
53284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53289 # We did not find ourselves, most probably we were run as `sh COMMAND'
53290 # in which case we are not to be found in the path.
53291 if test "x$as_myself" = x; then
53294 if test ! -f "$as_myself"; then
53295 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53296 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53297 { (exit 1); exit 1; }; }
53299 case $CONFIG_SHELL in
53301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53302 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53305 test -z "$as_dir" && as_dir=.
53306 for as_base in sh bash ksh sh5; do
53309 if ("$as_dir/$as_base" -c '
53310 as_lineno_1=$LINENO
53311 as_lineno_2=$LINENO
53312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53313 test "x$as_lineno_1" != "x$as_lineno_2" &&
53314 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53315 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53316 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53317 CONFIG_SHELL=$as_dir/$as_base
53318 export CONFIG_SHELL
53319 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53328 # uniformly replaced by the line number. The first 'sed' inserts a
53329 # line-number line before each line; the second 'sed' does the real
53330 # work. The second script uses 'N' to pair each line-number line
53331 # with the numbered line, and appends trailing '-' during
53332 # substitution so that $LINENO is not a special case at line end.
53333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53334 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53335 sed '=' <$as_myself |
53340 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53343 s,^['$as_cr_digits']*\n,,
53344 ' >$as_me.lineno &&
53345 chmod +x $as_me.lineno ||
53346 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53347 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53348 { (exit 1); exit 1; }; }
53350 # Don't try to exec as it changes $[0], causing all sort of problems
53351 # (the dirname of $[0] is not the place where we might find the
53352 # original and so on. Autoconf is especially sensible to this).
53354 # Exit status is that of the last command.
53359 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53360 *c*,-n*) ECHO_N= ECHO_C='
53362 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53363 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53366 if expr a : '\(a\)' >/dev/null 2>&1; then
53372 rm -f conf$$ conf$$.exe conf$$.file
53374 if ln -s conf$$.file conf$$ 2>/dev/null; then
53375 # We could just check for DJGPP; but this test a) works b) is more generic
53376 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53377 if test -f conf$$.exe; then
53378 # Don't use ln at all; we don't have any links
53383 elif ln conf$$.file conf$$ 2>/dev/null; then
53388 rm -f conf$$ conf$$.exe conf$$.file
53390 if mkdir -p . 2>/dev/null; then
53393 test -d ./-p && rmdir ./-p
53397 as_executable_p="test -f"
53399 # Sed expression to map a string onto a valid CPP name.
53400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53402 # Sed expression to map a string onto a valid variable name.
53403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53407 # We need space, tab and new line, in precisely that order.
53417 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53418 # report actual input values of CONFIG_FILES etc. instead of their
53419 # values after options handling. Logging --version etc. is OK.
53423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53424 ## Running $as_me. ##
53429 This file was extended by $as_me, which was
53430 generated by GNU Autoconf 2.59. Invocation command line was
53432 CONFIG_FILES = $CONFIG_FILES
53433 CONFIG_HEADERS = $CONFIG_HEADERS
53434 CONFIG_LINKS = $CONFIG_LINKS
53435 CONFIG_COMMANDS = $CONFIG_COMMANDS
53439 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53443 # Files that config.status was made for.
53444 if test -n "$ac_config_files"; then
53445 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53448 if test -n "$ac_config_headers"; then
53449 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53452 if test -n "$ac_config_links"; then
53453 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53456 if test -n "$ac_config_commands"; then
53457 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53460 cat >>$CONFIG_STATUS <<\_ACEOF
53463 \`$as_me' instantiates files from templates according to the
53464 current configuration.
53466 Usage: $0 [OPTIONS] [FILE]...
53468 -h, --help print this help, then exit
53469 -V, --version print version number, then exit
53470 -q, --quiet do not print progress messages
53471 -d, --debug don't remove temporary files
53472 --recheck update $as_me by reconfiguring in the same conditions
53473 --file=FILE[:TEMPLATE]
53474 instantiate the configuration file FILE
53475 --header=FILE[:TEMPLATE]
53476 instantiate the configuration header FILE
53478 Configuration files:
53481 Configuration headers:
53484 Configuration commands:
53487 Report bugs to <bug-autoconf@gnu.org>."
53490 cat >>$CONFIG_STATUS <<_ACEOF
53493 configured by $0, generated by GNU Autoconf 2.59,
53494 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53496 Copyright (C) 2003 Free Software Foundation, Inc.
53497 This config.status script is free software; the Free Software Foundation
53498 gives unlimited permission to copy, distribute and modify it."
53503 cat >>$CONFIG_STATUS <<\_ACEOF
53504 # If no file are specified by the user, then we need to provide default
53505 # value. By we need to know if files were specified by the user.
53511 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53512 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53520 *) # This is not an option, so the user has probably given explicit
53523 ac_need_defaults=false;;
53527 # Handling of the options.
53529 cat >>$CONFIG_STATUS <<\_ACEOF
53530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53532 --version | --vers* | -V )
53533 echo "$ac_cs_version"; exit 0 ;;
53535 # Conflict between --help and --header
53536 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53537 Try \`$0 --help' for more information." >&5
53538 echo "$as_me: error: ambiguous option: $1
53539 Try \`$0 --help' for more information." >&2;}
53540 { (exit 1); exit 1; }; };;
53541 --help | --hel | -h )
53542 echo "$ac_cs_usage"; exit 0 ;;
53543 --debug | --d* | -d )
53545 --file | --fil | --fi | --f )
53547 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53548 ac_need_defaults=false;;
53549 --header | --heade | --head | --hea )
53551 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53552 ac_need_defaults=false;;
53553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53557 # This is an error.
53558 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53559 Try \`$0 --help' for more information." >&5
53560 echo "$as_me: error: unrecognized option: $1
53561 Try \`$0 --help' for more information." >&2;}
53562 { (exit 1); exit 1; }; } ;;
53564 *) ac_config_targets="$ac_config_targets $1" ;;
53570 ac_configure_extra_args=
53572 if $ac_cs_silent; then
53574 ac_configure_extra_args="$ac_configure_extra_args --silent"
53578 cat >>$CONFIG_STATUS <<_ACEOF
53579 if \$ac_cs_recheck; then
53580 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53581 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53586 cat >>$CONFIG_STATUS <<_ACEOF
53588 # INIT-COMMANDS section.
53591 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53592 # variables for create stdint.h replacement
53595 ac_stdint_h="$ac_stdint_h"
53596 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
53597 ac_cv_stdint_message="$ac_cv_stdint_message"
53598 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
53599 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
53600 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
53601 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
53602 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
53603 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
53604 ac_cv_char_data_model="$ac_cv_char_data_model"
53605 ac_cv_long_data_model="$ac_cv_long_data_model"
53606 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
53607 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
53608 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
53615 cat >>$CONFIG_STATUS <<\_ACEOF
53616 for ac_config_target in $ac_config_targets
53618 case "$ac_config_target" in
53619 # Handling of arguments.
53620 "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
53621 "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
53622 "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
53623 "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
53624 "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
53625 "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
53626 "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
53627 "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
53628 "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
53629 "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
53630 "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
53631 "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
53632 "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
53633 "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
53634 "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
53635 "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
53636 "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
53637 "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
53638 "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
53639 "dumper-src/gnutar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/gnutar.pl" ;;
53640 "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
53641 "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
53642 "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
53643 "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
53644 "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
53645 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
53646 "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
53647 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
53648 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
53649 "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
53650 "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
53651 "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
53652 "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
53653 "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
53654 "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
53655 "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
53656 "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
53657 "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
53658 "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
53659 "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
53660 "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
53661 "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
53662 "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
53663 "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
53664 "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
53665 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
53666 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53667 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53668 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
53669 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
53670 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53671 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53672 { (exit 1); exit 1; }; };;
53676 # If the user did not use the arguments to specify the items to instantiate,
53677 # then the envvar interface is used. Set only those that are not.
53678 # We use the long form for the default assignment because of an extremely
53679 # bizarre bug on SunOS 4.1.3.
53680 if $ac_need_defaults; then
53681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53686 # Have a temporary directory for convenience. Make it in the build tree
53687 # simply because there is no reason to put it here, and in addition,
53688 # creating and moving files from /tmp can sometimes cause problems.
53689 # Create a temporary directory, and hook for its removal unless debugging.
53692 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53693 trap '{ (exit 1); exit 1; }' 1 2 13 15
53696 # Create a (secure) tmp directory for tmp files.
53699 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53700 test -n "$tmp" && test -d "$tmp"
53703 tmp=./confstat$$-$RANDOM
53704 (umask 077 && mkdir $tmp)
53707 echo "$me: cannot create a temporary directory in ." >&2
53708 { (exit 1); exit 1; }
53713 cat >>$CONFIG_STATUS <<_ACEOF
53716 # CONFIG_FILES section.
53719 # No need to generate the scripts if there are no CONFIG_FILES.
53720 # This happens for instance when ./config.status config.h
53721 if test -n "\$CONFIG_FILES"; then
53722 # Protect against being on the right side of a sed subst in config.status.
53723 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53724 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53725 s,@SHELL@,$SHELL,;t t
53726 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53727 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53728 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53729 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53730 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53731 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53732 s,@exec_prefix@,$exec_prefix,;t t
53733 s,@prefix@,$prefix,;t t
53734 s,@program_transform_name@,$program_transform_name,;t t
53735 s,@bindir@,$bindir,;t t
53736 s,@sbindir@,$sbindir,;t t
53737 s,@libexecdir@,$libexecdir,;t t
53738 s,@datadir@,$datadir,;t t
53739 s,@sysconfdir@,$sysconfdir,;t t
53740 s,@sharedstatedir@,$sharedstatedir,;t t
53741 s,@localstatedir@,$localstatedir,;t t
53742 s,@libdir@,$libdir,;t t
53743 s,@includedir@,$includedir,;t t
53744 s,@oldincludedir@,$oldincludedir,;t t
53745 s,@infodir@,$infodir,;t t
53746 s,@mandir@,$mandir,;t t
53747 s,@build_alias@,$build_alias,;t t
53748 s,@host_alias@,$host_alias,;t t
53749 s,@target_alias@,$target_alias,;t t
53750 s,@DEFS@,$DEFS,;t t
53751 s,@ECHO_C@,$ECHO_C,;t t
53752 s,@ECHO_N@,$ECHO_N,;t t
53753 s,@ECHO_T@,$ECHO_T,;t t
53754 s,@LIBS@,$LIBS,;t t
53755 s,@build@,$build,;t t
53756 s,@build_cpu@,$build_cpu,;t t
53757 s,@build_vendor@,$build_vendor,;t t
53758 s,@build_os@,$build_os,;t t
53759 s,@host@,$host,;t t
53760 s,@host_cpu@,$host_cpu,;t t
53761 s,@host_vendor@,$host_vendor,;t t
53762 s,@host_os@,$host_os,;t t
53763 s,@target@,$target,;t t
53764 s,@target_cpu@,$target_cpu,;t t
53765 s,@target_vendor@,$target_vendor,;t t
53766 s,@target_os@,$target_os,;t t
53767 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
53768 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53769 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53770 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53771 s,@CYGPATH_W@,$CYGPATH_W,;t t
53772 s,@PACKAGE@,$PACKAGE,;t t
53773 s,@VERSION@,$VERSION,;t t
53774 s,@ACLOCAL@,$ACLOCAL,;t t
53775 s,@AUTOCONF@,$AUTOCONF,;t t
53776 s,@AUTOMAKE@,$AUTOMAKE,;t t
53777 s,@AUTOHEADER@,$AUTOHEADER,;t t
53778 s,@MAKEINFO@,$MAKEINFO,;t t
53779 s,@install_sh@,$install_sh,;t t
53780 s,@STRIP@,$STRIP,;t t
53781 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53782 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53783 s,@mkdir_p@,$mkdir_p,;t t
53785 s,@SET_MAKE@,$SET_MAKE,;t t
53786 s,@am__leading_dot@,$am__leading_dot,;t t
53787 s,@AMTAR@,$AMTAR,;t t
53788 s,@am__tar@,$am__tar,;t t
53789 s,@am__untar@,$am__untar,;t t
53790 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
53791 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
53792 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
53793 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
53794 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
53795 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
53796 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
53797 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
53798 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
53799 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
53800 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
53801 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
53802 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
53803 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
53804 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
53805 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
53806 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
53807 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
53808 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
53809 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
53810 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
53811 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
53812 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
53813 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
53814 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
53815 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
53817 s,@CFLAGS@,$CFLAGS,;t t
53818 s,@LDFLAGS@,$LDFLAGS,;t t
53819 s,@CPPFLAGS@,$CPPFLAGS,;t t
53820 s,@ac_ct_CC@,$ac_ct_CC,;t t
53821 s,@EXEEXT@,$EXEEXT,;t t
53822 s,@OBJEXT@,$OBJEXT,;t t
53823 s,@DEPDIR@,$DEPDIR,;t t
53824 s,@am__include@,$am__include,;t t
53825 s,@am__quote@,$am__quote,;t t
53826 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53827 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53828 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53829 s,@CCDEPMODE@,$CCDEPMODE,;t t
53830 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53831 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53832 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
53834 s,@EGREP@,$EGREP,;t t
53836 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
53837 s,@YACC@,$YACC,;t t
53839 s,@COMPRESS@,$COMPRESS,;t t
53841 s,@GETCONF@,$GETCONF,;t t
53842 s,@GNUPLOT@,$GNUPLOT,;t t
53843 s,@GREP@,$GREP,;t t
53844 s,@GNUTAR@,$GNUTAR,;t t
53845 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
53846 s,@GZIP@,$GZIP,;t t
53847 s,@MAILER@,$MAILER,;t t
53849 s,@CHIO@,$CHIO,;t t
53852 s,@MCUTIL@,$MCUTIL,;t t
53853 s,@PRINT@,$PRINT,;t t
53854 s,@PCAT@,$PCAT,;t t
53855 s,@PERL@,$PERL,;t t
53856 s,@DUMP@,$DUMP,;t t
53857 s,@RESTORE@,$RESTORE,;t t
53858 s,@XFSDUMP@,$XFSDUMP,;t t
53859 s,@XFSRESTORE@,$XFSRESTORE,;t t
53860 s,@VXDUMP@,$VXDUMP,;t t
53861 s,@VXRESTORE@,$VXRESTORE,;t t
53862 s,@VDUMP@,$VDUMP,;t t
53863 s,@VRESTORE@,$VRESTORE,;t t
53864 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
53865 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
53866 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
53867 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
53868 s,@LL_FMT@,$LL_FMT,;t t
53869 s,@LN_S@,$LN_S,;t t
53870 s,@ECHO@,$ECHO,;t t
53871 s,@ac_ct_AR@,$ac_ct_AR,;t t
53872 s,@RANLIB@,$RANLIB,;t t
53873 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53875 s,@CXXFLAGS@,$CXXFLAGS,;t t
53876 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53877 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53878 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53879 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53880 s,@CXXCPP@,$CXXCPP,;t t
53882 s,@FFLAGS@,$FFLAGS,;t t
53883 s,@ac_ct_F77@,$ac_ct_F77,;t t
53884 s,@LIBTOOL@,$LIBTOOL,;t t
53885 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
53887 s,@LEXLIB@,$LEXLIB,;t t
53888 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
53889 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
53890 s,@DB_EXT@,$DB_EXT,;t t
53891 s,@ALLOCA@,$ALLOCA,;t t
53892 s,@LIBOBJS@,$LIBOBJS,;t t
53893 s,@ac_n@,$ac_n,;t t
53894 s,@ac_c@,$ac_c,;t t
53895 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
53896 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
53897 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
53898 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
53899 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
53900 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
53901 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
53902 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
53903 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
53904 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
53905 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
53906 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
53907 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
53908 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
53909 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
53910 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
53911 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
53912 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
53913 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
53914 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
53915 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
53916 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
53917 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
53918 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
53919 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53920 s,@LTALLOCA@,$LTALLOCA,;t t
53921 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
53922 s,@XSLTPROC@,$XSLTPROC,;t t
53923 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
53924 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
53929 cat >>$CONFIG_STATUS <<\_ACEOF
53930 # Split the substitutions into bite-sized pieces for seds with
53931 # small command number limits, like on Digital OSF/1 and HP-UX.
53932 ac_max_sed_lines=48
53933 ac_sed_frag=1 # Number of current file.
53934 ac_beg=1 # First line for current file.
53935 ac_end=$ac_max_sed_lines # Line after last line for current file.
53938 while $ac_more_lines; do
53939 if test $ac_beg -gt 1; then
53940 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53942 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53944 if test ! -s $tmp/subs.frag; then
53945 ac_more_lines=false
53947 # The purpose of the label and of the branching condition is to
53948 # speed up the sed processing (if there are no `@' at all, there
53949 # is no need to browse any of the substitutions).
53950 # These are the two extra sed commands mentioned above.
53952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53953 if test -z "$ac_sed_cmds"; then
53954 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53956 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53958 ac_sed_frag=`expr $ac_sed_frag + 1`
53960 ac_end=`expr $ac_end + $ac_max_sed_lines`
53963 if test -z "$ac_sed_cmds"; then
53966 fi # test -n "$CONFIG_FILES"
53969 cat >>$CONFIG_STATUS <<\_ACEOF
53970 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53971 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53973 - | *:- | *:-:* ) # input from stdin
53975 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53977 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53978 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53979 * ) ac_file_in=$ac_file.in ;;
53982 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53983 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53985 X"$ac_file" : 'X\(//\)[^/]' \| \
53986 X"$ac_file" : 'X\(//\)$' \| \
53987 X"$ac_file" : 'X\(/\)' \| \
53988 . : '\(.\)' 2>/dev/null ||
53990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53992 /^X\(\/\/\)$/{ s//\1/; q; }
53993 /^X\(\/\).*/{ s//\1/; q; }
53995 { if $as_mkdir_p; then
54000 while test ! -d "$as_dir"; do
54001 as_dirs="$as_dir $as_dirs"
54002 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54004 X"$as_dir" : 'X\(//\)[^/]' \| \
54005 X"$as_dir" : 'X\(//\)$' \| \
54006 X"$as_dir" : 'X\(/\)' \| \
54007 . : '\(.\)' 2>/dev/null ||
54009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54011 /^X\(\/\/\)$/{ s//\1/; q; }
54012 /^X\(\/\).*/{ s//\1/; q; }
54015 test ! -n "$as_dirs" || mkdir $as_dirs
54016 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54017 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54018 { (exit 1); exit 1; }; }; }
54022 if test "$ac_dir" != .; then
54023 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54024 # A "../" for each directory in $ac_dir_suffix.
54025 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54027 ac_dir_suffix= ac_top_builddir=
54031 .) # No --srcdir option. We are building in place.
54033 if test -z "$ac_top_builddir"; then
54036 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54038 [\\/]* | ?:[\\/]* ) # Absolute path.
54039 ac_srcdir=$srcdir$ac_dir_suffix;
54040 ac_top_srcdir=$srcdir ;;
54041 *) # Relative path.
54042 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54043 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54046 # Do not use `cd foo && pwd` to compute absolute paths, because
54047 # the directories may not exist.
54049 .) ac_abs_builddir="$ac_dir";;
54052 .) ac_abs_builddir=`pwd`;;
54053 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54054 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54057 case $ac_abs_builddir in
54058 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54060 case ${ac_top_builddir}. in
54061 .) ac_abs_top_builddir=$ac_abs_builddir;;
54062 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54063 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54066 case $ac_abs_builddir in
54067 .) ac_abs_srcdir=$ac_srcdir;;
54070 .) ac_abs_srcdir=$ac_abs_builddir;;
54071 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54072 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54075 case $ac_abs_builddir in
54076 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54078 case $ac_top_srcdir in
54079 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54080 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54081 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54088 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54091 if test x"$ac_file" != x-; then
54092 { echo "$as_me:$LINENO: creating $ac_file" >&5
54093 echo "$as_me: creating $ac_file" >&6;}
54096 # Let's still pretend it is `configure' which instantiates (i.e., don't
54097 # use $as_me), people would be surprised to read:
54098 # /* config.h. Generated by config.status. */
54099 if test x"$ac_file" = x-; then
54102 configure_input="$ac_file. "
54104 configure_input=$configure_input"Generated from `echo $ac_file_in |
54105 sed 's,.*/,,'` by configure."
54107 # First look for the input files in the build tree, otherwise in the
54109 ac_file_inputs=`IFS=:
54110 for f in $ac_file_in; do
54112 -) echo $tmp/stdin ;;
54114 # Absolute (can't be DOS-style, as IFS=:)
54115 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54116 echo "$as_me: error: cannot find input file: $f" >&2;}
54117 { (exit 1); exit 1; }; }
54120 if test -f "$f"; then
54123 elif test -f "$srcdir/$f"; then
54128 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54129 echo "$as_me: error: cannot find input file: $f" >&2;}
54130 { (exit 1); exit 1; }; }
54133 done` || { (exit 1); exit 1; }
54135 cat >>$CONFIG_STATUS <<_ACEOF
54139 cat >>$CONFIG_STATUS <<\_ACEOF
54141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54142 s,@configure_input@,$configure_input,;t t
54143 s,@srcdir@,$ac_srcdir,;t t
54144 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54145 s,@top_srcdir@,$ac_top_srcdir,;t t
54146 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54147 s,@builddir@,$ac_builddir,;t t
54148 s,@abs_builddir@,$ac_abs_builddir,;t t
54149 s,@top_builddir@,$ac_top_builddir,;t t
54150 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54151 s,@INSTALL@,$ac_INSTALL,;t t
54152 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54154 if test x"$ac_file" != x-; then
54155 mv $tmp/out $ac_file
54163 cat >>$CONFIG_STATUS <<\_ACEOF
54166 # CONFIG_HEADER section.
54169 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54170 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54172 # ac_d sets the value in "#define NAME VALUE" lines.
54173 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
54174 ac_dB='[ ].*$,\1#\2'
54177 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54178 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
54179 ac_uB='$,\1#\2define\3'
54183 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54184 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54186 - | *:- | *:-:* ) # input from stdin
54188 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54190 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54192 * ) ac_file_in=$ac_file.in ;;
54195 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54196 echo "$as_me: creating $ac_file" >&6;}
54198 # First look for the input files in the build tree, otherwise in the
54200 ac_file_inputs=`IFS=:
54201 for f in $ac_file_in; do
54203 -) echo $tmp/stdin ;;
54205 # Absolute (can't be DOS-style, as IFS=:)
54206 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54207 echo "$as_me: error: cannot find input file: $f" >&2;}
54208 { (exit 1); exit 1; }; }
54209 # Do quote $f, to prevent DOS paths from being IFS'd.
54212 if test -f "$f"; then
54215 elif test -f "$srcdir/$f"; then
54220 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54221 echo "$as_me: error: cannot find input file: $f" >&2;}
54222 { (exit 1); exit 1; }; }
54225 done` || { (exit 1); exit 1; }
54226 # Remove the trailing spaces.
54227 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
54231 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54232 # `conftest.undefs', that substitutes the proper values into
54233 # config.h.in to produce config.h. The first handles `#define'
54234 # templates, and the second `#undef' templates.
54235 # And first: Protect against being on the right side of a sed subst in
54236 # config.status. Protect against being in an unquoted here document
54237 # in config.status.
54238 rm -f conftest.defines conftest.undefs
54239 # Using a here document instead of a string reduces the quoting nightmare.
54240 # Putting comments in sed scripts is not portable.
54242 # `end' is used to avoid that the second main sed command (meant for
54243 # 0-ary CPP macros) applies to n-ary macro definitions.
54244 # See the Autoconf documentation for `clear'.
54245 cat >confdef2sed.sed <<\_ACEOF
54250 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54252 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54255 # If some macros were called several times there might be several times
54256 # the same #defines, which is useless. Nevertheless, we may not want to
54257 # sort them, since we want the *last* AC-DEFINE to be honored.
54258 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54259 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54260 rm -f confdef2sed.sed
54262 # This sed command replaces #undef with comments. This is necessary, for
54263 # example, in the case of _POSIX_SOURCE, which is predefined and required
54264 # on some systems where configure will not decide to define it.
54265 cat >>conftest.undefs <<\_ACEOF
54266 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54269 # Break up conftest.defines because some shells have a limit on the size
54270 # of here documents, and old seds have small limits too (100 cmds).
54271 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54272 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54273 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54274 echo ' :' >>$CONFIG_STATUS
54275 rm -f conftest.tail
54276 while grep . conftest.defines >/dev/null
54278 # Write a limited-size here document to $tmp/defines.sed.
54279 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54280 # Speed up: don't consider the non `#define' lines.
54281 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54282 # Work around the forget-to-reset-the-flag bug.
54283 echo 't clr' >>$CONFIG_STATUS
54284 echo ': clr' >>$CONFIG_STATUS
54285 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54287 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54289 mv $tmp/out $tmp/in
54291 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54292 rm -f conftest.defines
54293 mv conftest.tail conftest.defines
54295 rm -f conftest.defines
54296 echo ' fi # grep' >>$CONFIG_STATUS
54297 echo >>$CONFIG_STATUS
54299 # Break up conftest.undefs because some shells have a limit on the size
54300 # of here documents, and old seds have small limits too (100 cmds).
54301 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54302 rm -f conftest.tail
54303 while grep . conftest.undefs >/dev/null
54305 # Write a limited-size here document to $tmp/undefs.sed.
54306 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54307 # Speed up: don't consider the non `#undef'
54308 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54309 # Work around the forget-to-reset-the-flag bug.
54310 echo 't clr' >>$CONFIG_STATUS
54311 echo ': clr' >>$CONFIG_STATUS
54312 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54314 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54316 mv $tmp/out $tmp/in
54318 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54319 rm -f conftest.undefs
54320 mv conftest.tail conftest.undefs
54322 rm -f conftest.undefs
54324 cat >>$CONFIG_STATUS <<\_ACEOF
54325 # Let's still pretend it is `configure' which instantiates (i.e., don't
54326 # use $as_me), people would be surprised to read:
54327 # /* config.h. Generated by config.status. */
54328 if test x"$ac_file" = x-; then
54329 echo "/* Generated by configure. */" >$tmp/config.h
54331 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54333 cat $tmp/in >>$tmp/config.h
54335 if test x"$ac_file" != x-; then
54336 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54337 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54338 echo "$as_me: $ac_file is unchanged" >&6;}
54340 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54342 X"$ac_file" : 'X\(//\)[^/]' \| \
54343 X"$ac_file" : 'X\(//\)$' \| \
54344 X"$ac_file" : 'X\(/\)' \| \
54345 . : '\(.\)' 2>/dev/null ||
54347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54349 /^X\(\/\/\)$/{ s//\1/; q; }
54350 /^X\(\/\).*/{ s//\1/; q; }
54352 { if $as_mkdir_p; then
54357 while test ! -d "$as_dir"; do
54358 as_dirs="$as_dir $as_dirs"
54359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54361 X"$as_dir" : 'X\(//\)[^/]' \| \
54362 X"$as_dir" : 'X\(//\)$' \| \
54363 X"$as_dir" : 'X\(/\)' \| \
54364 . : '\(.\)' 2>/dev/null ||
54366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54368 /^X\(\/\/\)$/{ s//\1/; q; }
54369 /^X\(\/\).*/{ s//\1/; q; }
54372 test ! -n "$as_dirs" || mkdir $as_dirs
54373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54375 { (exit 1); exit 1; }; }; }
54378 mv $tmp/config.h $ac_file
54382 rm -f $tmp/config.h
54384 # Compute $ac_file's index in $config_headers.
54386 for _am_header in $config_headers :; do
54387 case $_am_header in
54388 $ac_file | $ac_file:* )
54391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54394 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54395 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54396 X$ac_file : 'X\(//\)[^/]' \| \
54397 X$ac_file : 'X\(//\)$' \| \
54398 X$ac_file : 'X\(/\)' \| \
54399 . : '\(.\)' 2>/dev/null ||
54401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54403 /^X\(\/\/\)$/{ s//\1/; q; }
54404 /^X\(\/\).*/{ s//\1/; q; }
54405 s/.*/./; q'`/stamp-h$_am_stamp_count
54408 cat >>$CONFIG_STATUS <<\_ACEOF
54411 # CONFIG_COMMANDS section.
54413 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54414 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54415 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54416 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54417 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54418 X"$ac_dest" : 'X\(//\)[^/]' \| \
54419 X"$ac_dest" : 'X\(//\)$' \| \
54420 X"$ac_dest" : 'X\(/\)' \| \
54421 . : '\(.\)' 2>/dev/null ||
54423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54425 /^X\(\/\/\)$/{ s//\1/; q; }
54426 /^X\(\/\).*/{ s//\1/; q; }
54428 { if $as_mkdir_p; then
54433 while test ! -d "$as_dir"; do
54434 as_dirs="$as_dir $as_dirs"
54435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54437 X"$as_dir" : 'X\(//\)[^/]' \| \
54438 X"$as_dir" : 'X\(//\)$' \| \
54439 X"$as_dir" : 'X\(/\)' \| \
54440 . : '\(.\)' 2>/dev/null ||
54442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54444 /^X\(\/\/\)$/{ s//\1/; q; }
54445 /^X\(\/\).*/{ s//\1/; q; }
54448 test ! -n "$as_dirs" || mkdir $as_dirs
54449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54451 { (exit 1); exit 1; }; }; }
54455 if test "$ac_dir" != .; then
54456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54457 # A "../" for each directory in $ac_dir_suffix.
54458 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54460 ac_dir_suffix= ac_top_builddir=
54464 .) # No --srcdir option. We are building in place.
54466 if test -z "$ac_top_builddir"; then
54469 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54471 [\\/]* | ?:[\\/]* ) # Absolute path.
54472 ac_srcdir=$srcdir$ac_dir_suffix;
54473 ac_top_srcdir=$srcdir ;;
54474 *) # Relative path.
54475 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54476 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54479 # Do not use `cd foo && pwd` to compute absolute paths, because
54480 # the directories may not exist.
54482 .) ac_abs_builddir="$ac_dir";;
54485 .) ac_abs_builddir=`pwd`;;
54486 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54487 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54490 case $ac_abs_builddir in
54491 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54493 case ${ac_top_builddir}. in
54494 .) ac_abs_top_builddir=$ac_abs_builddir;;
54495 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54496 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54499 case $ac_abs_builddir in
54500 .) ac_abs_srcdir=$ac_srcdir;;
54503 .) ac_abs_srcdir=$ac_abs_builddir;;
54504 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54505 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54508 case $ac_abs_builddir in
54509 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54511 case $ac_top_srcdir in
54512 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54513 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54514 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54519 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54520 echo "$as_me: executing $ac_dest commands" >&6;}
54522 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54523 # Strip MF so we end up with the name of the file.
54524 mf=`echo "$mf" | sed -e 's/:.*$//'`
54525 # Check whether this is an Automake generated Makefile or not.
54526 # We used to match only the files named `Makefile.in', but
54527 # some people rename them; so instead we look at the file content.
54528 # Grep'ing the first line is not enough: some people post-process
54529 # each Makefile.in and add a new line on top of each file to say so.
54530 # So let's grep whole file.
54531 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54532 dirpart=`(dirname "$mf") 2>/dev/null ||
54533 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54534 X"$mf" : 'X\(//\)[^/]' \| \
54535 X"$mf" : 'X\(//\)$' \| \
54536 X"$mf" : 'X\(/\)' \| \
54537 . : '\(.\)' 2>/dev/null ||
54539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54541 /^X\(\/\/\)$/{ s//\1/; q; }
54542 /^X\(\/\).*/{ s//\1/; q; }
54547 # Extract the definition of DEPDIR, am__include, and am__quote
54548 # from the Makefile without running `make'.
54549 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54550 test -z "$DEPDIR" && continue
54551 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54552 test -z "am__include" && continue
54553 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54554 # When using ansi2knr, U may be empty or an underscore; expand it
54555 U=`sed -n 's/^U = //p' < "$mf"`
54556 # Find all dependency output files, they are included files with
54557 # $(DEPDIR) in their names. We invoke sed twice because it is the
54558 # simplest approach to changing $(DEPDIR) to its actual value in the
54560 for file in `sed -n "
54561 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54562 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54563 # Make sure the directory exists.
54564 test -f "$dirpart/$file" && continue
54565 fdir=`(dirname "$file") 2>/dev/null ||
54566 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54567 X"$file" : 'X\(//\)[^/]' \| \
54568 X"$file" : 'X\(//\)$' \| \
54569 X"$file" : 'X\(/\)' \| \
54570 . : '\(.\)' 2>/dev/null ||
54572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54574 /^X\(\/\/\)$/{ s//\1/; q; }
54575 /^X\(\/\).*/{ s//\1/; q; }
54577 { if $as_mkdir_p; then
54578 mkdir -p $dirpart/$fdir
54580 as_dir=$dirpart/$fdir
54582 while test ! -d "$as_dir"; do
54583 as_dirs="$as_dir $as_dirs"
54584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54586 X"$as_dir" : 'X\(//\)[^/]' \| \
54587 X"$as_dir" : 'X\(//\)$' \| \
54588 X"$as_dir" : 'X\(/\)' \| \
54589 . : '\(.\)' 2>/dev/null ||
54591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54593 /^X\(\/\/\)$/{ s//\1/; q; }
54594 /^X\(\/\).*/{ s//\1/; q; }
54597 test ! -n "$as_dirs" || mkdir $as_dirs
54598 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54599 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54600 { (exit 1); exit 1; }; }; }
54602 # echo "creating $dirpart/$file"
54603 echo '# dummy' > "$dirpart/$file"
54608 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
54609 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
54610 ac_stdint=$tmp/_stdint.h
54612 echo "#ifndef" $_ac_stdint_h >$ac_stdint
54613 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
54614 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
54615 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
54616 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
54617 if test "_$ac_cv_header_stdint_t" != "_" ; then
54618 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
54619 echo "#include <stdint.h>" >>$ac_stdint
54620 echo "#endif" >>$ac_stdint
54621 echo "#endif" >>$ac_stdint
54624 cat >>$ac_stdint <<STDINT_EOF
54626 /* ................... shortcircuit part ........................... */
54628 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
54629 #include <stdint.h>
54631 #include <stddef.h>
54633 /* .................... configured part ............................ */
54637 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
54638 if test "_$ac_cv_header_stdint_x" != "_" ; then
54639 ac_header="$ac_cv_header_stdint_x"
54640 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
54642 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
54645 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
54646 if test "_$ac_cv_header_stdint_o" != "_" ; then
54647 ac_header="$ac_cv_header_stdint_o"
54648 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
54650 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
54653 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
54654 if test "_$ac_cv_header_stdint_u" != "_" ; then
54655 ac_header="$ac_cv_header_stdint_u"
54656 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
54658 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
54661 echo "" >>$ac_stdint
54663 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
54664 echo "#include <$ac_header>" >>$ac_stdint
54665 echo "" >>$ac_stdint
54668 echo "/* which 64bit typedef has been found */" >>$ac_stdint
54669 if test "$ac_cv_type_uint64_t" = "yes" ; then
54670 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
54672 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
54674 if test "$ac_cv_type_u_int64_t" = "yes" ; then
54675 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
54677 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
54679 echo "" >>$ac_stdint
54681 echo "/* which type model has been detected */" >>$ac_stdint
54682 if test "_$ac_cv_char_data_model" != "_" ; then
54683 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
54684 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
54686 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
54687 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
54689 echo "" >>$ac_stdint
54691 echo "/* whether int_least types were detected */" >>$ac_stdint
54692 if test "$ac_cv_type_int_least32_t" = "yes"; then
54693 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
54695 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
54697 echo "/* whether int_fast types were detected */" >>$ac_stdint
54698 if test "$ac_cv_type_int_fast32_t" = "yes"; then
54699 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
54701 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
54703 echo "/* whether intmax_t type was detected */" >>$ac_stdint
54704 if test "$ac_cv_type_intmax_t" = "yes"; then
54705 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
54707 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
54709 echo "" >>$ac_stdint
54711 cat >>$ac_stdint <<STDINT_EOF
54712 /* .................... detections part ............................ */
54714 /* whether we need to define bitspecific types from compiler base types */
54715 #ifndef _STDINT_HEADER_INTPTR
54716 #ifndef _STDINT_HEADER_UINT32
54717 #ifndef _STDINT_HEADER_U_INT32
54718 #define _STDINT_NEED_INT_MODEL_T
54720 #define _STDINT_HAVE_U_INT_TYPES
54725 #ifdef _STDINT_HAVE_U_INT_TYPES
54726 #undef _STDINT_NEED_INT_MODEL_T
54729 #ifdef _STDINT_CHAR_MODEL
54730 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
54731 #ifndef _STDINT_BYTE_MODEL
54732 #define _STDINT_BYTE_MODEL 12
54737 #ifndef _STDINT_HAVE_INT_LEAST32_T
54738 #define _STDINT_NEED_INT_LEAST_T
54741 #ifndef _STDINT_HAVE_INT_FAST32_T
54742 #define _STDINT_NEED_INT_FAST_T
54745 #ifndef _STDINT_HEADER_INTPTR
54746 #define _STDINT_NEED_INTPTR_T
54747 #ifndef _STDINT_HAVE_INTMAX_T
54748 #define _STDINT_NEED_INTMAX_T
54753 /* .................... definition part ............................ */
54755 /* some system headers have good uint64_t */
54756 #ifndef _HAVE_UINT64_T
54757 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
54758 #define _HAVE_UINT64_T
54759 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
54760 #define _HAVE_UINT64_T
54761 typedef u_int64_t uint64_t;
54765 #ifndef _HAVE_UINT64_T
54766 /* .. here are some common heuristics using compiler runtime specifics */
54767 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
54768 #define _HAVE_UINT64_T
54769 #define _HAVE_LONGLONG_UINT64_T
54770 typedef long long int64_t;
54771 typedef unsigned long long uint64_t;
54773 #elif !defined __STRICT_ANSI__
54774 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
54775 #define _HAVE_UINT64_T
54776 typedef __int64 int64_t;
54777 typedef unsigned __int64 uint64_t;
54779 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
54780 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
54781 #if !defined _NO_LONGLONG
54782 #define _HAVE_UINT64_T
54783 #define _HAVE_LONGLONG_UINT64_T
54784 typedef long long int64_t;
54785 typedef unsigned long long uint64_t;
54788 #elif defined __alpha || (defined __mips && defined _ABIN32)
54789 #if !defined _NO_LONGLONG
54790 #define _HAVE_UINT64_T
54791 typedef long int64_t;
54792 typedef unsigned long uint64_t;
54794 /* compiler/cpu type to define int64_t */
54799 #if defined _STDINT_HAVE_U_INT_TYPES
54800 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
54801 typedef u_int8_t uint8_t;
54802 typedef u_int16_t uint16_t;
54803 typedef u_int32_t uint32_t;
54805 /* glibc compatibility */
54806 #ifndef __int8_t_defined
54807 #define __int8_t_defined
54811 #ifdef _STDINT_NEED_INT_MODEL_T
54812 /* we must guess all the basic types. Apart from byte-adressable system, */
54813 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
54814 /* (btw, those nibble-addressable systems are way off, or so we assume) */
54817 #if defined _STDINT_BYTE_MODEL
54818 #if _STDINT_LONG_MODEL+0 == 242
54819 /* 2:4:2 = IP16 = a normal 16-bit system */
54820 typedef unsigned char uint8_t;
54821 typedef unsigned short uint16_t;
54822 typedef unsigned long uint32_t;
54823 #ifndef __int8_t_defined
54824 #define __int8_t_defined
54825 typedef char int8_t;
54826 typedef short int16_t;
54827 typedef long int32_t;
54829 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
54830 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
54831 /* 4:4:4 = ILP32 = a normal 32-bit system */
54832 typedef unsigned char uint8_t;
54833 typedef unsigned short uint16_t;
54834 typedef unsigned int uint32_t;
54835 #ifndef __int8_t_defined
54836 #define __int8_t_defined
54837 typedef char int8_t;
54838 typedef short int16_t;
54839 typedef int int32_t;
54841 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
54842 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
54843 /* 4:8:8 = LP64 = a normal 64-bit system */
54844 typedef unsigned char uint8_t;
54845 typedef unsigned short uint16_t;
54846 typedef unsigned int uint32_t;
54847 #ifndef __int8_t_defined
54848 #define __int8_t_defined
54849 typedef char int8_t;
54850 typedef short int16_t;
54851 typedef int int32_t;
54853 /* this system has a "long" of 64bit */
54854 #ifndef _HAVE_UINT64_T
54855 #define _HAVE_UINT64_T
54856 typedef unsigned long uint64_t;
54857 typedef long int64_t;
54859 #elif _STDINT_LONG_MODEL+0 == 448
54860 /* LLP64 a 64-bit system derived from a 32-bit system */
54861 typedef unsigned char uint8_t;
54862 typedef unsigned short uint16_t;
54863 typedef unsigned int uint32_t;
54864 #ifndef __int8_t_defined
54865 #define __int8_t_defined
54866 typedef char int8_t;
54867 typedef short int16_t;
54868 typedef int int32_t;
54870 /* assuming the system has a "long long" */
54871 #ifndef _HAVE_UINT64_T
54872 #define _HAVE_UINT64_T
54873 #define _HAVE_LONGLONG_UINT64_T
54874 typedef unsigned long long uint64_t;
54875 typedef long long int64_t;
54878 #define _STDINT_NO_INT32_T
54881 #define _STDINT_NO_INT8_T
54882 #define _STDINT_NO_INT32_T
54887 * quote from SunOS-5.8 sys/inttypes.h:
54888 * Use at your own risk. As of February 1996, the committee is squarely
54889 * behind the fixed sized types; the "least" and "fast" types are still being
54890 * discussed. The probability that the "fast" types may be removed before
54891 * the standard is finalized is high enough that they are not currently
54895 #if defined _STDINT_NEED_INT_LEAST_T
54896 typedef int8_t int_least8_t;
54897 typedef int16_t int_least16_t;
54898 typedef int32_t int_least32_t;
54899 #ifdef _HAVE_UINT64_T
54900 typedef int64_t int_least64_t;
54903 typedef uint8_t uint_least8_t;
54904 typedef uint16_t uint_least16_t;
54905 typedef uint32_t uint_least32_t;
54906 #ifdef _HAVE_UINT64_T
54907 typedef uint64_t uint_least64_t;
54912 #if defined _STDINT_NEED_INT_FAST_T
54913 typedef int8_t int_fast8_t;
54914 typedef int int_fast16_t;
54915 typedef int32_t int_fast32_t;
54916 #ifdef _HAVE_UINT64_T
54917 typedef int64_t int_fast64_t;
54920 typedef uint8_t uint_fast8_t;
54921 typedef unsigned uint_fast16_t;
54922 typedef uint32_t uint_fast32_t;
54923 #ifdef _HAVE_UINT64_T
54924 typedef uint64_t uint_fast64_t;
54929 #ifdef _STDINT_NEED_INTMAX_T
54930 #ifdef _HAVE_UINT64_T
54931 typedef int64_t intmax_t;
54932 typedef uint64_t uintmax_t;
54934 typedef long intmax_t;
54935 typedef unsigned long uintmax_t;
54939 #ifdef _STDINT_NEED_INTPTR_T
54940 #ifndef __intptr_t_defined
54941 #define __intptr_t_defined
54942 /* we encourage using "long" to store pointer values, never use "int" ! */
54943 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
54944 typedef unsinged int uintptr_t;
54945 typedef int intptr_t;
54946 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
54947 typedef unsigned long uintptr_t;
54948 typedef long intptr_t;
54949 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
54950 typedef uint64_t uintptr_t;
54951 typedef int64_t intptr_t;
54952 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
54953 typedef unsigned long uintptr_t;
54954 typedef long intptr_t;
54959 /* The ISO C99 standard specifies that in C++ implementations these
54960 should only be defined if explicitly requested. */
54961 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
54965 # define INT8_C(c) c
54966 # define INT16_C(c) c
54967 # define INT32_C(c) c
54968 # ifdef _HAVE_LONGLONG_UINT64_T
54969 # define INT64_C(c) c ## L
54971 # define INT64_C(c) c ## LL
54975 # define UINT8_C(c) c ## U
54976 # define UINT16_C(c) c ## U
54977 # define UINT32_C(c) c ## U
54978 # ifdef _HAVE_LONGLONG_UINT64_T
54979 # define UINT64_C(c) c ## UL
54981 # define UINT64_C(c) c ## ULL
54984 /* Maximal type. */
54985 # ifdef _HAVE_LONGLONG_UINT64_T
54986 # define INTMAX_C(c) c ## L
54987 # define UINTMAX_C(c) c ## UL
54989 # define INTMAX_C(c) c ## LL
54990 # define UINTMAX_C(c) c ## ULL
54993 /* literalnumbers */
54997 /* These limits are merily those of a two complement byte-oriented system */
54999 /* Minimum of signed integral types. */
55000 # define INT8_MIN (-128)
55001 # define INT16_MIN (-32767-1)
55002 # define INT32_MIN (-2147483647-1)
55003 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
55004 /* Maximum of signed integral types. */
55005 # define INT8_MAX (127)
55006 # define INT16_MAX (32767)
55007 # define INT32_MAX (2147483647)
55008 # define INT64_MAX (__INT64_C(9223372036854775807))
55010 /* Maximum of unsigned integral types. */
55011 # define UINT8_MAX (255)
55012 # define UINT16_MAX (65535)
55013 # define UINT32_MAX (4294967295U)
55014 # define UINT64_MAX (__UINT64_C(18446744073709551615))
55016 /* Minimum of signed integral types having a minimum size. */
55017 # define INT_LEAST8_MIN INT8_MIN
55018 # define INT_LEAST16_MIN INT16_MIN
55019 # define INT_LEAST32_MIN INT32_MIN
55020 # define INT_LEAST64_MIN INT64_MIN
55021 /* Maximum of signed integral types having a minimum size. */
55022 # define INT_LEAST8_MAX INT8_MAX
55023 # define INT_LEAST16_MAX INT16_MAX
55024 # define INT_LEAST32_MAX INT32_MAX
55025 # define INT_LEAST64_MAX INT64_MAX
55027 /* Maximum of unsigned integral types having a minimum size. */
55028 # define UINT_LEAST8_MAX UINT8_MAX
55029 # define UINT_LEAST16_MAX UINT16_MAX
55030 # define UINT_LEAST32_MAX UINT32_MAX
55031 # define UINT_LEAST64_MAX UINT64_MAX
55040 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
55041 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
55042 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
55044 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
55045 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55046 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
55047 X"$ac_stdint_h" : 'X\(//\)$' \| \
55048 X"$ac_stdint_h" : 'X\(/\)' \| \
55049 . : '\(.\)' 2>/dev/null ||
55050 echo X"$ac_stdint_h" |
55051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
55052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
55053 /^X\(\/\/\)$/{ s//\1/; q; }
55054 /^X\(\/\).*/{ s//\1/; q; }
55056 { if $as_mkdir_p; then
55061 while test ! -d "$as_dir"; do
55062 as_dirs="$as_dir $as_dirs"
55063 as_dir=`(dirname "$as_dir") 2>/dev/null ||
55064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55065 X"$as_dir" : 'X\(//\)[^/]' \| \
55066 X"$as_dir" : 'X\(//\)$' \| \
55067 X"$as_dir" : 'X\(/\)' \| \
55068 . : '\(.\)' 2>/dev/null ||
55070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
55071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
55072 /^X\(\/\/\)$/{ s//\1/; q; }
55073 /^X\(\/\).*/{ s//\1/; q; }
55076 test ! -n "$as_dirs" || mkdir $as_dirs
55077 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
55078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
55079 { (exit 1); exit 1; }; }; }
55082 mv $ac_stdint $ac_stdint_h
55089 cat >>$CONFIG_STATUS <<\_ACEOF
55091 { (exit 0); exit 0; }
55093 chmod +x $CONFIG_STATUS
55094 ac_clean_files=$ac_clean_files_save
55097 # configure is writing to config.log, and then calls config.status.
55098 # config.status does its own redirection, appending to config.log.
55099 # Unfortunately, on DOS this fails, as config.log is still kept open
55100 # by configure, so config.status won't be able to write to it; its
55101 # output is simply discarded. So we exec the FD to /dev/null,
55102 # effectively closing config.log, so it can be properly (re)opened and
55103 # appended to by config.status. When coming back to configure, we
55104 # need to make the FD available again.
55105 if test "$no_create" != yes; then
55107 ac_config_status_args=
55108 test "$silent" = yes &&
55109 ac_config_status_args="$ac_config_status_args --quiet"
55111 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55113 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55114 # would make configure fail if this is the last instruction.
55115 $ac_cs_success || { (exit 1); exit 1; }