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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot SNAPSHOT_STAMP VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_COMMENT VERSION_SUFFIX 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 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 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 LTLIBOBJS LTALLOCA'
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)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-includes=DIR site header files for readline, etc in DIR
1041 --with-libraries=DIR site library directories for readline, etc in DIR
1042 --with-configdir=DIR runtime config files in DIR sysconfdir/amanda
1043 --with-indexdir deprecated, use indexdir in amanda.conf
1044 --with-dbdir deprecated, use infofile in amanda.conf
1045 --with-logdir deprecated, use logfile in amanda.conf
1046 --with-suffixes install binaries with version string appended to name
1047 --with-client-only deprecated, use --without-server
1048 --with-server-only deprecated, use --without-client
1049 --without-client do not build client stuff
1050 --without-server do not build server stuff (set --without-restore)
1051 --without-restore do not build amrestore nor amidxtaped
1052 --without-amrecover do not build amrecover
1053 --with-index-server=HOST default amanda index server `uname -n`
1054 --without-force-uid do not force the uid to --with-user
1055 --with-user=USER force execution to USER on client systems required
1056 --with-group=GROUP group allowed to execute setuid-root programs required
1057 --with-owner=USER force ownership of files to USER default == --with-user value
1058 --with-rundump use rundump (setuid-root) to invoke dump
1059 --with-config=CONFIG default configuration DailySet1
1060 --with-tape-server=HOST default restoring tape server is HOST same as --with-index-server
1061 --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1062 --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1063 --with-rew-tape deprecated, use --with-tape-device
1064 --with-norew-tape=ARG deprecated, use --with-tape-device
1065 --with-changer-device=ARG default tape changer device /dev/ch0 if it exists
1066 --with-fqdn use FQDN's to backup multiple networks
1067 --with-broken-fsf only enable if tape fsf calls fail mid-file
1068 --with-gnutar=PROG use PROG as GNU tar executable default: looks for one
1069 --with-qde use quick-and-dirty estimates for gnutar
1070 --with-smbclient=PROG use PROG as Samba's smbclient executable default: looks for one
1071 --with-samba-user was deprecated
1072 --with-gnutar-listdir=DIR gnutar directory lists go in DIR localstatedir/amanda/gnutar-lists
1073 --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1074 --without-bsd-security do not use BSD rsh/rlogin style security
1075 --without-amandahosts use .rhosts instead of .amandahosts
1076 --with-krb4-security=DIR Location of Kerberos software /usr/kerberos /usr/cygnus /usr /opt/kerberos
1077 --with-server-principal=ARG server host principal "amanda"
1078 --with-server-instance=ARG server host instance "amanda"
1079 --with-server-keyfile=ARG server host key file "/.amanda"
1080 --with-client-principal=ARG client host principal "rcmd"
1081 --with-client-instance=ARG client host instance HOSTNAME_INSTANCE
1082 --with-client-keyfile=ARG client host key file KEYFILE
1083 --with-ticket-lifetime=ARG ticket lifetime 128
1084 --with-portrange=low,high bind unreserved TCP server sockets to ports within this range unlimited
1085 --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range unlimited
1086 --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range unlimited
1087 --with-maxtapeblocksize=kb Maximum size of a tape block
1088 --with-db={text,db,dbm,gdbm,ndbm} use the selected database format text
1089 --with-mmap force use of mmap instead of shared memory support
1090 --with-buffered-dump buffer the dumping sockets on the server for speed
1091 --with-assertions compile assertions into code
1092 --with-tmpdir=/temp/dir area Amanda can use for temp files /tmp/amanda
1093 --without-debugging=/debug/dir do not record runtime debugging information in specified directory --with-tmpdir
1094 --with-debug-days=NN number of days to keep debugging files default=4
1095 --with-testing=suffix use alternate service names
1096 --with-dump-honor-nodump if dump supports -h, use it for level0s too
1097 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1098 --with-pic try to use only PIC/non-PIC objects [default=use
1101 include additional configurations [automatic]
1103 Some influential environment variables:
1104 CC C compiler command
1105 CFLAGS C compiler flags
1106 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1107 nonstandard directory <lib dir>
1108 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109 headers in a nonstandard directory <include dir>
1111 CXX C++ compiler command
1112 CXXFLAGS C++ compiler flags
1113 CXXCPP C++ preprocessor
1114 F77 Fortran 77 compiler command
1115 FFLAGS Fortran 77 compiler flags
1117 Use these variables to override the choices made by `configure' or to help
1118 it to find libraries and programs with nonstandard names/locations.
1123 if test "$ac_init_help" = "recursive"; then
1124 # If there are subdirs, report their specific --help.
1126 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127 test -d $ac_dir || continue
1130 if test "$ac_dir" != .; then
1131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132 # A "../" for each directory in $ac_dir_suffix.
1133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135 ac_dir_suffix= ac_top_builddir=
1139 .) # No --srcdir option. We are building in place.
1141 if test -z "$ac_top_builddir"; then
1144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146 [\\/]* | ?:[\\/]* ) # Absolute path.
1147 ac_srcdir=$srcdir$ac_dir_suffix;
1148 ac_top_srcdir=$srcdir ;;
1150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154 # Do not use `cd foo && pwd` to compute absolute paths, because
1155 # the directories may not exist.
1157 .) ac_abs_builddir="$ac_dir";;
1160 .) ac_abs_builddir=`pwd`;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165 case $ac_abs_builddir in
1166 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1168 case ${ac_top_builddir}. in
1169 .) ac_abs_top_builddir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174 case $ac_abs_builddir in
1175 .) ac_abs_srcdir=$ac_srcdir;;
1178 .) ac_abs_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183 case $ac_abs_builddir in
1184 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1186 case $ac_top_srcdir in
1187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194 # Check for guested configure; otherwise get Cygnus style configure.
1195 if test -f $ac_srcdir/configure.gnu; then
1197 $SHELL $ac_srcdir/configure.gnu --help=recursive
1198 elif test -f $ac_srcdir/configure; then
1200 $SHELL $ac_srcdir/configure --help=recursive
1201 elif test -f $ac_srcdir/configure.ac ||
1202 test -f $ac_srcdir/configure.in; then
1204 $ac_configure --help
1206 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212 test -n "$ac_init_help" && exit 0
1213 if $ac_init_version; then
1216 Copyright (C) 2003 Free Software Foundation, Inc.
1217 This configure script is free software; the Free Software Foundation
1218 gives unlimited permission to copy, distribute and modify it.
1224 This file contains any messages produced by compilers while
1225 running configure, to aid debugging if configure makes a mistake.
1227 It was created by $as_me, which was
1228 generated by GNU Autoconf 2.59. Invocation command line was
1239 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1240 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1241 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1242 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1243 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1245 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1246 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1248 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1249 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1250 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1251 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1252 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1253 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1254 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1262 test -z "$as_dir" && as_dir=.
1263 echo "PATH: $as_dir"
1278 # Keep a trace of the command line.
1279 # Strip out --no-create and --no-recursion so they do not pile up.
1280 # Strip out --silent because we don't want to record it for future runs.
1281 # Also quote any args containing shell meta-characters.
1282 # Make two passes to allow for proper duplicate-argument suppression.
1287 ac_must_keep_next=false
1293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295 | -silent | --silent | --silen | --sile | --sil)
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1303 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1304 if test $ac_must_keep_next = true; then
1305 ac_must_keep_next=false # Got value, back to normal.
1308 *=* | --config-cache | -C | -disable-* | --disable-* \
1309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1311 | -with-* | --with-* | -without-* | --without-* | --x)
1312 case "$ac_configure_args0 " in
1313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1316 -* ) ac_must_keep_next=true ;;
1319 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1320 # Get rid of the leading space.
1326 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1327 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1329 # When interrupted or exit'd, cleanup temporary files, and complete
1330 # config.log. We remove comments because anyway the quotes in there
1331 # would cause problems or look ugly.
1332 # WARNING: Be sure not to use single quotes in there, as some shells,
1333 # such as our DU 5.0 friend, will then `close' the trap.
1334 trap 'exit_status=$?
1335 # Save into config.log some information that might help in debugging.
1340 ## ---------------- ##
1341 ## Cache variables. ##
1342 ## ---------------- ##
1345 # The following way of writing the cache mishandles newlines in values,
1348 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1351 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1363 ## ----------------- ##
1364 ## Output variables. ##
1365 ## ----------------- ##
1368 for ac_var in $ac_subst_vars
1370 eval ac_val=$`echo $ac_var`
1371 echo "$ac_var='"'"'$ac_val'"'"'"
1375 if test -n "$ac_subst_files"; then
1382 for ac_var in $ac_subst_files
1384 eval ac_val=$`echo $ac_var`
1385 echo "$ac_var='"'"'$ac_val'"'"'"
1390 if test -s confdefs.h; then
1397 sed "/^$/d" confdefs.h | sort
1400 test "$ac_signal" != 0 &&
1401 echo "$as_me: caught signal $ac_signal"
1402 echo "$as_me: exit $exit_status"
1404 rm -f core *.core &&
1405 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1408 for ac_signal in 1 2 13 15; do
1409 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1414 rm -rf conftest* confdefs.h
1415 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1418 # Predefined preprocessor variables.
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_NAME "$PACKAGE_NAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_STRING "$PACKAGE_STRING"
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1445 # Let the site file select an alternate cache file if it wants to.
1446 # Prefer explicitly selected file to automatically selected ones.
1447 if test -z "$CONFIG_SITE"; then
1448 if test "x$prefix" != xNONE; then
1449 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1451 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1454 for ac_site_file in $CONFIG_SITE; do
1455 if test -r "$ac_site_file"; then
1456 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1457 echo "$as_me: loading site script $ac_site_file" >&6;}
1458 sed 's/^/| /' "$ac_site_file" >&5
1463 if test -r "$cache_file"; then
1464 # Some versions of bash will fail to source /dev/null (special
1465 # files actually), so we avoid doing that.
1466 if test -f "$cache_file"; then
1467 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1468 echo "$as_me: loading cache $cache_file" >&6;}
1470 [\\/]* | ?:[\\/]* ) . $cache_file;;
1471 *) . ./$cache_file;;
1475 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1476 echo "$as_me: creating cache $cache_file" >&6;}
1480 # Check that the precious variables saved in the cache have kept the same
1482 ac_cache_corrupted=false
1483 for ac_var in `(set) 2>&1 |
1484 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1486 eval ac_new_set=\$ac_env_${ac_var}_set
1487 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1488 eval ac_new_val="\$ac_env_${ac_var}_value"
1489 case $ac_old_set,$ac_new_set in
1491 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1492 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1493 ac_cache_corrupted=: ;;
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1497 ac_cache_corrupted=: ;;
1500 if test "x$ac_old_val" != "x$ac_new_val"; then
1501 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1502 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1503 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1504 echo "$as_me: former value: $ac_old_val" >&2;}
1505 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1506 echo "$as_me: current value: $ac_new_val" >&2;}
1507 ac_cache_corrupted=:
1510 # Pass precious variables to config.status.
1511 if test "$ac_new_set" = set; then
1513 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1514 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 *) ac_arg=$ac_var=$ac_new_val ;;
1517 case " $ac_configure_args " in
1518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1519 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1523 if $ac_cache_corrupted; then
1524 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1525 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1526 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1527 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1528 { (exit 1); exit 1; }; }
1532 ac_cpp='$CPP $CPPFLAGS'
1533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in config $srcdir/config; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 # Make sure we can run config.sub.
1582 $ac_config_sub sun4 >/dev/null 2>&1 ||
1583 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: checking build system type" >&5
1588 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589 if test "${ac_cv_build+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 ac_cv_build_alias=$build_alias
1593 test -z "$ac_cv_build_alias" &&
1594 ac_cv_build_alias=`$ac_config_guess`
1595 test -z "$ac_cv_build_alias" &&
1596 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598 { (exit 1); exit 1; }; }
1599 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602 { (exit 1); exit 1; }; }
1605 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606 echo "${ECHO_T}$ac_cv_build" >&6
1608 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1613 echo "$as_me:$LINENO: checking host system type" >&5
1614 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1615 if test "${ac_cv_host+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 ac_cv_host_alias=$host_alias
1619 test -z "$ac_cv_host_alias" &&
1620 ac_cv_host_alias=$ac_cv_build_alias
1621 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1624 { (exit 1); exit 1; }; }
1627 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1628 echo "${ECHO_T}$ac_cv_host" >&6
1630 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635 echo "$as_me:$LINENO: checking target system type" >&5
1636 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1637 if test "${ac_cv_target+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 ac_cv_target_alias=$target_alias
1641 test "x$ac_cv_target_alias" = "x" &&
1642 ac_cv_target_alias=$ac_cv_host_alias
1643 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1644 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1646 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1650 echo "${ECHO_T}$ac_cv_target" >&6
1651 target=$ac_cv_target
1652 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657 # The aliases save the names the user supplied, while $host etc.
1658 # will get canonicalized.
1659 test -n "$target_alias" &&
1660 test "$program_prefix$program_suffix$program_transform_name" = \
1662 program_prefix=${target_alias}-
1665 CONFIGURE_COMMAND="'$0'"
1667 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1670 cat >>confdefs.h <<_ACEOF
1671 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1676 am__api_version="1.8"
1677 # Find a good install program. We prefer a C program (faster),
1678 # so one script is as good as another. But avoid the broken or
1679 # incompatible versions:
1680 # SysV /etc/install, /usr/sbin/install
1681 # SunOS /usr/etc/install
1682 # IRIX /sbin/install
1684 # AmigaOS /C/install, which installs bootblocks on floppy discs
1685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1688 # OS/2's system install, which has a completely different semantic
1689 # ./install, which can be erroneously created by make from ./install.sh.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1708 # OSF1 and SCO ODT 3.0 have their own names for install.
1709 # Don't use installbsd from OSF since it installs stuff as root
1711 for ac_prog in ginstall scoinst install; do
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714 if test $ac_prog = install &&
1715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
1718 elif test $ac_prog = install &&
1719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720 # program-specific install script used by HP pwplus--don't use.
1723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1735 if test "${ac_cv_path_install+set}" = set; then
1736 INSTALL=$ac_cv_path_install
1738 # As a last resort, use the slow shell script. We don't cache a
1739 # path for INSTALL within a source directory, because that will
1740 # break other packages using the cache if that directory is
1741 # removed, or if the path is relative.
1742 INSTALL=$ac_install_sh
1745 echo "$as_me:$LINENO: result: $INSTALL" >&5
1746 echo "${ECHO_T}$INSTALL" >&6
1748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1749 # It thinks the first close brace ends the variable substitution.
1750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1756 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1757 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1760 echo timestamp > conftest.file
1761 # Do `set' in a subshell so we don't clobber the current shell's
1762 # arguments. Must try -L first in case configure is actually a
1763 # symlink; some systems play weird games with the mod time of symlinks
1764 # (eg FreeBSD returns the mod time of the symlink's containing
1767 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1768 if test "$*" = "X"; then
1770 set X `ls -t $srcdir/configure conftest.file`
1773 if test "$*" != "X $srcdir/configure conftest.file" \
1774 && test "$*" != "X conftest.file $srcdir/configure"; then
1776 # If neither matched, then we have a broken ls. This can happen
1777 # if, for instance, CONFIG_SHELL is bash and it inherits a
1778 # broken ls alias from the environment. This has actually
1779 # happened. Such a system could not be considered "sane".
1780 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1781 alias in your environment" >&5
1782 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1783 alias in your environment" >&2;}
1784 { (exit 1); exit 1; }; }
1787 test "$2" = conftest.file
1793 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1794 Check your system clock" >&5
1795 echo "$as_me: error: newly created file is older than distributed files!
1796 Check your system clock" >&2;}
1797 { (exit 1); exit 1; }; }
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801 test "$program_prefix" != NONE &&
1802 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1806 # Double any \ or $. echo might interpret backslashes.
1807 # By default was `s,x,x', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1814 # expand $ac_aux_dir to an absolute path
1815 am_aux_dir=`cd $ac_aux_dir && pwd`
1817 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1818 # Use eval to expand $SHELL
1819 if eval "$MISSING --run true"; then
1820 am_missing_run="$MISSING --run "
1823 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1824 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1827 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1828 # Keeping the `.' argument allows $(mkdir_p) to be used without
1829 # argument. Indeed, we sometimes output rules like
1830 # $(mkdir_p) $(somedir)
1831 # where $(somedir) is conditionally defined.
1832 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1833 # expensive solution, as it forces Make to start a sub-shell.)
1834 mkdir_p='mkdir -p -- .'
1836 # On NextStep and OpenStep, the `mkdir' command does not
1837 # recognize any option. It will interpret all options as
1838 # directories to create, and then abort because `.' already
1840 for d in ./-p ./--version;
1842 test -d $d && rmdir $d
1844 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1845 if test -f "$ac_aux_dir/mkinstalldirs"; then
1846 mkdir_p='$(mkinstalldirs)'
1848 mkdir_p='$(install_sh) -d'
1852 for ac_prog in gawk mawk nawk awk
1854 # Extract the first word of "$ac_prog", so it can be a program name with args.
1855 set dummy $ac_prog; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_AWK+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$AWK"; then
1862 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_AWK="$ac_prog"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 if test -n "$AWK"; then
1882 echo "$as_me:$LINENO: result: $AWK" >&5
1883 echo "${ECHO_T}$AWK" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1889 test -n "$AWK" && break
1892 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1893 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1895 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.make <<\_ACEOF
1900 @echo 'ac_maketemp="$(MAKE)"'
1902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1903 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1904 if test -n "$ac_maketemp"; then
1905 eval ac_cv_prog_make_${ac_make}_set=yes
1907 eval ac_cv_prog_make_${ac_make}_set=no
1911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1912 echo "$as_me:$LINENO: result: yes" >&5
1913 echo "${ECHO_T}yes" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 SET_MAKE="MAKE=${MAKE-make}"
1921 rm -rf .tst 2>/dev/null
1922 mkdir .tst 2>/dev/null
1923 if test -d .tst; then
1928 rmdir .tst 2>/dev/null
1930 # test to see if srcdir already configured
1931 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1932 test -f $srcdir/config.status; then
1933 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1934 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1935 { (exit 1); exit 1; }; }
1938 # test whether we have cygpath
1939 if test -z "$CYGPATH_W"; then
1940 if (cygpath --version) >/dev/null 2>/dev/null; then
1941 CYGPATH_W='cygpath -w'
1948 # Define the identity of the package.
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE "$PACKAGE"
1958 cat >>confdefs.h <<_ACEOF
1959 #define VERSION "$VERSION"
1962 # Some tools Automake needs.
1964 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1967 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1970 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1973 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1976 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1979 AMTAR=${AMTAR-"${am_missing_run}tar"}
1981 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1983 # Installed binaries are usually stripped using `strip' when the user
1984 # run `make install-strip'. However `strip' might not be the right
1985 # tool to use in cross-compilation environments, therefore Automake
1986 # will honor the `STRIP' environment variable to overrule this program.
1987 if test "$cross_compiling" != no; then
1988 if test -n "$ac_tool_prefix"; then
1989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1990 set dummy ${ac_tool_prefix}strip; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_STRIP+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$STRIP"; then
1997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 STRIP=$ac_cv_prog_STRIP
2016 if test -n "$STRIP"; then
2017 echo "$as_me:$LINENO: result: $STRIP" >&5
2018 echo "${ECHO_T}$STRIP" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2025 if test -z "$ac_cv_prog_STRIP"; then
2027 # Extract the first word of "strip", so it can be a program name with args.
2028 set dummy strip; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_STRIP"; then
2035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_ac_ct_STRIP="strip"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2055 if test -n "$ac_ct_STRIP"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2057 echo "${ECHO_T}$ac_ct_STRIP" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2065 STRIP="$ac_cv_prog_STRIP"
2069 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2071 # We need awk for the "check" target. The system "awk" is bad on
2076 ac_config_headers="$ac_config_headers config/config.h"
2080 if test -f "$srcdir/SNAPSHOT"; then
2081 cat < "$srcdir/SNAPSHOT"
2083 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2085 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2086 SNAPSHOT_STAMP=SNAPSHOT
2092 if test -f config.local; then
2093 echo "running local script ./config.local"
2098 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2099 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2100 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2101 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2104 VERSION_SUFFIX="$VERSION"
2111 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2114 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2115 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin"
2117 SYSLOCPATH="$SYSPATH:$LOCPATH"
2118 LOCSYSPATH="$LOCPATH:$SYSPATH"
2121 # Check whether --with-includes or --without-includes was given.
2122 if test "${with_includes+set}" = set; then
2123 withval="$with_includes"
2126 "" | y | ye | yes | n | no)
2127 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2128 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2129 { (exit 1); exit 1; }; }
2132 INCLUDE_DIRS="$withval"
2136 if test "$INCLUDE_DIRS"; then
2137 for dir in $INCLUDE_DIRS; do
2138 if test -d "$dir"; then
2139 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
2141 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2142 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2148 # Check whether --with-libraries or --without-libraries was given.
2149 if test "${with_libraries+set}" = set; then
2150 withval="$with_libraries"
2153 "" | y | ye | yes | n | no)
2154 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
2155 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
2156 { (exit 1); exit 1; }; }
2159 LIBRARY_DIRS="$withval"
2163 if test "$LIBRARY_DIRS"; then
2164 for dir in $LIBRARY_DIRS; do
2165 if test -d "$dir"; then
2168 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
2171 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
2173 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2174 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2180 # Check whether --with-configdir or --without-configdir was given.
2181 if test "${with_configdir+set}" = set; then
2182 withval="$with_configdir"
2185 "" | y | ye | yes | n | no)
2186 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
2187 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
2188 { (exit 1); exit 1; }; }
2190 *) CONFIG_DIR="$withval"
2195 : ${CONFIG_DIR=$sysconfdir/amanda}
2199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2200 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2201 eval echo "$CONFIG_DIR"
2204 cat >>confdefs.h <<_ACEOF
2205 #define CONFIG_DIR "$CONFIG_DIR"
2211 # Check whether --with-indexdir or --without-indexdir was given.
2212 if test "${with_indexdir+set}" = set; then
2213 withval="$with_indexdir"
2214 { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
2215 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
2216 { (exit 1); exit 1; }; }
2221 # Check whether --with-dbdir or --without-dbdir was given.
2222 if test "${with_dbdir+set}" = set; then
2223 withval="$with_dbdir"
2224 { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
2225 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
2226 { (exit 1); exit 1; }; }
2231 # Check whether --with-logdir or --without-logdir was given.
2232 if test "${with_logdir+set}" = set; then
2233 withval="$with_logdir"
2234 { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
2235 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
2236 { (exit 1); exit 1; }; }
2241 # Check whether --with-suffixes or --without-suffixes was given.
2242 if test "${with_suffixes+set}" = set; then
2243 withval="$with_suffixes"
2244 USE_VERSION_SUFFIXES=$withval
2246 : ${USE_VERSION_SUFFIXES=no}
2249 case "$USE_VERSION_SUFFIXES" in
2252 cat >>confdefs.h <<\_ACEOF
2253 #define USE_VERSION_SUFFIXES 1
2257 program_suffix="-$VERSION"
2258 # This is from the output of configure.in.
2259 if test "$program_transform_name" = s,x,x,; then
2260 program_transform_name=
2262 # Double any \ or $. echo might interpret backslashes.
2263 cat <<\EOF_SED > conftestsed
2264 s,\\,\\\\,g; s,\$,$$,g
2266 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2269 test "$program_prefix" != NONE &&
2270 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2271 # Use a double $ so make ignores it.
2272 test "$program_suffix" != NONE &&
2273 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2275 # sed with no file args requires a program.
2276 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2277 # Remove empty command
2278 cat <<\EOF_SED > conftestsed
2279 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
2281 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2284 n | no) USE_VERSION_SUFFIXES=no
2286 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
2287 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
2288 { (exit 1); exit 1; }; }
2295 CLIENT_SCRIPTS_OPT=amhpfixdevs
2298 CLIENT_SCRIPTS_OPT=amsinixfixdevs
2308 # Check whether --with-client-only or --without-client-only was given.
2309 if test "${with_client_only+set}" = set; then
2310 withval="$with_client_only"
2311 { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
2312 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
2313 { (exit 1); exit 1; }; }
2317 # Check whether --with-server-only or --without-server-only was given.
2318 if test "${with_server_only+set}" = set; then
2319 withval="$with_server_only"
2320 { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
2321 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
2322 { (exit 1); exit 1; }; }
2327 # Check whether --with-client or --without-client was given.
2328 if test "${with_client+set}" = set; then
2329 withval="$with_client"
2332 y | ye | yes) NO_CLIENT_MODE=false;;
2333 n | no) NO_CLIENT_MODE=true;;
2335 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
2336 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
2337 { (exit 1); exit 1; }; }
2345 # Check whether --with-server or --without-server was given.
2346 if test "${with_server+set}" = set; then
2347 withval="$with_server"
2350 y | ye | yes) NO_SERVER_MODE=false ;;
2351 n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
2353 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&5
2354 echo "$as_me: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&2;}
2355 { (exit 1); exit 1; }; }
2363 # Check whether --with-restore or --without-restore was given.
2364 if test "${with_restore+set}" = set; then
2365 withval="$with_restore"
2368 y | ye | yes) NO_RESTORE_MODE=false;;
2369 n | no) NO_RESTORE_MODE=true;;
2371 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
2372 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
2373 { (exit 1); exit 1; }; }
2381 # Check whether --with-amrecover or --without-amrecover was given.
2382 if test "${with_amrecover+set}" = set; then
2383 withval="$with_amrecover"
2387 if ${NO_CLIENT_MODE-false}; then
2388 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
2389 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
2390 { (exit 1); exit 1; }; }
2392 NO_RECOVER_MODE=false;;
2393 n | no) NO_RECOVER_MODE=true;;
2395 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
2396 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
2397 { (exit 1); exit 1; }; }
2405 # Check whether --with-index-server or --without-index-server was given.
2406 if test "${with_index_server+set}" = set; then
2407 withval="$with_index_server"
2410 "" | y | ye | yes | n | no)
2411 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
2412 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
2413 { (exit 1); exit 1; }; }
2415 *) DEFAULT_SERVER="$withval"
2420 : ${DEFAULT_SERVER=`uname -n`}
2424 cat >>confdefs.h <<_ACEOF
2425 #define DEFAULT_SERVER "$DEFAULT_SERVER"
2431 # Check whether --with-force-uid or --without-force-uid was given.
2432 if test "${with_force_uid+set}" = set; then
2433 withval="$with_force_uid"
2434 FORCE_USERID="$withval"
2436 : ${FORCE_USERID=yes}
2439 case "$FORCE_USERID" in
2441 cat >>confdefs.h <<\_ACEOF
2442 #define FORCE_USERID 1
2448 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
2449 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
2450 { (exit 1); exit 1; }; }
2454 # Check whether --with-user or --without-user was given.
2455 if test "${with_user+set}" = set; then
2456 withval="$with_user"
2459 "" | y | ye | yes | n | no)
2460 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
2461 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
2462 { (exit 1); exit 1; }; }
2464 *) CLIENT_LOGIN="$withval"
2470 if test "x${CLIENT_LOGIN+set}" != xset; then
2471 { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
2472 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
2473 { (exit 1); exit 1; }; }
2476 cat >>confdefs.h <<_ACEOF
2477 #define CLIENT_LOGIN "$CLIENT_LOGIN"
2483 # Check whether --with-group or --without-group was given.
2484 if test "${with_group+set}" = set; then
2485 withval="$with_group"
2488 "" | y | ye | yes | n | no)
2489 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
2490 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
2491 { (exit 1); exit 1; }; }
2493 *) SETUID_GROUP="$withval"
2499 if test "x${SETUID_GROUP+set}" != xset; then
2500 { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
2501 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
2502 { (exit 1); exit 1; }; }
2507 # Check whether --with-owner or --without-owner was given.
2508 if test "${with_owner+set}" = set; then
2509 withval="$with_owner"
2512 "" | y | ye | yes | n | no)
2513 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
2514 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
2515 { (exit 1); exit 1; }; }
2517 *) BINARY_OWNER="$withval"
2523 if test "x${BINARY_OWNER+set}" != xset ; then
2524 BINARY_OWNER=$CLIENT_LOGIN
2527 cat >>confdefs.h <<_ACEOF
2528 #define BINARY_OWNER "$BINARY_OWNER"
2534 # Check whether --with-rundump or --without-rundump was given.
2535 if test "${with_rundump+set}" = set; then
2536 withval="$with_rundump"
2539 n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
2540 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
2541 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
2542 { (exit 1); exit 1; }; };;
2549 # Check whether --with-config or --without-config was given.
2550 if test "${with_config+set}" = set; then
2551 withval="$with_config"
2554 "" | y | ye | yes | n | no)
2555 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
2556 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
2557 { (exit 1); exit 1; }; }
2559 *) DEFAULT_CONFIG="$withval"
2564 : ${DEFAULT_CONFIG=DailySet1}
2568 cat >>confdefs.h <<_ACEOF
2569 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
2575 # Check whether --with-tape-server or --without-tape-server was given.
2576 if test "${with_tape_server+set}" = set; then
2577 withval="$with_tape_server"
2580 "" | y | ye | yes | n | no)
2581 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
2582 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
2583 { (exit 1); exit 1; }; }
2585 *) DEFAULT_TAPE_SERVER="$withval"
2590 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
2594 cat >>confdefs.h <<_ACEOF
2595 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
2601 # Check whether --with-tape-device or --without-tape-device was given.
2602 if test "${with_tape_device+set}" = set; then
2603 withval="$with_tape_device"
2606 "" | y | ye | yes | n | no)
2607 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
2608 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
2609 { (exit 1); exit 1; }; }
2611 *) DEFAULT_TAPE_DEVICE="$withval"
2617 if test -z "$DEFAULT_TAPE_DEVICE"; then
2618 echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
2619 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
2621 nr_tape_dev=/dev/null
2622 if test -d /dev/rmt; then
2625 for num in 9 8 7 6 5 4 3 2 1 0; do
2627 ntd=/dev/rmt/${num}bn
2628 if test -r $td -a -r $ntd; then
2634 for num in 9 8 7 6 5 4 3 2 1 0; do
2637 if test -r $td -a -r $ntd; then
2643 DEFAULT_TAPE_DEVICE=$nr_tape_dev
2644 echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
2645 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
2651 if test -z "$DEFAULT_TAPE_DEVICE"; then
2652 DEFAULT_TAPE_DEVICE=/dev/null
2656 cat >>confdefs.h <<_ACEOF
2657 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
2663 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
2664 if test "${with_ftape_raw_device+set}" = set; then
2665 withval="$with_ftape_raw_device"
2668 "" | y | ye | yes | n | no)
2669 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
2670 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
2671 { (exit 1); exit 1; }; }
2673 *) DEFAULT_RAW_TAPE_DEVICE="$withval"
2679 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2680 echo "$as_me:$LINENO: checking for raw ftape device" >&5
2681 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
2682 raw_tape_dev=/dev/null
2683 for num in 3 2 1 0 ; do
2685 if test -r $td; then
2689 DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
2690 echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
2691 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
2697 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2698 DEFAULT_RAW_TAPE_DEVICE=/dev/null
2702 cat >>confdefs.h <<_ACEOF
2703 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
2709 # Check whether --with-rew-tape or --without-rew-tape was given.
2710 if test "${with_rew_tape+set}" = set; then
2711 withval="$with_rew_tape"
2712 { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
2713 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
2714 { (exit 1); exit 1; }; }
2719 # Check whether --with-norew-tape or --without-norew-tape was given.
2720 if test "${with_norew_tape+set}" = set; then
2721 withval="$with_norew_tape"
2722 { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
2723 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
2724 { (exit 1); exit 1; }; }
2729 # Check whether --with-changer-device or --without-changer-device was given.
2730 if test "${with_changer_device+set}" = set; then
2731 withval="$with_changer_device"
2734 "" | y | ye | yes | n | no)
2735 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
2736 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
2737 { (exit 1); exit 1; }; }
2739 *) DEFAULT_CHANGER_DEVICE="$withval"
2745 if test -z "$DEFAULT_CHANGER_DEVICE" &&
2746 test -f /dev/ch0; then
2747 DEFAULT_CHANGER_DEVICE=/dev/ch0
2753 if test -z "$DEFAULT_CHANGER_DEVICE"; then
2754 DEFAULT_CHANGER_DEVICE=/dev/null
2758 cat >>confdefs.h <<_ACEOF
2759 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
2765 # Check whether --with-fqdn or --without-fqdn was given.
2766 if test "${with_fqdn+set}" = set; then
2767 withval="$with_fqdn"
2776 cat >>confdefs.h <<\_ACEOF
2781 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
2782 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
2783 { (exit 1); exit 1; }; }
2788 # Check whether --with-broken-fsf or --without-broken-fsf was given.
2789 if test "${with_broken_fsf+set}" = set; then
2790 withval="$with_broken_fsf"
2791 HAVE_BROKEN_FSF=$withval
2793 : ${HAVE_BROKEN_FSF=no}
2796 case "$HAVE_BROKEN_FSF" in
2799 cat >>confdefs.h <<\_ACEOF
2800 #define HAVE_BROKEN_FSF 1
2804 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
2805 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
2806 { (exit 1); exit 1; }; }
2811 # Check whether --with-gnutar or --without-gnutar was given.
2812 if test "${with_gnutar+set}" = set; then
2813 withval="$with_gnutar"
2816 /*) GNUTAR="$withval";;
2819 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
2820 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
2821 { (exit 1); exit 1; }; };;
2828 # Check whether --with-qde or --without-qde was given.
2829 if test "${with_qde+set}" = set; then
2831 USE_QUICK_AND_DIRTY_ESTIMATES=$withval
2833 : ${USE_QUICK_AND_DIRTY_ESTIMATES=no}
2836 case "$USE_QUICK_AND_DIRTY_ESTIMATES" in
2837 n | no) : USE_QUICK_AND_DIRTY_ESTIMATES=no;;
2838 y | ye | yes) : USE_QUICK_AND_DIRTY_ESTIMATES=yes
2840 cat >>confdefs.h <<\_ACEOF
2841 #define USE_QUICK_AND_DIRTY_ESTIMATES 1
2845 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-qde option." >&5
2846 echo "$as_me: error: *** You must not supply an argument to --with-qde option." >&2;}
2847 { (exit 1); exit 1; }; }
2853 # Check whether --with-smbclient or --without-smbclient was given.
2854 if test "${with_smbclient+set}" = set; then
2855 withval="$with_smbclient"
2858 /*) SAMBA_CLIENT="$withval";;
2860 n|no) SAMBA_CLIENT="no";;
2861 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
2862 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
2863 { (exit 1); exit 1; }; };;
2870 # Check whether --with-samba-user or --without-samba-user was given.
2871 if test "${with_samba_user+set}" = set; then
2872 withval="$with_samba_user"
2873 { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
2874 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
2875 { (exit 1); exit 1; }; }
2881 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
2882 if test "${with_gnutar_listdir+set}" = set; then
2883 withval="$with_gnutar_listdir"
2886 n | no) unset GNUTAR_LISTDIR ;;
2887 y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
2888 /*) GNUTAR_LISTDIR="$withval" ;;
2889 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
2890 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
2891 { (exit 1); exit 1; }; }
2895 : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists}
2898 if test "$GNUTAR_LISTDIR"; then
2900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2901 eval echo "$GNUTAR_LISTDIR"
2904 cat >>confdefs.h <<_ACEOF
2905 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
2908 GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
2910 GNUTAR_LISTED_INCREMENTAL_DIRX=
2915 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
2916 if test "${with_gnutar_listed_incremental+set}" = set; then
2917 withval="$with_gnutar_listed_incremental"
2918 { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
2919 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
2920 { (exit 1); exit 1; }; }
2926 # Check whether --with-bsd-security or --without-bsd-security was given.
2927 if test "${with_bsd_security+set}" = set; then
2928 withval="$with_bsd_security"
2929 BSD_SECURITY=$withval
2931 : ${BSD_SECURITY=yes}
2934 case "$BSD_SECURITY" in
2937 cat >>confdefs.h <<\_ACEOF
2938 #define BSD_SECURITY 1
2942 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
2943 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
2944 { (exit 1); exit 1; }; }
2949 # Check whether --with-amandahosts or --without-amandahosts was given.
2950 if test "${with_amandahosts+set}" = set; then
2951 withval="$with_amandahosts"
2952 USE_AMANDAHOSTS=$withval
2954 : ${USE_AMANDAHOSTS=yes}
2957 case "$USE_AMANDAHOSTS" in
2960 case "$BSD_SECURITY" in
2962 cat >>confdefs.h <<\_ACEOF
2963 #define USE_AMANDAHOSTS 1
2969 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
2970 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
2971 { (exit 1); exit 1; }; }
2976 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
2979 # Check whether --with-krb4-security or --without-krb4-security was given.
2980 if test "${with_krb4_security+set}" = set; then
2981 withval="$with_krb4_security"
2982 KRB4_SECURITY="$withval"
2984 : ${KRB4_SECURITY=no}
2988 case "$KRB4_SECURITY" in
2989 n | no) KRB4_SECURITY=no ;;
2991 *) KRB4_SPOTS="$KRB4_SECURITY"
2996 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
2997 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
2998 if test "${KRB4_SECURITY}" = yes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
2999 for dir in $KRB4_SPOTS; do
3000 if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
3002 # This is the original Kerberos 4.
3004 echo "$as_me:$LINENO: result: found in $dir" >&5
3005 echo "${ECHO_T}found in $dir" >&6
3008 cat >>confdefs.h <<\_ACEOF
3009 #define KRB4_SECURITY 1
3012 if test -d $dir/include/kerberosIV ; then
3014 # This handles BSD/OS.
3016 KRB4INCLUDES=-I$dir/include/kerberosIV
3018 KRB4INCLUDES=-I$dir/include
3020 KRB4LDFLAGS=-L$dir/lib
3021 KRB4LIBS="-lkrb -ldes"
3022 if test -f ${dir}/lib/libcom_err.a ; then
3023 KRB4LIBS="$KRB4LIBS -lcom_err"
3025 if test -f ${dir}/lib/libroken.a ; then
3026 KRB4LIBS="$KRB4LIBS -lroken"
3029 elif test -f ${dir}/lib/libkrb4.a &&
3030 test -f ${dir}/lib/libcrypto.a &&
3031 test -f ${dir}/lib/libdes425.a ; then
3033 # This is Kerberos 5 with Kerberos 4 back-support.
3035 echo "$as_me:$LINENO: result: found in $dir" >&5
3036 echo "${ECHO_T}found in $dir" >&6
3039 cat >>confdefs.h <<\_ACEOF
3040 #define KRB4_SECURITY 1
3043 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3044 KRB4LDFLAGS=-L$dir/lib
3045 if test -f ${dir}/lib/libkrb5.a &&
3046 test -f ${dir}/lib/libcom_err.a; then
3047 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3049 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3052 elif test -f ${dir}/lib/libkrb4.dylib &&
3053 test -f ${dir}/lib/libcrypto.dylib &&
3054 test -f ${dir}/lib/libdes425.dylib ; then
3056 # This is Kerberos 5 with Kerberos 4 back-support for Mac OS X.
3058 echo "$as_me:$LINENO: result: found in $dir" >&5
3059 echo "${ECHO_T}found in $dir" >&6
3062 cat >>confdefs.h <<\_ACEOF
3063 #define KRB4_SECURITY 1
3066 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3067 KRB4LDFLAGS=-L$dir/lib
3068 if test -f ${dir}/lib/libkrb5.dylib &&
3069 test -f ${dir}/lib/libcom_err.dylib; then
3070 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3072 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3078 if test "$KRB4LDFLAGS" = "" ; then
3079 { { echo "$as_me:$LINENO: error: *** Kerberos IV not found." >&5
3080 echo "$as_me: error: *** Kerberos IV not found." >&2;}
3081 { (exit 1); exit 1; }; }
3084 echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3089 # Check whether --with-server-principal or --without-server-principal was given.
3090 if test "${with_server_principal+set}" = set; then
3091 withval="$with_server_principal"
3094 "" | y | ye | yes | n | no)
3095 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
3096 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
3097 { (exit 1); exit 1; }; }
3100 SERVER_HOST_PRINCIPLE="$withval"
3105 : ${SERVER_HOST_PRINCIPLE="amanda"}
3109 cat >>confdefs.h <<_ACEOF
3110 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
3115 # Check whether --with-server-instance or --without-server-instance was given.
3116 if test "${with_server_instance+set}" = set; then
3117 withval="$with_server_instance"
3120 "" | y | ye | yes | n | no)
3121 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
3122 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
3123 { (exit 1); exit 1; }; }
3125 *) SERVER_HOST_INSTANCE="$withval"
3130 : ${SERVER_HOST_INSTANCE="amanda"}
3134 cat >>confdefs.h <<_ACEOF
3135 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
3140 # Check whether --with-server-keyfile or --without-server-keyfile was given.
3141 if test "${with_server_keyfile+set}" = set; then
3142 withval="$with_server_keyfile"
3145 "" | y | ye | yes | n | no)
3146 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
3147 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
3148 { (exit 1); exit 1; }; }
3150 *) SERVER_HOST_KEY_FILE="$withval"
3155 : ${SERVER_HOST_KEY_FILE="/.amanda"}
3159 cat >>confdefs.h <<_ACEOF
3160 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
3165 # Check whether --with-client-principal or --without-client-principal was given.
3166 if test "${with_client_principal+set}" = set; then
3167 withval="$with_client_principal"
3170 "" | y | ye | yes | n | no)
3171 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
3172 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
3173 { (exit 1); exit 1; }; }
3175 *) CLIENT_HOST_PRINCIPLE="$withval"
3180 : ${CLIENT_HOST_PRINCIPLE="rcmd"}
3184 cat >>confdefs.h <<_ACEOF
3185 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
3190 # Check whether --with-client-instance or --without-client-instance was given.
3191 if test "${with_client_instance+set}" = set; then
3192 withval="$with_client_instance"
3195 "" | y | ye | yes | n | no)
3196 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
3197 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
3198 { (exit 1); exit 1; }; }
3200 *) CLIENT_HOST_INSTANCE="$withval"
3205 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
3209 cat >>confdefs.h <<_ACEOF
3210 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
3215 # Check whether --with-client-keyfile or --without-client-keyfile was given.
3216 if test "${with_client_keyfile+set}" = set; then
3217 withval="$with_client_keyfile"
3220 "" | y | ye | yes | n | no)
3221 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
3222 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
3223 { (exit 1); exit 1; }; }
3225 *) CLIENT_HOST_KEY_FILE="$withval"
3230 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
3234 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
3235 if test "$CLIENT_HOST_KEY_FILE" != "KEYFILE"; then
3236 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
3240 cat >>confdefs.h <<_ACEOF
3241 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
3246 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
3247 if test "${with_ticket_lifetime+set}" = set; then
3248 withval="$with_ticket_lifetime"
3251 "" | y | ye | yes | n | no)
3252 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
3253 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
3254 { (exit 1); exit 1; }; }
3256 *) TICKET_LIFETIME="$withval"
3261 : ${TICKET_LIFETIME=128}
3265 cat >>confdefs.h <<_ACEOF
3266 #define TICKET_LIFETIME $TICKET_LIFETIME
3272 # Check whether --with-portrange or --without-portrange was given.
3273 if test "${with_portrange+set}" = set; then
3274 withval="$with_portrange"
3276 TCPPORTRANGE="$withval"
3281 # Check whether --with-tcpportrange or --without-tcpportrange was given.
3282 if test "${with_tcpportrange+set}" = set; then
3283 withval="$with_tcpportrange"
3285 TCPPORTRANGE="$withval"
3289 if test x"${TCPPORTRANGE+set}" = x"set"; then
3290 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3291 { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
3292 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
3293 { (exit 1); exit 1; }; }
3295 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
3296 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
3297 if test $min_tcp_port -gt $max_tcp_port; then
3298 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
3299 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
3300 { (exit 1); exit 1; }; }
3302 if test $min_tcp_port -lt 1024; then
3303 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
3304 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
3306 if test $max_tcp_port -ge 65536; then
3307 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
3308 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
3311 cat >>confdefs.h <<_ACEOF
3312 #define TCPPORTRANGE $TCPPORTRANGE
3318 # Check whether --with-udpportrange or --without-udpportrange was given.
3319 if test "${with_udpportrange+set}" = set; then
3320 withval="$with_udpportrange"
3322 UDPPORTRANGE="$withval"
3326 if test x"${UDPPORTRANGE+set}" = x"set"; then
3327 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3328 { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
3329 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
3330 { (exit 1); exit 1; }; }
3332 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
3333 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
3334 if test $min_udp_port -gt $max_udp_port; then
3335 { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
3336 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
3337 { (exit 1); exit 1; }; }
3339 if test $max_udp_port -ge 1024; then
3340 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
3341 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
3343 if test $min_udp_port -le 0; then
3344 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
3345 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
3348 cat >>confdefs.h <<_ACEOF
3349 #define UDPPORTRANGE $UDPPORTRANGE
3355 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
3356 if test "${with_maxtapeblocksize+set}" = set; then
3357 withval="$with_maxtapeblocksize"
3359 MAXTAPEBLOCKSIZE="$withval"
3362 : ${MAXTAPEBLOCKSIZE=32}
3367 cat >>confdefs.h <<_ACEOF
3368 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
3374 # Check whether --with-db or --without-db was given.
3375 if test "${with_db+set}" = set; then
3379 "" | y | ye | yes | n | no)
3380 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
3381 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
3382 { (exit 1); exit 1; }; }
3384 *) DB_STYLE="$withval"
3390 if test "$DB_STYLE"; then
3392 db | dbm | gdbm | ndbm | text) ;;
3394 { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&5
3395 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&2;}
3396 { (exit 1); exit 1; }; }
3403 # Check whether --with-mmap or --without-mmap was given.
3404 if test "${with_mmap+set}" = set; then
3405 withval="$with_mmap"
3411 case "$FORCE_MMAP" in
3412 y | ye | yes | n | no) : ;;
3413 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
3414 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
3415 { (exit 1); exit 1; }; }
3420 # Check whether --with-buffered-dump or --without-buffered-dump was given.
3421 if test "${with_buffered_dump+set}" = set; then
3422 withval="$with_buffered_dump"
3423 DUMPER_SOCKET_BUFFERING=$withval
3425 : ${DUMPER_SOCKET_BUFFERING=no}
3428 case "$DUMPER_SOCKET_BUFFERING" in
3432 cat >>confdefs.h <<\_ACEOF
3433 #define DUMPER_SOCKET_BUFFERING 1
3437 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
3438 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
3439 { (exit 1); exit 1; }; }
3444 # Check whether --with-assertions or --without-assertions was given.
3445 if test "${with_assertions+set}" = set; then
3446 withval="$with_assertions"
3447 ASSERTIONS="$withval"
3452 case "$ASSERTIONS" in
3455 cat >>confdefs.h <<\_ACEOF
3456 #define ASSERTIONS 1
3460 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
3461 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
3462 { (exit 1); exit 1; }; }
3467 # Check whether --with-tmpdir or --without-tmpdir was given.
3468 if test "${with_tmpdir+set}" = set; then
3469 withval="$with_tmpdir"
3476 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3477 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3481 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
3482 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
3483 { (exit 1); exit 1; }; };;
3485 AMANDA_TMPDIR="/tmp/amanda";;
3487 AMANDA_TMPDIR="$tmpdir";;
3488 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
3489 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
3490 { (exit 1); exit 1; }; };;
3493 cat >>confdefs.h <<_ACEOF
3494 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
3500 # Check whether --with-debugging or --without-debugging was given.
3501 if test "${with_debugging+set}" = set; then
3502 withval="$with_debugging"
3503 debugging="$withval"
3509 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3510 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3511 eval echo "$debugging"
3513 case "$debugging" in
3514 n | no) AMANDA_DBGDIR="";;
3515 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR" ;;
3516 /*) AMANDA_DBGDIR="$debugging" ;;
3517 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
3518 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
3519 { (exit 1); exit 1; }; }
3522 case "$AMANDA_DBGDIR" in
3525 cat >>confdefs.h <<\_ACEOF
3526 #define DEBUG_CODE 1
3530 cat >>confdefs.h <<_ACEOF
3531 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
3538 # Check whether --with-debug_days or --without-debug_days was given.
3539 if test "${with_debug_days+set}" = set; then
3540 withval="$with_debug_days"
3541 debug_days="$withval"
3546 case "$debug_days" in
3547 n | no) AMANDA_DEBUG_DAYS=0 ;;
3548 y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
3549 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
3550 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
3551 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
3552 { (exit 1); exit 1; }; }
3556 cat >>confdefs.h <<_ACEOF
3557 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
3563 # Check whether --with-testing or --without-testing was given.
3564 if test "${with_testing+set}" = set; then
3565 withval="$with_testing"
3572 n | no) SERVICE_SUFFIX="";;
3573 y | ye | yes) SERVICE_SUFFIX="-test";;
3574 *) SERVICE_SUFFIX="-$TESTING";;
3576 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
3577 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
3580 cat >>confdefs.h <<_ACEOF
3581 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
3585 cat >>confdefs.h <<_ACEOF
3586 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
3590 cat >>confdefs.h <<_ACEOF
3591 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
3596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3597 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3599 tmp=`eval echo "$bindir"`
3601 cat >>confdefs.h <<_ACEOF
3602 #define bindir "$tmp"
3606 tmp=`eval echo "$sbindir"`
3608 cat >>confdefs.h <<_ACEOF
3609 #define sbindir "$tmp"
3613 tmp=`eval echo "$libexecdir"`
3615 cat >>confdefs.h <<_ACEOF
3616 #define libexecdir "$tmp"
3620 tmp=`eval echo $mandir`
3622 cat >>confdefs.h <<_ACEOF
3623 #define mandir "$tmp"
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test -n "$CC"; then
3662 echo "$as_me:$LINENO: result: $CC" >&5
3663 echo "${ECHO_T}$CC" >&6
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3670 if test -z "$ac_cv_prog_CC"; then
3672 # Extract the first word of "gcc", so it can be a program name with args.
3673 set dummy gcc; ac_word=$2
3674 echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 if test -n "$ac_ct_CC"; then
3680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 ac_cv_prog_ac_ct_CC="gcc"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699 if test -n "$ac_ct_CC"; then
3700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3701 echo "${ECHO_T}$ac_ct_CC" >&6
3703 echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3712 if test -z "$CC"; then
3713 if test -n "$ac_tool_prefix"; then
3714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3715 set dummy ${ac_tool_prefix}cc; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_prog_CC+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 if test -n "$CC"; then
3722 ac_cv_prog_CC="$CC" # Let the user override the test.
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_CC="${ac_tool_prefix}cc"
3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 if test -n "$CC"; then
3742 echo "$as_me:$LINENO: result: $CC" >&5
3743 echo "${ECHO_T}$CC" >&6
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3750 if test -z "$ac_cv_prog_CC"; then
3752 # Extract the first word of "cc", so it can be a program name with args.
3753 set dummy cc; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test -n "$ac_ct_CC"; then
3760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_ac_ct_CC="cc"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3781 echo "${ECHO_T}$ac_ct_CC" >&6
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3793 if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_CC+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 if test $ac_prog_rejected = yes; then
3824 # We found a bogon in the path, so make sure we never use it.
3825 set dummy $ac_cv_prog_CC
3827 if test $# != 0; then
3828 # We chose a different compiler from the bogus one.
3829 # However, it has the same basename, so the bogon will be chosen
3830 # first if we set CC to just the basename; use the full file name.
3832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3838 if test -n "$CC"; then
3839 echo "$as_me:$LINENO: result: $CC" >&5
3840 echo "${ECHO_T}$CC" >&6
3842 echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3847 if test -z "$CC"; then
3848 if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_prog_CC+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 if test -n "$CC"; then
3859 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 if test -n "$CC"; then
3879 echo "$as_me:$LINENO: result: $CC" >&5
3880 echo "${ECHO_T}$CC" >&6
3882 echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3886 test -n "$CC" && break
3889 if test -z "$CC"; then
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 echo "$as_me:$LINENO: checking for $ac_word" >&5
3896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 if test -n "$ac_ct_CC"; then
3901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_CC="$ac_prog"
3911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3922 echo "${ECHO_T}$ac_ct_CC" >&6
3924 echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3928 test -n "$ac_ct_CC" && break
3937 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3938 See \`config.log' for more details." >&5
3939 echo "$as_me: error: no acceptable C compiler found in \$PATH
3940 See \`config.log' for more details." >&2;}
3941 { (exit 1); exit 1; }; }
3943 # Provide some information about the compiler.
3944 echo "$as_me:$LINENO:" \
3945 "checking for C compiler version" >&5
3946 ac_compiler=`set X $ac_compile; echo $2`
3947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3948 (eval $ac_compiler --version </dev/null >&5) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }
3952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3953 (eval $ac_compiler -v </dev/null >&5) 2>&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }
3957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3958 (eval $ac_compiler -V </dev/null >&5) 2>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3978 ac_clean_files_save=$ac_clean_files
3979 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3980 # Try to create an executable without -o first, disregard a.out.
3981 # It will help us diagnose broken compilers, and finding out an intuition
3983 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3984 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3985 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3987 (eval $ac_link_default) 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; then
3991 # Find the output, starting from the most likely. This scheme is
3992 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3995 # Be careful to initialize this variable, since it used to be cached.
3996 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3998 # b.out is created by i960 compilers.
3999 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4001 test -f "$ac_file" || continue
4003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4006 # This is the source file.
4009 # We found the default executable, but exeext='' is most
4013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014 # FIXME: I believe we export ac_cv_exeext for Libtool,
4015 # but it would be cool to find out if it's true. Does anybody
4016 # maintain Libtool? --akim.
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4028 See \`config.log' for more details." >&5
4029 echo "$as_me: error: C compiler cannot create executables
4030 See \`config.log' for more details." >&2;}
4031 { (exit 77); exit 77; }; }
4034 ac_exeext=$ac_cv_exeext
4035 echo "$as_me:$LINENO: result: $ac_file" >&5
4036 echo "${ECHO_T}$ac_file" >&6
4038 # Check the compiler produces executables we can run. If not, either
4039 # the compiler is broken, or we cross compile.
4040 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4041 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4042 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4043 # If not cross compiling, check that we can run a simple program.
4044 if test "$cross_compiling" != yes; then
4045 if { ac_try='./$ac_file'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4053 if test "$cross_compiling" = maybe; then
4056 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4057 If you meant to cross compile, use \`--host'.
4058 See \`config.log' for more details." >&5
4059 echo "$as_me: error: cannot run C compiled programs.
4060 If you meant to cross compile, use \`--host'.
4061 See \`config.log' for more details." >&2;}
4062 { (exit 1); exit 1; }; }
4066 echo "$as_me:$LINENO: result: yes" >&5
4067 echo "${ECHO_T}yes" >&6
4069 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4070 ac_clean_files=$ac_clean_files_save
4071 # Check the compiler produces executables we can run. If not, either
4072 # the compiler is broken, or we cross compile.
4073 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4074 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4075 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4076 echo "${ECHO_T}$cross_compiling" >&6
4078 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4079 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4081 (eval $ac_link) 2>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; then
4085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4086 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4087 # work properly (i.e., refer to `conftest.exe'), while it won't with
4089 for ac_file in conftest.exe conftest conftest.*; do
4090 test -f "$ac_file" || continue
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4100 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4101 See \`config.log' for more details." >&5
4102 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4103 See \`config.log' for more details." >&2;}
4104 { (exit 1); exit 1; }; }
4107 rm -f conftest$ac_cv_exeext
4108 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4109 echo "${ECHO_T}$ac_cv_exeext" >&6
4111 rm -f conftest.$ac_ext
4112 EXEEXT=$ac_cv_exeext
4114 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4116 if test "${ac_cv_objext+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4134 rm -f conftest.o conftest.obj
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; then
4140 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4152 See \`config.log' for more details." >&5
4153 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4154 See \`config.log' for more details." >&2;}
4155 { (exit 1); exit 1; }; }
4158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4160 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4161 echo "${ECHO_T}$ac_cv_objext" >&6
4162 OBJEXT=$ac_cv_objext
4164 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4165 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 cat >conftest.$ac_ext <<_ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4220 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4221 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4222 GCC=`test $ac_compiler_gnu = yes && echo yes`
4223 ac_test_CFLAGS=${CFLAGS+set}
4224 ac_save_CFLAGS=$CFLAGS
4226 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4227 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4228 if test "${ac_cv_prog_cc_g+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4246 rm -f conftest.$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>conftest.er1
4250 grep -v '^ *+' conftest.er1 >conftest.err
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -z "$ac_c_werror_flag"
4256 || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4277 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4279 if test "$ac_test_CFLAGS" = set; then
4280 CFLAGS=$ac_save_CFLAGS
4281 elif test $ac_cv_prog_cc_g = yes; then
4282 if test "$GCC" = yes; then
4288 if test "$GCC" = yes; then
4294 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4295 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4296 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 ac_cv_prog_cc_stdc=no
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4309 #include <sys/types.h>
4310 #include <sys/stat.h>
4311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4312 struct buf { int x; };
4313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4314 static char *e (p, i)
4320 static char *f (char * (*g) (char **, int), char **p, ...)
4325 s = g (p, va_arg (v,int));
4330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4331 function prototypes and stuff, but not '\xHH' hex character constants.
4332 These don't provoke an error unfortunately, instead are silently treated
4333 as 'x'. The following induces an error, until -std1 is added to get
4334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4335 array size at least. It's necessary to write '\x00'==0 to get something
4336 that's true only with -std1. */
4337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4339 int test (int i, double x);
4340 struct s1 {int (*f) (int a);};
4341 struct s2 {int (*f) (double a);};
4342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4353 # Don't try gcc -ansi; that turns off useful extensions and
4354 # breaks some systems' header files.
4355 # AIX -qlanglvl=ansi
4356 # Ultrix and OSF/1 -std1
4357 # HP-UX 10.20 and later -Ae
4358 # HP-UX older versions -Aa -D_HPUX_SOURCE
4359 # SVR4 -Xc -D__EXTENSIONS__
4360 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4362 CC="$ac_save_CC $ac_arg"
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>conftest.er1
4367 grep -v '^ *+' conftest.er1 >conftest.err
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_cv_prog_cc_stdc=$ac_arg
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4392 rm -f conftest.err conftest.$ac_objext
4394 rm -f conftest.$ac_ext conftest.$ac_objext
4399 case "x$ac_cv_prog_cc_stdc" in
4401 echo "$as_me:$LINENO: result: none needed" >&5
4402 echo "${ECHO_T}none needed" >&6 ;;
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4405 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4406 CC="$CC $ac_cv_prog_cc_stdc" ;;
4409 # Some people use a C++ compiler to compile C. Since we use `exit',
4410 # in C++ we need to declare it. In case someone uses the same compiler
4411 # for both compiling C and C++ we need to have the C++ compiler decide
4412 # the declaration of exit, since it's the most demanding environment.
4413 cat >conftest.$ac_ext <<_ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 for ac_declaration in \
4442 'extern "C" void std::exit (int) throw (); using std::exit;' \
4443 'extern "C" void std::exit (int); using std::exit;' \
4444 'extern "C" void exit (int) throw ();' \
4445 'extern "C" void exit (int);' \
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4464 rm -f conftest.$ac_objext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -z "$ac_c_werror_flag"
4474 || test ! -s conftest.err'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4513 grep -v '^ *+' conftest.er1 >conftest.err
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4540 if test -n "$ac_declaration"; then
4541 echo '#ifdef __cplusplus' >>confdefs.h
4542 echo $ac_declaration >>confdefs.h
4543 echo '#endif' >>confdefs.h
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 DEPDIR="${am__leading_dot}deps"
4559 ac_config_commands="$ac_config_commands depfiles"
4562 am_make=${MAKE-make}
4563 cat > confinc << 'END'
4568 # If we don't find an include directive, just comment out the code.
4569 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4570 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4574 # First try GNU make style include.
4575 echo "include confinc" > confmf
4576 # We grep out `Entering directory' and `Leaving directory'
4577 # messages which can occur if `w' ends up in MAKEFLAGS.
4578 # In particular we don't look at `^make:' because GNU make might
4579 # be invoked under some other name (usually "gmake"), in which
4580 # case it prints its new name instead of `make'.
4581 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4586 # Now try BSD make style include.
4587 if test "$am__include" = "#"; then
4588 echo '.include "confinc"' > confmf
4589 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4590 am__include=.include
4597 echo "$as_me:$LINENO: result: $_am_result" >&5
4598 echo "${ECHO_T}$_am_result" >&6
4599 rm -f confinc confmf
4601 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4602 if test "${enable_dependency_tracking+set}" = set; then
4603 enableval="$enable_dependency_tracking"
4606 if test "x$enable_dependency_tracking" != xno; then
4607 am_depcomp="$ac_aux_dir/depcomp"
4612 if test "x$enable_dependency_tracking" != xno; then
4623 depcc="$CC" am_compiler_list=
4625 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4626 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4627 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4631 # We make a subdir and do the tests there. Otherwise we can end up
4632 # making bogus files that we don't know about and never remove. For
4633 # instance it was reported that on HP-UX the gcc test will end up
4634 # making a dummy file named `D' -- because `-MD' means `put the output
4637 # Copy depcomp to subdir because otherwise we won't find it if we're
4638 # using a relative directory.
4639 cp "$am_depcomp" conftest.dir
4641 # We will build objects and dependencies in a subdirectory because
4642 # it helps to detect inapplicable dependency modes. For instance
4643 # both Tru64's cc and ICC support -MD to output dependencies as a
4644 # side effect of compilation, but ICC will put the dependencies in
4645 # the current directory while Tru64 will put them in the object
4649 am_cv_CC_dependencies_compiler_type=none
4650 if test "$am_compiler_list" = ""; then
4651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4653 for depmode in $am_compiler_list; do
4654 # Setup a source with many dependencies, because some compilers
4655 # like to wrap large dependency lists on column 80 (with \), and
4656 # we should not choose a depcomp mode which is confused by this.
4658 # We need to recreate these files for each test, as the compiler may
4659 # overwrite some of them when testing with obscure command lines.
4660 # This happens at least with the AIX C compiler.
4662 for i in 1 2 3 4 5 6; do
4663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4665 # Solaris 8's {/usr,}/bin/sh.
4666 touch sub/conftst$i.h
4668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4672 # after this tag, mechanisms are not by side-effect, so they'll
4673 # only be used when explicitly requested
4674 if test "x$enable_dependency_tracking" = xyes; then
4682 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4683 # mode. It turns out that the SunPro C++ compiler does not properly
4684 # handle `-M -o', and we need to detect this.
4685 if depmode=$depmode \
4686 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4688 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4689 >/dev/null 2>conftest.err &&
4690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4691 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4693 # icc doesn't choke on unknown options, it will just issue warnings
4694 # or remarks (even with -Werror). So we grep stderr for any message
4695 # that says an option was ignored or not supported.
4696 # When given -MP, icc 7.0 and 7.1 complain thusly:
4697 # icc: Command line warning: ignoring option '-M'; no argument required
4698 # The diagnosis changed in icc 8.0:
4699 # icc: Command line remark: option '-MP' not supported
4700 if (grep 'ignoring option' conftest.err ||
4701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4702 am_cv_CC_dependencies_compiler_type=$depmode
4711 am_cv_CC_dependencies_compiler_type=none
4715 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4716 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4717 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4722 test "x$enable_dependency_tracking" != xno \
4723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4725 am__fastdepCC_FALSE='#'
4727 am__fastdepCC_TRUE='#'
4728 am__fastdepCC_FALSE=
4735 DUMP_PROGRAMS="ufsdump dump backup"
4743 cat >>confdefs.h <<\_ACEOF
4744 #define STATFS_OSF1 1
4749 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
4750 : ${USE_RUNDUMP=yes}
4761 GETCONF_LFS="XBS5_ILP32_OFFBIG"
4764 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
4767 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
4772 GETCONF_LFS="XBS5_ILP32_OFFBIG"
4773 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
4775 cat >>confdefs.h <<\_ACEOF
4776 #define AIX_TAPEIO 1
4780 cat >>confdefs.h <<\_ACEOF
4781 #define AIX_BACKUP 1
4785 m88k-motorola-sysv4)
4813 : ${USE_RUNDUMP=yes}
4815 cat >>confdefs.h <<\_ACEOF
4816 #define STATFS_ULTRIX 1
4823 cat >>confdefs.h <<\_ACEOF
4824 #define UWARE_TAPEIO 1
4835 cat >>confdefs.h <<\_ACEOF
4836 #define STATFS_SCO_OS5 1
4847 cat >>confdefs.h <<\_ACEOF
4848 #define IGNORE_TAR_ERRORS 1
4851 # Cygwin needs PATH to find cygwin1.dll
4853 cat >>confdefs.h <<\_ACEOF
4854 #define NEED_PATH_ENV 1
4858 cat >>confdefs.h <<\_ACEOF
4859 #define IGNORE_UID_CHECK 1
4863 cat >>confdefs.h <<\_ACEOF
4864 #define IGNORE_FSTAB 1
4868 cat >>confdefs.h <<\_ACEOF
4869 #define DONT_SUID_ROOT 1
4872 NEED_SETUID_CLIENT=false
4873 NEED_RUNTIME_PSEUDO_RELOC=true
4879 This machine, target type $target, is not known
4880 to be fully supported by this configure script. If the
4881 installation of Amanda on this system succeeds or needed
4882 any patches, please email amanda-hackers@amanda.org with
4883 the patches or an indication of the sucess or failure of
4884 the Amanda installation on your system.
4891 if test -n "$dump_returns_1"; then
4893 cat >>confdefs.h <<\_ACEOF
4894 #define DUMP_RETURNS_1 1
4899 if test -n "$xenix_tapeio"; then
4901 cat >>confdefs.h <<\_ACEOF
4902 #define XENIX_TAPEIO 1
4907 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES"
4908 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES"
4909 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS"
4910 AMANDA_LIBS="$KRB4LIBS $AMANDA_LIBS"
4911 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
4912 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
4913 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
4914 LIBS="$AMANDA_LIBS $LIBS"
4917 : ${MT_FILE_FLAG="-f"}
4920 cat >>confdefs.h <<_ACEOF
4921 #define MT_FILE_FLAG "$MT_FILE_FLAG"
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4933 # On Suns, sometimes $CPP names a directory.
4934 if test -n "$CPP" && test -d "$CPP"; then
4937 if test -z "$CPP"; then
4938 if test "${ac_cv_prog_CPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 # Double quotes because CPP needs to be expanded
4942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4945 for ac_c_preproc_warn_flag in '' yes
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4960 # include <limits.h>
4962 # include <assert.h>
4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null; then
4974 if test -s conftest.err; then
4975 ac_cpp_err=$ac_c_preproc_warn_flag
4976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4983 if test -z "$ac_cpp_err"; then
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 # Broken: fails on valid input.
4992 rm -f conftest.err conftest.$ac_ext
4994 # OK, works on sane cases. Now check whether non-existent headers
4995 # can be detected and how.
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_c_preproc_warn_flag
5014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5021 if test -z "$ac_cpp_err"; then
5022 # Broken: success on invalid input.
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5028 # Passes both tests.
5032 rm -f conftest.err conftest.$ac_ext
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.$ac_ext
5037 if $ac_preproc_ok; then
5049 echo "$as_me:$LINENO: result: $CPP" >&5
5050 echo "${ECHO_T}$CPP" >&6
5052 for ac_c_preproc_warn_flag in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat >conftest.$ac_ext <<_ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5067 # include <limits.h>
5069 # include <assert.h>
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076 grep -v '^ *+' conftest.er1 >conftest.err
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_c_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5090 if test -z "$ac_cpp_err"; then
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Broken: fails on valid input.
5099 rm -f conftest.err conftest.$ac_ext
5101 # OK, works on sane cases. Now check whether non-existent headers
5102 # can be detected and how.
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <ac_nonexistent.h>
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_c_preproc_warn_flag
5121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5128 if test -z "$ac_cpp_err"; then
5129 # Broken: success on invalid input.
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 # Passes both tests.
5139 rm -f conftest.err conftest.$ac_ext
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.err conftest.$ac_ext
5144 if $ac_preproc_ok; then
5147 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5155 ac_cpp='$CPP $CPPFLAGS'
5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5161 echo "$as_me:$LINENO: checking for egrep" >&5
5162 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5163 if test "${ac_cv_prog_egrep+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5167 then ac_cv_prog_egrep='grep -E'
5168 else ac_cv_prog_egrep='egrep'
5171 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5172 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5173 EGREP=$ac_cv_prog_egrep
5176 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5178 if test "${ac_cv_header_stdc+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -z "$ac_c_werror_flag"
5210 || test ! -s conftest.err'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest.$ac_objext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_header_stdc=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 ac_cv_header_stdc=no
5229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231 if test $ac_cv_header_stdc = yes; then
5232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5243 $EGREP "memchr" >/dev/null 2>&1; then
5246 ac_cv_header_stdc=no
5252 if test $ac_cv_header_stdc = yes; then
5253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5254 cat >conftest.$ac_ext <<_ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264 $EGREP "free" >/dev/null 2>&1; then
5267 ac_cv_header_stdc=no
5273 if test $ac_cv_header_stdc = yes; then
5274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5275 if test "$cross_compiling" = yes; then
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5285 #if ((' ' & 0x0FF) == 0x020)
5286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5289 # define ISLOWER(c) \
5290 (('a' <= (c) && (c) <= 'i') \
5291 || ('j' <= (c) && (c) <= 'r') \
5292 || ('s' <= (c) && (c) <= 'z'))
5293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5301 for (i = 0; i < 256; i++)
5302 if (XOR (islower (i), ISLOWER (i))
5303 || toupper (i) != TOUPPER (i))
5308 rm -f conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5321 echo "$as_me: program exited with status $ac_status" >&5
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_cv_header_stdc=no
5328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5333 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5334 if test $ac_cv_header_stdc = yes; then
5336 cat >>confdefs.h <<\_ACEOF
5337 #define STDC_HEADERS 1
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5353 inttypes.h stdint.h unistd.h
5355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 echo "$as_me:$LINENO: checking for $ac_header" >&5
5357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5369 #include <$ac_header>
5371 rm -f conftest.$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_c_werror_flag"
5381 || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 eval "$as_ac_Header=yes"
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 eval "$as_ac_Header=no"
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5405 cat >>confdefs.h <<_ACEOF
5406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5414 # ------ AX CREATE STDINT H -------------------------------------
5415 echo "$as_me:$LINENO: checking for stdint types" >&5
5416 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
5417 ac_stdint_h=`echo common-src/amanda-int.h`
5418 # try to shortcircuit - if the default include path of the compiler
5419 # can find a "stdint.h" header then we assume that all compilers can.
5420 if test "${ac_cv_header_stdint_t+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5425 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5426 old_CFLAGS="$CFLAGS" ; CFLAGS=""
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5437 int_least32_t v = 0;
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5446 grep -v '^ *+' conftest.er1 >conftest.err
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -z "$ac_c_werror_flag"
5452 || test ! -s conftest.err'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_cv_stdint_result="(assuming C99 compatible system)"
5465 ac_cv_header_stdint_t="stdint.h";
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5470 ac_cv_header_stdint_t=""
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 CXXFLAGS="$old_CXXFLAGS"
5474 CPPFLAGS="$old_CPPFLAGS"
5475 CFLAGS="$old_CFLAGS"
5479 v="... $ac_cv_header_stdint_h"
5480 if test "$ac_stdint_h" = "stdint.h" ; then
5481 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
5482 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
5483 elif test "$ac_stdint_h" = "inttypes.h" ; then
5484 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
5485 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
5486 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5487 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
5488 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
5490 ac_cv_header_stdint="$ac_cv_header_stdint_t"
5491 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
5492 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
5495 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5498 inttype_headers=`echo | sed -e 's/,/ /g'`
5500 ac_cv_stdint_result="(no helpful system typedefs seen)"
5501 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5502 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5503 if test "${ac_cv_header_stdint_x+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5508 echo "$as_me:$LINENO: result: (..)" >&5
5509 echo "${ECHO_T}(..)" >&6
5510 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5511 unset ac_cv_type_uintptr_t
5512 unset ac_cv_type_uint64_t
5513 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5514 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5515 if test "${ac_cv_type_uintptr_t+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5529 if ((uintptr_t *) 0)
5531 if (sizeof (uintptr_t))
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_type_uintptr_t=yes
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_cv_type_uintptr_t=no
5566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5568 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5569 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5570 if test $ac_cv_type_uintptr_t = yes; then
5571 ac_cv_header_stdint_x=$i
5576 echo "$as_me:$LINENO: checking for uint64_t" >&5
5577 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5578 if test "${ac_cv_type_uint64_t+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5594 if (sizeof (uint64_t))
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_type_uint64_t=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_cv_type_uint64_t=no
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5632 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5633 if test $ac_cv_type_uint64_t = yes; then
5639 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
5642 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5643 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5646 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5647 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5649 if test "_$ac_cv_header_stdint_x" = "_" ; then
5650 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5651 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5652 if test "${ac_cv_header_stdint_o+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5657 echo "$as_me:$LINENO: result: (..)" >&5
5658 echo "${ECHO_T}(..)" >&6
5659 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5660 unset ac_cv_type_uint32_t
5661 unset ac_cv_type_uint64_t
5662 echo "$as_me:$LINENO: checking for uint32_t" >&5
5663 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5664 if test "${ac_cv_type_uint32_t+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5680 if (sizeof (uint32_t))
5686 rm -f conftest.$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_type_uint32_t=yes
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_type_uint32_t=no
5715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5718 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5719 if test $ac_cv_type_uint32_t = yes; then
5720 ac_cv_header_stdint_o=$i
5725 echo "$as_me:$LINENO: checking for uint64_t" >&5
5726 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5727 if test "${ac_cv_type_uint64_t+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5743 if (sizeof (uint64_t))
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag"
5759 || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_cv_type_uint64_t=yes
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ac_cv_type_uint64_t=no
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5781 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5782 if test $ac_cv_type_uint64_t = yes; then
5788 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
5791 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5792 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5795 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5796 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5799 if test "_$ac_cv_header_stdint_x" = "_" ; then
5800 if test "_$ac_cv_header_stdint_o" = "_" ; then
5801 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5802 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5803 if test "${ac_cv_header_stdint_u+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5808 echo "$as_me:$LINENO: result: (..)" >&5
5809 echo "${ECHO_T}(..)" >&6
5810 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
5811 unset ac_cv_type_u_int32_t
5812 unset ac_cv_type_u_int64_t
5813 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5814 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5815 if test "${ac_cv_type_u_int32_t+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 cat >conftest.$ac_ext <<_ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5829 if ((u_int32_t *) 0)
5831 if (sizeof (u_int32_t))
5837 rm -f conftest.$ac_objext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag"
5847 || test ! -s conftest.err'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest.$ac_objext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5859 ac_cv_type_u_int32_t=yes
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_type_u_int32_t=no
5866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5869 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5870 if test $ac_cv_type_u_int32_t = yes; then
5871 ac_cv_header_stdint_u=$i
5876 echo "$as_me:$LINENO: checking for u_int64_t" >&5
5877 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5878 if test "${ac_cv_type_u_int64_t+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 cat >conftest.$ac_ext <<_ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5892 if ((u_int64_t *) 0)
5894 if (sizeof (u_int64_t))
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_type_u_int64_t=yes
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 ac_cv_type_u_int64_t=no
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5932 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5933 if test $ac_cv_type_u_int64_t = yes; then
5939 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
5942 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5943 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5946 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
5947 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
5950 if test "_$ac_cv_header_stdint_x" = "_" ; then
5951 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
5952 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
5953 echo "$as_me:$LINENO: result: (..)" >&5
5954 echo "${ECHO_T}(..)" >&6
5955 echo "$as_me:$LINENO: checking for char" >&5
5956 echo $ECHO_N "checking for char... $ECHO_C" >&6
5957 if test "${ac_cv_type_char+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 cat >conftest.$ac_ext <<_ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 $ac_includes_default
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6010 echo "${ECHO_T}$ac_cv_type_char" >&6
6012 echo "$as_me:$LINENO: checking size of char" >&5
6013 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6014 if test "${ac_cv_sizeof_char+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test "$ac_cv_type_char" = yes; then
6018 # The cast to unsigned long works around a bug in the HP C Compiler
6019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6021 # This bug is HP SR number 8606223364.
6022 if test "$cross_compiling" = yes; then
6023 # Depending upon the size, compute the lo and hi bounds.
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 $ac_includes_default
6034 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6041 rm -f conftest.$ac_objext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043 (eval $ac_compile) 2>conftest.er1
6045 grep -v '^ *+' conftest.er1 >conftest.err
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag"
6051 || test ! -s conftest.err'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6075 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_hi=$ac_mid; break
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_lo=`expr $ac_mid + 1`
6110 if test $ac_lo -le $ac_mid; then
6114 ac_mid=`expr 2 '*' $ac_mid + 1`
6116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 $ac_includes_default
6132 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6173 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_lo=$ac_mid; break
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_hi=`expr '(' $ac_mid ')' - 1`
6208 if test $ac_mid -le $ac_hi; then
6212 ac_mid=`expr 2 '*' $ac_mid`
6214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225 # Binary search between lo and hi bounds.
6226 while test "x$ac_lo" != "x$ac_hi"; do
6227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6238 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_lo=`expr '(' $ac_mid ')' + 1`
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ?*) ac_cv_sizeof_char=$ac_lo;;
6278 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6279 See \`config.log' for more details." >&5
6280 echo "$as_me: error: cannot compute sizeof (char), 77
6281 See \`config.log' for more details." >&2;}
6282 { (exit 1); exit 1; }; } ;;
6285 if test "$cross_compiling" = yes; then
6286 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6287 See \`config.log' for more details." >&5
6288 echo "$as_me: error: cannot run test program while cross compiling
6289 See \`config.log' for more details." >&2;}
6290 { (exit 1); exit 1; }; }
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 $ac_includes_default
6299 long longval () { return (long) (sizeof (char)); }
6300 unsigned long ulongval () { return (long) (sizeof (char)); }
6307 FILE *f = fopen ("conftest.val", "w");
6310 if (((long) (sizeof (char))) < 0)
6312 long i = longval ();
6313 if (i != ((long) (sizeof (char))))
6315 fprintf (f, "%ld\n", i);
6319 unsigned long i = ulongval ();
6320 if (i != ((long) (sizeof (char))))
6322 fprintf (f, "%lu\n", i);
6324 exit (ferror (f) || fclose (f) != 0);
6330 rm -f conftest$ac_exeext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_sizeof_char=`cat conftest.val`
6343 echo "$as_me: program exited with status $ac_status" >&5
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6349 See \`config.log' for more details." >&5
6350 echo "$as_me: error: cannot compute sizeof (char), 77
6351 See \`config.log' for more details." >&2;}
6352 { (exit 1); exit 1; }; }
6354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6363 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6364 cat >>confdefs.h <<_ACEOF
6365 #define SIZEOF_CHAR $ac_cv_sizeof_char
6369 echo "$as_me:$LINENO: checking for short" >&5
6370 echo $ECHO_N "checking for short... $ECHO_C" >&6
6371 if test "${ac_cv_type_short+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_type_short=yes
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 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6424 echo "${ECHO_T}$ac_cv_type_short" >&6
6426 echo "$as_me:$LINENO: checking size of short" >&5
6427 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6428 if test "${ac_cv_sizeof_short+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 if test "$ac_cv_type_short" = yes; then
6432 # The cast to unsigned long works around a bug in the HP C Compiler
6433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6435 # This bug is HP SR number 8606223364.
6436 if test "$cross_compiling" = yes; then
6437 # Depending upon the size, compute the lo and hi bounds.
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6448 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6455 rm -f conftest.$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>conftest.er1
6459 grep -v '^ *+' conftest.er1 >conftest.err
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -z "$ac_c_werror_flag"
6465 || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6479 cat >conftest.$ac_ext <<_ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6489 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6496 rm -f conftest.$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6500 grep -v '^ *+' conftest.er1 >conftest.err
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_hi=$ac_mid; break
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_lo=`expr $ac_mid + 1`
6524 if test $ac_lo -le $ac_mid; then
6528 ac_mid=`expr 2 '*' $ac_mid + 1`
6530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6546 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1 >conftest.err
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6577 cat >conftest.$ac_ext <<_ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 $ac_includes_default
6587 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6598 grep -v '^ *+' conftest.er1 >conftest.err
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_lo=$ac_mid; break
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_hi=`expr '(' $ac_mid ')' - 1`
6622 if test $ac_mid -le $ac_hi; then
6626 ac_mid=`expr 2 '*' $ac_mid`
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 # Binary search between lo and hi bounds.
6640 while test "x$ac_lo" != "x$ac_hi"; do
6641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 $ac_includes_default
6652 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_lo=`expr '(' $ac_mid ')' + 1`
6688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 ?*) ac_cv_sizeof_short=$ac_lo;;
6692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot compute sizeof (short), 77
6695 See \`config.log' for more details." >&2;}
6696 { (exit 1); exit 1; }; } ;;
6699 if test "$cross_compiling" = yes; then
6700 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6701 See \`config.log' for more details." >&5
6702 echo "$as_me: error: cannot run test program while cross compiling
6703 See \`config.log' for more details." >&2;}
6704 { (exit 1); exit 1; }; }
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6713 long longval () { return (long) (sizeof (short)); }
6714 unsigned long ulongval () { return (long) (sizeof (short)); }
6721 FILE *f = fopen ("conftest.val", "w");
6724 if (((long) (sizeof (short))) < 0)
6726 long i = longval ();
6727 if (i != ((long) (sizeof (short))))
6729 fprintf (f, "%ld\n", i);
6733 unsigned long i = ulongval ();
6734 if (i != ((long) (sizeof (short))))
6736 fprintf (f, "%lu\n", i);
6738 exit (ferror (f) || fclose (f) != 0);
6744 rm -f conftest$ac_exeext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746 (eval $ac_link) 2>&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_sizeof_short=`cat conftest.val`
6757 echo "$as_me: program exited with status $ac_status" >&5
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6763 See \`config.log' for more details." >&5
6764 echo "$as_me: error: cannot compute sizeof (short), 77
6765 See \`config.log' for more details." >&2;}
6766 { (exit 1); exit 1; }; }
6768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6773 ac_cv_sizeof_short=0
6776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6777 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6778 cat >>confdefs.h <<_ACEOF
6779 #define SIZEOF_SHORT $ac_cv_sizeof_short
6783 echo "$as_me:$LINENO: checking for int" >&5
6784 echo $ECHO_N "checking for int... $ECHO_C" >&6
6785 if test "${ac_cv_type_int+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
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 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6838 echo "${ECHO_T}$ac_cv_type_int" >&6
6840 echo "$as_me:$LINENO: checking size of int" >&5
6841 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6842 if test "${ac_cv_sizeof_int+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 if test "$ac_cv_type_int" = yes; then
6846 # The cast to unsigned long works around a bug in the HP C Compiler
6847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6849 # This bug is HP SR number 8606223364.
6850 if test "$cross_compiling" = yes; then
6851 # Depending upon the size, compute the lo and hi bounds.
6852 cat >conftest.$ac_ext <<_ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 $ac_includes_default
6862 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6873 grep -v '^ *+' conftest.er1 >conftest.err
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6903 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_hi=$ac_mid; break
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_lo=`expr $ac_mid + 1`
6938 if test $ac_lo -le $ac_mid; then
6942 ac_mid=`expr 2 '*' $ac_mid + 1`
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 $ac_includes_default
6960 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969 (eval $ac_compile) 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest.$ac_objext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 $ac_includes_default
7001 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -z "$ac_c_werror_flag"
7018 || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest.$ac_objext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_lo=$ac_mid; break
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_hi=`expr '(' $ac_mid ')' - 1`
7036 if test $ac_mid -le $ac_hi; then
7040 ac_mid=`expr 2 '*' $ac_mid`
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 # Binary search between lo and hi bounds.
7054 while test "x$ac_lo" != "x$ac_hi"; do
7055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7066 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ac_lo=`expr '(' $ac_mid ')' + 1`
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105 ?*) ac_cv_sizeof_int=$ac_lo;;
7106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot compute sizeof (int), 77
7109 See \`config.log' for more details." >&2;}
7110 { (exit 1); exit 1; }; } ;;
7113 if test "$cross_compiling" = yes; then
7114 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: cannot run test program while cross compiling
7117 See \`config.log' for more details." >&2;}
7118 { (exit 1); exit 1; }; }
7120 cat >conftest.$ac_ext <<_ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 long longval () { return (long) (sizeof (int)); }
7128 unsigned long ulongval () { return (long) (sizeof (int)); }
7135 FILE *f = fopen ("conftest.val", "w");
7138 if (((long) (sizeof (int))) < 0)
7140 long i = longval ();
7141 if (i != ((long) (sizeof (int))))
7143 fprintf (f, "%ld\n", i);
7147 unsigned long i = ulongval ();
7148 if (i != ((long) (sizeof (int))))
7150 fprintf (f, "%lu\n", i);
7152 exit (ferror (f) || fclose (f) != 0);
7158 rm -f conftest$ac_exeext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160 (eval $ac_link) 2>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_sizeof_int=`cat conftest.val`
7171 echo "$as_me: program exited with status $ac_status" >&5
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7177 See \`config.log' for more details." >&5
7178 echo "$as_me: error: cannot compute sizeof (int), 77
7179 See \`config.log' for more details." >&2;}
7180 { (exit 1); exit 1; }; }
7182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7191 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7192 cat >>confdefs.h <<_ACEOF
7193 #define SIZEOF_INT $ac_cv_sizeof_int
7197 echo "$as_me:$LINENO: checking for long" >&5
7198 echo $ECHO_N "checking for long... $ECHO_C" >&6
7199 if test "${ac_cv_type_long+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -z "$ac_c_werror_flag"
7230 || test ! -s conftest.err'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; } &&
7236 { ac_try='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
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 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7252 echo "${ECHO_T}$ac_cv_type_long" >&6
7254 echo "$as_me:$LINENO: checking size of long" >&5
7255 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7256 if test "${ac_cv_sizeof_long+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test "$ac_cv_type_long" = yes; then
7260 # The cast to unsigned long works around a bug in the HP C Compiler
7261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7263 # This bug is HP SR number 8606223364.
7264 if test "$cross_compiling" = yes; then
7265 # Depending upon the size, compute the lo and hi bounds.
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 $ac_includes_default
7276 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7307 cat >conftest.$ac_ext <<_ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7317 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7324 rm -f conftest.$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 (eval $ac_compile) 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try='test -z "$ac_c_werror_flag"
7334 || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try='test -s conftest.$ac_objext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_hi=$ac_mid; break
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_lo=`expr $ac_mid + 1`
7352 if test $ac_lo -le $ac_mid; then
7356 ac_mid=`expr 2 '*' $ac_mid + 1`
7358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7374 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7381 rm -f conftest.$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7415 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7422 rm -f conftest.$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_lo=$ac_mid; break
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_hi=`expr '(' $ac_mid ')' - 1`
7450 if test $ac_mid -le $ac_hi; then
7454 ac_mid=`expr 2 '*' $ac_mid`
7456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7467 # Binary search between lo and hi bounds.
7468 while test "x$ac_lo" != "x$ac_hi"; do
7469 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7470 cat >conftest.$ac_ext <<_ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7480 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7487 rm -f conftest.$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>conftest.er1
7491 grep -v '^ *+' conftest.er1 >conftest.err
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -z "$ac_c_werror_flag"
7497 || test ! -s conftest.err'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; } &&
7503 { ac_try='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7514 ac_lo=`expr '(' $ac_mid ')' + 1`
7516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7519 ?*) ac_cv_sizeof_long=$ac_lo;;
7520 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot compute sizeof (long), 77
7523 See \`config.log' for more details." >&2;}
7524 { (exit 1); exit 1; }; } ;;
7527 if test "$cross_compiling" = yes; then
7528 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7529 See \`config.log' for more details." >&5
7530 echo "$as_me: error: cannot run test program while cross compiling
7531 See \`config.log' for more details." >&2;}
7532 { (exit 1); exit 1; }; }
7534 cat >conftest.$ac_ext <<_ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 $ac_includes_default
7541 long longval () { return (long) (sizeof (long)); }
7542 unsigned long ulongval () { return (long) (sizeof (long)); }
7549 FILE *f = fopen ("conftest.val", "w");
7552 if (((long) (sizeof (long))) < 0)
7554 long i = longval ();
7555 if (i != ((long) (sizeof (long))))
7557 fprintf (f, "%ld\n", i);
7561 unsigned long i = ulongval ();
7562 if (i != ((long) (sizeof (long))))
7564 fprintf (f, "%lu\n", i);
7566 exit (ferror (f) || fclose (f) != 0);
7572 rm -f conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_sizeof_long=`cat conftest.val`
7585 echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7591 See \`config.log' for more details." >&5
7592 echo "$as_me: error: cannot compute sizeof (long), 77
7593 See \`config.log' for more details." >&2;}
7594 { (exit 1); exit 1; }; }
7596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7604 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7605 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7606 cat >>confdefs.h <<_ACEOF
7607 #define SIZEOF_LONG $ac_cv_sizeof_long
7611 echo "$as_me:$LINENO: checking for void*" >&5
7612 echo $ECHO_N "checking for void*... $ECHO_C" >&6
7613 if test "${ac_cv_type_voidp+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 $ac_includes_default
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>conftest.er1
7638 grep -v '^ *+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag"
7644 || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try='test -s conftest.$ac_objext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_cv_type_voidp=yes
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 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7666 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7668 echo "$as_me:$LINENO: checking size of void*" >&5
7669 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
7670 if test "${ac_cv_sizeof_voidp+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 if test "$ac_cv_type_voidp" = yes; then
7674 # The cast to unsigned long works around a bug in the HP C Compiler
7675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7677 # This bug is HP SR number 8606223364.
7678 if test "$cross_compiling" = yes; then
7679 # Depending upon the size, compute the lo and hi bounds.
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7690 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7731 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7738 rm -f conftest.$ac_objext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7740 (eval $ac_compile) 2>conftest.er1
7742 grep -v '^ *+' conftest.er1 >conftest.err
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -z "$ac_c_werror_flag"
7748 || test ! -s conftest.err'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest.$ac_objext'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 ac_hi=$ac_mid; break
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_lo=`expr $ac_mid + 1`
7766 if test $ac_lo -le $ac_mid; then
7770 ac_mid=`expr 2 '*' $ac_mid + 1`
7772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 cat >conftest.$ac_ext <<_ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 $ac_includes_default
7788 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7795 rm -f conftest.$ac_objext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797 (eval $ac_compile) 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } &&
7804 { ac_try='test -z "$ac_c_werror_flag"
7805 || test ! -s conftest.err'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try='test -s conftest.$ac_objext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7819 cat >conftest.$ac_ext <<_ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 $ac_includes_default
7829 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
7836 rm -f conftest.$ac_objext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7838 (eval $ac_compile) 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag"
7846 || test ! -s conftest.err'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try='test -s conftest.$ac_objext'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_lo=$ac_mid; break
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_hi=`expr '(' $ac_mid ')' - 1`
7864 if test $ac_mid -le $ac_hi; then
7868 ac_mid=`expr 2 '*' $ac_mid`
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7881 # Binary search between lo and hi bounds.
7882 while test "x$ac_lo" != "x$ac_hi"; do
7883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7894 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7901 rm -f conftest.$ac_objext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_lo=`expr '(' $ac_mid ')' + 1`
7930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7933 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7934 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot compute sizeof (void*), 77
7937 See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; } ;;
7941 if test "$cross_compiling" = yes; then
7942 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7943 See \`config.log' for more details." >&5
7944 echo "$as_me: error: cannot run test program while cross compiling
7945 See \`config.log' for more details." >&2;}
7946 { (exit 1); exit 1; }; }
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 $ac_includes_default
7955 long longval () { return (long) (sizeof (void*)); }
7956 unsigned long ulongval () { return (long) (sizeof (void*)); }
7963 FILE *f = fopen ("conftest.val", "w");
7966 if (((long) (sizeof (void*))) < 0)
7968 long i = longval ();
7969 if (i != ((long) (sizeof (void*))))
7971 fprintf (f, "%ld\n", i);
7975 unsigned long i = ulongval ();
7976 if (i != ((long) (sizeof (void*))))
7978 fprintf (f, "%lu\n", i);
7980 exit (ferror (f) || fclose (f) != 0);
7986 rm -f conftest$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_sizeof_voidp=`cat conftest.val`
7999 echo "$as_me: program exited with status $ac_status" >&5
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8005 See \`config.log' for more details." >&5
8006 echo "$as_me: error: cannot compute sizeof (void*), 77
8007 See \`config.log' for more details." >&2;}
8008 { (exit 1); exit 1; }; }
8010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8015 ac_cv_sizeof_voidp=0
8018 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8019 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
8020 cat >>confdefs.h <<_ACEOF
8021 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8025 ac_cv_stdint_char_model=""
8026 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
8027 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
8028 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
8029 ac_cv_stdint_long_model=""
8030 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
8031 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
8032 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
8033 name="$ac_cv_stdint_long_model"
8034 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
8035 122/242) name="$name, IP16 (standard 16bit machine)" ;;
8036 122/244) name="$name, LP32 (standard 32bit mac/win)" ;;
8037 122/*) name="$name (unusual int16 model)" ;;
8038 124/444) name="$name, ILP32 (standard 32bit unixish)" ;;
8039 124/488) name="$name, LP64 (standard 64bit unixish)" ;;
8040 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;;
8041 124/*) name="$name (unusual int32 model)" ;;
8042 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;;
8043 128/*) name="$name (unusual int64 model)" ;;
8044 222/*|444/*) name="$name (unusual dsptype)" ;;
8045 *) name="$name (very unusal model)" ;;
8047 echo "$as_me:$LINENO: result: combined for stdint datatype model... $name" >&5
8048 echo "${ECHO_T}combined for stdint datatype model... $name" >&6
8051 if test "_$ac_cv_header_stdint_x" != "_" ; then
8052 ac_cv_header_stdint="$ac_cv_header_stdint_x"
8053 elif test "_$ac_cv_header_stdint_o" != "_" ; then
8054 ac_cv_header_stdint="$ac_cv_header_stdint_o"
8055 elif test "_$ac_cv_header_stdint_u" != "_" ; then
8056 ac_cv_header_stdint="$ac_cv_header_stdint_u"
8058 ac_cv_header_stdint="stddef.h"
8061 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
8062 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
8063 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
8064 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
8065 unset ac_cv_type_int_least32_t
8066 unset ac_cv_type_int_fast32_t
8067 echo "$as_me:$LINENO: checking for int_least32_t" >&5
8068 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
8069 if test "${ac_cv_type_int_least32_t+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <$ac_cv_header_stdint>
8083 if ((int_least32_t *) 0)
8085 if (sizeof (int_least32_t))
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>conftest.er1
8095 grep -v '^ *+' conftest.er1 >conftest.err
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -z "$ac_c_werror_flag"
8101 || test ! -s conftest.err'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_cv_type_int_least32_t=yes
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_cv_type_int_least32_t=no
8120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8122 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8123 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8125 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
8126 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
8127 if test "${ac_cv_type_int_fast32_t+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include<$ac_cv_header_stdint>
8141 if ((int_fast32_t *) 0)
8143 if (sizeof (int_fast32_t))
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 ac_cv_type_int_fast32_t=yes
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_cv_type_int_fast32_t=no
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8181 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8183 echo "$as_me:$LINENO: checking for intmax_t" >&5
8184 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8185 if test "${ac_cv_type_intmax_t+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 #include <$ac_cv_header_stdint>
8201 if (sizeof (intmax_t))
8207 rm -f conftest.$ac_objext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_type_intmax_t=yes
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_cv_type_intmax_t=no
8236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8239 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8242 fi # shortcircut to system "stdint.h"
8243 # ------------------ PREPARE VARIABLES ------------------------------
8244 if test "$GCC" = "yes" ; then
8245 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
8247 ac_cv_stdint_message="using $CC"
8250 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
8251 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
8253 # ----------------- DONE inttypes.h checks START header -------------
8254 ac_config_commands="$ac_config_commands $ac_stdint_h"
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy $ac_prog; ac_word=$2
8262 echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8264 if test "${ac_cv_path_AR+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_cv_path_AR="$AR" # Let the user override the test with a path.
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $LOCSYSPATH
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 if test -n "$AR"; then
8292 echo "$as_me:$LINENO: result: $AR" >&5
8293 echo "${ECHO_T}$AR" >&6
8295 echo "$as_me:$LINENO: result: no" >&5
8296 echo "${ECHO_T}no" >&6
8299 test -n "$AR" && break
8303 for ac_prog in gawk mawk nawk awk
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8309 if test "${ac_cv_prog_AWK+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 if test -n "$AWK"; then
8313 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_AWK="$ac_prog"
8323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 if test -n "$AWK"; then
8333 echo "$as_me:$LINENO: result: $AWK" >&5
8334 echo "${ECHO_T}$AWK" >&6
8336 echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8340 test -n "$AWK" && break
8345 echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
8346 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
8347 if test "${amanda_cv_awk_var_assignment+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 echo 'BEGIN{print i; exit}' > conftest.awk
8352 result=`$AWK -f conftest.awk i=xx | wc -c`
8353 if test "$result" -le 1; then
8354 result=`$AWK -f conftest.awk -v i=xx | wc -c`
8355 if test "$result" -le 1; then
8356 amanda_cv_awk_var_assignment=no
8358 amanda_cv_awk_var_assignment="yes with -v"
8361 amanda_cv_awk_var_assignment="yes"
8367 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
8368 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
8369 AWK_VAR_ASSIGNMENT_OPT=
8370 case "$amanda_cv_awk_var_assignment" in
8372 HAVE_AWK_WITH_VAR=no
8375 HAVE_AWK_WITH_VAR=yes
8378 HAVE_AWK_WITH_VAR=yes
8379 AWK_VAR_ASSIGNMENT_OPT=-v
8385 if test "$amanda_cv_awk_var_assignment" = no; then
8387 { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&5
8388 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&2;}
8391 for ac_prog in 'bison -y' byacc
8393 # Extract the first word of "$ac_prog", so it can be a program name with args.
8394 set dummy $ac_prog; ac_word=$2
8395 echo "$as_me:$LINENO: checking for $ac_word" >&5
8396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8397 if test "${ac_cv_prog_YACC+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 if test -n "$YACC"; then
8401 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_YACC="$ac_prog"
8411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 YACC=$ac_cv_prog_YACC
8420 if test -n "$YACC"; then
8421 echo "$as_me:$LINENO: result: $YACC" >&5
8422 echo "${ECHO_T}$YACC" >&6
8424 echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6
8428 test -n "$YACC" && break
8430 test -n "$YACC" || YACC="yacc"
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy $ac_prog; ac_word=$2
8436 echo "$as_me:$LINENO: checking for $ac_word" >&5
8437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8438 if test "${ac_cv_path_CAT+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $LOCSYSPATH
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 if test -n "$CAT"; then
8466 echo "$as_me:$LINENO: result: $CAT" >&5
8467 echo "${ECHO_T}$CAT" >&6
8469 echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6
8473 test -n "$CAT" && break
8476 if test -z "$CAT"; then
8479 for ac_prog in compress
8481 # Extract the first word of "$ac_prog", so it can be a program name with args.
8482 set dummy $ac_prog; ac_word=$2
8483 echo "$as_me:$LINENO: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8485 if test "${ac_cv_path_COMPRESS+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $LOCSYSPATH
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
8501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 COMPRESS=$ac_cv_path_COMPRESS
8512 if test -n "$COMPRESS"; then
8513 echo "$as_me:$LINENO: result: $COMPRESS" >&5
8514 echo "${ECHO_T}$COMPRESS" >&6
8516 echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6
8520 test -n "$COMPRESS" && break
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 echo "$as_me:$LINENO: checking for $ac_word" >&5
8528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8529 if test "${ac_cv_path_DD+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 ac_cv_path_DD="$DD" # Let the user override the test with a path.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $LOCSYSPATH
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 if test -n "$DD"; then
8557 echo "$as_me:$LINENO: result: $DD" >&5
8558 echo "${ECHO_T}$DD" >&6
8560 echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8564 test -n "$DD" && break
8567 for ac_prog in egrep
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 echo "$as_me:$LINENO: checking for $ac_word" >&5
8572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8573 if test "${ac_cv_path_EGREP+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $LOCSYSPATH
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
8589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 EGREP=$ac_cv_path_EGREP
8600 if test -n "$EGREP"; then
8601 echo "$as_me:$LINENO: result: $EGREP" >&5
8602 echo "${ECHO_T}$EGREP" >&6
8604 echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6
8608 test -n "$EGREP" && break
8611 for ac_prog in getconf
8613 # Extract the first word of "$ac_prog", so it can be a program name with args.
8614 set dummy $ac_prog; ac_word=$2
8615 echo "$as_me:$LINENO: checking for $ac_word" >&5
8616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8617 if test "${ac_cv_path_GETCONF+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $SYSPATH
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
8633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 GETCONF=$ac_cv_path_GETCONF
8644 if test -n "$GETCONF"; then
8645 echo "$as_me:$LINENO: result: $GETCONF" >&5
8646 echo "${ECHO_T}$GETCONF" >&6
8648 echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6
8652 test -n "$GETCONF" && break
8656 for ac_prog in gnuplot
8658 # Extract the first word of "$ac_prog", so it can be a program name with args.
8659 set dummy $ac_prog; ac_word=$2
8660 echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662 if test "${ac_cv_path_GNUPLOT+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $LOCSYSPATH
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8677 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
8678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 GNUPLOT=$ac_cv_path_GNUPLOT
8689 if test -n "$GNUPLOT"; then
8690 echo "$as_me:$LINENO: result: $GNUPLOT" >&5
8691 echo "${ECHO_T}$GNUPLOT" >&6
8693 echo "$as_me:$LINENO: result: no" >&5
8694 echo "${ECHO_T}no" >&6
8697 test -n "$GNUPLOT" && break
8700 if test -z "$GNUPLOT"; then
8702 { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&5
8703 echo "$as_me: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&2;}
8708 # Extract the first word of "$ac_prog", so it can be a program name with args.
8709 set dummy $ac_prog; ac_word=$2
8710 echo "$as_me:$LINENO: checking for $ac_word" >&5
8711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8712 if test "${ac_cv_path_GREP+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $LOCSYSPATH
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
8728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 GREP=$ac_cv_path_GREP
8739 if test -n "$GREP"; then
8740 echo "$as_me:$LINENO: result: $GREP" >&5
8741 echo "${ECHO_T}$GREP" >&6
8743 echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6
8747 test -n "$GREP" && break
8750 if test -z "$GREP"; then
8754 cat >>confdefs.h <<_ACEOF
8755 #define GREP "$GREP"
8759 for ac_prog in gtar gnutar tar
8761 # Extract the first word of "$ac_prog", so it can be a program name with args.
8762 set dummy $ac_prog; ac_word=$2
8763 echo "$as_me:$LINENO: checking for $ac_word" >&5
8764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8765 if test "${ac_cv_path_GNUTAR+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $LOCSYSPATH
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 GNUTAR=$ac_cv_path_GNUTAR
8792 if test -n "$GNUTAR"; then
8793 echo "$as_me:$LINENO: result: $GNUTAR" >&5
8794 echo "${ECHO_T}$GNUTAR" >&6
8796 echo "$as_me:$LINENO: result: no" >&5
8797 echo "${ECHO_T}no" >&6
8800 test -n "$GNUTAR" && break
8803 if test ! -z "$GNUTAR"; then
8804 case "`\"$GNUTAR\" --version 2>&1`" in
8805 *GNU*tar* | *Free*paxutils* )
8807 cat >>confdefs.h <<_ACEOF
8808 #define GNUTAR "$GNUTAR"
8813 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
8814 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
8820 if test "x$SAMBA_CLIENT" != "xno"
8821 then for ac_prog in smbclient
8823 # Extract the first word of "$ac_prog", so it can be a program name with args.
8824 set dummy $ac_prog; ac_word=$2
8825 echo "$as_me:$LINENO: checking for $ac_word" >&5
8826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8827 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 case $SAMBA_CLIENT in
8832 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $LOCSYSPATH
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8842 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
8843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
8854 if test -n "$SAMBA_CLIENT"; then
8855 echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
8856 echo "${ECHO_T}$SAMBA_CLIENT" >&6
8858 echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6
8862 test -n "$SAMBA_CLIENT" && break
8867 if test ! -z "$SAMBA_CLIENT"; then
8868 case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
8872 *"Connection to not.a.host.name failed"*)
8876 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
8877 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
8881 if test -n "$SAMBA_CLIENT"; then
8883 cat >>confdefs.h <<_ACEOF
8884 #define SAMBA_CLIENT "$SAMBA_CLIENT"
8888 cat >>confdefs.h <<_ACEOF
8889 #define SAMBA_VERSION $smbversion
8899 # Extract the first word of "$ac_prog", so it can be a program name with args.
8900 set dummy $ac_prog; ac_word=$2
8901 echo "$as_me:$LINENO: checking for $ac_word" >&5
8902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8903 if test "${ac_cv_path_GZIP+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $LOCSYSPATH
8915 test -z "$as_dir" && as_dir=.
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 GZIP=$ac_cv_path_GZIP
8930 if test -n "$GZIP"; then
8931 echo "$as_me:$LINENO: result: $GZIP" >&5
8932 echo "${ECHO_T}$GZIP" >&6
8934 echo "$as_me:$LINENO: result: no" >&5
8935 echo "${ECHO_T}no" >&6
8938 test -n "$GZIP" && break
8941 if test "$GZIP"; then
8943 cat >>confdefs.h <<\_ACEOF
8947 COMPRESS_PATH="$GZIP"
8948 COMPRESS_SUFFIX=".gz"
8949 COMPRESS_FAST_OPT="--fast"
8950 COMPRESS_BEST_OPT="--best"
8951 UNCOMPRESS_PATH="$GZIP"
8952 UNCOMPRESS_OPT="-dc"
8954 if test "$COMPRESS"; then
8955 COMPRESS_PATH="$COMPRESS"
8956 COMPRESS_SUFFIX=".Z"
8957 COMPRESS_FAST_OPT="-f"
8958 COMPRESS_BEST_OPT="-f"
8959 UNCOMPRESS_PATH="$COMPRESS"
8960 UNCOMPRESS_OPT="-dc"
8962 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&5
8963 echo "$as_me: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&2;}
8964 COMPRESS_PATH="$CAT"
8966 COMPRESS_FAST_OPT=""
8967 COMPRESS_BEST_OPT=""
8968 UNCOMPRESS_PATH="$CAT"
8973 cat >>confdefs.h <<_ACEOF
8974 #define COMPRESS_PATH "$COMPRESS_PATH"
8978 cat >>confdefs.h <<_ACEOF
8979 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
8983 cat >>confdefs.h <<_ACEOF
8984 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
8988 cat >>confdefs.h <<_ACEOF
8989 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
8993 cat >>confdefs.h <<_ACEOF
8994 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
8998 cat >>confdefs.h <<_ACEOF
8999 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9003 for ac_prog in Mail mailx mail
9005 # Extract the first word of "$ac_prog", so it can be a program name with args.
9006 set dummy $ac_prog; ac_word=$2
9007 echo "$as_me:$LINENO: checking for $ac_word" >&5
9008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009 if test "${ac_cv_path_MAILER+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9024 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
9025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 MAILER=$ac_cv_path_MAILER
9036 if test -n "$MAILER"; then
9037 echo "$as_me:$LINENO: result: $MAILER" >&5
9038 echo "${ECHO_T}$MAILER" >&6
9040 echo "$as_me:$LINENO: result: no" >&5
9041 echo "${ECHO_T}no" >&6
9044 test -n "$MAILER" && break
9047 if test -z "$MAILER"; then
9048 if $NO_SERVER_MODE; then
9050 { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
9051 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
9053 { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
9054 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
9055 { (exit 1); exit 1; }; }
9059 cat >>confdefs.h <<_ACEOF
9060 #define MAILER "$MAILER"
9066 # Extract the first word of "$ac_prog", so it can be a program name with args.
9067 set dummy $ac_prog; ac_word=$2
9068 echo "$as_me:$LINENO: checking for $ac_word" >&5
9069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9070 if test "${ac_cv_path_MT+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 ac_cv_path_MT="$MT" # Let the user override the test with a path.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $LOCSYSPATH
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9085 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
9086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 if test -n "$MT"; then
9098 echo "$as_me:$LINENO: result: $MT" >&5
9099 echo "${ECHO_T}$MT" >&6
9101 echo "$as_me:$LINENO: result: no" >&5
9102 echo "${ECHO_T}no" >&6
9105 test -n "$MT" && break
9107 test -n "$MT" || MT="mt"
9112 # Extract the first word of "$ac_prog", so it can be a program name with args.
9113 set dummy $ac_prog; ac_word=$2
9114 echo "$as_me:$LINENO: checking for $ac_word" >&5
9115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9116 if test "${ac_cv_path_CHIO+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 for as_dir in $LOCSYSPATH
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9131 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
9132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 CHIO=$ac_cv_path_CHIO
9143 if test -n "$CHIO"; then
9144 echo "$as_me:$LINENO: result: $CHIO" >&5
9145 echo "${ECHO_T}$CHIO" >&6
9147 echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9151 test -n "$CHIO" && break
9153 test -n "$CHIO" || CHIO="chio"
9158 # Extract the first word of "$ac_prog", so it can be a program name with args.
9159 set dummy $ac_prog; ac_word=$2
9160 echo "$as_me:$LINENO: checking for $ac_word" >&5
9161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9162 if test "${ac_cv_path_CHS+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $LOCSYSPATH
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
9178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 if test -n "$CHS"; then
9190 echo "$as_me:$LINENO: result: $CHS" >&5
9191 echo "${ECHO_T}$CHS" >&6
9193 echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6
9197 test -n "$CHS" && break
9199 test -n "$CHS" || CHS="chs"
9204 # Extract the first word of "$ac_prog", so it can be a program name with args.
9205 set dummy $ac_prog; ac_word=$2
9206 echo "$as_me:$LINENO: checking for $ac_word" >&5
9207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9208 if test "${ac_cv_path_MTX+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $LOCSYSPATH
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9223 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
9224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 if test -n "$MTX"; then
9236 echo "$as_me:$LINENO: result: $MTX" >&5
9237 echo "${ECHO_T}$MTX" >&6
9239 echo "$as_me:$LINENO: result: no" >&5
9240 echo "${ECHO_T}no" >&6
9243 test -n "$MTX" && break
9245 test -n "$MTX" || MTX="mtx"
9248 for ac_prog in mcutil
9250 # Extract the first word of "$ac_prog", so it can be a program name with args.
9251 set dummy $ac_prog; ac_word=$2
9252 echo "$as_me:$LINENO: checking for $ac_word" >&5
9253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9254 if test "${ac_cv_path_MCUTIL+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $LOCSYSPATH
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
9270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 MCUTIL=$ac_cv_path_MCUTIL
9281 if test -n "$MCUTIL"; then
9282 echo "$as_me:$LINENO: result: $MCUTIL" >&5
9283 echo "${ECHO_T}$MCUTIL" >&6
9285 echo "$as_me:$LINENO: result: no" >&5
9286 echo "${ECHO_T}no" >&6
9289 test -n "$MCUTIL" && break
9291 test -n "$MCUTIL" || MCUTIL="mcutil"
9294 for ac_prog in lpr lp
9296 # Extract the first word of "$ac_prog", so it can be a program name with args.
9297 set dummy $ac_prog; ac_word=$2
9298 echo "$as_me:$LINENO: checking for $ac_word" >&5
9299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9300 if test "${ac_cv_path_PRINT+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
9308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312 test -z "$as_dir" && as_dir=.
9313 for ac_exec_ext in '' $ac_executable_extensions; do
9314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9315 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
9316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 PRINT=$ac_cv_path_PRINT
9327 if test -n "$PRINT"; then
9328 echo "$as_me:$LINENO: result: $PRINT" >&5
9329 echo "${ECHO_T}$PRINT" >&6
9331 echo "$as_me:$LINENO: result: no" >&5
9332 echo "${ECHO_T}no" >&6
9335 test -n "$PRINT" && break
9338 if test ! -z "$PRINT"; then
9340 cat >>confdefs.h <<_ACEOF
9341 #define LPRCMD "$PRINT"
9344 echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
9345 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
9346 if test "${amanda_cv_printer_flag+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 amanda_cv_printer_flag=$PRINTER_FLAG
9352 lpr|*/lpr) amanda_cv_printer_flag="-P";;
9353 lp|*/lp) amanda_cv_printer_flag="-d";;
9357 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
9358 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
9359 if test ! -z "$amanda_cv_printer_flag"; then
9361 cat >>confdefs.h <<_ACEOF
9362 #define LPRFLAG "$amanda_cv_printer_flag"
9366 { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
9367 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
9373 # Extract the first word of "$ac_prog", so it can be a program name with args.
9374 set dummy $ac_prog; ac_word=$2
9375 echo "$as_me:$LINENO: checking for $ac_word" >&5
9376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9377 if test "${ac_cv_path_PCAT+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $LOCSYSPATH
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9392 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
9393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 PCAT=$ac_cv_path_PCAT
9404 if test -n "$PCAT"; then
9405 echo "$as_me:$LINENO: result: $PCAT" >&5
9406 echo "${ECHO_T}$PCAT" >&6
9408 echo "$as_me:$LINENO: result: no" >&5
9409 echo "${ECHO_T}no" >&6
9412 test -n "$PCAT" && break
9415 for ac_prog in perl5 perl
9417 # Extract the first word of "$ac_prog", so it can be a program name with args.
9418 set dummy $ac_prog; ac_word=$2
9419 echo "$as_me:$LINENO: checking for $ac_word" >&5
9420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9421 if test "${ac_cv_path_PERL+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 for as_dir in $LOCSYSPATH
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
9435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9436 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 PERL=$ac_cv_path_PERL
9448 if test -n "$PERL"; then
9449 echo "$as_me:$LINENO: result: $PERL" >&5
9450 echo "${ECHO_T}$PERL" >&6
9452 echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6
9456 test -n "$PERL" && break
9461 for ac_prog in $DUMP_PROGRAMS
9463 # Extract the first word of "$ac_prog", so it can be a program name with args.
9464 set dummy $ac_prog; ac_word=$2
9465 echo "$as_me:$LINENO: checking for $ac_word" >&5
9466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467 if test "${ac_cv_path_DUMP+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $SYSLOCPATH
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
9483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 DUMP=$ac_cv_path_DUMP
9494 if test -n "$DUMP"; then
9495 echo "$as_me:$LINENO: result: $DUMP" >&5
9496 echo "${ECHO_T}$DUMP" >&6
9498 echo "$as_me:$LINENO: result: no" >&5
9499 echo "${ECHO_T}no" >&6
9502 test -n "$DUMP" && break
9505 for ac_prog in ufsrestore restore
9507 # Extract the first word of "$ac_prog", so it can be a program name with args.
9508 set dummy $ac_prog; ac_word=$2
9509 echo "$as_me:$LINENO: checking for $ac_word" >&5
9510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9511 if test "${ac_cv_path_RESTORE+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $SYSLOCPATH
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
9527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 RESTORE=$ac_cv_path_RESTORE
9538 if test -n "$RESTORE"; then
9539 echo "$as_me:$LINENO: result: $RESTORE" >&5
9540 echo "${ECHO_T}$RESTORE" >&6
9542 echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9546 test -n "$RESTORE" && break
9549 if test "$DUMP" -a "$RESTORE"; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define DUMP "$DUMP"
9556 cat >>confdefs.h <<_ACEOF
9557 #define RESTORE "$RESTORE"
9560 if test -x $DUMP; then
9561 echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
9562 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
9563 if test "${amanda_cv_dump_estimate+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
9572 | $GREP -v Label >conftest.d-E 2>&1'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }
9578 cat conftest.d-E >&5
9579 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
9582 | $GREP -v Label >conftest.d-S 2>&1'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }
9588 cat conftest.d-S >&5
9589 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9592 | $GREP -v Label >conftest.d 2>&1'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }
9599 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 amanda_cv_dump_estimate=E
9606 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 amanda_cv_dump_estimate=S
9614 amanda_cv_dump_estimate=no
9616 rm -f conftest.d conftest.d-E conftest.d-S
9618 *) amanda_cv_dump_estimate=no
9623 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
9624 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
9626 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
9627 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
9628 amanda_cv_dump_estimate=no
9630 if test "$amanda_cv_dump_estimate" != no; then
9632 cat >>confdefs.h <<_ACEOF
9633 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
9639 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
9640 if test "${with_dump_honor_nodump+set}" = set; then
9641 withval="$with_dump_honor_nodump"
9642 if test -x $DUMP; then
9643 echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
9644 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
9645 if test "${amanda_cv_honor_nodump+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
9654 | $GREP -v Label >conftest.d-h 2>&1'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }
9660 cat conftest.d-h >&5
9661 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9664 | $GREP -v Label >conftest.d 2>&1'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }
9671 if { ac_try='diff conftest.d-h conftest.d 1>&2'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 amanda_cv_honor_nodump=yes
9679 amanda_cv_honor_nodump=no
9681 rm -f conftest.d conftest.d-h
9683 *) amanda_cv_honor_nodump=no
9688 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
9689 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
9691 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
9692 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
9693 amanda_cv_honor_nodump=no
9695 if test "$amanda_cv_honor_nodump" = yes; then
9697 cat >>confdefs.h <<\_ACEOF
9698 #define HAVE_HONOR_NODUMP 1
9706 for ac_prog in xfsdump
9708 # Extract the first word of "$ac_prog", so it can be a program name with args.
9709 set dummy $ac_prog; ac_word=$2
9710 echo "$as_me:$LINENO: checking for $ac_word" >&5
9711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9712 if test "${ac_cv_path_XFSDUMP+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $SYSLOCPATH
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9727 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
9728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 XFSDUMP=$ac_cv_path_XFSDUMP
9739 if test -n "$XFSDUMP"; then
9740 echo "$as_me:$LINENO: result: $XFSDUMP" >&5
9741 echo "${ECHO_T}$XFSDUMP" >&6
9743 echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6
9747 test -n "$XFSDUMP" && break
9750 for ac_prog in xfsrestore
9752 # Extract the first word of "$ac_prog", so it can be a program name with args.
9753 set dummy $ac_prog; ac_word=$2
9754 echo "$as_me:$LINENO: checking for $ac_word" >&5
9755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9756 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $SYSLOCPATH
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9771 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
9772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 XFSRESTORE=$ac_cv_path_XFSRESTORE
9783 if test -n "$XFSRESTORE"; then
9784 echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
9785 echo "${ECHO_T}$XFSRESTORE" >&6
9787 echo "$as_me:$LINENO: result: no" >&5
9788 echo "${ECHO_T}no" >&6
9791 test -n "$XFSRESTORE" && break
9794 if test "$XFSDUMP" -a "$XFSRESTORE"; then
9796 cat >>confdefs.h <<_ACEOF
9797 #define XFSDUMP "$XFSDUMP"
9801 cat >>confdefs.h <<_ACEOF
9802 #define XFSRESTORE "$XFSRESTORE"
9805 { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
9806 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
9808 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
9811 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
9812 for ac_prog in vxdump
9814 # Extract the first word of "$ac_prog", so it can be a program name with args.
9815 set dummy $ac_prog; ac_word=$2
9816 echo "$as_me:$LINENO: checking for $ac_word" >&5
9817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9818 if test "${ac_cv_path_VXDUMP+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $VXSYSLOCPATH
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 VXDUMP=$ac_cv_path_VXDUMP
9845 if test -n "$VXDUMP"; then
9846 echo "$as_me:$LINENO: result: $VXDUMP" >&5
9847 echo "${ECHO_T}$VXDUMP" >&6
9849 echo "$as_me:$LINENO: result: no" >&5
9850 echo "${ECHO_T}no" >&6
9853 test -n "$VXDUMP" && break
9856 for ac_prog in vxrestore
9858 # Extract the first word of "$ac_prog", so it can be a program name with args.
9859 set dummy $ac_prog; ac_word=$2
9860 echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9862 if test "${ac_cv_path_VXRESTORE+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $VXSYSLOCPATH
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 VXRESTORE=$ac_cv_path_VXRESTORE
9889 if test -n "$VXRESTORE"; then
9890 echo "$as_me:$LINENO: result: $VXRESTORE" >&5
9891 echo "${ECHO_T}$VXRESTORE" >&6
9893 echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6
9897 test -n "$VXRESTORE" && break
9900 if test "$VXDUMP" -a "$VXRESTORE"; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define VXDUMP "$VXDUMP"
9907 cat >>confdefs.h <<_ACEOF
9908 #define VXRESTORE "$VXRESTORE"
9913 for ac_prog in vdump
9915 # Extract the first word of "$ac_prog", so it can be a program name with args.
9916 set dummy $ac_prog; ac_word=$2
9917 echo "$as_me:$LINENO: checking for $ac_word" >&5
9918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919 if test "${ac_cv_path_VDUMP+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $SYSLOCPATH
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9934 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
9935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 VDUMP=$ac_cv_path_VDUMP
9946 if test -n "$VDUMP"; then
9947 echo "$as_me:$LINENO: result: $VDUMP" >&5
9948 echo "${ECHO_T}$VDUMP" >&6
9950 echo "$as_me:$LINENO: result: no" >&5
9951 echo "${ECHO_T}no" >&6
9954 test -n "$VDUMP" && break
9957 for ac_prog in vrestore
9959 # Extract the first word of "$ac_prog", so it can be a program name with args.
9960 set dummy $ac_prog; ac_word=$2
9961 echo "$as_me:$LINENO: checking for $ac_word" >&5
9962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9963 if test "${ac_cv_path_VRESTORE+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $SYSLOCPATH
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
9979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 VRESTORE=$ac_cv_path_VRESTORE
9990 if test -n "$VRESTORE"; then
9991 echo "$as_me:$LINENO: result: $VRESTORE" >&5
9992 echo "${ECHO_T}$VRESTORE" >&6
9994 echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6
9998 test -n "$VRESTORE" && break
10001 if test "$VDUMP" -a "$VRESTORE"; then
10003 cat >>confdefs.h <<_ACEOF
10004 #define VDUMP "$VDUMP"
10008 cat >>confdefs.h <<_ACEOF
10009 #define VRESTORE "$VRESTORE"
10014 if test "$PCAT"; then
10015 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
10019 if test "$COMPRESS"; then
10020 AMPLOT_COMPRESS=$COMPRESS
10021 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
10023 AMPLOT_CAT_COMPRESS=
10025 if test "$GZIP"; then
10026 AMPLOT_COMPRESS=$GZIP
10027 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
10039 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
10040 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
10041 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 amanda_cv_LFS_CFLAGS=
10046 if test "$GETCONF"; then
10047 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
10048 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
10055 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
10056 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
10057 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
10058 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
10059 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 amanda_cv_LFS_LDFLAGS=
10064 if test "$GETCONF"; then
10065 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
10066 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
10073 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
10074 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
10075 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
10076 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
10077 if test "${amanda_cv_LFS_LIBS+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 amanda_cv_LFS_LIBS=
10082 if test "$GETCONF"; then
10083 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
10084 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
10091 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
10092 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
10093 if test "$need_resetofs" = yes; then
10095 cat >>confdefs.h <<\_ACEOF
10096 #define NEED_RESETOFS 1
10100 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
10101 CPPFLAGS="$amanda_cv_LFS_CFLAGS $CPPFLAGS"
10102 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
10103 LIBS="$amanda_cv_LFS_LIBS $LIBS"
10105 # Check whether --enable-shared or --disable-shared was given.
10106 if test "${enable_shared+set}" = set; then
10107 enableval="$enable_shared"
10108 p=${PACKAGE-default}
10110 yes) enable_shared=yes ;;
10111 no) enable_shared=no ;;
10114 # Look at the argument we got. We use all the common list separators.
10115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10116 for pkg in $enableval; do
10118 if test "X$pkg" = "X$p"; then
10129 # Check whether --enable-static or --disable-static was given.
10130 if test "${enable_static+set}" = set; then
10131 enableval="$enable_static"
10132 p=${PACKAGE-default}
10134 yes) enable_static=yes ;;
10135 no) enable_static=no ;;
10138 # Look at the argument we got. We use all the common list separators.
10139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10140 for pkg in $enableval; do
10142 if test "X$pkg" = "X$p"; then
10153 # Check whether --enable-fast-install or --disable-fast-install was given.
10154 if test "${enable_fast_install+set}" = set; then
10155 enableval="$enable_fast_install"
10156 p=${PACKAGE-default}
10158 yes) enable_fast_install=yes ;;
10159 no) enable_fast_install=no ;;
10161 enable_fast_install=no
10162 # Look at the argument we got. We use all the common list separators.
10163 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10164 for pkg in $enableval; do
10166 if test "X$pkg" = "X$p"; then
10167 enable_fast_install=yes
10174 enable_fast_install=yes
10177 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10178 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10179 if test "${lt_cv_path_SED+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 # Loop through the user's path and test for sed and gsed.
10183 # Then use that list of sed's as ones to test for truncation.
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10188 test -z "$as_dir" && as_dir=.
10189 for lt_ac_prog in sed gsed; do
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10192 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10199 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10200 # along with /bin/sed that truncates output.
10201 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10202 test ! -f $lt_ac_sed && break
10203 cat /dev/null > conftest.in
10205 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10206 # Check for GNU sed and select it if it is found.
10207 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10208 lt_cv_path_SED=$lt_ac_sed
10212 cat conftest.in conftest.in >conftest.tmp
10213 mv conftest.tmp conftest.in
10214 cp conftest.in conftest.nl
10216 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10217 cmp -s conftest.out conftest.nl || break
10218 # 10000 chars as input seems more than enough
10219 test $lt_ac_count -gt 10 && break
10220 lt_ac_count=`expr $lt_ac_count + 1`
10221 if test $lt_ac_count -gt $lt_ac_max; then
10222 lt_ac_max=$lt_ac_count
10223 lt_cv_path_SED=$lt_ac_sed
10227 SED=$lt_cv_path_SED
10231 echo "$as_me:$LINENO: result: $SED" >&5
10232 echo "${ECHO_T}$SED" >&6
10235 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10236 if test "${with_gnu_ld+set}" = set; then
10237 withval="$with_gnu_ld"
10238 test "$withval" = no || with_gnu_ld=yes
10243 if test "$GCC" = yes; then
10244 # Check if gcc -print-prog-name=ld gives a path.
10245 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10246 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10249 # gcc leaves a trailing carriage return which upsets mingw
10250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10255 # Accept absolute paths.
10257 re_direlt='/[^/][^/]*/\.\./'
10258 # Canonicalize the pathname of ld
10259 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10260 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10261 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10263 test -z "$LD" && LD="$ac_prog"
10266 # If it fails, then pretend we aren't using GCC.
10270 # If it is relative, then search for the first ld in PATH.
10271 with_gnu_ld=unknown
10274 elif test "$with_gnu_ld" = yes; then
10275 echo "$as_me:$LINENO: checking for GNU ld" >&5
10276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10278 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10281 if test "${lt_cv_path_LD+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 if test -z "$LD"; then
10285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10286 for ac_dir in $PATH; do
10288 test -z "$ac_dir" && ac_dir=.
10289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10290 lt_cv_path_LD="$ac_dir/$ac_prog"
10291 # Check to see if the program is GNU ld. I'd rather use --version,
10292 # but apparently some GNU ld's only accept -v.
10293 # Break only if it was the GNU/non-GNU ld that we prefer.
10294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10295 *GNU* | *'with BFD'*)
10296 test "$with_gnu_ld" != no && break
10299 test "$with_gnu_ld" != yes && break
10306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10310 LD="$lt_cv_path_LD"
10311 if test -n "$LD"; then
10312 echo "$as_me:$LINENO: result: $LD" >&5
10313 echo "${ECHO_T}$LD" >&6
10315 echo "$as_me:$LINENO: result: no" >&5
10316 echo "${ECHO_T}no" >&6
10318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10320 { (exit 1); exit 1; }; }
10321 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10323 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10327 case `$LD -v 2>&1 </dev/null` in
10328 *GNU* | *'with BFD'*)
10329 lt_cv_prog_gnu_ld=yes
10332 lt_cv_prog_gnu_ld=no
10336 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10337 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10338 with_gnu_ld=$lt_cv_prog_gnu_ld
10341 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10342 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10343 if test "${lt_cv_ld_reload_flag+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 lt_cv_ld_reload_flag='-r'
10348 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10349 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10350 reload_flag=$lt_cv_ld_reload_flag
10351 case $reload_flag in
10353 *) reload_flag=" $reload_flag" ;;
10355 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10357 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10358 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10359 if test "${lt_cv_path_NM+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test -n "$NM"; then
10363 # Let the user override the test.
10364 lt_cv_path_NM="$NM"
10366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10367 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10369 test -z "$ac_dir" && ac_dir=.
10370 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10371 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10372 # Check to see if the nm accepts a BSD-compat flag.
10373 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10374 # nm: unknown option "B" ignored
10375 # Tru64's nm complains that /dev/null is an invalid object file
10376 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10377 */dev/null* | *'Invalid file or object type'*)
10378 lt_cv_path_NM="$tmp_nm -B"
10382 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10384 lt_cv_path_NM="$tmp_nm -p"
10388 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10389 continue # so that we can try to find one that supports BSD flags
10396 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10399 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10400 echo "${ECHO_T}$lt_cv_path_NM" >&6
10401 NM="$lt_cv_path_NM"
10403 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10404 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10406 if test "$LN_S" = "ln -s"; then
10407 echo "$as_me:$LINENO: result: yes" >&5
10408 echo "${ECHO_T}yes" >&6
10410 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10411 echo "${ECHO_T}no, using $LN_S" >&6
10414 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10415 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10416 if test "${lt_cv_deplibs_check_method+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 lt_cv_file_magic_cmd='$MAGIC_CMD'
10420 lt_cv_file_magic_test_file=
10421 lt_cv_deplibs_check_method='unknown'
10422 # Need to set the preceding variable on all platforms that support
10423 # interlibrary dependencies.
10424 # 'none' -- dependencies not supported.
10425 # `unknown' -- same as none, but documents that we really don't know.
10426 # 'pass_all' -- all dependencies passed with no checks.
10427 # 'test_compile' -- check by making test program.
10428 # 'file_magic [[regex]]' -- check by looking for files in library path
10429 # which responds to the $file_magic_cmd with a given extended regex.
10430 # If you have `file' or equivalent on your system and you're not sure
10431 # whether `pass_all' will *always* work, you probably want this one.
10435 lt_cv_deplibs_check_method=pass_all
10439 lt_cv_deplibs_check_method=pass_all
10443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10444 lt_cv_file_magic_cmd='/usr/bin/file -L'
10445 lt_cv_file_magic_test_file=/shlib/libc.so
10449 # func_win32_libid is a shell function defined in ltmain.sh
10450 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10451 lt_cv_file_magic_cmd='func_win32_libid'
10455 # Base MSYS/MinGW do not provide the 'file' command needed by
10456 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10457 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10458 lt_cv_file_magic_cmd='$OBJDUMP -f'
10461 darwin* | rhapsody*)
10462 lt_cv_deplibs_check_method=pass_all
10465 freebsd* | kfreebsd*-gnu)
10466 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10469 # Not sure whether the presence of OpenBSD here was a mistake.
10470 # Let's accept both of them until this is cleared up.
10471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10472 lt_cv_file_magic_cmd=/usr/bin/file
10473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10477 lt_cv_deplibs_check_method=pass_all
10482 lt_cv_deplibs_check_method=pass_all
10485 hpux10.20* | hpux11*)
10486 lt_cv_file_magic_cmd=/usr/bin/file
10487 case "$host_cpu" in
10489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10490 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10493 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]'
10494 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10498 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10503 irix5* | irix6* | nonstopux*)
10505 *-32|*"-32 ") libmagic=32-bit;;
10506 *-n32|*"-n32 ") libmagic=N32;;
10507 *-64|*"-64 ") libmagic=64-bit;;
10508 *) libmagic=never-match;;
10510 lt_cv_deplibs_check_method=pass_all
10513 # This must be Linux ELF.
10516 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
10517 lt_cv_deplibs_check_method=pass_all ;;
10519 # glibc up to 2.1.1 does not perform some relocations on ARM
10520 # this will be overridden with pass_all, but let us keep it just in case
10521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10523 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
10524 lt_cv_deplibs_check_method=pass_all
10528 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10537 lt_cv_file_magic_cmd=/usr/bin/file
10538 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10542 lt_cv_deplibs_check_method=unknown
10546 lt_cv_file_magic_cmd=/usr/bin/file
10547 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10551 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10555 osf3* | osf4* | osf5*)
10556 lt_cv_deplibs_check_method=pass_all
10560 lt_cv_deplibs_check_method=pass_all
10564 lt_cv_deplibs_check_method=pass_all
10567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10568 case $host_vendor in
10570 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]'
10571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10574 lt_cv_deplibs_check_method=pass_all
10577 lt_cv_file_magic_cmd='/bin/file'
10578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10581 lt_cv_file_magic_cmd='/bin/file'
10582 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10583 lt_cv_file_magic_test_file=/lib/libc.so
10586 lt_cv_deplibs_check_method=pass_all
10591 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10592 lt_cv_deplibs_check_method=pass_all
10597 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10598 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10599 file_magic_cmd=$lt_cv_file_magic_cmd
10600 deplibs_check_method=$lt_cv_deplibs_check_method
10601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10604 # If no C compiler was specified, use CC.
10607 # Allow CC to be a program name with arguments.
10610 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10611 if test "${enable_libtool_lock+set}" = set; then
10612 enableval="$enable_libtool_lock"
10615 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10617 # Some flags need to be propagated to the compiler or linker for good
10621 # Find out which ABI we are using.
10622 echo 'int i;' > conftest.$ac_ext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624 (eval $ac_compile) 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; then
10628 case `/usr/bin/file conftest.$ac_objext` in
10630 HPUX_IA64_MODE="32"
10633 HPUX_IA64_MODE="64"
10640 # Find out which ABI we are using.
10641 echo '#line 10641 "configure"' > conftest.$ac_ext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; then
10647 if test "$lt_cv_prog_gnu_ld" = yes; then
10648 case `/usr/bin/file conftest.$ac_objext` in
10650 LD="${LD-ld} -melf32bsmip"
10653 LD="${LD-ld} -melf32bmipn32"
10656 LD="${LD-ld} -melf64bmip"
10660 case `/usr/bin/file conftest.$ac_objext` in
10676 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10677 # Find out which ABI we are using.
10678 echo 'int i;' > conftest.$ac_ext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680 (eval $ac_compile) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; then
10684 case "`/usr/bin/file conftest.o`" in
10688 LD="${LD-ld} -m elf_i386"
10690 ppc64-*linux*|powerpc64-*linux*)
10691 LD="${LD-ld} -m elf32ppclinux"
10694 LD="${LD-ld} -m elf_s390"
10697 LD="${LD-ld} -m elf32_sparc"
10704 LD="${LD-ld} -m elf_x86_64"
10706 ppc*-*linux*|powerpc*-*linux*)
10707 LD="${LD-ld} -m elf64ppc"
10710 LD="${LD-ld} -m elf64_s390"
10713 LD="${LD-ld} -m elf64_sparc"
10723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10724 SAVE_CFLAGS="$CFLAGS"
10725 CFLAGS="$CFLAGS -belf"
10726 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10727 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10728 if test "${lt_cv_cc_needs_belf+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 ac_cpp='$CPP $CPPFLAGS'
10733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754 (eval $ac_link) 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 lt_cv_cc_needs_belf=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 lt_cv_cc_needs_belf=no
10781 rm -f conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10784 ac_cpp='$CPP $CPPFLAGS'
10785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10790 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10791 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10792 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10793 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10794 CFLAGS="$SAVE_CFLAGS"
10800 need_locks="$enable_libtool_lock"
10804 for ac_header in dlfcn.h
10806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10808 echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10816 # Is the header compilable?
10817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 $ac_includes_default
10826 #include <$ac_header>
10828 rm -f conftest.$ac_objext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10830 (eval $ac_compile) 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag"
10838 || test ! -s conftest.err'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest.$ac_objext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_header_compiler=yes
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_header_compiler=no
10857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10859 echo "${ECHO_T}$ac_header_compiler" >&6
10861 # Is the header present?
10862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 #include <$ac_header>
10872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } >/dev/null; then
10880 if test -s conftest.err; then
10881 ac_cpp_err=$ac_c_preproc_warn_flag
10882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10889 if test -z "$ac_cpp_err"; then
10890 ac_header_preproc=yes
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_header_preproc=no
10897 rm -f conftest.err conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10899 echo "${ECHO_T}$ac_header_preproc" >&6
10901 # So? What about this header?
10902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10908 ac_header_preproc=yes
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10925 ## ------------------------------------------ ##
10926 ## Report this to the AC_PACKAGE_NAME lists. ##
10927 ## ------------------------------------------ ##
10930 sed "s/^/$as_me: WARNING: /" >&2
10933 echo "$as_me:$LINENO: checking for $ac_header" >&5
10934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 eval "$as_ac_Header=\$ac_header_preproc"
10940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10954 ac_cpp='$CXXCPP $CPPFLAGS'
10955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10958 if test -n "$ac_tool_prefix"; then
10959 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10963 echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10965 if test "${ac_cv_prog_CXX+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 if test -n "$CXX"; then
10969 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 CXX=$ac_cv_prog_CXX
10988 if test -n "$CXX"; then
10989 echo "$as_me:$LINENO: result: $CXX" >&5
10990 echo "${ECHO_T}$CXX" >&6
10992 echo "$as_me:$LINENO: result: no" >&5
10993 echo "${ECHO_T}no" >&6
10996 test -n "$CXX" && break
10999 if test -z "$CXX"; then
11001 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11003 # Extract the first word of "$ac_prog", so it can be a program name with args.
11004 set dummy $ac_prog; ac_word=$2
11005 echo "$as_me:$LINENO: checking for $ac_word" >&5
11006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11007 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 if test -n "$ac_ct_CXX"; then
11011 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_ac_ct_CXX="$ac_prog"
11021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11030 if test -n "$ac_ct_CXX"; then
11031 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11032 echo "${ECHO_T}$ac_ct_CXX" >&6
11034 echo "$as_me:$LINENO: result: no" >&5
11035 echo "${ECHO_T}no" >&6
11038 test -n "$ac_ct_CXX" && break
11040 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11046 # Provide some information about the compiler.
11047 echo "$as_me:$LINENO:" \
11048 "checking for C++ compiler version" >&5
11049 ac_compiler=`set X $ac_compile; echo $2`
11050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11051 (eval $ac_compiler --version </dev/null >&5) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }
11055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11056 (eval $ac_compiler -v </dev/null >&5) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }
11060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11061 (eval $ac_compiler -V </dev/null >&5) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }
11066 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11067 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11068 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11089 rm -f conftest.$ac_objext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_cxx_werror_flag"
11099 || test ! -s conftest.err'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_compiler_gnu=yes
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11122 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11123 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11124 GXX=`test $ac_compiler_gnu = yes && echo yes`
11125 ac_test_CXXFLAGS=${CXXFLAGS+set}
11126 ac_save_CXXFLAGS=$CXXFLAGS
11128 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11129 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11130 if test "${ac_cv_prog_cxx_g+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.$ac_ext <<_ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11148 rm -f conftest.$ac_objext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150 (eval $ac_compile) 2>conftest.er1
11152 grep -v '^ *+' conftest.er1 >conftest.err
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_cxx_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_cv_prog_cxx_g=yes
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_cv_prog_cxx_g=no
11177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11181 if test "$ac_test_CXXFLAGS" = set; then
11182 CXXFLAGS=$ac_save_CXXFLAGS
11183 elif test $ac_cv_prog_cxx_g = yes; then
11184 if test "$GXX" = yes; then
11190 if test "$GXX" = yes; then
11196 for ac_declaration in \
11198 'extern "C" void std::exit (int) throw (); using std::exit;' \
11199 'extern "C" void std::exit (int); using std::exit;' \
11200 'extern "C" void exit (int) throw ();' \
11201 'extern "C" void exit (int);' \
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11211 #include <stdlib.h>
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>conftest.er1
11224 grep -v '^ *+' conftest.er1 >conftest.err
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_cxx_werror_flag"
11230 || test ! -s conftest.err'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11265 rm -f conftest.$ac_objext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11267 (eval $ac_compile) 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_cxx_werror_flag"
11275 || test ! -s conftest.err'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11296 if test -n "$ac_declaration"; then
11297 echo '#ifdef __cplusplus' >>confdefs.h
11298 echo $ac_declaration >>confdefs.h
11299 echo '#endif' >>confdefs.h
11303 ac_cpp='$CXXCPP $CPPFLAGS'
11304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11308 depcc="$CXX" am_compiler_list=
11310 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11311 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11312 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11316 # We make a subdir and do the tests there. Otherwise we can end up
11317 # making bogus files that we don't know about and never remove. For
11318 # instance it was reported that on HP-UX the gcc test will end up
11319 # making a dummy file named `D' -- because `-MD' means `put the output
11322 # Copy depcomp to subdir because otherwise we won't find it if we're
11323 # using a relative directory.
11324 cp "$am_depcomp" conftest.dir
11326 # We will build objects and dependencies in a subdirectory because
11327 # it helps to detect inapplicable dependency modes. For instance
11328 # both Tru64's cc and ICC support -MD to output dependencies as a
11329 # side effect of compilation, but ICC will put the dependencies in
11330 # the current directory while Tru64 will put them in the object
11334 am_cv_CXX_dependencies_compiler_type=none
11335 if test "$am_compiler_list" = ""; then
11336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11338 for depmode in $am_compiler_list; do
11339 # Setup a source with many dependencies, because some compilers
11340 # like to wrap large dependency lists on column 80 (with \), and
11341 # we should not choose a depcomp mode which is confused by this.
11343 # We need to recreate these files for each test, as the compiler may
11344 # overwrite some of them when testing with obscure command lines.
11345 # This happens at least with the AIX C compiler.
11347 for i in 1 2 3 4 5 6; do
11348 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11349 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11350 # Solaris 8's {/usr,}/bin/sh.
11351 touch sub/conftst$i.h
11353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11357 # after this tag, mechanisms are not by side-effect, so they'll
11358 # only be used when explicitly requested
11359 if test "x$enable_dependency_tracking" = xyes; then
11367 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11368 # mode. It turns out that the SunPro C++ compiler does not properly
11369 # handle `-M -o', and we need to detect this.
11370 if depmode=$depmode \
11371 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11373 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11374 >/dev/null 2>conftest.err &&
11375 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11376 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11377 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11378 # icc doesn't choke on unknown options, it will just issue warnings
11379 # or remarks (even with -Werror). So we grep stderr for any message
11380 # that says an option was ignored or not supported.
11381 # When given -MP, icc 7.0 and 7.1 complain thusly:
11382 # icc: Command line warning: ignoring option '-M'; no argument required
11383 # The diagnosis changed in icc 8.0:
11384 # icc: Command line remark: option '-MP' not supported
11385 if (grep 'ignoring option' conftest.err ||
11386 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11387 am_cv_CXX_dependencies_compiler_type=$depmode
11394 rm -rf conftest.dir
11396 am_cv_CXX_dependencies_compiler_type=none
11400 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11401 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
11402 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11407 test "x$enable_dependency_tracking" != xno \
11408 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11409 am__fastdepCXX_TRUE=
11410 am__fastdepCXX_FALSE='#'
11412 am__fastdepCXX_TRUE='#'
11413 am__fastdepCXX_FALSE=
11418 ac_cpp='$CXXCPP $CPPFLAGS'
11419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11422 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11423 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11424 if test -z "$CXXCPP"; then
11425 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 # Double quotes because CXXCPP needs to be expanded
11429 for CXXCPP in "$CXX -E" "/lib/cpp"
11431 ac_preproc_ok=false
11432 for ac_cxx_preproc_warn_flag in '' yes
11434 # Use a header file that comes with gcc, so configuring glibc
11435 # with a fresh cross-compiler works.
11436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 # <limits.h> exists even on freestanding compilers.
11438 # On the NeXT, cc -E runs the code through the compiler's parser,
11439 # not just through cpp. "Syntax error" is here to catch this case.
11440 cat >conftest.$ac_ext <<_ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11447 # include <limits.h>
11449 # include <assert.h>
11453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11456 grep -v '^ *+' conftest.er1 >conftest.err
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } >/dev/null; then
11461 if test -s conftest.err; then
11462 ac_cpp_err=$ac_cxx_preproc_warn_flag
11463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11470 if test -z "$ac_cpp_err"; then
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 # Broken: fails on valid input.
11479 rm -f conftest.err conftest.$ac_ext
11481 # OK, works on sane cases. Now check whether non-existent headers
11482 # can be detected and how.
11483 cat >conftest.$ac_ext <<_ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include <ac_nonexistent.h>
11491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } >/dev/null; then
11499 if test -s conftest.err; then
11500 ac_cpp_err=$ac_cxx_preproc_warn_flag
11501 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11508 if test -z "$ac_cpp_err"; then
11509 # Broken: success on invalid input.
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 # Passes both tests.
11519 rm -f conftest.err conftest.$ac_ext
11522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11523 rm -f conftest.err conftest.$ac_ext
11524 if $ac_preproc_ok; then
11529 ac_cv_prog_CXXCPP=$CXXCPP
11532 CXXCPP=$ac_cv_prog_CXXCPP
11534 ac_cv_prog_CXXCPP=$CXXCPP
11536 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11537 echo "${ECHO_T}$CXXCPP" >&6
11538 ac_preproc_ok=false
11539 for ac_cxx_preproc_warn_flag in '' yes
11541 # Use a header file that comes with gcc, so configuring glibc
11542 # with a fresh cross-compiler works.
11543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11544 # <limits.h> exists even on freestanding compilers.
11545 # On the NeXT, cc -E runs the code through the compiler's parser,
11546 # not just through cpp. "Syntax error" is here to catch this case.
11547 cat >conftest.$ac_ext <<_ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11554 # include <limits.h>
11556 # include <assert.h>
11560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11563 grep -v '^ *+' conftest.er1 >conftest.err
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } >/dev/null; then
11568 if test -s conftest.err; then
11569 ac_cpp_err=$ac_cxx_preproc_warn_flag
11570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11577 if test -z "$ac_cpp_err"; then
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 # Broken: fails on valid input.
11586 rm -f conftest.err conftest.$ac_ext
11588 # OK, works on sane cases. Now check whether non-existent headers
11589 # can be detected and how.
11590 cat >conftest.$ac_ext <<_ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 #include <ac_nonexistent.h>
11598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11601 grep -v '^ *+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } >/dev/null; then
11606 if test -s conftest.err; then
11607 ac_cpp_err=$ac_cxx_preproc_warn_flag
11608 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11615 if test -z "$ac_cpp_err"; then
11616 # Broken: success on invalid input.
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 # Passes both tests.
11626 rm -f conftest.err conftest.$ac_ext
11629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11630 rm -f conftest.err conftest.$ac_ext
11631 if $ac_preproc_ok; then
11634 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11635 See \`config.log' for more details." >&5
11636 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11637 See \`config.log' for more details." >&2;}
11638 { (exit 1); exit 1; }; }
11642 ac_cpp='$CXXCPP $CPPFLAGS'
11643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11649 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11650 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11651 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11652 if test -n "$ac_tool_prefix"; then
11653 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11657 echo "$as_me:$LINENO: checking for $ac_word" >&5
11658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11659 if test "${ac_cv_prog_F77+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 if test -n "$F77"; then
11663 ac_cv_prog_F77="$F77" # Let the user override the test.
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 F77=$ac_cv_prog_F77
11682 if test -n "$F77"; then
11683 echo "$as_me:$LINENO: result: $F77" >&5
11684 echo "${ECHO_T}$F77" >&6
11686 echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6
11690 test -n "$F77" && break
11693 if test -z "$F77"; then
11695 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11697 # Extract the first word of "$ac_prog", so it can be a program name with args.
11698 set dummy $ac_prog; ac_word=$2
11699 echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11701 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 if test -n "$ac_ct_F77"; then
11705 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_prog_ac_ct_F77="$ac_prog"
11715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11724 if test -n "$ac_ct_F77"; then
11725 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11726 echo "${ECHO_T}$ac_ct_F77" >&6
11728 echo "$as_me:$LINENO: result: no" >&5
11729 echo "${ECHO_T}no" >&6
11732 test -n "$ac_ct_F77" && break
11739 # Provide some information about the compiler.
11740 echo "$as_me:11740:" \
11741 "checking for Fortran 77 compiler version" >&5
11742 ac_compiler=`set X $ac_compile; echo $2`
11743 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11744 (eval $ac_compiler --version </dev/null >&5) 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }
11748 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11749 (eval $ac_compiler -v </dev/null >&5) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }
11753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11754 (eval $ac_compiler -V </dev/null >&5) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }
11760 # If we don't use `.F' as extension, the preprocessor is not run on the
11761 # input file. (Note that this only needs to work for GNU compilers.)
11762 ac_save_ext=$ac_ext
11764 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11765 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11766 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 cat >conftest.$ac_ext <<_ACEOF
11777 rm -f conftest.$ac_objext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11779 (eval $ac_compile) 2>conftest.er1
11781 grep -v '^ *+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } &&
11786 { ac_try='test -z "$ac_f77_werror_flag"
11787 || test ! -s conftest.err'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest.$ac_objext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_compiler_gnu=yes
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11807 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11810 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11811 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11812 ac_ext=$ac_save_ext
11813 ac_test_FFLAGS=${FFLAGS+set}
11814 ac_save_FFLAGS=$FFLAGS
11816 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11817 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11818 if test "${ac_cv_prog_f77_g+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_f77_werror_flag"
11837 || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_cv_prog_f77_g=yes
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_cv_prog_f77_g=no
11856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11859 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11860 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11861 if test "$ac_test_FFLAGS" = set; then
11862 FFLAGS=$ac_save_FFLAGS
11863 elif test $ac_cv_prog_f77_g = yes; then
11864 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11870 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11877 G77=`test $ac_compiler_gnu = yes && echo yes`
11879 ac_cpp='$CPP $CPPFLAGS'
11880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11886 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11888 # find the maximum length of command line arguments
11889 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11890 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11891 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 # On DJGPP, this test can blow up pretty badly due to problems in libc
11900 # (any single argument exceeding 2000 bytes causes a buffer overrun
11901 # during glob expansion). Even if it were fixed, the result of this
11902 # check would be larger than it should be.
11903 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11907 # Under GNU Hurd, this test is not required because there is
11908 # no limit to the length of command line arguments.
11909 # Libtool will interpret -1 as no limit whatsoever
11910 lt_cv_sys_max_cmd_len=-1;
11914 # On Win9x/ME, this test blows up -- it succeeds, but takes
11915 # about 5 minutes as the teststring grows exponentially.
11916 # Worse, since 9x/ME are not pre-emptively multitasking,
11917 # you end up with a "frozen" computer, even though with patience
11918 # the test eventually succeeds (with a max line length of 256k).
11919 # Instead, let's just punt: use the minimum linelength reported by
11920 # all of the supported platforms: 8192 (on NT/2K/XP).
11921 lt_cv_sys_max_cmd_len=8192;
11925 # On AmigaOS with pdksh, this test takes hours, literally.
11926 # So we just punt and use a minimum line length of 8192.
11927 lt_cv_sys_max_cmd_len=8192;
11931 # If test is not a shell built-in, we'll probably end up computing a
11932 # maximum length that is only half of the actual maximum length, but
11934 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11935 = "XX$teststring") >/dev/null 2>&1 &&
11936 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11937 lt_cv_sys_max_cmd_len=$new_result &&
11938 test $i != 17 # 1/2 MB should be enough
11941 teststring=$teststring$teststring
11944 # Add a significant safety factor because C++ compilers can tack on massive
11945 # amounts of additional arguments before passing them to the linker.
11946 # It appears as though 1/2 is a usable value.
11947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11953 if test -n $lt_cv_sys_max_cmd_len ; then
11954 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11955 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11957 echo "$as_me:$LINENO: result: none" >&5
11958 echo "${ECHO_T}none" >&6
11964 # Check for command to grab the raw symbol name followed by C symbol from nm.
11965 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11966 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 # These are sane defaults that work on at least a few old systems.
11972 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11974 # Character class describing NM global symbol codes.
11975 symcode='[BCDEGRST]'
11977 # Regexp to match symbols that can be accessed directly from C.
11978 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11980 # Transform the above into a raw symbol and a C symbol.
11981 symxfrm='\1 \2\3 \3'
11983 # Transform an extracted symbol line into a proper C declaration
11984 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11986 # Transform an extracted symbol line into symbol name and symbol address
11987 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'"
11989 # Define system-specific variables.
11994 cygwin* | mingw* | pw32*)
11995 symcode='[ABCDGISTW]'
11997 hpux*) # Its linker distinguishes data from code symbols
11998 if test "$host_cpu" = ia64; then
11999 symcode='[ABCDEGRST]'
12001 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12002 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'"
12004 irix* | nonstopux*)
12005 symcode='[BCDEGRST]'
12008 symcode='[BCDEGQRST]'
12018 # Handle CRLF in mingw tool chain
12022 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12026 # If we're using GNU nm, then use its standard symbol codes.
12027 case `$NM -V 2>&1` in
12028 *GNU* | *'with BFD'*)
12029 symcode='[ABCDGIRSTW]' ;;
12032 # Try without a prefix undercore, then with it.
12033 for ac_symprfx in "" "_"; do
12035 # Write the raw and C identifiers.
12036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
12038 # Check to see that the pipe works correctly.
12042 cat > conftest.$ac_ext <<EOF
12047 void nm_test_func(){}
12051 int main(){nm_test_var='a';nm_test_func();return(0);}
12054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; then
12059 # Now try to grab the symbols.
12061 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12062 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && test -s "$nlist"; then
12066 # Try sorting and uniquifying the output.
12067 if sort "$nlist" | uniq > "$nlist"T; then
12068 mv -f "$nlist"T "$nlist"
12073 # Make sure that we snagged all the symbols we need.
12074 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12075 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12076 cat <<EOF > conftest.$ac_ext
12082 # Now generate the symbol file.
12083 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12085 cat <<EOF >> conftest.$ac_ext
12086 #if defined (__STDC__) && __STDC__
12087 # define lt_ptr_t void *
12089 # define lt_ptr_t char *
12093 /* The mapping between symbol names and symbols. */
12098 lt_preloaded_symbols[] =
12101 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12102 cat <<\EOF >> conftest.$ac_ext
12110 # Now try linking the two files.
12111 mv conftest.$ac_objext conftstm.$ac_objext
12112 lt_save_LIBS="$LIBS"
12113 lt_save_CFLAGS="$CFLAGS"
12114 LIBS="conftstm.$ac_objext"
12115 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117 (eval $ac_link) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12123 LIBS="$lt_save_LIBS"
12124 CFLAGS="$lt_save_CFLAGS"
12126 echo "cannot find nm_test_func in $nlist" >&5
12129 echo "cannot find nm_test_var in $nlist" >&5
12132 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12135 echo "$progname: failed program was:" >&5
12136 cat conftest.$ac_ext >&5
12138 rm -f conftest* conftst*
12140 # Do not use the global_symbol_pipe unless it works.
12141 if test "$pipe_works" = yes; then
12144 lt_cv_sys_global_symbol_pipe=
12150 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12151 lt_cv_sys_global_symbol_to_cdecl=
12153 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12154 echo "$as_me:$LINENO: result: failed" >&5
12155 echo "${ECHO_T}failed" >&6
12157 echo "$as_me:$LINENO: result: ok" >&5
12158 echo "${ECHO_T}ok" >&6
12161 echo "$as_me:$LINENO: checking for objdir" >&5
12162 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12163 if test "${lt_cv_objdir+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 rm -f .libs 2>/dev/null
12167 mkdir .libs 2>/dev/null
12168 if test -d .libs; then
12171 # MS-DOS does not allow filenames that begin with a dot.
12174 rmdir .libs 2>/dev/null
12176 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12177 echo "${ECHO_T}$lt_cv_objdir" >&6
12178 objdir=$lt_cv_objdir
12186 # AIX sometimes has problems with the GCC collect2 program. For some
12187 # reason, if we set the COLLECT_NAMES environment variable, the problems
12188 # vanish in a puff of smoke.
12189 if test "X${COLLECT_NAMES+set}" != Xset; then
12191 export COLLECT_NAMES
12196 # Sed substitution that helps us do robust quoting. It backslashifies
12197 # metacharacters that are still active within double-quoted strings.
12198 Xsed='sed -e s/^X//'
12199 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12201 # Same as above, but do not quote variable references.
12202 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12204 # Sed substitution to delay expansion of an escaped shell variable in a
12205 # double_quote_subst'ed string.
12206 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12208 # Sed substitution to avoid accidental globbing in evaled expressions
12209 no_glob_subst='s/\*/\\\*/g'
12214 # Global variables:
12215 default_ofile=libtool
12216 can_build_shared=yes
12218 # All known linkers require a `.a' archive for static linking (except M$VC,
12219 # which needs '.lib').
12221 ltmain="$ac_aux_dir/ltmain.sh"
12222 ofile="$default_ofile"
12223 with_gnu_ld="$lt_cv_prog_gnu_ld"
12225 if test -n "$ac_tool_prefix"; then
12226 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12227 set dummy ${ac_tool_prefix}ar; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_prog_AR+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 if test -n "$AR"; then
12234 ac_cv_prog_AR="$AR" # Let the user override the test.
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_prog_AR="${ac_tool_prefix}ar"
12244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 if test -n "$AR"; then
12254 echo "$as_me:$LINENO: result: $AR" >&5
12255 echo "${ECHO_T}$AR" >&6
12257 echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6
12262 if test -z "$ac_cv_prog_AR"; then
12264 # Extract the first word of "ar", so it can be a program name with args.
12265 set dummy ar; ac_word=$2
12266 echo "$as_me:$LINENO: checking for $ac_word" >&5
12267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12268 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 if test -n "$ac_ct_AR"; then
12272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12281 ac_cv_prog_ac_ct_AR="ar"
12282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12292 if test -n "$ac_ct_AR"; then
12293 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12294 echo "${ECHO_T}$ac_ct_AR" >&6
12296 echo "$as_me:$LINENO: result: no" >&5
12297 echo "${ECHO_T}no" >&6
12302 AR="$ac_cv_prog_AR"
12305 if test -n "$ac_tool_prefix"; then
12306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12307 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12308 echo "$as_me:$LINENO: checking for $ac_word" >&5
12309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12310 if test "${ac_cv_prog_RANLIB+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 if test -n "$RANLIB"; then
12314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 RANLIB=$ac_cv_prog_RANLIB
12333 if test -n "$RANLIB"; then
12334 echo "$as_me:$LINENO: result: $RANLIB" >&5
12335 echo "${ECHO_T}$RANLIB" >&6
12337 echo "$as_me:$LINENO: result: no" >&5
12338 echo "${ECHO_T}no" >&6
12342 if test -z "$ac_cv_prog_RANLIB"; then
12343 ac_ct_RANLIB=$RANLIB
12344 # Extract the first word of "ranlib", so it can be a program name with args.
12345 set dummy ranlib; ac_word=$2
12346 echo "$as_me:$LINENO: checking for $ac_word" >&5
12347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 if test -n "$ac_ct_RANLIB"; then
12352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_prog_ac_ct_RANLIB="ranlib"
12362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12372 if test -n "$ac_ct_RANLIB"; then
12373 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12374 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12376 echo "$as_me:$LINENO: result: no" >&5
12377 echo "${ECHO_T}no" >&6
12380 RANLIB=$ac_ct_RANLIB
12382 RANLIB="$ac_cv_prog_RANLIB"
12385 if test -n "$ac_tool_prefix"; then
12386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12387 set dummy ${ac_tool_prefix}strip; ac_word=$2
12388 echo "$as_me:$LINENO: checking for $ac_word" >&5
12389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12390 if test "${ac_cv_prog_STRIP+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 if test -n "$STRIP"; then
12394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 STRIP=$ac_cv_prog_STRIP
12413 if test -n "$STRIP"; then
12414 echo "$as_me:$LINENO: result: $STRIP" >&5
12415 echo "${ECHO_T}$STRIP" >&6
12417 echo "$as_me:$LINENO: result: no" >&5
12418 echo "${ECHO_T}no" >&6
12422 if test -z "$ac_cv_prog_STRIP"; then
12424 # Extract the first word of "strip", so it can be a program name with args.
12425 set dummy strip; ac_word=$2
12426 echo "$as_me:$LINENO: checking for $ac_word" >&5
12427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12428 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 if test -n "$ac_ct_STRIP"; then
12432 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441 ac_cv_prog_ac_ct_STRIP="strip"
12442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12452 if test -n "$ac_ct_STRIP"; then
12453 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12454 echo "${ECHO_T}$ac_ct_STRIP" >&6
12456 echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12462 STRIP="$ac_cv_prog_STRIP"
12467 old_CFLAGS="$CFLAGS"
12469 # Set sane defaults for various variables
12470 test -z "$AR" && AR=ar
12471 test -z "$AR_FLAGS" && AR_FLAGS=cru
12472 test -z "$AS" && AS=as
12473 test -z "$CC" && CC=cc
12474 test -z "$LTCC" && LTCC=$CC
12475 test -z "$DLLTOOL" && DLLTOOL=dlltool
12476 test -z "$LD" && LD=ld
12477 test -z "$LN_S" && LN_S="ln -s"
12478 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12479 test -z "$NM" && NM=nm
12480 test -z "$SED" && SED=sed
12481 test -z "$OBJDUMP" && OBJDUMP=objdump
12482 test -z "$RANLIB" && RANLIB=:
12483 test -z "$STRIP" && STRIP=:
12484 test -z "$ac_objext" && ac_objext=o
12486 # Determine commands to create old-style static archives.
12487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12488 old_postinstall_cmds='chmod 644 $oldlib'
12489 old_postuninstall_cmds=
12491 if test -n "$RANLIB"; then
12494 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12497 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12503 # Only perform the check for file, if the check method requires it
12504 case $deplibs_check_method in
12506 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12507 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12508 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12509 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12517 lt_save_MAGIC_CMD="$MAGIC_CMD"
12518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12519 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12520 for ac_dir in $ac_dummy; do
12522 test -z "$ac_dir" && ac_dir=.
12523 if test -f $ac_dir/${ac_tool_prefix}file; then
12524 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12525 if test -n "$file_magic_test_file"; then
12526 case $deplibs_check_method in
12528 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12530 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12531 $EGREP "$file_magic_regex" > /dev/null; then
12536 *** Warning: the command libtool uses to detect shared libraries,
12537 *** $file_magic_cmd, produces output that libtool cannot recognize.
12538 *** The result is that libtool may fail to recognize shared libraries
12539 *** as such. This will affect the creation of libtool libraries that
12540 *** depend on shared libraries, but programs linked with such libtool
12541 *** libraries will work regardless of this problem. Nevertheless, you
12542 *** may want to report the problem to your system manager and/or to
12543 *** bug-libtool@gnu.org
12553 MAGIC_CMD="$lt_save_MAGIC_CMD"
12558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12559 if test -n "$MAGIC_CMD"; then
12560 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12561 echo "${ECHO_T}$MAGIC_CMD" >&6
12563 echo "$as_me:$LINENO: result: no" >&5
12564 echo "${ECHO_T}no" >&6
12567 if test -z "$lt_cv_path_MAGIC_CMD"; then
12568 if test -n "$ac_tool_prefix"; then
12569 echo "$as_me:$LINENO: checking for file" >&5
12570 echo $ECHO_N "checking for file... $ECHO_C" >&6
12571 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12579 lt_save_MAGIC_CMD="$MAGIC_CMD"
12580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12582 for ac_dir in $ac_dummy; do
12584 test -z "$ac_dir" && ac_dir=.
12585 if test -f $ac_dir/file; then
12586 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12587 if test -n "$file_magic_test_file"; then
12588 case $deplibs_check_method in
12590 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12593 $EGREP "$file_magic_regex" > /dev/null; then
12598 *** Warning: the command libtool uses to detect shared libraries,
12599 *** $file_magic_cmd, produces output that libtool cannot recognize.
12600 *** The result is that libtool may fail to recognize shared libraries
12601 *** as such. This will affect the creation of libtool libraries that
12602 *** depend on shared libraries, but programs linked with such libtool
12603 *** libraries will work regardless of this problem. Nevertheless, you
12604 *** may want to report the problem to your system manager and/or to
12605 *** bug-libtool@gnu.org
12615 MAGIC_CMD="$lt_save_MAGIC_CMD"
12620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12621 if test -n "$MAGIC_CMD"; then
12622 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12623 echo "${ECHO_T}$MAGIC_CMD" >&6
12625 echo "$as_me:$LINENO: result: no" >&5
12626 echo "${ECHO_T}no" >&6
12639 enable_win32_dll=no
12641 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12642 if test "${enable_libtool_lock+set}" = set; then
12643 enableval="$enable_libtool_lock"
12646 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12649 # Check whether --with-pic or --without-pic was given.
12650 if test "${with_pic+set}" = set; then
12651 withval="$with_pic"
12652 pic_mode="$withval"
12656 test -z "$pic_mode" && pic_mode=default
12658 # Use C for the default configuration in the libtool script
12662 ac_cpp='$CPP $CPPFLAGS'
12663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12668 # Source file extension for C test sources.
12671 # Object file extension for compiled C test sources.
12675 # Code to be used in simple compile tests
12676 lt_simple_compile_test_code="int some_variable = 0;\n"
12678 # Code to be used in simple link tests
12679 lt_simple_link_test_code='int main(){return(0);}\n'
12682 # If no C compiler was specified, use CC.
12685 # Allow CC to be a program name with arguments.
12690 # Check for any special shared library compilation flags.
12693 if test "$GCC" = no; then
12696 lt_prog_cc_shlib='-belf'
12700 if test -n "$lt_prog_cc_shlib"; then
12701 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12702 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12703 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12705 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12706 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12707 lt_cv_prog_cc_can_build_shared=no
12713 # Check to make sure the static flag actually works.
12715 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12716 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12717 if test "${lt_prog_compiler_static_works+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 lt_prog_compiler_static_works=no
12721 save_LDFLAGS="$LDFLAGS"
12722 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12723 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12725 # The compiler can only warn and ignore the option if not recognized
12726 # So say no if there are warnings
12727 if test -s conftest.err; then
12728 # Append any errors to the config.log.
12729 cat conftest.err 1>&5
12731 lt_prog_compiler_static_works=yes
12735 LDFLAGS="$save_LDFLAGS"
12738 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12739 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12741 if test x"$lt_prog_compiler_static_works" = xyes; then
12744 lt_prog_compiler_static=
12750 ## There is no encapsulation within the following macros, do not change
12751 ## the running order or otherwise move them around unless you know exactly
12752 ## what you are doing...
12754 lt_prog_compiler_no_builtin_flag=
12756 if test "$GCC" = yes; then
12757 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12760 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12761 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12762 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 lt_cv_prog_compiler_rtti_exceptions=no
12766 ac_outfile=conftest.$ac_objext
12767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12768 lt_compiler_flag="-fno-rtti -fno-exceptions"
12769 # Insert the option either (1) after the last *FLAGS variable, or
12770 # (2) before a word containing "conftest.", or (3) at the end.
12771 # Note that $ac_compile itself does not contain backslashes and begins
12772 # with a dollar sign (not a hyphen), so the echo should work correctly.
12773 # The option is referenced via a variable to avoid confusing sed.
12774 lt_compile=`echo "$ac_compile" | $SED \
12775 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12777 -e 's:$: $lt_compiler_flag:'`
12778 (eval echo "\"\$as_me:12778: $lt_compile\"" >&5)
12779 (eval "$lt_compile" 2>conftest.err)
12781 cat conftest.err >&5
12782 echo "$as_me:12782: \$? = $ac_status" >&5
12783 if (exit $ac_status) && test -s "$ac_outfile"; then
12784 # The compiler can only warn and ignore the option if not recognized
12785 # So say no if there are warnings
12786 if test ! -s conftest.err; then
12787 lt_cv_prog_compiler_rtti_exceptions=yes
12793 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12794 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12797 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12804 lt_prog_compiler_wl=
12805 lt_prog_compiler_pic=
12806 lt_prog_compiler_static=
12808 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12809 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12811 if test "$GCC" = yes; then
12812 lt_prog_compiler_wl='-Wl,'
12813 lt_prog_compiler_static='-static'
12817 # All AIX code is PIC.
12818 if test "$host_cpu" = ia64; then
12819 # AIX 5 now supports IA64 processor
12820 lt_prog_compiler_static='-Bstatic'
12825 # FIXME: we need at least 68020 code to build shared libraries, but
12826 # adding the `-m68020' flag to GCC prevents building anything better,
12828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12831 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12832 # PIC is the default for these OSes.
12835 mingw* | pw32* | os2*)
12836 # This hack is so that the source file can tell whether it is being
12837 # built for inclusion in a dll (and should export symbols for example).
12838 lt_prog_compiler_pic='-DDLL_EXPORT'
12841 darwin* | rhapsody*)
12842 # PIC is the default on this platform
12843 # Common symbols not allowed in MH_DYLIB files
12844 lt_prog_compiler_pic='-fno-common'
12848 # Just because we use GCC doesn't mean we suddenly get shared libraries
12849 # on systems that don't support them.
12850 lt_prog_compiler_can_build_shared=no
12855 if test -d /usr/nec; then
12856 lt_prog_compiler_pic=-Kconform_pic
12861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12862 # not for PA HP-UX.
12863 case "$host_cpu" in
12868 lt_prog_compiler_pic='-fPIC'
12874 lt_prog_compiler_pic='-fPIC'
12878 # PORTME Check for flag to pass linker flags through the system compiler.
12881 lt_prog_compiler_wl='-Wl,'
12882 if test "$host_cpu" = ia64; then
12883 # AIX 5 now supports IA64 processor
12884 lt_prog_compiler_static='-Bstatic'
12886 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12890 mingw* | pw32* | os2*)
12891 # This hack is so that the source file can tell whether it is being
12892 # built for inclusion in a dll (and should export symbols for example).
12893 lt_prog_compiler_pic='-DDLL_EXPORT'
12896 hpux9* | hpux10* | hpux11*)
12897 lt_prog_compiler_wl='-Wl,'
12898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12899 # not for PA HP-UX.
12900 case "$host_cpu" in
12905 lt_prog_compiler_pic='+Z'
12908 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12909 lt_prog_compiler_static='${wl}-a ${wl}archive'
12912 irix5* | irix6* | nonstopux*)
12913 lt_prog_compiler_wl='-Wl,'
12914 # PIC (with -KPIC) is the default.
12915 lt_prog_compiler_static='-non_shared'
12919 lt_prog_compiler_pic='-KPIC'
12920 lt_prog_compiler_static='-Bstatic'
12926 lt_prog_compiler_wl='-Wl,'
12927 lt_prog_compiler_pic='-KPIC'
12928 lt_prog_compiler_static='-static'
12931 lt_prog_compiler_wl='-Wl,'
12932 # All Alpha code is PIC.
12933 lt_prog_compiler_static='-non_shared'
12938 osf3* | osf4* | osf5*)
12939 lt_prog_compiler_wl='-Wl,'
12940 # All OSF/1 code is PIC.
12941 lt_prog_compiler_static='-non_shared'
12945 lt_prog_compiler_pic='-Kpic'
12946 lt_prog_compiler_static='-dn'
12950 lt_prog_compiler_wl='-Wl,'
12951 lt_prog_compiler_pic='-KPIC'
12952 lt_prog_compiler_static='-Bstatic'
12956 lt_prog_compiler_wl='-Qoption ld '
12957 lt_prog_compiler_pic='-PIC'
12958 lt_prog_compiler_static='-Bstatic'
12961 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12962 lt_prog_compiler_wl='-Wl,'
12963 lt_prog_compiler_pic='-KPIC'
12964 lt_prog_compiler_static='-Bstatic'
12968 if test -d /usr/nec ;then
12969 lt_prog_compiler_pic='-Kconform_pic'
12970 lt_prog_compiler_static='-Bstatic'
12975 lt_prog_compiler_pic='-pic'
12976 lt_prog_compiler_static='-Bstatic'
12980 lt_prog_compiler_can_build_shared=no
12985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12986 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12989 # Check to make sure the PIC flag actually works.
12991 if test -n "$lt_prog_compiler_pic"; then
12993 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12995 if test "${lt_prog_compiler_pic_works+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 lt_prog_compiler_pic_works=no
12999 ac_outfile=conftest.$ac_objext
13000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13002 # Insert the option either (1) after the last *FLAGS variable, or
13003 # (2) before a word containing "conftest.", or (3) at the end.
13004 # Note that $ac_compile itself does not contain backslashes and begins
13005 # with a dollar sign (not a hyphen), so the echo should work correctly.
13006 # The option is referenced via a variable to avoid confusing sed.
13007 lt_compile=`echo "$ac_compile" | $SED \
13008 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13010 -e 's:$: $lt_compiler_flag:'`
13011 (eval echo "\"\$as_me:13011: $lt_compile\"" >&5)
13012 (eval "$lt_compile" 2>conftest.err)
13014 cat conftest.err >&5
13015 echo "$as_me:13015: \$? = $ac_status" >&5
13016 if (exit $ac_status) && test -s "$ac_outfile"; then
13017 # The compiler can only warn and ignore the option if not recognized
13018 # So say no if there are warnings
13019 if test ! -s conftest.err; then
13020 lt_prog_compiler_pic_works=yes
13026 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13027 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13029 if test x"$lt_prog_compiler_pic_works" = xyes; then
13030 case $lt_prog_compiler_pic in
13032 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13035 lt_prog_compiler_pic=
13036 lt_prog_compiler_can_build_shared=no
13041 # For platforms which do not support PIC, -DPIC is meaningless:
13043 lt_prog_compiler_pic=
13046 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13050 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13052 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 lt_cv_prog_compiler_c_o=no
13056 $rm -r conftest 2>/dev/null
13060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13062 lt_compiler_flag="-o out/conftest2.$ac_objext"
13063 # Insert the option either (1) after the last *FLAGS variable, or
13064 # (2) before a word containing "conftest.", or (3) at the end.
13065 # Note that $ac_compile itself does not contain backslashes and begins
13066 # with a dollar sign (not a hyphen), so the echo should work correctly.
13067 lt_compile=`echo "$ac_compile" | $SED \
13068 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13070 -e 's:$: $lt_compiler_flag:'`
13071 (eval echo "\"\$as_me:13071: $lt_compile\"" >&5)
13072 (eval "$lt_compile" 2>out/conftest.err)
13074 cat out/conftest.err >&5
13075 echo "$as_me:13075: \$? = $ac_status" >&5
13076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13078 # The compiler can only warn and ignore the option if not recognized
13079 # So say no if there are warnings
13080 if test ! -s out/conftest.err; then
13081 lt_cv_prog_compiler_c_o=yes
13086 # SGI C++ compiler will create directory out/ii_files/ for
13087 # template instantiation
13088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13089 $rm out/* && rmdir out
13095 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13099 hard_links="nottested"
13100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13101 # do not overwrite the value of need_locks provided by the user
13102 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108 ln conftest.a conftest.b 2>&5 || hard_links=no
13109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13110 echo "$as_me:$LINENO: result: $hard_links" >&5
13111 echo "${ECHO_T}$hard_links" >&6
13112 if test "$hard_links" = no; then
13113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13121 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13125 allow_undefined_flag=
13126 enable_shared_with_static_runtimes=no
13128 archive_expsym_cmds=
13129 old_archive_From_new_cmds=
13130 old_archive_from_expsyms_cmds=
13131 export_dynamic_flag_spec=
13132 whole_archive_flag_spec=
13133 thread_safe_flag_spec=
13134 hardcode_libdir_flag_spec=
13135 hardcode_libdir_flag_spec_ld=
13136 hardcode_libdir_separator=
13138 hardcode_minus_L=no
13139 hardcode_shlibpath_var=unsupported
13140 link_all_deplibs=unknown
13141 hardcode_automatic=no
13143 module_expsym_cmds=
13144 always_export_symbols=no
13145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13146 # include_expsyms should be a list of space-separated symbols to be *always*
13147 # included in the symbol list
13149 # exclude_expsyms can be an extended regexp of symbols to exclude
13150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13152 # as well as any symbol that contains `d'.
13153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13155 # platforms (ab)use it in PIC code, but their linkers get confused if
13156 # the symbol is explicitly referenced. Since portable code cannot
13157 # rely on this symbol name, it's probably fine to never include it in
13158 # preloaded symbol tables.
13159 extract_expsyms_cmds=
13162 cygwin* | mingw* | pw32*)
13163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13164 # When not using gcc, we currently assume that we are using
13165 # Microsoft Visual C++.
13166 if test "$GCC" != yes; then
13176 if test "$with_gnu_ld" = yes; then
13177 # If archive_cmds runs LD, not CC, wlarc should be empty
13180 # See if GNU ld supports shared libraries.
13182 aix3* | aix4* | aix5*)
13183 # On AIX/PPC, the GNU linker is very broken
13184 if test "$host_cpu" != ia64; then
13188 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13189 *** to be unable to reliably create shared libraries on AIX.
13190 *** Therefore, libtool is disabling shared libraries support. If you
13191 *** really care for shared libraries, you may want to modify your PATH
13192 *** so that a non-GNU linker is found, and then restart.
13199 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)'
13200 hardcode_libdir_flag_spec='-L$libdir'
13201 hardcode_minus_L=yes
13203 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13204 # that the semantics of dynamic libraries on AmigaOS, at least up
13205 # to version 4, is to share data among multiple programs linked
13206 # with the same dynamic library. Since this doesn't match the
13207 # behavior of shared libraries on other platforms, we can't use
13213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13214 allow_undefined_flag=unsupported
13215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13216 # support --undefined. This deserves some investigation. FIXME
13217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223 cygwin* | mingw* | pw32*)
13224 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13225 # as there is no search path for DLLs.
13226 hardcode_libdir_flag_spec='-L$libdir'
13227 allow_undefined_flag=unsupported
13228 always_export_symbols=no
13229 enable_shared_with_static_runtimes=yes
13230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13232 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13234 # If the export-symbols file already is a .def file (1st line
13235 # is EXPORTS), use it as is; otherwise, prepend...
13236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13237 cp $export_symbols $output_objdir/$soname.def;
13239 echo EXPORTS > $output_objdir/$soname.def;
13240 cat $export_symbols >> $output_objdir/$soname.def;
13242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13259 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13264 *** create shared libraries on Solaris systems. Therefore, libtool
13265 *** is disabling shared libraries support. We urge you to upgrade GNU
13266 *** binutils to release 2.9.1 or newer. Another option is to modify
13267 *** your PATH or compiler configuration so that the native linker is
13268 *** used, and then restart.
13271 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13280 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13282 hardcode_direct=yes
13283 hardcode_shlibpath_var=no
13287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13288 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289 archive_cmds="$tmp_archive_cmds"
13290 supports_anon_versioning=no
13291 case `$LD -v 2>/dev/null` in
13292 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13295 *\ 2.11.*) ;; # other 2.11 versions
13296 *) supports_anon_versioning=yes ;;
13298 if test $supports_anon_versioning = yes; then
13299 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13301 $echo "local: *; };" >> $output_objdir/$libname.ver~
13302 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13304 archive_expsym_cmds="$tmp_archive_cmds"
13312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13321 if test "$ld_shlibs" = yes; then
13322 runpath_var=LD_RUN_PATH
13323 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13324 export_dynamic_flag_spec='${wl}--export-dynamic'
13325 # ancient GNU ld didn't support --whole-archive et. al.
13326 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13327 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13329 whole_archive_flag_spec=
13333 # PORTME fill in a description of your system's linker (not GNU ld)
13336 allow_undefined_flag=unsupported
13337 always_export_symbols=yes
13338 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'
13339 # Note: this linker hardcodes the directories in LIBPATH if there
13340 # are no directories specified by -L.
13341 hardcode_minus_L=yes
13342 if test "$GCC" = yes && test -z "$link_static_flag"; then
13343 # Neither direct hardcoding nor static linking is supported with a
13345 hardcode_direct=unsupported
13350 if test "$host_cpu" = ia64; then
13351 # On IA64, the linker does run time linking by default, so we don't
13352 # have to do anything special.
13353 aix_use_runtimelinking=no
13354 exp_sym_flag='-Bexport'
13357 # If we're using GNU nm, then we don't want the "-C" option.
13358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13359 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13360 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'
13362 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'
13364 aix_use_runtimelinking=no
13366 # Test if we are trying to use run time linking or normal
13367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13368 # need to do runtime linking.
13369 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13370 for ld_flag in $LDFLAGS; do
13371 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13372 aix_use_runtimelinking=yes
13378 exp_sym_flag='-bexport'
13379 no_entry_flag='-bnoentry'
13382 # When large executables or shared objects are built, AIX ld can
13383 # have problems creating the table of contents. If linking a library
13384 # or program results in "error TOC overflow" add -mminimal-toc to
13385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13389 hardcode_direct=yes
13390 hardcode_libdir_separator=':'
13391 link_all_deplibs=yes
13393 if test "$GCC" = yes; then
13394 case $host_os in aix4.012|aix4.012.*)
13395 # We only want to do this on AIX 4.2 and lower, the check
13396 # below for broken collect2 doesn't work under 4.3+
13397 collect2name=`${CC} -print-prog-name=collect2`
13398 if test -f "$collect2name" && \
13399 strings "$collect2name" | grep resolve_lib_name >/dev/null
13401 # We have reworked collect2
13402 hardcode_direct=yes
13404 # We have old collect2
13405 hardcode_direct=unsupported
13406 # It fails to find uninstalled libraries when the uninstalled
13407 # path is not listed in the libpath. Setting hardcode_minus_L
13408 # to unsupported forces relinking
13409 hardcode_minus_L=yes
13410 hardcode_libdir_flag_spec='-L$libdir'
13411 hardcode_libdir_separator=
13414 shared_flag='-shared'
13417 if test "$host_cpu" = ia64; then
13418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13419 # chokes on -Wl,-G. The following line is correct:
13422 if test "$aix_use_runtimelinking" = yes; then
13423 shared_flag='${wl}-G'
13425 shared_flag='${wl}-bM:SRE'
13430 # It seems that -bexpall does not export symbols beginning with
13431 # underscore (_), so it is better to generate a list of symbols to export.
13432 always_export_symbols=yes
13433 if test "$aix_use_runtimelinking" = yes; then
13434 # Warning - without using the other runtime loading flags (-brtl),
13435 # -berok will link without error, but may produce a broken library.
13436 allow_undefined_flag='-berok'
13437 # Determine the default libpath from the value encoded in an empty executable.
13438 cat >conftest.$ac_ext <<_ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13457 grep -v '^ *+' conftest.er1 >conftest.err
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13478 # Check for a 64-bit object if we didn't find anything.
13479 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; }
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13486 rm -f conftest.err conftest.$ac_objext \
13487 conftest$ac_exeext conftest.$ac_ext
13488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13491 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"
13493 if test "$host_cpu" = ia64; then
13494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13495 allow_undefined_flag="-z nodefs"
13496 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"
13498 # Determine the default libpath from the value encoded in an empty executable.
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516 (eval $ac_link) 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag"
13524 || test ! -s conftest.err'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } &&
13530 { ac_try='test -s conftest$ac_exeext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13539 # Check for a 64-bit object if we didn't find anything.
13540 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; }
13543 echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13547 rm -f conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13552 # Warning - without using the other run time loading flags,
13553 # -berok will link without error, but may produce a broken library.
13554 no_undefined_flag=' ${wl}-bernotok'
13555 allow_undefined_flag=' ${wl}-berok'
13556 # -bexpall does not export symbols beginning with underscore (_)
13557 always_export_symbols=yes
13558 # Exported symbols can be pulled into shared objects from archives
13559 whole_archive_flag_spec=' '
13560 archive_cmds_need_lc=yes
13561 # This is similar to how AIX traditionally builds it's shared libraries.
13562 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'
13568 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)'
13569 hardcode_libdir_flag_spec='-L$libdir'
13570 hardcode_minus_L=yes
13571 # see comment about different semantics on the GNU ld section
13576 export_dynamic_flag_spec=-rdynamic
13579 cygwin* | mingw* | pw32*)
13580 # When not using gcc, we currently assume that we are using
13581 # Microsoft Visual C++.
13582 # hardcode_libdir_flag_spec is actually meaningless, as there is
13583 # no search path for DLLs.
13584 hardcode_libdir_flag_spec=' '
13585 allow_undefined_flag=unsupported
13586 # Tell ltmain to make .lib files, not .a files.
13588 # Tell ltmain to make .dll files, not .so files.
13590 # FIXME: Setting linknames here is a bad hack.
13591 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13592 # The linker will automatically build a .lib file if we build a DLL.
13593 old_archive_From_new_cmds='true'
13594 # FIXME: Should let the user specify the lib program.
13595 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13596 fix_srcfile_path='`cygpath -w "$srcfile"`'
13597 enable_shared_with_static_runtimes=yes
13600 darwin* | rhapsody*)
13601 if test "$GXX" = yes ; then
13602 archive_cmds_need_lc=no
13604 rhapsody* | darwin1.[012])
13605 allow_undefined_flag='-undefined suppress'
13608 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13609 allow_undefined_flag='-flat_namespace -undefined suppress'
13611 case ${MACOSX_DEPLOYMENT_TARGET} in
13613 allow_undefined_flag='-flat_namespace -undefined suppress'
13616 allow_undefined_flag='-undefined dynamic_lookup'
13622 lt_int_apple_cc_single_mod=no
13623 output_verbose_link_cmd='echo'
13624 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13625 lt_int_apple_cc_single_mod=yes
13627 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13628 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13630 archive_cmds='$CC -r ${wl}-bind_at_load -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'
13632 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13634 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13635 archive_expsym_cmds='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}'
13637 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13639 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}'
13641 hardcode_automatic=yes
13642 hardcode_shlibpath_var=unsupported
13643 whole_archive_flag_spec='-all_load $convenience'
13644 link_all_deplibs=yes
13651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652 hardcode_libdir_flag_spec='-L$libdir'
13653 hardcode_shlibpath_var=no
13660 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13661 # support. Future versions do this automatically, but an explicit c++rt0.o
13662 # does not break anything, and helps significantly (at the cost of a little
13665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13666 hardcode_libdir_flag_spec='-R$libdir'
13667 hardcode_direct=yes
13668 hardcode_shlibpath_var=no
13671 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13674 hardcode_direct=yes
13675 hardcode_minus_L=yes
13676 hardcode_shlibpath_var=no
13679 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13680 freebsd* | kfreebsd*-gnu)
13681 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13682 hardcode_libdir_flag_spec='-R$libdir'
13683 hardcode_direct=yes
13684 hardcode_shlibpath_var=no
13688 if test "$GCC" = yes; then
13689 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'
13691 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'
13693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13694 hardcode_libdir_separator=:
13695 hardcode_direct=yes
13697 # hardcode_minus_L: Not really in the search PATH,
13698 # but as the default location of the library.
13699 hardcode_minus_L=yes
13700 export_dynamic_flag_spec='${wl}-E'
13704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13705 case "$host_cpu" in
13707 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13714 case "$host_cpu" in
13716 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13723 if test "$with_gnu_ld" = no; then
13724 case "$host_cpu" in
13726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13727 hardcode_libdir_flag_spec_ld='+b $libdir'
13728 hardcode_libdir_separator=:
13730 hardcode_shlibpath_var=no
13733 hardcode_libdir_flag_spec='-L$libdir'
13735 hardcode_shlibpath_var=no
13737 # hardcode_minus_L: Not really in the search PATH,
13738 # but as the default location of the library.
13739 hardcode_minus_L=yes
13742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13743 hardcode_libdir_separator=:
13744 hardcode_direct=yes
13745 export_dynamic_flag_spec='${wl}-E'
13747 # hardcode_minus_L: Not really in the search PATH,
13748 # but as the default location of the library.
13749 hardcode_minus_L=yes
13755 irix5* | irix6* | nonstopux*)
13756 if test "$GCC" = yes; then
13757 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'
13759 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'
13760 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13763 hardcode_libdir_separator=:
13764 link_all_deplibs=yes
13768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13773 hardcode_libdir_flag_spec='-R$libdir'
13774 hardcode_direct=yes
13775 hardcode_shlibpath_var=no
13779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_direct=yes
13781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13782 hardcode_libdir_separator=:
13783 hardcode_shlibpath_var=no
13787 hardcode_direct=yes
13788 hardcode_shlibpath_var=no
13789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13792 export_dynamic_flag_spec='${wl}-E'
13795 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13797 hardcode_libdir_flag_spec='-R$libdir'
13800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13808 hardcode_libdir_flag_spec='-L$libdir'
13809 hardcode_minus_L=yes
13810 allow_undefined_flag=unsupported
13811 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'
13812 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13816 if test "$GCC" = yes; then
13817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13818 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'
13820 allow_undefined_flag=' -expect_unresolved \*'
13821 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'
13823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13824 hardcode_libdir_separator=:
13827 osf4* | osf5*) # as osf3* with the addition of -msym flag
13828 if test "$GCC" = yes; then
13829 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13830 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'
13831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13833 allow_undefined_flag=' -expect_unresolved \*'
13834 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'
13835 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13836 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13838 # Both c and cxx compiler support -rpath directly
13839 hardcode_libdir_flag_spec='-rpath $libdir'
13841 hardcode_libdir_separator=:
13845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_shlibpath_var=no
13847 export_dynamic_flag_spec='${wl}-Bexport'
13848 runpath_var=LD_RUN_PATH
13849 hardcode_runpath_var=yes
13853 no_undefined_flag=' -z text'
13854 if test "$GCC" = yes; then
13855 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13856 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13857 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13859 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13863 hardcode_libdir_flag_spec='-R$libdir'
13864 hardcode_shlibpath_var=no
13866 solaris2.[0-5] | solaris2.[0-5].*) ;;
13867 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13868 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13870 link_all_deplibs=yes
13874 if test "x$host_vendor" = xsequent; then
13875 # Use $CC to link under sequent, because it throws in some extra .o
13876 # files that make .init and .fini sections work.
13877 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13879 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13881 hardcode_libdir_flag_spec='-L$libdir'
13882 hardcode_direct=yes
13883 hardcode_minus_L=yes
13884 hardcode_shlibpath_var=no
13888 case $host_vendor in
13890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891 hardcode_direct=yes # is this really true???
13894 ## LD is ld it makes a PLAMLIB
13895 ## CC just makes a GrossModule.
13896 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13897 reload_cmds='$CC -r -o $output$reload_objs'
13901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13905 runpath_var='LD_RUN_PATH'
13906 hardcode_shlibpath_var=no
13910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13911 hardcode_shlibpath_var=no
13912 export_dynamic_flag_spec='-Bexport'
13916 if test -d /usr/nec; then
13917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13918 hardcode_shlibpath_var=no
13919 runpath_var=LD_RUN_PATH
13920 hardcode_runpath_var=yes
13926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13927 hardcode_direct=yes
13928 hardcode_minus_L=no
13929 hardcode_shlibpath_var=no
13930 hardcode_runpath_var=yes
13931 runpath_var=LD_RUN_PATH
13934 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13935 no_undefined_flag='${wl}-z ${wl}text'
13936 if test "$GCC" = yes; then
13937 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13939 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13941 runpath_var='LD_RUN_PATH'
13942 hardcode_shlibpath_var=no
13946 no_undefined_flag=' -z text'
13947 # $CC -shared without GNU ld will not create a library from C++
13948 # object files and a static libstdc++, better avoid it by now
13949 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13951 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13952 hardcode_libdir_flag_spec=
13953 hardcode_shlibpath_var=no
13954 runpath_var='LD_RUN_PATH'
13958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13959 hardcode_libdir_flag_spec='-L$libdir'
13960 hardcode_shlibpath_var=no
13969 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13970 echo "${ECHO_T}$ld_shlibs" >&6
13971 test "$ld_shlibs" = no && can_build_shared=no
13973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13974 if test "$GCC" = yes; then
13975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13979 # Do we need to explicitly link libc?
13981 case "x$archive_cmds_need_lc" in
13983 # Assume -lc should be added
13984 archive_cmds_need_lc=yes
13986 if test "$enable_shared" = yes && test "$GCC" = yes; then
13987 case $archive_cmds in
13989 # FIXME: we may have to deal with multi-command sequences.
13992 # Test whether the compiler implicitly links with -lc since on some
13993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13994 # to ld, don't add -lc before -lgcc.
13995 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13996 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001 (eval $ac_compile) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } 2>conftest.err; then
14007 libobjs=conftest.$ac_objext
14009 wl=$lt_prog_compiler_wl
14015 lt_save_allow_undefined_flag=$allow_undefined_flag
14016 allow_undefined_flag=
14017 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14018 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }
14023 archive_cmds_need_lc=no
14025 archive_cmds_need_lc=yes
14027 allow_undefined_flag=$lt_save_allow_undefined_flag
14029 cat conftest.err 1>&5
14032 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14033 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14040 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14041 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14042 library_names_spec=
14043 libname_spec='lib$name'
14047 postuninstall_cmds=
14051 shlibpath_overrides_runpath=unknown
14053 dynamic_linker="$host_os ld.so"
14054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14055 if test "$GCC" = yes; then
14056 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14057 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14058 # if the path contains ";" then we assume it to be the separator
14059 # otherwise default to the standard path separator (i.e. ":") - it is
14060 # assumed that no part of a normal pathname contains ";" but that should
14061 # okay in the real world where ";" in dirpaths is itself problematic.
14062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14069 need_lib_prefix=unknown
14070 hardcode_into_libs=no
14072 # when you set need_version to no, make sure it does not cause -set_version
14073 # flags to be left without arguments
14074 need_version=unknown
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14080 shlibpath_var=LIBPATH
14082 # AIX 3 has no versioning support, so we append a major version to the name.
14083 soname_spec='${libname}${release}${shared_ext}$major'
14090 hardcode_into_libs=yes
14091 if test "$host_cpu" = ia64; then
14092 # AIX 5 supports IA64
14093 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14094 shlibpath_var=LD_LIBRARY_PATH
14096 # With GCC up to 2.95.x, collect2 would create an import file
14097 # for dependence libraries. The import file would start with
14098 # the line `#! .'. This would cause the generated library to
14099 # depend on `.', always an invalid library. This was fixed in
14100 # development snapshots of GCC prior to 3.0.
14102 aix4 | aix4.[01] | aix4.[01].*)
14103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14105 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14108 can_build_shared=no
14112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14113 # soname into executable. Probably we can add versioning support to
14114 # collect2, so additional links can be useful in future.
14115 if test "$aix_use_runtimelinking" = yes; then
14116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14117 # instead of lib<name>.a to let people know that these are not
14118 # typical AIX shared libraries.
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 # We preserve .a as extension for shared libraries through AIX4.2
14122 # and later when we are not doing run time linking.
14123 library_names_spec='${libname}${release}.a $libname.a'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14126 shlibpath_var=LIBPATH
14131 library_names_spec='$libname.ixlibrary $libname.a'
14132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14133 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'
14137 library_names_spec='${libname}${shared_ext}'
14138 dynamic_linker="$host_os ld.so"
14139 shlibpath_var=LIBRARY_PATH
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14151 # the default ld.so.conf also contains /usr/contrib/lib and
14152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14153 # libtool to hard-code these into programs
14156 cygwin* | mingw* | pw32*)
14157 version_type=windows
14162 case $GCC,$host_os in
14163 yes,cygwin* | yes,mingw* | yes,pw32*)
14164 library_names_spec='$libname.dll.a'
14165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14166 postinstall_cmds='base_file=`basename \${file}`~
14167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14168 dldir=$destdir/`dirname \$dlpath`~
14169 test -d \$dldir || mkdir -p \$dldir~
14170 $install_prog $dir/$dlname \$dldir/$dlname'
14171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14172 dlpath=$dir/\$dldll~
14174 shlibpath_overrides_runpath=yes
14178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14180 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14183 # MinGW DLLs use traditional 'lib' prefix
14184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14186 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14187 # It is most probably a Windows format PATH printed by
14188 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14189 # path with ; separators, and with drive letters. We can handle the
14190 # drive letters (cygwin fileutils understands them), so leave them,
14191 # especially as we might pass files found there to a mingw objdump,
14192 # which wouldn't understand a cygwinified path. Ahh.
14193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14199 # pw32 DLLs use 'pw' prefix rather than 'lib'
14200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14209 dynamic_linker='Win32 ld.exe'
14210 # FIXME: first we should search . and the directory the executable is in
14214 darwin* | rhapsody*)
14215 dynamic_linker="$host_os dyld"
14216 version_type=darwin
14219 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14220 soname_spec='${libname}${release}${major}$shared_ext'
14221 shlibpath_overrides_runpath=yes
14222 shlibpath_var=DYLD_LIBRARY_PATH
14223 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14224 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14225 if test "$GCC" = yes; then
14226 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"`
14228 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LD_LIBRARY_PATH
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14253 shlibpath_overrides_runpath=no
14254 hardcode_into_libs=yes
14255 dynamic_linker='GNU ld.so'
14259 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14260 version_type=freebsd-$objformat
14261 case $version_type in
14263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14272 shlibpath_var=LD_LIBRARY_PATH
14275 shlibpath_overrides_runpath=yes
14277 freebsd3.01* | freebsdelf3.01*)
14278 shlibpath_overrides_runpath=yes
14279 hardcode_into_libs=yes
14282 shlibpath_overrides_runpath=no
14283 hardcode_into_libs=yes
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14293 soname_spec='${libname}${release}${shared_ext}$major'
14294 shlibpath_var=LD_LIBRARY_PATH
14295 hardcode_into_libs=yes
14298 hpux9* | hpux10* | hpux11*)
14299 # Give a soname corresponding to the major version so that dld.sl refuses to
14300 # link against other versions.
14304 case "$host_cpu" in
14307 hardcode_into_libs=yes
14308 dynamic_linker="$host_os dld.so"
14309 shlibpath_var=LD_LIBRARY_PATH
14310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 if test "X$HPUX_IA64_MODE" = X32; then
14314 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14322 hardcode_into_libs=yes
14323 dynamic_linker="$host_os dld.sl"
14324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14333 dynamic_linker="$host_os dld.sl"
14334 shlibpath_var=SHLIB_PATH
14335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14340 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14341 postinstall_cmds='chmod 555 $lib'
14344 irix5* | irix6* | nonstopux*)
14346 nonstopux*) version_type=nonstopux ;;
14348 if test "$lt_cv_prog_gnu_ld" = yes; then
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14359 irix5* | nonstopux*)
14360 libsuff= shlibsuff=
14363 case $LD in # libtool.m4 will add one of these switches to LD
14364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14365 libsuff= shlibsuff= libmagic=32-bit;;
14366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14367 libsuff=32 shlibsuff=N32 libmagic=N32;;
14368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14370 *) libsuff= shlibsuff= libmagic=never-match;;
14374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14375 shlibpath_overrides_runpath=no
14376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14378 hardcode_into_libs=yes
14381 # No shared lib support for Linux oldld, aout, or coff.
14382 linux*oldld* | linux*aout* | linux*coff*)
14386 # This must be Linux ELF.
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392 soname_spec='${libname}${release}${shared_ext}$major'
14393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14394 shlibpath_var=LD_LIBRARY_PATH
14395 shlibpath_overrides_runpath=no
14396 # This implies no fast_install, which is unacceptable.
14397 # Some rework will be needed to allow for fast_install
14398 # before this can be enabled.
14399 hardcode_into_libs=yes
14401 # Append ld.so.conf contents to the search path
14402 if test -f /etc/ld.so.conf; then
14403 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14407 # We used to test for /lib/ld.so.1 and disable shared libraries on
14408 # powerpc, because MkLinux only supported shared libraries with the
14409 # GNU dynamic linker. Since this was broken with cross compilers,
14410 # most powerpc-linux boxes support dynamic linking these days and
14411 # people can always --disable-shared, the test was removed, and we
14412 # assume the GNU/Linux dynamic linker is in use.
14413 dynamic_linker='GNU/Linux ld.so'
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=no
14424 hardcode_into_libs=yes
14425 dynamic_linker='GNU ld.so'
14432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14435 dynamic_linker='NetBSD (a.out) ld.so'
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 dynamic_linker='NetBSD ld.elf_so'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=yes
14443 hardcode_into_libs=yes
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 shlibpath_overrides_runpath=yes
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14472 openbsd2.[89] | openbsd2.[89].*)
14473 shlibpath_overrides_runpath=no
14476 shlibpath_overrides_runpath=yes
14480 shlibpath_overrides_runpath=yes
14485 libname_spec='$name'
14488 library_names_spec='$libname${shared_ext} $libname.a'
14489 dynamic_linker='OS/2 ld.exe'
14490 shlibpath_var=LIBPATH
14493 osf3* | osf4* | osf5*)
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 shlibpath_var=LD_LIBRARY_PATH
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14519 hardcode_into_libs=yes
14520 # ldd complains unless libraries are executable
14521 postinstall_cmds='chmod +x $lib'
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes
14530 if test "$with_gnu_ld" = yes; then
14536 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 case $host_vendor in
14543 shlibpath_overrides_runpath=no
14545 export_dynamic_flag_spec='${wl}-Blargedynsym'
14546 runpath_var=LD_RUN_PATH
14554 shlibpath_overrides_runpath=no
14555 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14561 if test -d /usr/nec ;then
14563 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14564 soname_spec='$libname${shared_ext}.$major'
14565 shlibpath_var=LD_LIBRARY_PATH
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14580 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14581 echo "${ECHO_T}$dynamic_linker" >&6
14582 test "$dynamic_linker" = no && can_build_shared=no
14584 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14587 if test -n "$hardcode_libdir_flag_spec" || \
14588 test -n "$runpath_var " || \
14589 test "X$hardcode_automatic"="Xyes" ; then
14591 # We can hardcode non-existant directories.
14592 if test "$hardcode_direct" != no &&
14593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14594 # have to relink, otherwise we might link with an installed library
14595 # when we should be linking with a yet-to-be-installed one
14596 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14597 test "$hardcode_minus_L" != no; then
14598 # Linking always hardcodes the temporary library directory.
14599 hardcode_action=relink
14601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14602 hardcode_action=immediate
14605 # We cannot hardcode anything, or else we can only hardcode existing
14607 hardcode_action=unsupported
14609 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14610 echo "${ECHO_T}$hardcode_action" >&6
14612 if test "$hardcode_action" = relink; then
14613 # Fast installation is not supported
14614 enable_fast_install=no
14615 elif test "$shlibpath_overrides_runpath" = yes ||
14616 test "$enable_shared" = no; then
14617 # Fast installation is not necessary
14618 enable_fast_install=needless
14623 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14624 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14625 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14626 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14627 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14628 echo "$as_me:$LINENO: result: yes" >&5
14629 echo "${ECHO_T}yes" >&6
14631 # FIXME - insert some real tests, host_os isn't really good enough
14634 if test -n "$STRIP" ; then
14635 striplib="$STRIP -x"
14636 echo "$as_me:$LINENO: result: yes" >&5
14637 echo "${ECHO_T}yes" >&6
14639 echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6
14644 echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6
14650 if test "x$enable_dlopen" != xyes; then
14651 enable_dlopen=unknown
14652 enable_dlopen_self=unknown
14653 enable_dlopen_self_static=unknown
14660 lt_cv_dlopen="load_add_on"
14662 lt_cv_dlopen_self=yes
14666 lt_cv_dlopen="LoadLibrary"
14671 lt_cv_dlopen="dlopen"
14676 # if libdl is installed we need to link against it
14677 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14678 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 ac_check_lib_save_LIBS=$LIBS
14684 cat >conftest.$ac_ext <<_ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14691 /* Override any gcc2 internal prototype to avoid an error. */
14695 /* We use char because int might match the return type of a gcc2
14696 builtin and then its argument prototype would still apply. */
14706 rm -f conftest.$ac_objext conftest$ac_exeext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14708 (eval $ac_link) 2>conftest.er1
14710 grep -v '^ *+' conftest.er1 >conftest.err
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -z "$ac_c_werror_flag"
14716 || test ! -s conftest.err'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest$ac_exeext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 ac_cv_lib_dl_dlopen=yes
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_cv_lib_dl_dlopen=no
14735 rm -f conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737 LIBS=$ac_check_lib_save_LIBS
14739 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14740 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14741 if test $ac_cv_lib_dl_dlopen = yes; then
14742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14745 lt_cv_dlopen="dyld"
14747 lt_cv_dlopen_self=yes
14754 echo "$as_me:$LINENO: checking for shl_load" >&5
14755 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14756 if test "${ac_cv_func_shl_load+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14765 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14767 #define shl_load innocuous_shl_load
14769 /* System header to define __stub macros and hopefully few prototypes,
14770 which can conflict with char shl_load (); below.
14771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14772 <limits.h> exists even on freestanding compilers. */
14775 # include <limits.h>
14777 # include <assert.h>
14782 /* Override any gcc2 internal prototype to avoid an error. */
14787 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */
14790 /* The GNU C library defines this for functions which it implements
14791 to always fail with ENOSYS. Some functions are actually named
14792 something starting with __ and the normal name is an alias. */
14793 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14796 char (*f) () = shl_load;
14805 return f != shl_load;
14810 rm -f conftest.$ac_objext conftest$ac_exeext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14812 (eval $ac_link) 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag"
14820 || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_func_shl_load=yes
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_cv_func_shl_load=no
14839 rm -f conftest.err conftest.$ac_objext \
14840 conftest$ac_exeext conftest.$ac_ext
14842 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14843 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14844 if test $ac_cv_func_shl_load = yes; then
14845 lt_cv_dlopen="shl_load"
14847 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14848 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14849 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 ac_check_lib_save_LIBS=$LIBS
14854 cat >conftest.$ac_ext <<_ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14861 /* Override any gcc2 internal prototype to avoid an error. */
14865 /* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14876 rm -f conftest.$ac_objext conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -z "$ac_c_werror_flag"
14886 || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 ac_cv_lib_dld_shl_load=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_cv_lib_dld_shl_load=no
14905 rm -f conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14907 LIBS=$ac_check_lib_save_LIBS
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14910 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14911 if test $ac_cv_lib_dld_shl_load = yes; then
14912 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14914 echo "$as_me:$LINENO: checking for dlopen" >&5
14915 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14916 if test "${ac_cv_func_dlopen+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14927 #define dlopen innocuous_dlopen
14929 /* System header to define __stub macros and hopefully few prototypes,
14930 which can conflict with char dlopen (); below.
14931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14932 <limits.h> exists even on freestanding compilers. */
14935 # include <limits.h>
14937 # include <assert.h>
14942 /* Override any gcc2 internal prototype to avoid an error. */
14947 /* We use char because int might match the return type of a gcc2
14948 builtin and then its argument prototype would still apply. */
14950 /* The GNU C library defines this for functions which it implements
14951 to always fail with ENOSYS. Some functions are actually named
14952 something starting with __ and the normal name is an alias. */
14953 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14956 char (*f) () = dlopen;
14965 return f != dlopen;
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14972 (eval $ac_link) 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag"
14980 || test ! -s conftest.err'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest$ac_exeext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_func_dlopen=yes
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_cv_func_dlopen=no
14999 rm -f conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15002 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15003 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15004 if test $ac_cv_func_dlopen = yes; then
15005 lt_cv_dlopen="dlopen"
15007 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 ac_check_lib_save_LIBS=$LIBS
15014 cat >conftest.$ac_ext <<_ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* Override any gcc2 internal prototype to avoid an error. */
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag"
15046 || test ! -s conftest.err'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; } &&
15052 { ac_try='test -s conftest$ac_exeext'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_cv_lib_dl_dlopen=yes
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 ac_cv_lib_dl_dlopen=no
15065 rm -f conftest.err conftest.$ac_objext \
15066 conftest$ac_exeext conftest.$ac_ext
15067 LIBS=$ac_check_lib_save_LIBS
15069 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15071 if test $ac_cv_lib_dl_dlopen = yes; then
15072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15074 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15075 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15076 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 ac_check_lib_save_LIBS=$LIBS
15080 LIBS="-lsvld $LIBS"
15081 cat >conftest.$ac_ext <<_ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15088 /* Override any gcc2 internal prototype to avoid an error. */
15092 /* We use char because int might match the return type of a gcc2
15093 builtin and then its argument prototype would still apply. */
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15105 (eval $ac_link) 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_c_werror_flag"
15113 || test ! -s conftest.err'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest$ac_exeext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 ac_cv_lib_svld_dlopen=yes
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 ac_cv_lib_svld_dlopen=no
15132 rm -f conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15134 LIBS=$ac_check_lib_save_LIBS
15136 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15137 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15138 if test $ac_cv_lib_svld_dlopen = yes; then
15139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15141 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15142 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 ac_check_lib_save_LIBS=$LIBS
15148 cat >conftest.$ac_ext <<_ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15155 /* Override any gcc2 internal prototype to avoid an error. */
15159 /* We use char because int might match the return type of a gcc2
15160 builtin and then its argument prototype would still apply. */
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>conftest.er1
15174 grep -v '^ *+' conftest.er1 >conftest.err
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -z "$ac_c_werror_flag"
15180 || test ! -s conftest.err'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest$ac_exeext'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_cv_lib_dld_dld_link=yes
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 ac_cv_lib_dld_dld_link=no
15199 rm -f conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15203 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15204 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15205 if test $ac_cv_lib_dld_dld_link = yes; then
15206 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15227 if test "x$lt_cv_dlopen" != xno; then
15233 case $lt_cv_dlopen in
15235 save_CPPFLAGS="$CPPFLAGS"
15236 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15238 save_LDFLAGS="$LDFLAGS"
15239 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15242 LIBS="$lt_cv_dlopen_libs $LIBS"
15244 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15245 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15246 if test "${lt_cv_dlopen_self+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 if test "$cross_compiling" = yes; then :
15250 lt_cv_dlopen_self=cross
15252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15253 lt_status=$lt_dlunknown
15254 cat > conftest.$ac_ext <<EOF
15255 #line 15255 "configure"
15256 #include "confdefs.h"
15265 # define LT_DLGLOBAL RTLD_GLOBAL
15268 # define LT_DLGLOBAL DL_GLOBAL
15270 # define LT_DLGLOBAL 0
15274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15275 find out it does not work in some platform. */
15276 #ifndef LT_DLLAZY_OR_NOW
15278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15281 # define LT_DLLAZY_OR_NOW DL_LAZY
15284 # define LT_DLLAZY_OR_NOW RTLD_NOW
15287 # define LT_DLLAZY_OR_NOW DL_NOW
15289 # define LT_DLLAZY_OR_NOW 0
15297 extern "C" void exit (int);
15300 void fnord() { int i=42;}
15303 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15304 int status = $lt_dlunknown;
15308 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15309 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15310 /* dlclose (self); */
15316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15317 (eval $ac_link) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15321 (./conftest; exit; ) 2>/dev/null
15323 case x$lt_status in
15324 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15325 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15326 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15329 # compilation failed
15330 lt_cv_dlopen_self=no
15337 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15338 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15340 if test "x$lt_cv_dlopen_self" = xyes; then
15341 LDFLAGS="$LDFLAGS $link_static_flag"
15342 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15343 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15344 if test "${lt_cv_dlopen_self_static+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15347 if test "$cross_compiling" = yes; then :
15348 lt_cv_dlopen_self_static=cross
15350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15351 lt_status=$lt_dlunknown
15352 cat > conftest.$ac_ext <<EOF
15353 #line 15353 "configure"
15354 #include "confdefs.h"
15363 # define LT_DLGLOBAL RTLD_GLOBAL
15366 # define LT_DLGLOBAL DL_GLOBAL
15368 # define LT_DLGLOBAL 0
15372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15373 find out it does not work in some platform. */
15374 #ifndef LT_DLLAZY_OR_NOW
15376 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15379 # define LT_DLLAZY_OR_NOW DL_LAZY
15382 # define LT_DLLAZY_OR_NOW RTLD_NOW
15385 # define LT_DLLAZY_OR_NOW DL_NOW
15387 # define LT_DLLAZY_OR_NOW 0
15395 extern "C" void exit (int);
15398 void fnord() { int i=42;}
15401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15402 int status = $lt_dlunknown;
15406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15407 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15408 /* dlclose (self); */
15414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15415 (eval $ac_link) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15419 (./conftest; exit; ) 2>/dev/null
15421 case x$lt_status in
15422 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15423 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15424 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15427 # compilation failed
15428 lt_cv_dlopen_self_static=no
15435 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15436 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15439 CPPFLAGS="$save_CPPFLAGS"
15440 LDFLAGS="$save_LDFLAGS"
15445 case $lt_cv_dlopen_self in
15446 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15447 *) enable_dlopen_self=unknown ;;
15450 case $lt_cv_dlopen_self_static in
15451 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15452 *) enable_dlopen_self_static=unknown ;;
15457 # Report which librarie types wil actually be built
15458 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15459 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15460 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15461 echo "${ECHO_T}$can_build_shared" >&6
15463 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15464 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15465 test "$can_build_shared" = "no" && enable_shared=no
15467 # On AIX, shared libraries and static libraries use the same namespace, and
15468 # are all built from PIC.
15471 test "$enable_shared" = yes && enable_static=no
15472 if test -n "$RANLIB"; then
15473 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15474 postinstall_cmds='$RANLIB $lib'
15479 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15480 test "$enable_shared" = yes && enable_static=no
15483 darwin* | rhapsody*)
15484 if test "$GCC" = yes; then
15485 archive_cmds_need_lc=no
15487 rhapsody* | darwin1.[012])
15488 allow_undefined_flag='-undefined suppress'
15491 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15492 allow_undefined_flag='-flat_namespace -undefined suppress'
15494 case ${MACOSX_DEPLOYMENT_TARGET} in
15496 allow_undefined_flag='-flat_namespace -undefined suppress'
15499 allow_undefined_flag='-undefined dynamic_lookup'
15505 output_verbose_link_cmd='echo'
15506 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
15507 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15509 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}'
15510 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}'
15512 hardcode_automatic=yes
15513 hardcode_shlibpath_var=unsupported
15514 whole_archive_flag_spec='-all_load $convenience'
15515 link_all_deplibs=yes
15521 echo "$as_me:$LINENO: result: $enable_shared" >&5
15522 echo "${ECHO_T}$enable_shared" >&6
15524 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15525 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15526 # Make sure either enable_shared or enable_static is yes.
15527 test "$enable_shared" = yes || enable_static=yes
15528 echo "$as_me:$LINENO: result: $enable_static" >&5
15529 echo "${ECHO_T}$enable_static" >&6
15531 # The else clause should only fire when bootstrapping the
15532 # libtool distribution, otherwise you forgot to ship ltmain.sh
15533 # with your package, and you will get complaints that there are
15534 # no rules to generate ltmain.sh.
15535 if test -f "$ltmain"; then
15536 # See if we are running on zsh, and set the options which allow our commands through
15537 # without removal of \ escapes.
15538 if test -n "${ZSH_VERSION+set}" ; then
15539 setopt NO_GLOB_SUBST
15541 # Now quote all the things that may contain metacharacters while being
15542 # careful not to overquote the AC_SUBSTed values. We take copies of the
15543 # variables and quote the copies for generation of the libtool script.
15544 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15546 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15547 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15548 deplibs_check_method reload_flag reload_cmds need_locks \
15549 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15550 lt_cv_sys_global_symbol_to_c_name_address \
15551 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15552 old_postinstall_cmds old_postuninstall_cmds \
15556 lt_prog_compiler_wl \
15557 lt_prog_compiler_pic \
15558 lt_prog_compiler_static \
15559 lt_prog_compiler_no_builtin_flag \
15560 export_dynamic_flag_spec \
15561 thread_safe_flag_spec \
15562 whole_archive_flag_spec \
15563 enable_shared_with_static_runtimes \
15565 old_archive_from_new_cmds \
15570 compiler_lib_search_path \
15572 archive_expsym_cmds \
15574 postuninstall_cmds \
15575 old_archive_from_expsyms_cmds \
15576 allow_undefined_flag \
15577 no_undefined_flag \
15578 export_symbols_cmds \
15579 hardcode_libdir_flag_spec \
15580 hardcode_libdir_flag_spec_ld \
15581 hardcode_libdir_separator \
15582 hardcode_automatic \
15584 module_expsym_cmds \
15585 lt_cv_prog_compiler_c_o \
15587 include_expsyms; do
15590 old_archive_cmds | \
15591 old_archive_from_new_cmds | \
15593 archive_expsym_cmds | \
15595 module_expsym_cmds | \
15596 old_archive_from_expsyms_cmds | \
15597 export_symbols_cmds | \
15598 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15599 postinstall_cmds | postuninstall_cmds | \
15600 old_postinstall_cmds | old_postuninstall_cmds | \
15601 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15602 # Double-quote double-evaled strings.
15603 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15606 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15612 *'\$0 --fallback-echo"')
15613 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15617 cfgfile="${ofile}T"
15618 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15620 { echo "$as_me:$LINENO: creating $ofile" >&5
15621 echo "$as_me: creating $ofile" >&6;}
15623 cat <<__EOF__ >> "$cfgfile"
15626 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15627 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15631 # Free Software Foundation, Inc.
15633 # This file is part of GNU Libtool:
15634 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15636 # This program is free software; you can redistribute it and/or modify
15637 # it under the terms of the GNU General Public License as published by
15638 # the Free Software Foundation; either version 2 of the License, or
15639 # (at your option) any later version.
15641 # This program is distributed in the hope that it will be useful, but
15642 # WITHOUT ANY WARRANTY; without even the implied warranty of
15643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15644 # General Public License for more details.
15646 # You should have received a copy of the GNU General Public License
15647 # along with this program; if not, write to the Free Software
15648 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15650 # As a special exception to the GNU General Public License, if you
15651 # distribute this file as part of a program that contains a
15652 # configuration script generated by Autoconf, you may include it under
15653 # the same distribution terms that you use for the rest of that program.
15655 # A sed program that does not truncate output.
15658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15659 Xsed="$SED -e s/^X//"
15661 # The HP-UX ksh and POSIX shell print the target directory to stdout
15662 # if CDPATH is set.
15663 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
15665 # The names of the tagged configurations supported by this script.
15668 # ### BEGIN LIBTOOL CONFIG
15670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15672 # Shell to use when invoking shell scripts.
15675 # Whether or not to build shared libraries.
15676 build_libtool_libs=$enable_shared
15678 # Whether or not to build static libraries.
15679 build_old_libs=$enable_static
15681 # Whether or not to add -lc for building shared libraries.
15682 build_libtool_need_lc=$archive_cmds_need_lc
15684 # Whether or not to disallow shared libs when runtime libs are static
15685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15687 # Whether or not to optimize for fast installation.
15688 fast_install=$enable_fast_install
15691 host_alias=$host_alias
15694 # An echo program that does not interpret backslashes.
15699 AR_FLAGS=$lt_AR_FLAGS
15704 # A language-specific compiler.
15707 # Is the compiler the GNU C compiler?
15713 # The linker used to build libraries.
15716 # Whether we need hard or soft links.
15719 # A BSD-compatible nm program.
15722 # A symbol stripping program
15725 # Used to examine libraries when file_magic_cmd begins "file"
15726 MAGIC_CMD=$MAGIC_CMD
15728 # Used on cygwin: DLL creation program.
15731 # Used on cygwin: object dumper.
15734 # Used on cygwin: assembler.
15737 # The name of the directory that contains temporary libtool files.
15740 # How to create reloadable object files.
15741 reload_flag=$lt_reload_flag
15742 reload_cmds=$lt_reload_cmds
15744 # How to pass a linker flag through the compiler.
15745 wl=$lt_lt_prog_compiler_wl
15747 # Object file suffix (normally "o").
15748 objext="$ac_objext"
15750 # Old archive suffix (normally "a").
15753 # Shared library suffix (normally ".so").
15754 shrext_cmds='$shrext_cmds'
15756 # Executable file suffix (normally "").
15759 # Additional compiler flags for building library objects.
15760 pic_flag=$lt_lt_prog_compiler_pic
15763 # What is the maximum length of a command?
15764 max_cmd_len=$lt_cv_sys_max_cmd_len
15766 # Does compiler simultaneously support -c and -o options?
15767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15769 # Must we lock files when doing compilation ?
15770 need_locks=$lt_need_locks
15772 # Do we need the lib prefix for modules?
15773 need_lib_prefix=$need_lib_prefix
15775 # Do we need a version for libraries?
15776 need_version=$need_version
15778 # Whether dlopen is supported.
15779 dlopen_support=$enable_dlopen
15781 # Whether dlopen of programs is supported.
15782 dlopen_self=$enable_dlopen_self
15784 # Whether dlopen of statically linked programs is supported.
15785 dlopen_self_static=$enable_dlopen_self_static
15787 # Compiler flag to prevent dynamic linking.
15788 link_static_flag=$lt_lt_prog_compiler_static
15790 # Compiler flag to turn off builtin functions.
15791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15793 # Compiler flag to allow reflexive dlopens.
15794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15796 # Compiler flag to generate shared objects directly from archives.
15797 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15799 # Compiler flag to generate thread-safe objects.
15800 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15802 # Library versioning type.
15803 version_type=$version_type
15805 # Format of library name prefix.
15806 libname_spec=$lt_libname_spec
15808 # List of archive names. First name is the real one, the rest are links.
15809 # The last name is the one that the linker finds with -lNAME.
15810 library_names_spec=$lt_library_names_spec
15812 # The coded name of the library, if different from the real name.
15813 soname_spec=$lt_soname_spec
15815 # Commands used to build and install an old-style archive.
15817 old_archive_cmds=$lt_old_archive_cmds
15818 old_postinstall_cmds=$lt_old_postinstall_cmds
15819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15821 # Create an old-style archive from a shared archive.
15822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15824 # Create a temporary old-style archive to link instead of a shared archive.
15825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15827 # Commands used to build and install a shared archive.
15828 archive_cmds=$lt_archive_cmds
15829 archive_expsym_cmds=$lt_archive_expsym_cmds
15830 postinstall_cmds=$lt_postinstall_cmds
15831 postuninstall_cmds=$lt_postuninstall_cmds
15833 # Commands used to build a loadable module (assumed same as above if empty)
15834 module_cmds=$lt_module_cmds
15835 module_expsym_cmds=$lt_module_expsym_cmds
15837 # Commands to strip libraries.
15838 old_striplib=$lt_old_striplib
15839 striplib=$lt_striplib
15841 # Dependencies to place before the objects being linked to create a
15843 predep_objects=$lt_predep_objects
15845 # Dependencies to place after the objects being linked to create a
15847 postdep_objects=$lt_postdep_objects
15849 # Dependencies to place before the objects being linked to create a
15851 predeps=$lt_predeps
15853 # Dependencies to place after the objects being linked to create a
15855 postdeps=$lt_postdeps
15857 # The library search path used internally by the compiler when linking
15858 # a shared library.
15859 compiler_lib_search_path=$lt_compiler_lib_search_path
15861 # Method to check whether dependent libraries are shared objects.
15862 deplibs_check_method=$lt_deplibs_check_method
15864 # Command to use when deplibs_check_method == file_magic.
15865 file_magic_cmd=$lt_file_magic_cmd
15867 # Flag that allows shared libraries with undefined symbols to be built.
15868 allow_undefined_flag=$lt_allow_undefined_flag
15870 # Flag that forces no undefined symbols.
15871 no_undefined_flag=$lt_no_undefined_flag
15873 # Commands used to finish a libtool library installation in a directory.
15874 finish_cmds=$lt_finish_cmds
15876 # Same as above, but a single script fragment to be evaled but not shown.
15877 finish_eval=$lt_finish_eval
15879 # Take the output of nm and produce a listing of raw symbols and C names.
15880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15882 # Transform the output of nm in a proper C declaration
15883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15885 # Transform the output of nm in a C name address pair
15886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15888 # This is the shared library runtime path variable.
15889 runpath_var=$runpath_var
15891 # This is the shared library path variable.
15892 shlibpath_var=$shlibpath_var
15894 # Is shlibpath searched before the hard-coded library search path?
15895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15897 # How to hardcode a shared library path into an executable.
15898 hardcode_action=$hardcode_action
15900 # Whether we should hardcode library paths into libraries.
15901 hardcode_into_libs=$hardcode_into_libs
15903 # Flag to hardcode \$libdir into a binary during linking.
15904 # This must work even if \$libdir does not exist.
15905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15907 # If ld is used when linking, flag to hardcode \$libdir into
15908 # a binary during linking. This must work even if \$libdir does
15910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15912 # Whether we need a single -rpath flag with a separated argument.
15913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15916 # resulting binary.
15917 hardcode_direct=$hardcode_direct
15919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15920 # resulting binary.
15921 hardcode_minus_L=$hardcode_minus_L
15923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15924 # the resulting binary.
15925 hardcode_shlibpath_var=$hardcode_shlibpath_var
15927 # Set to yes if building a shared library automatically hardcodes DIR into the library
15928 # and all subsequent libraries and executables linked against it.
15929 hardcode_automatic=$hardcode_automatic
15931 # Variables whose values should be saved in libtool wrapper scripts and
15932 # restored at relink time.
15933 variables_saved_for_relink="$variables_saved_for_relink"
15935 # Whether libtool must link a program against all its dependency libraries.
15936 link_all_deplibs=$link_all_deplibs
15938 # Compile-time system search path for libraries
15939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15941 # Run-time system search path for libraries
15942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15944 # Fix the shell variable \$srcfile for the compiler.
15945 fix_srcfile_path="$fix_srcfile_path"
15947 # Set to yes if exported symbols are required.
15948 always_export_symbols=$always_export_symbols
15950 # The commands to list exported symbols.
15951 export_symbols_cmds=$lt_export_symbols_cmds
15953 # The commands to extract the exported symbol list from a shared archive.
15954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15956 # Symbols that should not be listed in the preloaded symbols.
15957 exclude_expsyms=$lt_exclude_expsyms
15959 # Symbols that must always be exported.
15960 include_expsyms=$lt_include_expsyms
15962 # ### END LIBTOOL CONFIG
15969 cat <<\EOF >> "$cfgfile"
15971 # AIX sometimes has problems with the GCC collect2 program. For some
15972 # reason, if we set the COLLECT_NAMES environment variable, the problems
15973 # vanish in a puff of smoke.
15974 if test "X${COLLECT_NAMES+set}" != Xset; then
15976 export COLLECT_NAMES
15982 # We use sed instead of cat because bash on DJGPP gets confused if
15983 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15984 # text mode, it properly converts lines to CR/LF. This bash problem
15985 # is reportedly fixed, but why not run on old versions too?
15986 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15988 mv -f "$cfgfile" "$ofile" || \
15989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15993 # If there is no Makefile yet, we rely on a make rule to execute
15994 # `config.status --recheck' to rerun these tests and create the
15995 # libtool script then.
15996 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15997 if test -f "$ltmain_in"; then
15998 test -f Makefile && make "$ltmain"
16004 ac_cpp='$CPP $CPPFLAGS'
16005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16012 # Check whether --with-tags or --without-tags was given.
16013 if test "${with_tags+set}" = set; then
16014 withval="$with_tags"
16015 tagnames="$withval"
16018 if test -f "$ltmain" && test -n "$tagnames"; then
16019 if test ! -f "${ofile}"; then
16020 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16021 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16024 if test -z "$LTCC"; then
16025 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16026 if test -z "$LTCC"; then
16027 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16028 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16031 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16035 # Extract list of available tagged configurations in $ofile.
16036 # Note that this assumes the entire list is on one line.
16037 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16040 for tagname in $tagnames; do
16042 # Check whether tagname contains only valid characters
16043 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16045 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16046 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16047 { (exit 1); exit 1; }; }
16051 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16053 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16054 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16055 { (exit 1); exit 1; }; }
16058 # Update the list of available tags.
16059 if test -n "$tagname"; then
16060 echo appending configuration tag \"$tagname\" to $ofile
16064 if test -n "$CXX" && test "X$CXX" != "Xno"; then
16066 ac_cpp='$CXXCPP $CPPFLAGS'
16067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16074 archive_cmds_need_lc_CXX=no
16075 allow_undefined_flag_CXX=
16076 always_export_symbols_CXX=no
16077 archive_expsym_cmds_CXX=
16078 export_dynamic_flag_spec_CXX=
16079 hardcode_direct_CXX=no
16080 hardcode_libdir_flag_spec_CXX=
16081 hardcode_libdir_flag_spec_ld_CXX=
16082 hardcode_libdir_separator_CXX=
16083 hardcode_minus_L_CXX=no
16084 hardcode_automatic_CXX=no
16086 module_expsym_cmds_CXX=
16087 link_all_deplibs_CXX=unknown
16088 old_archive_cmds_CXX=$old_archive_cmds
16089 no_undefined_flag_CXX=
16090 whole_archive_flag_spec_CXX=
16091 enable_shared_with_static_runtimes_CXX=no
16093 # Dependencies to place before and after the object being linked:
16094 predep_objects_CXX=
16095 postdep_objects_CXX=
16098 compiler_lib_search_path_CXX=
16100 # Source file extension for C++ test sources.
16103 # Object file extension for compiled C++ test sources.
16107 # Code to be used in simple compile tests
16108 lt_simple_compile_test_code="int some_variable = 0;\n"
16110 # Code to be used in simple link tests
16111 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16115 # If no C compiler was specified, use CC.
16118 # Allow CC to be a program name with arguments.
16122 # Allow CC to be a program name with arguments.
16127 lt_save_with_gnu_ld=$with_gnu_ld
16128 lt_save_path_LD=$lt_cv_path_LD
16129 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16130 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16132 unset lt_cv_prog_gnu_ld
16134 if test -n "${lt_cv_path_LDCXX+set}"; then
16135 lt_cv_path_LD=$lt_cv_path_LDCXX
16137 unset lt_cv_path_LD
16139 test -z "${LDCXX+set}" || LD=$LDCXX
16143 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16145 # We don't want -fno-exception wen compiling C++ code, so set the
16146 # no_builtin_flag separately
16147 if test "$GXX" = yes; then
16148 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16150 lt_prog_compiler_no_builtin_flag_CXX=
16153 if test "$GXX" = yes; then
16154 # Set up default GNU C++ configuration
16157 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16158 if test "${with_gnu_ld+set}" = set; then
16159 withval="$with_gnu_ld"
16160 test "$withval" = no || with_gnu_ld=yes
16165 if test "$GCC" = yes; then
16166 # Check if gcc -print-prog-name=ld gives a path.
16167 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16168 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16171 # gcc leaves a trailing carriage return which upsets mingw
16172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16177 # Accept absolute paths.
16179 re_direlt='/[^/][^/]*/\.\./'
16180 # Canonicalize the pathname of ld
16181 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16182 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16183 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16185 test -z "$LD" && LD="$ac_prog"
16188 # If it fails, then pretend we aren't using GCC.
16192 # If it is relative, then search for the first ld in PATH.
16193 with_gnu_ld=unknown
16196 elif test "$with_gnu_ld" = yes; then
16197 echo "$as_me:$LINENO: checking for GNU ld" >&5
16198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16200 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16203 if test "${lt_cv_path_LD+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 if test -z "$LD"; then
16207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16208 for ac_dir in $PATH; do
16210 test -z "$ac_dir" && ac_dir=.
16211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16212 lt_cv_path_LD="$ac_dir/$ac_prog"
16213 # Check to see if the program is GNU ld. I'd rather use --version,
16214 # but apparently some GNU ld's only accept -v.
16215 # Break only if it was the GNU/non-GNU ld that we prefer.
16216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16217 *GNU* | *'with BFD'*)
16218 test "$with_gnu_ld" != no && break
16221 test "$with_gnu_ld" != yes && break
16228 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16232 LD="$lt_cv_path_LD"
16233 if test -n "$LD"; then
16234 echo "$as_me:$LINENO: result: $LD" >&5
16235 echo "${ECHO_T}$LD" >&6
16237 echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6
16240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16242 { (exit 1); exit 1; }; }
16243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16249 case `$LD -v 2>&1 </dev/null` in
16250 *GNU* | *'with BFD'*)
16251 lt_cv_prog_gnu_ld=yes
16254 lt_cv_prog_gnu_ld=no
16258 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16259 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16260 with_gnu_ld=$lt_cv_prog_gnu_ld
16264 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16265 # archiving commands below assume that GNU ld is being used.
16266 if test "$with_gnu_ld" = yes; then
16267 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268 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'
16270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16273 # If archive_cmds runs LD, not CC, wlarc should be empty
16274 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16275 # investigate it a little bit more. (MM)
16278 # ancient GNU ld didn't support --whole-archive et. al.
16279 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16280 grep 'no-whole-archive' > /dev/null; then
16281 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16283 whole_archive_flag_spec_CXX=
16289 # A generic and very simple default shared library creation
16290 # command for GNU C++ for the case where it uses the native
16291 # linker, instead of GNU ld. If possible, this setting should
16292 # overridden to take advantage of the native linker features on
16293 # the platform it is being used on.
16294 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16297 # Commands to make compiler produce verbose output that lists
16298 # what "hidden" libraries, object files and flags are used when
16299 # linking a shared library.
16300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16308 # PORTME: fill in a description of your system's C++ link characteristics
16309 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16314 # FIXME: insert proper C++ library support
16318 if test "$host_cpu" = ia64; then
16319 # On IA64, the linker does run time linking by default, so we don't
16320 # have to do anything special.
16321 aix_use_runtimelinking=no
16322 exp_sym_flag='-Bexport'
16325 aix_use_runtimelinking=no
16327 # Test if we are trying to use run time linking or normal
16328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16329 # need to do runtime linking.
16330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16331 for ld_flag in $LDFLAGS; do
16334 aix_use_runtimelinking=yes
16341 exp_sym_flag='-bexport'
16342 no_entry_flag='-bnoentry'
16345 # When large executables or shared objects are built, AIX ld can
16346 # have problems creating the table of contents. If linking a library
16347 # or program results in "error TOC overflow" add -mminimal-toc to
16348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16351 archive_cmds_CXX=''
16352 hardcode_direct_CXX=yes
16353 hardcode_libdir_separator_CXX=':'
16354 link_all_deplibs_CXX=yes
16356 if test "$GXX" = yes; then
16357 case $host_os in aix4.012|aix4.012.*)
16358 # We only want to do this on AIX 4.2 and lower, the check
16359 # below for broken collect2 doesn't work under 4.3+
16360 collect2name=`${CC} -print-prog-name=collect2`
16361 if test -f "$collect2name" && \
16362 strings "$collect2name" | grep resolve_lib_name >/dev/null
16364 # We have reworked collect2
16365 hardcode_direct_CXX=yes
16367 # We have old collect2
16368 hardcode_direct_CXX=unsupported
16369 # It fails to find uninstalled libraries when the uninstalled
16370 # path is not listed in the libpath. Setting hardcode_minus_L
16371 # to unsupported forces relinking
16372 hardcode_minus_L_CXX=yes
16373 hardcode_libdir_flag_spec_CXX='-L$libdir'
16374 hardcode_libdir_separator_CXX=
16377 shared_flag='-shared'
16380 if test "$host_cpu" = ia64; then
16381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16382 # chokes on -Wl,-G. The following line is correct:
16385 if test "$aix_use_runtimelinking" = yes; then
16386 shared_flag='${wl}-G'
16388 shared_flag='${wl}-bM:SRE'
16393 # It seems that -bexpall does not export symbols beginning with
16394 # underscore (_), so it is better to generate a list of symbols to export.
16395 always_export_symbols_CXX=yes
16396 if test "$aix_use_runtimelinking" = yes; then
16397 # Warning - without using the other runtime loading flags (-brtl),
16398 # -berok will link without error, but may produce a broken library.
16399 allow_undefined_flag_CXX='-berok'
16400 # Determine the default libpath from the value encoded in an empty executable.
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16416 rm -f conftest.$ac_objext conftest$ac_exeext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16418 (eval $ac_link) 2>conftest.er1
16420 grep -v '^ *+' conftest.er1 >conftest.err
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -z "$ac_cxx_werror_flag"
16426 || test ! -s conftest.err'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest$ac_exeext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16441 # Check for a 64-bit object if we didn't find anything.
16442 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; }
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16449 rm -f conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
16451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16453 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16455 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"
16457 if test "$host_cpu" = ia64; then
16458 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16459 allow_undefined_flag_CXX="-z nodefs"
16460 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"
16462 # Determine the default libpath from the value encoded in an empty executable.
16463 cat >conftest.$ac_ext <<_ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480 (eval $ac_link) 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -z "$ac_cxx_werror_flag"
16488 || test ! -s conftest.err'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest$ac_exeext'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16503 # Check for a 64-bit object if we didn't find anything.
16504 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; }
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16511 rm -f conftest.err conftest.$ac_objext \
16512 conftest$ac_exeext conftest.$ac_ext
16513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16515 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16516 # Warning - without using the other run time loading flags,
16517 # -berok will link without error, but may produce a broken library.
16518 no_undefined_flag_CXX=' ${wl}-bernotok'
16519 allow_undefined_flag_CXX=' ${wl}-berok'
16520 # -bexpall does not export symbols beginning with underscore (_)
16521 always_export_symbols_CXX=yes
16522 # Exported symbols can be pulled into shared objects from archives
16523 whole_archive_flag_spec_CXX=' '
16524 archive_cmds_need_lc_CXX=yes
16525 # This is similar to how AIX traditionally builds it's shared libraries.
16526 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'
16531 case $cc_basename in
16533 # FIXME: insert proper C++ library support
16539 cygwin* | mingw* | pw32*)
16540 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16541 # as there is no search path for DLLs.
16542 hardcode_libdir_flag_spec_CXX='-L$libdir'
16543 allow_undefined_flag_CXX=unsupported
16544 always_export_symbols_CXX=no
16545 enable_shared_with_static_runtimes_CXX=yes
16547 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16548 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'
16549 # If the export-symbols file already is a .def file (1st line
16550 # is EXPORTS), use it as is; otherwise, prepend...
16551 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16552 cp $export_symbols $output_objdir/$soname.def;
16554 echo EXPORTS > $output_objdir/$soname.def;
16555 cat $export_symbols >> $output_objdir/$soname.def;
16557 $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'
16563 darwin* | rhapsody*)
16564 if test "$GXX" = yes; then
16565 archive_cmds_need_lc_CXX=no
16567 rhapsody* | darwin1.[012])
16568 allow_undefined_flag_CXX='-undefined suppress'
16571 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16572 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16574 case ${MACOSX_DEPLOYMENT_TARGET} in
16576 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16579 allow_undefined_flag_CXX='-undefined dynamic_lookup'
16585 lt_int_apple_cc_single_mod=no
16586 output_verbose_link_cmd='echo'
16587 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16588 lt_int_apple_cc_single_mod=yes
16590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16591 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16593 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
16595 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16597 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16598 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16599 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}'
16601 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16603 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}'
16604 hardcode_direct_CXX=no
16605 hardcode_automatic_CXX=yes
16606 hardcode_shlibpath_var_CXX=unsupported
16607 whole_archive_flag_spec_CXX='-all_load $convenience'
16608 link_all_deplibs_CXX=yes
16615 case $cc_basename in
16617 # FIXME: insert proper C++ library support
16621 # Green Hills C++ Compiler
16622 # FIXME: insert proper C++ library support
16626 # FIXME: insert proper C++ library support
16632 # C++ shared libraries reported to be fairly broken before switch to ELF
16636 archive_cmds_need_lc_CXX=no
16638 freebsd* | kfreebsd*-gnu)
16639 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16646 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16647 hardcode_libdir_separator_CXX=:
16648 export_dynamic_flag_spec_CXX='${wl}-E'
16649 hardcode_direct_CXX=yes
16650 hardcode_minus_L_CXX=yes # Not in the search PATH,
16651 # but as the default
16652 # location of the library.
16654 case $cc_basename in
16656 # FIXME: insert proper C++ library support
16660 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'
16661 # Commands to make compiler produce verbose output that lists
16662 # what "hidden" libraries, object files and flags are used when
16663 # linking a shared library.
16665 # There doesn't appear to be a way to prevent this compiler from
16666 # explicitly linking system object files so we need to strip them
16667 # from the output so that they don't get included in the library
16669 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'
16672 if test "$GXX" = yes; then
16673 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'
16675 # FIXME: insert proper C++ library support
16682 if test $with_gnu_ld = no; then
16683 case "$host_cpu" in
16685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16686 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16687 hardcode_libdir_separator_CXX=:
16690 hardcode_libdir_flag_spec_CXX='-L$libdir'
16693 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16694 hardcode_libdir_separator_CXX=:
16695 export_dynamic_flag_spec_CXX='${wl}-E'
16699 case "$host_cpu" in
16701 hardcode_direct_CXX=no
16702 hardcode_shlibpath_var_CXX=no
16705 hardcode_direct_CXX=no
16706 hardcode_shlibpath_var_CXX=no
16707 hardcode_minus_L_CXX=yes # Not in the search PATH,
16708 # but as the default
16709 # location of the library.
16712 hardcode_direct_CXX=yes
16713 hardcode_minus_L_CXX=yes # Not in the search PATH,
16714 # but as the default
16715 # location of the library.
16719 case $cc_basename in
16721 # FIXME: insert proper C++ library support
16725 case "$host_cpu" in
16727 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16730 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16733 # Commands to make compiler produce verbose output that lists
16734 # what "hidden" libraries, object files and flags are used when
16735 # linking a shared library.
16737 # There doesn't appear to be a way to prevent this compiler from
16738 # explicitly linking system object files so we need to strip them
16739 # from the output so that they don't get included in the library
16741 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'
16744 if test "$GXX" = yes; then
16745 if test $with_gnu_ld = no; then
16746 case "$host_cpu" in
16748 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16751 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'
16756 # FIXME: insert proper C++ library support
16763 case $cc_basename in
16766 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 ${objdir}/so_locations -o $lib'
16768 # Archives containing C++ object files must be created using
16769 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16770 # necessary to make sure instantiated templates are included
16772 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16775 if test "$GXX" = yes; then
16776 if test "$with_gnu_ld" = no; then
16777 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}${objdir}/so_locations -o $lib'
16779 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'
16782 link_all_deplibs_CXX=yes
16785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16786 hardcode_libdir_separator_CXX=:
16789 case $cc_basename in
16791 # Kuck and Associates, Inc. (KAI) C++ Compiler
16793 # KCC will only create a shared library if the output file
16794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16795 # to its proper name (with version) after linking.
16796 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'
16797 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'
16798 # Commands to make compiler produce verbose output that lists
16799 # what "hidden" libraries, object files and flags are used when
16800 # linking a shared library.
16802 # There doesn't appear to be a way to prevent this compiler from
16803 # explicitly linking system object files so we need to strip them
16804 # from the output so that they don't get included in the library
16806 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'
16808 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16811 # Archives containing C++ object files must be created using
16812 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16813 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16818 archive_cmds_need_lc_CXX=no
16819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16820 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'
16821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16822 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16823 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16827 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16828 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'
16830 runpath_var=LD_RUN_PATH
16831 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16832 hardcode_libdir_separator_CXX=:
16834 # Commands to make compiler produce verbose output that lists
16835 # what "hidden" libraries, object files and flags are used when
16836 # linking a shared library.
16838 # There doesn't appear to be a way to prevent this compiler from
16839 # explicitly linking system object files so we need to strip them
16840 # from the output so that they don't get included in the library
16842 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'
16847 # FIXME: insert proper C++ library support
16851 # FIXME: insert proper C++ library support
16855 case $cc_basename in
16857 # FIXME: insert proper C++ library support
16861 # FIXME: insert proper C++ library support
16867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16868 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16870 hardcode_libdir_flag_spec_CXX='-R$libdir'
16871 hardcode_direct_CXX=yes
16872 hardcode_shlibpath_var_CXX=no
16874 # Workaround some broken pre-1.5 toolchains
16875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16878 case $cc_basename in
16880 # Kuck and Associates, Inc. (KAI) C++ Compiler
16882 # KCC will only create a shared library if the output file
16883 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16884 # to its proper name (with version) after linking.
16885 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'
16887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16888 hardcode_libdir_separator_CXX=:
16890 # Archives containing C++ object files must be created using
16891 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16896 # Rational C++ 2.4.1
16897 # FIXME: insert proper C++ library support
16901 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16902 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 ${objdir}/so_locations -o $lib'
16904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16905 hardcode_libdir_separator_CXX=:
16907 # Commands to make compiler produce verbose output that lists
16908 # what "hidden" libraries, object files and flags are used when
16909 # linking a shared library.
16911 # There doesn't appear to be a way to prevent this compiler from
16912 # explicitly linking system object files so we need to strip them
16913 # from the output so that they don't get included in the library
16915 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'
16918 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16919 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16920 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}${objdir}/so_locations -o $lib'
16922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16923 hardcode_libdir_separator_CXX=:
16925 # Commands to make compiler produce verbose output that lists
16926 # what "hidden" libraries, object files and flags are used when
16927 # linking a shared library.
16928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16931 # FIXME: insert proper C++ library support
16938 case $cc_basename in
16940 # Kuck and Associates, Inc. (KAI) C++ Compiler
16942 # KCC will only create a shared library if the output file
16943 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16944 # to its proper name (with version) after linking.
16945 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'
16947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16948 hardcode_libdir_separator_CXX=:
16950 # Archives containing C++ object files must be created using
16951 # the KAI C++ compiler.
16952 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16955 # Rational C++ 2.4.1
16956 # FIXME: insert proper C++ library support
16960 allow_undefined_flag_CXX=' -expect_unresolved \*'
16961 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 ${objdir}/so_locations -o $lib'
16962 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16963 echo "-hidden">> $lib.exp~
16964 $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 $objdir/so_locations -o $lib~
16967 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16968 hardcode_libdir_separator_CXX=:
16970 # Commands to make compiler produce verbose output that lists
16971 # what "hidden" libraries, object files and flags are used when
16972 # linking a shared library.
16974 # There doesn't appear to be a way to prevent this compiler from
16975 # explicitly linking system object files so we need to strip them
16976 # from the output so that they don't get included in the library
16978 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'
16981 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16982 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16983 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}${objdir}/so_locations -o $lib'
16985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16986 hardcode_libdir_separator_CXX=:
16988 # Commands to make compiler produce verbose output that lists
16989 # what "hidden" libraries, object files and flags are used when
16990 # linking a shared library.
16991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16994 # FIXME: insert proper C++ library support
17001 # FIXME: insert proper C++ library support
17005 archive_cmds_need_lc_CXX=no
17006 case $cc_basename in
17008 # FIXME: insert proper C++ library support
17012 # FIXME: insert proper C++ library support
17018 case $cc_basename in
17021 # FIXME: insert proper C++ library support
17026 # FIXME: insert proper C++ library support
17030 # FIXME: insert proper C++ library support
17036 case $cc_basename in
17038 # Sun C++ 4.2, 5.x and Centerline C++
17039 no_undefined_flag_CXX=' -zdefs'
17040 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17041 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17042 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17044 hardcode_libdir_flag_spec_CXX='-R$libdir'
17045 hardcode_shlibpath_var_CXX=no
17047 solaris2.0-5 | solaris2.0-5.*) ;;
17049 # The C++ compiler is used as linker so we must use $wl
17050 # flag to pass the commands to the underlying system
17052 # Supported since Solaris 2.6 (maybe 2.5.1?)
17053 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17056 link_all_deplibs_CXX=yes
17058 # Commands to make compiler produce verbose output that lists
17059 # what "hidden" libraries, object files and flags are used when
17060 # linking a shared library.
17062 # There doesn't appear to be a way to prevent this compiler from
17063 # explicitly linking system object files so we need to strip them
17064 # from the output so that they don't get included in the library
17066 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17068 # Archives containing C++ object files must be created using
17069 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17070 # necessary to make sure instantiated templates are included
17072 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17075 # Green Hills C++ Compiler
17076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17078 # The C++ compiler must be used to create the archive.
17079 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17082 # GNU C++ compiler with Solaris linker
17083 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17084 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17085 if $CC --version | grep -v '^2\.7' > /dev/null; then
17086 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17087 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17088 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17090 # Commands to make compiler produce verbose output that lists
17091 # what "hidden" libraries, object files and flags are used when
17092 # linking a shared library.
17093 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17095 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17097 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17098 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17099 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17101 # Commands to make compiler produce verbose output that lists
17102 # what "hidden" libraries, object files and flags are used when
17103 # linking a shared library.
17104 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17107 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17112 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17113 archive_cmds_need_lc_CXX=no
17116 case $cc_basename in
17118 # NonStop-UX NCC 3.20
17119 # FIXME: insert proper C++ library support
17123 # FIXME: insert proper C++ library support
17129 # FIXME: insert proper C++ library support
17133 # FIXME: insert proper C++ library support
17137 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17138 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17139 test "$ld_shlibs_CXX" = no && can_build_shared=no
17145 ## There is no encapsulation within the following macros, do not change
17146 ## the running order or otherwise move them around unless you know exactly
17147 ## what you are doing...
17149 cat > conftest.$ac_ext <<EOF
17153 Foo (void) { a = 0; }
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160 (eval $ac_compile) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; then
17164 # Parse the compiler output and extract the necessary
17165 # objects, libraries and library flags.
17167 # Sentinel used to keep track of whether or not we are before
17168 # the conftest object file.
17169 pre_test_object_deps_done=no
17171 # The `*' in the case matches for architectures that use `case' in
17172 # $output_verbose_cmd can trigger glob expansion during the loop
17173 # eval without this substitution.
17174 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17176 for p in `eval $output_verbose_link_cmd`; do
17180 # Some compilers place space between "-{L,R}" and the path.
17181 # Remove the space.
17182 if test $p = "-L" \
17183 || test $p = "-R"; then
17190 if test "$pre_test_object_deps_done" = no; then
17193 # Internal compiler library paths should come after those
17194 # provided the user. The postdeps already come after the
17195 # user supplied libs so there is no need to process them.
17196 if test -z "$compiler_lib_search_path_CXX"; then
17197 compiler_lib_search_path_CXX="${prev}${p}"
17199 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17202 # The "-l" case would never come before the object being
17203 # linked, so don't bother handling this case.
17206 if test -z "$postdeps_CXX"; then
17207 postdeps_CXX="${prev}${p}"
17209 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17215 # This assumes that the test object file only shows up
17216 # once in the compiler output.
17217 if test "$p" = "conftest.$objext"; then
17218 pre_test_object_deps_done=yes
17222 if test "$pre_test_object_deps_done" = no; then
17223 if test -z "$predep_objects_CXX"; then
17224 predep_objects_CXX="$p"
17226 predep_objects_CXX="$predep_objects_CXX $p"
17229 if test -z "$postdep_objects_CXX"; then
17230 postdep_objects_CXX="$p"
17232 postdep_objects_CXX="$postdep_objects_CXX $p"
17237 *) ;; # Ignore the rest.
17245 echo "libtool.m4: error: problem compiling CXX test program"
17248 $rm -f confest.$objext
17250 case " $postdeps_CXX " in
17251 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17254 lt_prog_compiler_wl_CXX=
17255 lt_prog_compiler_pic_CXX=
17256 lt_prog_compiler_static_CXX=
17258 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17261 # C++ specific cases for pic, static, wl, etc.
17262 if test "$GXX" = yes; then
17263 lt_prog_compiler_wl_CXX='-Wl,'
17264 lt_prog_compiler_static_CXX='-static'
17268 # All AIX code is PIC.
17269 if test "$host_cpu" = ia64; then
17270 # AIX 5 now supports IA64 processor
17271 lt_prog_compiler_static_CXX='-Bstatic'
17275 # FIXME: we need at least 68020 code to build shared libraries, but
17276 # adding the `-m68020' flag to GCC prevents building anything better,
17278 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17280 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17281 # PIC is the default for these OSes.
17283 mingw* | os2* | pw32*)
17284 # This hack is so that the source file can tell whether it is being
17285 # built for inclusion in a dll (and should export symbols for example).
17286 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17288 darwin* | rhapsody*)
17289 # PIC is the default on this platform
17290 # Common symbols not allowed in MH_DYLIB files
17291 lt_prog_compiler_pic_CXX='-fno-common'
17294 # DJGPP does not support shared libraries at all
17295 lt_prog_compiler_pic_CXX=
17298 if test -d /usr/nec; then
17299 lt_prog_compiler_pic_CXX=-Kconform_pic
17303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17304 # not for PA HP-UX.
17305 case "$host_cpu" in
17309 lt_prog_compiler_pic_CXX='-fPIC'
17314 lt_prog_compiler_pic_CXX='-fPIC'
17320 # All AIX code is PIC.
17321 if test "$host_cpu" = ia64; then
17322 # AIX 5 now supports IA64 processor
17323 lt_prog_compiler_static_CXX='-Bstatic'
17325 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17329 case $cc_basename in
17331 # Green Hills C++ Compiler
17332 # _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"
17337 case $cc_basename in
17339 lt_prog_compiler_pic_CXX='-KPIC'
17342 # Green Hills C++ Compiler
17343 lt_prog_compiler_pic_CXX='-pic'
17349 freebsd* | kfreebsd*-gnu)
17350 # FreeBSD uses GNU C++
17352 hpux9* | hpux10* | hpux11*)
17353 case $cc_basename in
17355 lt_prog_compiler_wl_CXX='-Wl,'
17356 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17357 if test "$host_cpu" != ia64; then
17358 lt_prog_compiler_pic_CXX='+Z'
17362 lt_prog_compiler_wl_CXX='-Wl,'
17363 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17364 case "$host_cpu" in
17369 lt_prog_compiler_pic_CXX='+Z'
17377 irix5* | irix6* | nonstopux*)
17378 case $cc_basename in
17380 lt_prog_compiler_wl_CXX='-Wl,'
17381 lt_prog_compiler_static_CXX='-non_shared'
17382 # CC pic flag -KPIC is the default.
17389 case $cc_basename in
17392 lt_prog_compiler_wl_CXX='--backend -Wl,'
17393 lt_prog_compiler_pic_CXX='-fPIC'
17397 lt_prog_compiler_wl_CXX='-Wl,'
17398 lt_prog_compiler_pic_CXX='-KPIC'
17399 lt_prog_compiler_static_CXX='-static'
17403 # Make sure the PIC flag is empty. It appears that all Alpha
17404 # Linux and Compaq Tru64 Unix objects are PIC.
17405 lt_prog_compiler_pic_CXX=
17406 lt_prog_compiler_static_CXX='-non_shared'
17417 case $cc_basename in
17419 lt_prog_compiler_pic_CXX='-W c,exportall'
17427 osf3* | osf4* | osf5*)
17428 case $cc_basename in
17430 lt_prog_compiler_wl_CXX='--backend -Wl,'
17433 # Rational C++ 2.4.1
17434 lt_prog_compiler_pic_CXX='-pic'
17437 # Digital/Compaq C++
17438 lt_prog_compiler_wl_CXX='-Wl,'
17439 # Make sure the PIC flag is empty. It appears that all Alpha
17440 # Linux and Compaq Tru64 Unix objects are PIC.
17441 lt_prog_compiler_pic_CXX=
17442 lt_prog_compiler_static_CXX='-non_shared'
17451 case $cc_basename in
17453 lt_prog_compiler_pic_CXX='-fPIC'
17460 case $cc_basename in
17462 # Sun C++ 4.2, 5.x and Centerline C++
17463 lt_prog_compiler_pic_CXX='-KPIC'
17464 lt_prog_compiler_static_CXX='-Bstatic'
17465 lt_prog_compiler_wl_CXX='-Qoption ld '
17468 # Green Hills C++ Compiler
17469 lt_prog_compiler_pic_CXX='-PIC'
17476 case $cc_basename in
17479 lt_prog_compiler_pic_CXX='-pic'
17480 lt_prog_compiler_static_CXX='-Bstatic'
17484 lt_prog_compiler_pic_CXX='-pic'
17491 case $cc_basename in
17493 # NonStop-UX NCC 3.20
17494 lt_prog_compiler_pic_CXX='-KPIC'
17505 lt_prog_compiler_can_build_shared_CXX=no
17510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17511 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17514 # Check to make sure the PIC flag actually works.
17516 if test -n "$lt_prog_compiler_pic_CXX"; then
17518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17520 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 lt_prog_compiler_pic_works_CXX=no
17524 ac_outfile=conftest.$ac_objext
17525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17526 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17527 # Insert the option either (1) after the last *FLAGS variable, or
17528 # (2) before a word containing "conftest.", or (3) at the end.
17529 # Note that $ac_compile itself does not contain backslashes and begins
17530 # with a dollar sign (not a hyphen), so the echo should work correctly.
17531 # The option is referenced via a variable to avoid confusing sed.
17532 lt_compile=`echo "$ac_compile" | $SED \
17533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17535 -e 's:$: $lt_compiler_flag:'`
17536 (eval echo "\"\$as_me:17536: $lt_compile\"" >&5)
17537 (eval "$lt_compile" 2>conftest.err)
17539 cat conftest.err >&5
17540 echo "$as_me:17540: \$? = $ac_status" >&5
17541 if (exit $ac_status) && test -s "$ac_outfile"; then
17542 # The compiler can only warn and ignore the option if not recognized
17543 # So say no if there are warnings
17544 if test ! -s conftest.err; then
17545 lt_prog_compiler_pic_works_CXX=yes
17551 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17552 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17554 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17555 case $lt_prog_compiler_pic_CXX in
17557 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17560 lt_prog_compiler_pic_CXX=
17561 lt_prog_compiler_can_build_shared_CXX=no
17566 # For platforms which do not support PIC, -DPIC is meaningless:
17568 lt_prog_compiler_pic_CXX=
17571 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17575 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17577 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 lt_cv_prog_compiler_c_o_CXX=no
17581 $rm -r conftest 2>/dev/null
17585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17587 lt_compiler_flag="-o out/conftest2.$ac_objext"
17588 # Insert the option either (1) after the last *FLAGS variable, or
17589 # (2) before a word containing "conftest.", or (3) at the end.
17590 # Note that $ac_compile itself does not contain backslashes and begins
17591 # with a dollar sign (not a hyphen), so the echo should work correctly.
17592 lt_compile=`echo "$ac_compile" | $SED \
17593 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17595 -e 's:$: $lt_compiler_flag:'`
17596 (eval echo "\"\$as_me:17596: $lt_compile\"" >&5)
17597 (eval "$lt_compile" 2>out/conftest.err)
17599 cat out/conftest.err >&5
17600 echo "$as_me:17600: \$? = $ac_status" >&5
17601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17603 # The compiler can only warn and ignore the option if not recognized
17604 # So say no if there are warnings
17605 if test ! -s out/conftest.err; then
17606 lt_cv_prog_compiler_c_o_CXX=yes
17611 # SGI C++ compiler will create directory out/ii_files/ for
17612 # template instantiation
17613 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17614 $rm out/* && rmdir out
17620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17624 hard_links="nottested"
17625 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17626 # do not overwrite the value of need_locks provided by the user
17627 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17633 ln conftest.a conftest.b 2>&5 || hard_links=no
17634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17635 echo "$as_me:$LINENO: result: $hard_links" >&5
17636 echo "${ECHO_T}$hard_links" >&6
17637 if test "$hard_links" = no; then
17638 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17649 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17652 # If we're using GNU nm, then we don't want the "-C" option.
17653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17655 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'
17657 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'
17661 export_symbols_cmds_CXX="$ltdll_cmds"
17664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17671 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17672 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17673 test "$ld_shlibs_CXX" = no && can_build_shared=no
17675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17676 if test "$GCC" = yes; then
17677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17681 # Do we need to explicitly link libc?
17683 case "x$archive_cmds_need_lc_CXX" in
17685 # Assume -lc should be added
17686 archive_cmds_need_lc_CXX=yes
17688 if test "$enable_shared" = yes && test "$GCC" = yes; then
17689 case $archive_cmds_CXX in
17691 # FIXME: we may have to deal with multi-command sequences.
17694 # Test whether the compiler implicitly links with -lc since on some
17695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17696 # to ld, don't add -lc before -lgcc.
17697 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17698 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703 (eval $ac_compile) 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } 2>conftest.err; then
17709 libobjs=conftest.$ac_objext
17711 wl=$lt_prog_compiler_wl_CXX
17717 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17718 allow_undefined_flag_CXX=
17719 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17720 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }
17725 archive_cmds_need_lc_CXX=no
17727 archive_cmds_need_lc_CXX=yes
17729 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17731 cat conftest.err 1>&5
17734 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17735 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17742 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17744 library_names_spec=
17745 libname_spec='lib$name'
17749 postuninstall_cmds=
17753 shlibpath_overrides_runpath=unknown
17755 dynamic_linker="$host_os ld.so"
17756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17757 if test "$GCC" = yes; then
17758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17760 # if the path contains ";" then we assume it to be the separator
17761 # otherwise default to the standard path separator (i.e. ":") - it is
17762 # assumed that no part of a normal pathname contains ";" but that should
17763 # okay in the real world where ";" in dirpaths is itself problematic.
17764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17771 need_lib_prefix=unknown
17772 hardcode_into_libs=no
17774 # when you set need_version to no, make sure it does not cause -set_version
17775 # flags to be left without arguments
17776 need_version=unknown
17781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17782 shlibpath_var=LIBPATH
17784 # AIX 3 has no versioning support, so we append a major version to the name.
17785 soname_spec='${libname}${release}${shared_ext}$major'
17792 hardcode_into_libs=yes
17793 if test "$host_cpu" = ia64; then
17794 # AIX 5 supports IA64
17795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17796 shlibpath_var=LD_LIBRARY_PATH
17798 # With GCC up to 2.95.x, collect2 would create an import file
17799 # for dependence libraries. The import file would start with
17800 # the line `#! .'. This would cause the generated library to
17801 # depend on `.', always an invalid library. This was fixed in
17802 # development snapshots of GCC prior to 3.0.
17804 aix4 | aix4.[01] | aix4.[01].*)
17805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17810 can_build_shared=no
17814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17815 # soname into executable. Probably we can add versioning support to
17816 # collect2, so additional links can be useful in future.
17817 if test "$aix_use_runtimelinking" = yes; then
17818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17819 # instead of lib<name>.a to let people know that these are not
17820 # typical AIX shared libraries.
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823 # We preserve .a as extension for shared libraries through AIX4.2
17824 # and later when we are not doing run time linking.
17825 library_names_spec='${libname}${release}.a $libname.a'
17826 soname_spec='${libname}${release}${shared_ext}$major'
17828 shlibpath_var=LIBPATH
17833 library_names_spec='$libname.ixlibrary $libname.a'
17834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17835 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'
17839 library_names_spec='${libname}${shared_ext}'
17840 dynamic_linker="$host_os ld.so"
17841 shlibpath_var=LIBRARY_PATH
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17850 shlibpath_var=LD_LIBRARY_PATH
17851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17853 # the default ld.so.conf also contains /usr/contrib/lib and
17854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17855 # libtool to hard-code these into programs
17858 cygwin* | mingw* | pw32*)
17859 version_type=windows
17864 case $GCC,$host_os in
17865 yes,cygwin* | yes,mingw* | yes,pw32*)
17866 library_names_spec='$libname.dll.a'
17867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17868 postinstall_cmds='base_file=`basename \${file}`~
17869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17870 dldir=$destdir/`dirname \$dlpath`~
17871 test -d \$dldir || mkdir -p \$dldir~
17872 $install_prog $dir/$dlname \$dldir/$dlname'
17873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17874 dlpath=$dir/\$dldll~
17876 shlibpath_overrides_runpath=yes
17880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17882 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17885 # MinGW DLLs use traditional 'lib' prefix
17886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17888 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17889 # It is most probably a Windows format PATH printed by
17890 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17891 # path with ; separators, and with drive letters. We can handle the
17892 # drive letters (cygwin fileutils understands them), so leave them,
17893 # especially as we might pass files found there to a mingw objdump,
17894 # which wouldn't understand a cygwinified path. Ahh.
17895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17901 # pw32 DLLs use 'pw' prefix rather than 'lib'
17902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17911 dynamic_linker='Win32 ld.exe'
17912 # FIXME: first we should search . and the directory the executable is in
17916 darwin* | rhapsody*)
17917 dynamic_linker="$host_os dyld"
17918 version_type=darwin
17921 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17922 soname_spec='${libname}${release}${major}$shared_ext'
17923 shlibpath_overrides_runpath=yes
17924 shlibpath_var=DYLD_LIBRARY_PATH
17925 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17926 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17927 if test "$GCC" = yes; then
17928 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"`
17930 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 shlibpath_var=LD_LIBRARY_PATH
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17954 shlibpath_var=LD_LIBRARY_PATH
17955 shlibpath_overrides_runpath=no
17956 hardcode_into_libs=yes
17957 dynamic_linker='GNU ld.so'
17961 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17962 version_type=freebsd-$objformat
17963 case $version_type in
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17974 shlibpath_var=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath=yes
17979 freebsd3.01* | freebsdelf3.01*)
17980 shlibpath_overrides_runpath=yes
17981 hardcode_into_libs=yes
17984 shlibpath_overrides_runpath=no
17985 hardcode_into_libs=yes
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17995 soname_spec='${libname}${release}${shared_ext}$major'
17996 shlibpath_var=LD_LIBRARY_PATH
17997 hardcode_into_libs=yes
18000 hpux9* | hpux10* | hpux11*)
18001 # Give a soname corresponding to the major version so that dld.sl refuses to
18002 # link against other versions.
18006 case "$host_cpu" in
18009 hardcode_into_libs=yes
18010 dynamic_linker="$host_os dld.so"
18011 shlibpath_var=LD_LIBRARY_PATH
18012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18014 soname_spec='${libname}${release}${shared_ext}$major'
18015 if test "X$HPUX_IA64_MODE" = X32; then
18016 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18018 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18024 hardcode_into_libs=yes
18025 dynamic_linker="$host_os dld.sl"
18026 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029 soname_spec='${libname}${release}${shared_ext}$major'
18030 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18035 dynamic_linker="$host_os dld.sl"
18036 shlibpath_var=SHLIB_PATH
18037 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18042 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18043 postinstall_cmds='chmod 555 $lib'
18046 irix5* | irix6* | nonstopux*)
18048 nonstopux*) version_type=nonstopux ;;
18050 if test "$lt_cv_prog_gnu_ld" = yes; then
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18061 irix5* | nonstopux*)
18062 libsuff= shlibsuff=
18065 case $LD in # libtool.m4 will add one of these switches to LD
18066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18067 libsuff= shlibsuff= libmagic=32-bit;;
18068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18069 libsuff=32 shlibsuff=N32 libmagic=N32;;
18070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18072 *) libsuff= shlibsuff= libmagic=never-match;;
18076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18077 shlibpath_overrides_runpath=no
18078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18080 hardcode_into_libs=yes
18083 # No shared lib support for Linux oldld, aout, or coff.
18084 linux*oldld* | linux*aout* | linux*coff*)
18088 # This must be Linux ELF.
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=no
18098 # This implies no fast_install, which is unacceptable.
18099 # Some rework will be needed to allow for fast_install
18100 # before this can be enabled.
18101 hardcode_into_libs=yes
18103 # Append ld.so.conf contents to the search path
18104 if test -f /etc/ld.so.conf; then
18105 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18106 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18109 # We used to test for /lib/ld.so.1 and disable shared libraries on
18110 # powerpc, because MkLinux only supported shared libraries with the
18111 # GNU dynamic linker. Since this was broken with cross compilers,
18112 # most powerpc-linux boxes support dynamic linking these days and
18113 # people can always --disable-shared, the test was removed, and we
18114 # assume the GNU/Linux dynamic linker is in use.
18115 dynamic_linker='GNU/Linux ld.so'
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 shlibpath_overrides_runpath=no
18126 hardcode_into_libs=yes
18127 dynamic_linker='GNU ld.so'
18134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18137 dynamic_linker='NetBSD (a.out) ld.so'
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 dynamic_linker='NetBSD ld.elf_so'
18143 shlibpath_var=LD_LIBRARY_PATH
18144 shlibpath_overrides_runpath=yes
18145 hardcode_into_libs=yes
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=yes
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 shlibpath_overrides_runpath=yes
18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18171 shlibpath_var=LD_LIBRARY_PATH
18172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18174 openbsd2.[89] | openbsd2.[89].*)
18175 shlibpath_overrides_runpath=no
18178 shlibpath_overrides_runpath=yes
18182 shlibpath_overrides_runpath=yes
18187 libname_spec='$name'
18190 library_names_spec='$libname${shared_ext} $libname.a'
18191 dynamic_linker='OS/2 ld.exe'
18192 shlibpath_var=LIBPATH
18195 osf3* | osf4* | osf5*)
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18203 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18208 soname_spec='${libname}${release}${shared_ext}$major'
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210 shlibpath_var=LD_LIBRARY_PATH
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 shlibpath_overrides_runpath=yes
18221 hardcode_into_libs=yes
18222 # ldd complains unless libraries are executable
18223 postinstall_cmds='chmod +x $lib'
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18229 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18230 shlibpath_var=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18232 if test "$with_gnu_ld" = yes; then
18238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241 soname_spec='${libname}${release}${shared_ext}$major'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 case $host_vendor in
18245 shlibpath_overrides_runpath=no
18247 export_dynamic_flag_spec='${wl}-Blargedynsym'
18248 runpath_var=LD_RUN_PATH
18256 shlibpath_overrides_runpath=no
18257 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18263 if test -d /usr/nec ;then
18265 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18266 soname_spec='$libname${shared_ext}.$major'
18267 shlibpath_var=LD_LIBRARY_PATH
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18274 soname_spec='${libname}${release}${shared_ext}$major'
18275 shlibpath_var=LD_LIBRARY_PATH
18282 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18283 echo "${ECHO_T}$dynamic_linker" >&6
18284 test "$dynamic_linker" = no && can_build_shared=no
18286 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18287 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18288 hardcode_action_CXX=
18289 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18290 test -n "$runpath_var CXX" || \
18291 test "X$hardcode_automatic_CXX"="Xyes" ; then
18293 # We can hardcode non-existant directories.
18294 if test "$hardcode_direct_CXX" != no &&
18295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18296 # have to relink, otherwise we might link with an installed library
18297 # when we should be linking with a yet-to-be-installed one
18298 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18299 test "$hardcode_minus_L_CXX" != no; then
18300 # Linking always hardcodes the temporary library directory.
18301 hardcode_action_CXX=relink
18303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18304 hardcode_action_CXX=immediate
18307 # We cannot hardcode anything, or else we can only hardcode existing
18309 hardcode_action_CXX=unsupported
18311 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18312 echo "${ECHO_T}$hardcode_action_CXX" >&6
18314 if test "$hardcode_action_CXX" = relink; then
18315 # Fast installation is not supported
18316 enable_fast_install=no
18317 elif test "$shlibpath_overrides_runpath" = yes ||
18318 test "$enable_shared" = no; then
18319 # Fast installation is not necessary
18320 enable_fast_install=needless
18325 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18326 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18327 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18330 echo "$as_me:$LINENO: result: yes" >&5
18331 echo "${ECHO_T}yes" >&6
18333 # FIXME - insert some real tests, host_os isn't really good enough
18336 if test -n "$STRIP" ; then
18337 striplib="$STRIP -x"
18338 echo "$as_me:$LINENO: result: yes" >&5
18339 echo "${ECHO_T}yes" >&6
18341 echo "$as_me:$LINENO: result: no" >&5
18342 echo "${ECHO_T}no" >&6
18346 echo "$as_me:$LINENO: result: no" >&5
18347 echo "${ECHO_T}no" >&6
18352 if test "x$enable_dlopen" != xyes; then
18353 enable_dlopen=unknown
18354 enable_dlopen_self=unknown
18355 enable_dlopen_self_static=unknown
18362 lt_cv_dlopen="load_add_on"
18364 lt_cv_dlopen_self=yes
18368 lt_cv_dlopen="LoadLibrary"
18373 lt_cv_dlopen="dlopen"
18378 # if libdl is installed we need to link against it
18379 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18380 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 ac_check_lib_save_LIBS=$LIBS
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18393 /* Override any gcc2 internal prototype to avoid an error. */
18397 /* We use char because int might match the return type of a gcc2
18398 builtin and then its argument prototype would still apply. */
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410 (eval $ac_link) 2>conftest.er1
18412 grep -v '^ *+' conftest.er1 >conftest.err
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -z "$ac_cxx_werror_flag"
18418 || test ! -s conftest.err'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try='test -s conftest$ac_exeext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_lib_dl_dlopen=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_cv_lib_dl_dlopen=no
18437 rm -f conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18441 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18443 if test $ac_cv_lib_dl_dlopen = yes; then
18444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18447 lt_cv_dlopen="dyld"
18449 lt_cv_dlopen_self=yes
18456 echo "$as_me:$LINENO: checking for shl_load" >&5
18457 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18458 if test "${ac_cv_func_shl_load+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 cat >conftest.$ac_ext <<_ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18467 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18469 #define shl_load innocuous_shl_load
18471 /* System header to define __stub macros and hopefully few prototypes,
18472 which can conflict with char shl_load (); below.
18473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474 <limits.h> exists even on freestanding compilers. */
18477 # include <limits.h>
18479 # include <assert.h>
18484 /* Override any gcc2 internal prototype to avoid an error. */
18489 /* We use char because int might match the return type of a gcc2
18490 builtin and then its argument prototype would still apply. */
18492 /* The GNU C library defines this for functions which it implements
18493 to always fail with ENOSYS. Some functions are actually named
18494 something starting with __ and the normal name is an alias. */
18495 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18498 char (*f) () = shl_load;
18507 return f != shl_load;
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18514 (eval $ac_link) 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_cxx_werror_flag"
18522 || test ! -s conftest.err'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 ac_cv_func_shl_load=yes
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_cv_func_shl_load=no
18541 rm -f conftest.err conftest.$ac_objext \
18542 conftest$ac_exeext conftest.$ac_ext
18544 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18545 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18546 if test $ac_cv_func_shl_load = yes; then
18547 lt_cv_dlopen="shl_load"
18549 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18550 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18551 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 ac_check_lib_save_LIBS=$LIBS
18556 cat >conftest.$ac_ext <<_ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18563 /* Override any gcc2 internal prototype to avoid an error. */
18567 /* We use char because int might match the return type of a gcc2
18568 builtin and then its argument prototype would still apply. */
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18580 (eval $ac_link) 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_cxx_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest$ac_exeext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_lib_dld_shl_load=yes
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18605 ac_cv_lib_dld_shl_load=no
18607 rm -f conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18612 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18613 if test $ac_cv_lib_dld_shl_load = yes; then
18614 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18616 echo "$as_me:$LINENO: checking for dlopen" >&5
18617 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18618 if test "${ac_cv_func_dlopen+set}" = set; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18629 #define dlopen innocuous_dlopen
18631 /* System header to define __stub macros and hopefully few prototypes,
18632 which can conflict with char dlopen (); below.
18633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634 <limits.h> exists even on freestanding compilers. */
18637 # include <limits.h>
18639 # include <assert.h>
18644 /* Override any gcc2 internal prototype to avoid an error. */
18649 /* We use char because int might match the return type of a gcc2
18650 builtin and then its argument prototype would still apply. */
18652 /* The GNU C library defines this for functions which it implements
18653 to always fail with ENOSYS. Some functions are actually named
18654 something starting with __ and the normal name is an alias. */
18655 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18658 char (*f) () = dlopen;
18667 return f != dlopen;
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674 (eval $ac_link) 2>conftest.er1
18676 grep -v '^ *+' conftest.er1 >conftest.err
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -z "$ac_cxx_werror_flag"
18682 || test ! -s conftest.err'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_func_dlopen=yes
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18699 ac_cv_func_dlopen=no
18701 rm -f conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18704 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18705 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18706 if test $ac_cv_func_dlopen = yes; then
18707 lt_cv_dlopen="dlopen"
18709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 ac_check_lib_save_LIBS=$LIBS
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 /* Override any gcc2 internal prototype to avoid an error. */
18727 /* We use char because int might match the return type of a gcc2
18728 builtin and then its argument prototype would still apply. */
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740 (eval $ac_link) 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -z "$ac_cxx_werror_flag"
18748 || test ! -s conftest.err'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest$ac_exeext'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_cv_lib_dl_dlopen=yes
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_cv_lib_dl_dlopen=no
18767 rm -f conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769 LIBS=$ac_check_lib_save_LIBS
18771 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18773 if test $ac_cv_lib_dl_dlopen = yes; then
18774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18776 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18777 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 ac_check_lib_save_LIBS=$LIBS
18782 LIBS="-lsvld $LIBS"
18783 cat >conftest.$ac_ext <<_ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18790 /* Override any gcc2 internal prototype to avoid an error. */
18794 /* We use char because int might match the return type of a gcc2
18795 builtin and then its argument prototype would still apply. */
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807 (eval $ac_link) 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_cxx_werror_flag"
18815 || test ! -s conftest.err'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest$ac_exeext'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 ac_cv_lib_svld_dlopen=yes
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 ac_cv_lib_svld_dlopen=no
18834 rm -f conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18838 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18840 if test $ac_cv_lib_svld_dlopen = yes; then
18841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18843 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 ac_check_lib_save_LIBS=$LIBS
18850 cat >conftest.$ac_ext <<_ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18857 /* Override any gcc2 internal prototype to avoid an error. */
18861 /* We use char because int might match the return type of a gcc2
18862 builtin and then its argument prototype would still apply. */
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874 (eval $ac_link) 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_cxx_werror_flag"
18882 || test ! -s conftest.err'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_lib_dld_dld_link=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_lib_dld_dld_link=no
18901 rm -f conftest.err conftest.$ac_objext \
18902 conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18906 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18907 if test $ac_cv_lib_dld_dld_link = yes; then
18908 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18929 if test "x$lt_cv_dlopen" != xno; then
18935 case $lt_cv_dlopen in
18937 save_CPPFLAGS="$CPPFLAGS"
18938 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18940 save_LDFLAGS="$LDFLAGS"
18941 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18944 LIBS="$lt_cv_dlopen_libs $LIBS"
18946 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18947 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18948 if test "${lt_cv_dlopen_self+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 if test "$cross_compiling" = yes; then :
18952 lt_cv_dlopen_self=cross
18954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18955 lt_status=$lt_dlunknown
18956 cat > conftest.$ac_ext <<EOF
18957 #line 18957 "configure"
18958 #include "confdefs.h"
18967 # define LT_DLGLOBAL RTLD_GLOBAL
18970 # define LT_DLGLOBAL DL_GLOBAL
18972 # define LT_DLGLOBAL 0
18976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18977 find out it does not work in some platform. */
18978 #ifndef LT_DLLAZY_OR_NOW
18980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18983 # define LT_DLLAZY_OR_NOW DL_LAZY
18986 # define LT_DLLAZY_OR_NOW RTLD_NOW
18989 # define LT_DLLAZY_OR_NOW DL_NOW
18991 # define LT_DLLAZY_OR_NOW 0
18999 extern "C" void exit (int);
19002 void fnord() { int i=42;}
19005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19006 int status = $lt_dlunknown;
19010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19012 /* dlclose (self); */
19018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19019 (eval $ac_link) 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19023 (./conftest; exit; ) 2>/dev/null
19025 case x$lt_status in
19026 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19027 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19028 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19031 # compilation failed
19032 lt_cv_dlopen_self=no
19039 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19040 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19042 if test "x$lt_cv_dlopen_self" = xyes; then
19043 LDFLAGS="$LDFLAGS $link_static_flag"
19044 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19045 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19046 if test "${lt_cv_dlopen_self_static+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 if test "$cross_compiling" = yes; then :
19050 lt_cv_dlopen_self_static=cross
19052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19053 lt_status=$lt_dlunknown
19054 cat > conftest.$ac_ext <<EOF
19055 #line 19055 "configure"
19056 #include "confdefs.h"
19065 # define LT_DLGLOBAL RTLD_GLOBAL
19068 # define LT_DLGLOBAL DL_GLOBAL
19070 # define LT_DLGLOBAL 0
19074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19075 find out it does not work in some platform. */
19076 #ifndef LT_DLLAZY_OR_NOW
19078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19081 # define LT_DLLAZY_OR_NOW DL_LAZY
19084 # define LT_DLLAZY_OR_NOW RTLD_NOW
19087 # define LT_DLLAZY_OR_NOW DL_NOW
19089 # define LT_DLLAZY_OR_NOW 0
19097 extern "C" void exit (int);
19100 void fnord() { int i=42;}
19103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19104 int status = $lt_dlunknown;
19108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19110 /* dlclose (self); */
19116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19117 (eval $ac_link) 2>&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19121 (./conftest; exit; ) 2>/dev/null
19123 case x$lt_status in
19124 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19125 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19126 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19129 # compilation failed
19130 lt_cv_dlopen_self_static=no
19137 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19138 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19141 CPPFLAGS="$save_CPPFLAGS"
19142 LDFLAGS="$save_LDFLAGS"
19147 case $lt_cv_dlopen_self in
19148 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19149 *) enable_dlopen_self=unknown ;;
19152 case $lt_cv_dlopen_self_static in
19153 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19154 *) enable_dlopen_self_static=unknown ;;
19159 # The else clause should only fire when bootstrapping the
19160 # libtool distribution, otherwise you forgot to ship ltmain.sh
19161 # with your package, and you will get complaints that there are
19162 # no rules to generate ltmain.sh.
19163 if test -f "$ltmain"; then
19164 # See if we are running on zsh, and set the options which allow our commands through
19165 # without removal of \ escapes.
19166 if test -n "${ZSH_VERSION+set}" ; then
19167 setopt NO_GLOB_SUBST
19169 # Now quote all the things that may contain metacharacters while being
19170 # careful not to overquote the AC_SUBSTed values. We take copies of the
19171 # variables and quote the copies for generation of the libtool script.
19172 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19176 deplibs_check_method reload_flag reload_cmds need_locks \
19177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19178 lt_cv_sys_global_symbol_to_c_name_address \
19179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19180 old_postinstall_cmds old_postuninstall_cmds \
19184 lt_prog_compiler_wl_CXX \
19185 lt_prog_compiler_pic_CXX \
19186 lt_prog_compiler_static_CXX \
19187 lt_prog_compiler_no_builtin_flag_CXX \
19188 export_dynamic_flag_spec_CXX \
19189 thread_safe_flag_spec_CXX \
19190 whole_archive_flag_spec_CXX \
19191 enable_shared_with_static_runtimes_CXX \
19192 old_archive_cmds_CXX \
19193 old_archive_from_new_cmds_CXX \
19194 predep_objects_CXX \
19195 postdep_objects_CXX \
19198 compiler_lib_search_path_CXX \
19200 archive_expsym_cmds_CXX \
19201 postinstall_cmds_CXX \
19202 postuninstall_cmds_CXX \
19203 old_archive_from_expsyms_cmds_CXX \
19204 allow_undefined_flag_CXX \
19205 no_undefined_flag_CXX \
19206 export_symbols_cmds_CXX \
19207 hardcode_libdir_flag_spec_CXX \
19208 hardcode_libdir_flag_spec_ld_CXX \
19209 hardcode_libdir_separator_CXX \
19210 hardcode_automatic_CXX \
19212 module_expsym_cmds_CXX \
19213 lt_cv_prog_compiler_c_o_CXX \
19214 exclude_expsyms_CXX \
19215 include_expsyms_CXX; do
19218 old_archive_cmds_CXX | \
19219 old_archive_from_new_cmds_CXX | \
19220 archive_cmds_CXX | \
19221 archive_expsym_cmds_CXX | \
19222 module_cmds_CXX | \
19223 module_expsym_cmds_CXX | \
19224 old_archive_from_expsyms_cmds_CXX | \
19225 export_symbols_cmds_CXX | \
19226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19227 postinstall_cmds | postuninstall_cmds | \
19228 old_postinstall_cmds | old_postuninstall_cmds | \
19229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19230 # Double-quote double-evaled strings.
19231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19240 *'\$0 --fallback-echo"')
19241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19247 cat <<__EOF__ >> "$cfgfile"
19248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19252 # Shell to use when invoking shell scripts.
19255 # Whether or not to build shared libraries.
19256 build_libtool_libs=$enable_shared
19258 # Whether or not to build static libraries.
19259 build_old_libs=$enable_static
19261 # Whether or not to add -lc for building shared libraries.
19262 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19264 # Whether or not to disallow shared libs when runtime libs are static
19265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19267 # Whether or not to optimize for fast installation.
19268 fast_install=$enable_fast_install
19271 host_alias=$host_alias
19274 # An echo program that does not interpret backslashes.
19279 AR_FLAGS=$lt_AR_FLAGS
19284 # A language-specific compiler.
19285 CC=$lt_compiler_CXX
19287 # Is the compiler the GNU C compiler?
19293 # The linker used to build libraries.
19296 # Whether we need hard or soft links.
19299 # A BSD-compatible nm program.
19302 # A symbol stripping program
19305 # Used to examine libraries when file_magic_cmd begins "file"
19306 MAGIC_CMD=$MAGIC_CMD
19308 # Used on cygwin: DLL creation program.
19311 # Used on cygwin: object dumper.
19314 # Used on cygwin: assembler.
19317 # The name of the directory that contains temporary libtool files.
19320 # How to create reloadable object files.
19321 reload_flag=$lt_reload_flag
19322 reload_cmds=$lt_reload_cmds
19324 # How to pass a linker flag through the compiler.
19325 wl=$lt_lt_prog_compiler_wl_CXX
19327 # Object file suffix (normally "o").
19328 objext="$ac_objext"
19330 # Old archive suffix (normally "a").
19333 # Shared library suffix (normally ".so").
19334 shrext_cmds='$shrext_cmds'
19336 # Executable file suffix (normally "").
19339 # Additional compiler flags for building library objects.
19340 pic_flag=$lt_lt_prog_compiler_pic_CXX
19343 # What is the maximum length of a command?
19344 max_cmd_len=$lt_cv_sys_max_cmd_len
19346 # Does compiler simultaneously support -c and -o options?
19347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19349 # Must we lock files when doing compilation ?
19350 need_locks=$lt_need_locks
19352 # Do we need the lib prefix for modules?
19353 need_lib_prefix=$need_lib_prefix
19355 # Do we need a version for libraries?
19356 need_version=$need_version
19358 # Whether dlopen is supported.
19359 dlopen_support=$enable_dlopen
19361 # Whether dlopen of programs is supported.
19362 dlopen_self=$enable_dlopen_self
19364 # Whether dlopen of statically linked programs is supported.
19365 dlopen_self_static=$enable_dlopen_self_static
19367 # Compiler flag to prevent dynamic linking.
19368 link_static_flag=$lt_lt_prog_compiler_static_CXX
19370 # Compiler flag to turn off builtin functions.
19371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19373 # Compiler flag to allow reflexive dlopens.
19374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19376 # Compiler flag to generate shared objects directly from archives.
19377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19379 # Compiler flag to generate thread-safe objects.
19380 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19382 # Library versioning type.
19383 version_type=$version_type
19385 # Format of library name prefix.
19386 libname_spec=$lt_libname_spec
19388 # List of archive names. First name is the real one, the rest are links.
19389 # The last name is the one that the linker finds with -lNAME.
19390 library_names_spec=$lt_library_names_spec
19392 # The coded name of the library, if different from the real name.
19393 soname_spec=$lt_soname_spec
19395 # Commands used to build and install an old-style archive.
19397 old_archive_cmds=$lt_old_archive_cmds_CXX
19398 old_postinstall_cmds=$lt_old_postinstall_cmds
19399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19401 # Create an old-style archive from a shared archive.
19402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19404 # Create a temporary old-style archive to link instead of a shared archive.
19405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19407 # Commands used to build and install a shared archive.
19408 archive_cmds=$lt_archive_cmds_CXX
19409 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19410 postinstall_cmds=$lt_postinstall_cmds
19411 postuninstall_cmds=$lt_postuninstall_cmds
19413 # Commands used to build a loadable module (assumed same as above if empty)
19414 module_cmds=$lt_module_cmds_CXX
19415 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19417 # Commands to strip libraries.
19418 old_striplib=$lt_old_striplib
19419 striplib=$lt_striplib
19421 # Dependencies to place before the objects being linked to create a
19423 predep_objects=$lt_predep_objects_CXX
19425 # Dependencies to place after the objects being linked to create a
19427 postdep_objects=$lt_postdep_objects_CXX
19429 # Dependencies to place before the objects being linked to create a
19431 predeps=$lt_predeps_CXX
19433 # Dependencies to place after the objects being linked to create a
19435 postdeps=$lt_postdeps_CXX
19437 # The library search path used internally by the compiler when linking
19438 # a shared library.
19439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19441 # Method to check whether dependent libraries are shared objects.
19442 deplibs_check_method=$lt_deplibs_check_method
19444 # Command to use when deplibs_check_method == file_magic.
19445 file_magic_cmd=$lt_file_magic_cmd
19447 # Flag that allows shared libraries with undefined symbols to be built.
19448 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19450 # Flag that forces no undefined symbols.
19451 no_undefined_flag=$lt_no_undefined_flag_CXX
19453 # Commands used to finish a libtool library installation in a directory.
19454 finish_cmds=$lt_finish_cmds
19456 # Same as above, but a single script fragment to be evaled but not shown.
19457 finish_eval=$lt_finish_eval
19459 # Take the output of nm and produce a listing of raw symbols and C names.
19460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19462 # Transform the output of nm in a proper C declaration
19463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19465 # Transform the output of nm in a C name address pair
19466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19468 # This is the shared library runtime path variable.
19469 runpath_var=$runpath_var
19471 # This is the shared library path variable.
19472 shlibpath_var=$shlibpath_var
19474 # Is shlibpath searched before the hard-coded library search path?
19475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19477 # How to hardcode a shared library path into an executable.
19478 hardcode_action=$hardcode_action_CXX
19480 # Whether we should hardcode library paths into libraries.
19481 hardcode_into_libs=$hardcode_into_libs
19483 # Flag to hardcode \$libdir into a binary during linking.
19484 # This must work even if \$libdir does not exist.
19485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19487 # If ld is used when linking, flag to hardcode \$libdir into
19488 # a binary during linking. This must work even if \$libdir does
19490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19492 # Whether we need a single -rpath flag with a separated argument.
19493 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19496 # resulting binary.
19497 hardcode_direct=$hardcode_direct_CXX
19499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19500 # resulting binary.
19501 hardcode_minus_L=$hardcode_minus_L_CXX
19503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19504 # the resulting binary.
19505 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19507 # Set to yes if building a shared library automatically hardcodes DIR into the library
19508 # and all subsequent libraries and executables linked against it.
19509 hardcode_automatic=$hardcode_automatic_CXX
19511 # Variables whose values should be saved in libtool wrapper scripts and
19512 # restored at relink time.
19513 variables_saved_for_relink="$variables_saved_for_relink"
19515 # Whether libtool must link a program against all its dependency libraries.
19516 link_all_deplibs=$link_all_deplibs_CXX
19518 # Compile-time system search path for libraries
19519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19521 # Run-time system search path for libraries
19522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19524 # Fix the shell variable \$srcfile for the compiler.
19525 fix_srcfile_path="$fix_srcfile_path_CXX"
19527 # Set to yes if exported symbols are required.
19528 always_export_symbols=$always_export_symbols_CXX
19530 # The commands to list exported symbols.
19531 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19533 # The commands to extract the exported symbol list from a shared archive.
19534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19536 # Symbols that should not be listed in the preloaded symbols.
19537 exclude_expsyms=$lt_exclude_expsyms_CXX
19539 # Symbols that must always be exported.
19540 include_expsyms=$lt_include_expsyms_CXX
19542 # ### END LIBTOOL TAG CONFIG: $tagname
19548 # If there is no Makefile yet, we rely on a make rule to execute
19549 # `config.status --recheck' to rerun these tests and create the
19550 # libtool script then.
19551 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19552 if test -f "$ltmain_in"; then
19553 test -f Makefile && make "$ltmain"
19559 ac_cpp='$CPP $CPPFLAGS'
19560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19568 with_gnu_ldcxx=$with_gnu_ld
19569 with_gnu_ld=$lt_save_with_gnu_ld
19570 lt_cv_path_LDCXX=$lt_cv_path_LD
19571 lt_cv_path_LD=$lt_save_path_LD
19572 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19573 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19581 if test -n "$F77" && test "X$F77" != "Xno"; then
19584 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19585 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19589 archive_cmds_need_lc_F77=no
19590 allow_undefined_flag_F77=
19591 always_export_symbols_F77=no
19592 archive_expsym_cmds_F77=
19593 export_dynamic_flag_spec_F77=
19594 hardcode_direct_F77=no
19595 hardcode_libdir_flag_spec_F77=
19596 hardcode_libdir_flag_spec_ld_F77=
19597 hardcode_libdir_separator_F77=
19598 hardcode_minus_L_F77=no
19599 hardcode_automatic_F77=no
19601 module_expsym_cmds_F77=
19602 link_all_deplibs_F77=unknown
19603 old_archive_cmds_F77=$old_archive_cmds
19604 no_undefined_flag_F77=
19605 whole_archive_flag_spec_F77=
19606 enable_shared_with_static_runtimes_F77=no
19608 # Source file extension for f77 test sources.
19611 # Object file extension for compiled f77 test sources.
19615 # Code to be used in simple compile tests
19616 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19618 # Code to be used in simple link tests
19619 lt_simple_link_test_code=" program t\n end\n"
19621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19623 # If no C compiler was specified, use CC.
19626 # Allow CC to be a program name with arguments.
19630 # Allow CC to be a program name with arguments.
19635 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19637 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19638 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19639 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19640 echo "${ECHO_T}$can_build_shared" >&6
19642 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19643 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19644 test "$can_build_shared" = "no" && enable_shared=no
19646 # On AIX, shared libraries and static libraries use the same namespace, and
19647 # are all built from PIC.
19650 test "$enable_shared" = yes && enable_static=no
19651 if test -n "$RANLIB"; then
19652 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19653 postinstall_cmds='$RANLIB $lib'
19657 test "$enable_shared" = yes && enable_static=no
19660 echo "$as_me:$LINENO: result: $enable_shared" >&5
19661 echo "${ECHO_T}$enable_shared" >&6
19663 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19664 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19665 # Make sure either enable_shared or enable_static is yes.
19666 test "$enable_shared" = yes || enable_static=yes
19667 echo "$as_me:$LINENO: result: $enable_static" >&5
19668 echo "${ECHO_T}$enable_static" >&6
19670 test "$ld_shlibs_F77" = no && can_build_shared=no
19675 lt_prog_compiler_wl_F77=
19676 lt_prog_compiler_pic_F77=
19677 lt_prog_compiler_static_F77=
19679 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19680 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19682 if test "$GCC" = yes; then
19683 lt_prog_compiler_wl_F77='-Wl,'
19684 lt_prog_compiler_static_F77='-static'
19688 # All AIX code is PIC.
19689 if test "$host_cpu" = ia64; then
19690 # AIX 5 now supports IA64 processor
19691 lt_prog_compiler_static_F77='-Bstatic'
19696 # FIXME: we need at least 68020 code to build shared libraries, but
19697 # adding the `-m68020' flag to GCC prevents building anything better,
19699 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19702 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19703 # PIC is the default for these OSes.
19706 mingw* | pw32* | os2*)
19707 # This hack is so that the source file can tell whether it is being
19708 # built for inclusion in a dll (and should export symbols for example).
19709 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19712 darwin* | rhapsody*)
19713 # PIC is the default on this platform
19714 # Common symbols not allowed in MH_DYLIB files
19715 lt_prog_compiler_pic_F77='-fno-common'
19719 # Just because we use GCC doesn't mean we suddenly get shared libraries
19720 # on systems that don't support them.
19721 lt_prog_compiler_can_build_shared_F77=no
19726 if test -d /usr/nec; then
19727 lt_prog_compiler_pic_F77=-Kconform_pic
19732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19733 # not for PA HP-UX.
19734 case "$host_cpu" in
19739 lt_prog_compiler_pic_F77='-fPIC'
19745 lt_prog_compiler_pic_F77='-fPIC'
19749 # PORTME Check for flag to pass linker flags through the system compiler.
19752 lt_prog_compiler_wl_F77='-Wl,'
19753 if test "$host_cpu" = ia64; then
19754 # AIX 5 now supports IA64 processor
19755 lt_prog_compiler_static_F77='-Bstatic'
19757 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19761 mingw* | pw32* | os2*)
19762 # This hack is so that the source file can tell whether it is being
19763 # built for inclusion in a dll (and should export symbols for example).
19764 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19767 hpux9* | hpux10* | hpux11*)
19768 lt_prog_compiler_wl_F77='-Wl,'
19769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19770 # not for PA HP-UX.
19771 case "$host_cpu" in
19776 lt_prog_compiler_pic_F77='+Z'
19779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19780 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19783 irix5* | irix6* | nonstopux*)
19784 lt_prog_compiler_wl_F77='-Wl,'
19785 # PIC (with -KPIC) is the default.
19786 lt_prog_compiler_static_F77='-non_shared'
19790 lt_prog_compiler_pic_F77='-KPIC'
19791 lt_prog_compiler_static_F77='-Bstatic'
19797 lt_prog_compiler_wl_F77='-Wl,'
19798 lt_prog_compiler_pic_F77='-KPIC'
19799 lt_prog_compiler_static_F77='-static'
19802 lt_prog_compiler_wl_F77='-Wl,'
19803 # All Alpha code is PIC.
19804 lt_prog_compiler_static_F77='-non_shared'
19809 osf3* | osf4* | osf5*)
19810 lt_prog_compiler_wl_F77='-Wl,'
19811 # All OSF/1 code is PIC.
19812 lt_prog_compiler_static_F77='-non_shared'
19816 lt_prog_compiler_pic_F77='-Kpic'
19817 lt_prog_compiler_static_F77='-dn'
19821 lt_prog_compiler_wl_F77='-Wl,'
19822 lt_prog_compiler_pic_F77='-KPIC'
19823 lt_prog_compiler_static_F77='-Bstatic'
19827 lt_prog_compiler_wl_F77='-Qoption ld '
19828 lt_prog_compiler_pic_F77='-PIC'
19829 lt_prog_compiler_static_F77='-Bstatic'
19832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19833 lt_prog_compiler_wl_F77='-Wl,'
19834 lt_prog_compiler_pic_F77='-KPIC'
19835 lt_prog_compiler_static_F77='-Bstatic'
19839 if test -d /usr/nec ;then
19840 lt_prog_compiler_pic_F77='-Kconform_pic'
19841 lt_prog_compiler_static_F77='-Bstatic'
19846 lt_prog_compiler_pic_F77='-pic'
19847 lt_prog_compiler_static_F77='-Bstatic'
19851 lt_prog_compiler_can_build_shared_F77=no
19856 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19857 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19860 # Check to make sure the PIC flag actually works.
19862 if test -n "$lt_prog_compiler_pic_F77"; then
19864 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19865 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19866 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 lt_prog_compiler_pic_works_F77=no
19870 ac_outfile=conftest.$ac_objext
19871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19872 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19873 # Insert the option either (1) after the last *FLAGS variable, or
19874 # (2) before a word containing "conftest.", or (3) at the end.
19875 # Note that $ac_compile itself does not contain backslashes and begins
19876 # with a dollar sign (not a hyphen), so the echo should work correctly.
19877 # The option is referenced via a variable to avoid confusing sed.
19878 lt_compile=`echo "$ac_compile" | $SED \
19879 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19881 -e 's:$: $lt_compiler_flag:'`
19882 (eval echo "\"\$as_me:19882: $lt_compile\"" >&5)
19883 (eval "$lt_compile" 2>conftest.err)
19885 cat conftest.err >&5
19886 echo "$as_me:19886: \$? = $ac_status" >&5
19887 if (exit $ac_status) && test -s "$ac_outfile"; then
19888 # The compiler can only warn and ignore the option if not recognized
19889 # So say no if there are warnings
19890 if test ! -s conftest.err; then
19891 lt_prog_compiler_pic_works_F77=yes
19897 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19898 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19900 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19901 case $lt_prog_compiler_pic_F77 in
19903 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19906 lt_prog_compiler_pic_F77=
19907 lt_prog_compiler_can_build_shared_F77=no
19912 # For platforms which do not support PIC, -DPIC is meaningless:
19914 lt_prog_compiler_pic_F77=
19917 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19921 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19923 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 lt_cv_prog_compiler_c_o_F77=no
19927 $rm -r conftest 2>/dev/null
19931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19933 lt_compiler_flag="-o out/conftest2.$ac_objext"
19934 # Insert the option either (1) after the last *FLAGS variable, or
19935 # (2) before a word containing "conftest.", or (3) at the end.
19936 # Note that $ac_compile itself does not contain backslashes and begins
19937 # with a dollar sign (not a hyphen), so the echo should work correctly.
19938 lt_compile=`echo "$ac_compile" | $SED \
19939 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19941 -e 's:$: $lt_compiler_flag:'`
19942 (eval echo "\"\$as_me:19942: $lt_compile\"" >&5)
19943 (eval "$lt_compile" 2>out/conftest.err)
19945 cat out/conftest.err >&5
19946 echo "$as_me:19946: \$? = $ac_status" >&5
19947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19949 # The compiler can only warn and ignore the option if not recognized
19950 # So say no if there are warnings
19951 if test ! -s out/conftest.err; then
19952 lt_cv_prog_compiler_c_o_F77=yes
19957 # SGI C++ compiler will create directory out/ii_files/ for
19958 # template instantiation
19959 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19960 $rm out/* && rmdir out
19966 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19967 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19970 hard_links="nottested"
19971 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19972 # do not overwrite the value of need_locks provided by the user
19973 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19974 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19979 ln conftest.a conftest.b 2>&5 || hard_links=no
19980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19981 echo "$as_me:$LINENO: result: $hard_links" >&5
19982 echo "${ECHO_T}$hard_links" >&6
19983 if test "$hard_links" = no; then
19984 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19985 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19992 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19993 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19996 allow_undefined_flag_F77=
19997 enable_shared_with_static_runtimes_F77=no
19999 archive_expsym_cmds_F77=
20000 old_archive_From_new_cmds_F77=
20001 old_archive_from_expsyms_cmds_F77=
20002 export_dynamic_flag_spec_F77=
20003 whole_archive_flag_spec_F77=
20004 thread_safe_flag_spec_F77=
20005 hardcode_libdir_flag_spec_F77=
20006 hardcode_libdir_flag_spec_ld_F77=
20007 hardcode_libdir_separator_F77=
20008 hardcode_direct_F77=no
20009 hardcode_minus_L_F77=no
20010 hardcode_shlibpath_var_F77=unsupported
20011 link_all_deplibs_F77=unknown
20012 hardcode_automatic_F77=no
20014 module_expsym_cmds_F77=
20015 always_export_symbols_F77=no
20016 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20017 # include_expsyms should be a list of space-separated symbols to be *always*
20018 # included in the symbol list
20019 include_expsyms_F77=
20020 # exclude_expsyms can be an extended regexp of symbols to exclude
20021 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20022 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20023 # as well as any symbol that contains `d'.
20024 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20025 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20026 # platforms (ab)use it in PIC code, but their linkers get confused if
20027 # the symbol is explicitly referenced. Since portable code cannot
20028 # rely on this symbol name, it's probably fine to never include it in
20029 # preloaded symbol tables.
20030 extract_expsyms_cmds=
20033 cygwin* | mingw* | pw32*)
20034 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20035 # When not using gcc, we currently assume that we are using
20036 # Microsoft Visual C++.
20037 if test "$GCC" != yes; then
20047 if test "$with_gnu_ld" = yes; then
20048 # If archive_cmds runs LD, not CC, wlarc should be empty
20051 # See if GNU ld supports shared libraries.
20053 aix3* | aix4* | aix5*)
20054 # On AIX/PPC, the GNU linker is very broken
20055 if test "$host_cpu" != ia64; then
20059 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20060 *** to be unable to reliably create shared libraries on AIX.
20061 *** Therefore, libtool is disabling shared libraries support. If you
20062 *** really care for shared libraries, you may want to modify your PATH
20063 *** so that a non-GNU linker is found, and then restart.
20070 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)'
20071 hardcode_libdir_flag_spec_F77='-L$libdir'
20072 hardcode_minus_L_F77=yes
20074 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20075 # that the semantics of dynamic libraries on AmigaOS, at least up
20076 # to version 4, is to share data among multiple programs linked
20077 # with the same dynamic library. Since this doesn't match the
20078 # behavior of shared libraries on other platforms, we can't use
20084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20085 allow_undefined_flag_F77=unsupported
20086 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20087 # support --undefined. This deserves some investigation. FIXME
20088 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20094 cygwin* | mingw* | pw32*)
20095 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20096 # as there is no search path for DLLs.
20097 hardcode_libdir_flag_spec_F77='-L$libdir'
20098 allow_undefined_flag_F77=unsupported
20099 always_export_symbols_F77=no
20100 enable_shared_with_static_runtimes_F77=yes
20101 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20103 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20104 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20105 # If the export-symbols file already is a .def file (1st line
20106 # is EXPORTS), use it as is; otherwise, prepend...
20107 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20108 cp $export_symbols $output_objdir/$soname.def;
20110 echo EXPORTS > $output_objdir/$soname.def;
20111 cat $export_symbols >> $output_objdir/$soname.def;
20113 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20121 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20124 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20125 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20130 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20135 *** create shared libraries on Solaris systems. Therefore, libtool
20136 *** is disabling shared libraries support. We urge you to upgrade GNU
20137 *** binutils to release 2.9.1 or newer. Another option is to modify
20138 *** your PATH or compiler configuration so that the native linker is
20139 *** used, and then restart.
20142 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20143 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20144 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20151 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20153 hardcode_direct_F77=yes
20154 hardcode_shlibpath_var_F77=no
20158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20159 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20160 archive_cmds_F77="$tmp_archive_cmds"
20161 supports_anon_versioning=no
20162 case `$LD -v 2>/dev/null` in
20163 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20164 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20165 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20166 *\ 2.11.*) ;; # other 2.11 versions
20167 *) supports_anon_versioning=yes ;;
20169 if test $supports_anon_versioning = yes; then
20170 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20172 $echo "local: *; };" >> $output_objdir/$libname.ver~
20173 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20175 archive_expsym_cmds_F77="$tmp_archive_cmds"
20183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20184 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20185 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20192 if test "$ld_shlibs_F77" = yes; then
20193 runpath_var=LD_RUN_PATH
20194 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20195 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20196 # ancient GNU ld didn't support --whole-archive et. al.
20197 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20198 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20200 whole_archive_flag_spec_F77=
20204 # PORTME fill in a description of your system's linker (not GNU ld)
20207 allow_undefined_flag_F77=unsupported
20208 always_export_symbols_F77=yes
20209 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'
20210 # Note: this linker hardcodes the directories in LIBPATH if there
20211 # are no directories specified by -L.
20212 hardcode_minus_L_F77=yes
20213 if test "$GCC" = yes && test -z "$link_static_flag"; then
20214 # Neither direct hardcoding nor static linking is supported with a
20216 hardcode_direct_F77=unsupported
20221 if test "$host_cpu" = ia64; then
20222 # On IA64, the linker does run time linking by default, so we don't
20223 # have to do anything special.
20224 aix_use_runtimelinking=no
20225 exp_sym_flag='-Bexport'
20228 # If we're using GNU nm, then we don't want the "-C" option.
20229 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20230 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20231 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'
20233 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'
20235 aix_use_runtimelinking=no
20237 # Test if we are trying to use run time linking or normal
20238 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20239 # need to do runtime linking.
20240 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20241 for ld_flag in $LDFLAGS; do
20242 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20243 aix_use_runtimelinking=yes
20249 exp_sym_flag='-bexport'
20250 no_entry_flag='-bnoentry'
20253 # When large executables or shared objects are built, AIX ld can
20254 # have problems creating the table of contents. If linking a library
20255 # or program results in "error TOC overflow" add -mminimal-toc to
20256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20259 archive_cmds_F77=''
20260 hardcode_direct_F77=yes
20261 hardcode_libdir_separator_F77=':'
20262 link_all_deplibs_F77=yes
20264 if test "$GCC" = yes; then
20265 case $host_os in aix4.012|aix4.012.*)
20266 # We only want to do this on AIX 4.2 and lower, the check
20267 # below for broken collect2 doesn't work under 4.3+
20268 collect2name=`${CC} -print-prog-name=collect2`
20269 if test -f "$collect2name" && \
20270 strings "$collect2name" | grep resolve_lib_name >/dev/null
20272 # We have reworked collect2
20273 hardcode_direct_F77=yes
20275 # We have old collect2
20276 hardcode_direct_F77=unsupported
20277 # It fails to find uninstalled libraries when the uninstalled
20278 # path is not listed in the libpath. Setting hardcode_minus_L
20279 # to unsupported forces relinking
20280 hardcode_minus_L_F77=yes
20281 hardcode_libdir_flag_spec_F77='-L$libdir'
20282 hardcode_libdir_separator_F77=
20285 shared_flag='-shared'
20288 if test "$host_cpu" = ia64; then
20289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20290 # chokes on -Wl,-G. The following line is correct:
20293 if test "$aix_use_runtimelinking" = yes; then
20294 shared_flag='${wl}-G'
20296 shared_flag='${wl}-bM:SRE'
20301 # It seems that -bexpall does not export symbols beginning with
20302 # underscore (_), so it is better to generate a list of symbols to export.
20303 always_export_symbols_F77=yes
20304 if test "$aix_use_runtimelinking" = yes; then
20305 # Warning - without using the other runtime loading flags (-brtl),
20306 # -berok will link without error, but may produce a broken library.
20307 allow_undefined_flag_F77='-berok'
20308 # Determine the default libpath from the value encoded in an empty executable.
20309 cat >conftest.$ac_ext <<_ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316 (eval $ac_link) 2>conftest.er1
20318 grep -v '^ *+' conftest.er1 >conftest.err
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_f77_werror_flag"
20324 || test ! -s conftest.err'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest$ac_exeext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20339 # Check for a 64-bit object if we didn't find anything.
20340 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; }
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20347 rm -f conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20352 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"
20354 if test "$host_cpu" = ia64; then
20355 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20356 allow_undefined_flag_F77="-z nodefs"
20357 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"
20359 # Determine the default libpath from the value encoded in an empty executable.
20360 cat >conftest.$ac_ext <<_ACEOF
20365 rm -f conftest.$ac_objext conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367 (eval $ac_link) 2>conftest.er1
20369 grep -v '^ *+' conftest.er1 >conftest.err
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } &&
20374 { ac_try='test -z "$ac_f77_werror_flag"
20375 || test ! -s conftest.err'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; } &&
20381 { ac_try='test -s conftest$ac_exeext'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20390 # Check for a 64-bit object if we didn't find anything.
20391 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; }
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20398 rm -f conftest.err conftest.$ac_objext \
20399 conftest$ac_exeext conftest.$ac_ext
20400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20402 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20403 # Warning - without using the other run time loading flags,
20404 # -berok will link without error, but may produce a broken library.
20405 no_undefined_flag_F77=' ${wl}-bernotok'
20406 allow_undefined_flag_F77=' ${wl}-berok'
20407 # -bexpall does not export symbols beginning with underscore (_)
20408 always_export_symbols_F77=yes
20409 # Exported symbols can be pulled into shared objects from archives
20410 whole_archive_flag_spec_F77=' '
20411 archive_cmds_need_lc_F77=yes
20412 # This is similar to how AIX traditionally builds it's shared libraries.
20413 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'
20419 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)'
20420 hardcode_libdir_flag_spec_F77='-L$libdir'
20421 hardcode_minus_L_F77=yes
20422 # see comment about different semantics on the GNU ld section
20427 export_dynamic_flag_spec_F77=-rdynamic
20430 cygwin* | mingw* | pw32*)
20431 # When not using gcc, we currently assume that we are using
20432 # Microsoft Visual C++.
20433 # hardcode_libdir_flag_spec is actually meaningless, as there is
20434 # no search path for DLLs.
20435 hardcode_libdir_flag_spec_F77=' '
20436 allow_undefined_flag_F77=unsupported
20437 # Tell ltmain to make .lib files, not .a files.
20439 # Tell ltmain to make .dll files, not .so files.
20441 # FIXME: Setting linknames here is a bad hack.
20442 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20443 # The linker will automatically build a .lib file if we build a DLL.
20444 old_archive_From_new_cmds_F77='true'
20445 # FIXME: Should let the user specify the lib program.
20446 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20447 fix_srcfile_path='`cygpath -w "$srcfile"`'
20448 enable_shared_with_static_runtimes_F77=yes
20451 darwin* | rhapsody*)
20452 if test "$GXX" = yes ; then
20453 archive_cmds_need_lc_F77=no
20455 rhapsody* | darwin1.[012])
20456 allow_undefined_flag_F77='-undefined suppress'
20459 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20460 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20462 case ${MACOSX_DEPLOYMENT_TARGET} in
20464 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20467 allow_undefined_flag_F77='-undefined dynamic_lookup'
20473 lt_int_apple_cc_single_mod=no
20474 output_verbose_link_cmd='echo'
20475 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20476 lt_int_apple_cc_single_mod=yes
20478 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20479 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20481 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
20483 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20484 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20485 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20486 archive_expsym_cmds_F77='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}'
20488 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
20490 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}'
20491 hardcode_direct_F77=no
20492 hardcode_automatic_F77=yes
20493 hardcode_shlibpath_var_F77=unsupported
20494 whole_archive_flag_spec_F77='-all_load $convenience'
20495 link_all_deplibs_F77=yes
20502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20503 hardcode_libdir_flag_spec_F77='-L$libdir'
20504 hardcode_shlibpath_var_F77=no
20511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20512 # support. Future versions do this automatically, but an explicit c++rt0.o
20513 # does not break anything, and helps significantly (at the cost of a little
20516 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20517 hardcode_libdir_flag_spec_F77='-R$libdir'
20518 hardcode_direct_F77=yes
20519 hardcode_shlibpath_var_F77=no
20522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20524 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20525 hardcode_direct_F77=yes
20526 hardcode_minus_L_F77=yes
20527 hardcode_shlibpath_var_F77=no
20530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20531 freebsd* | kfreebsd*-gnu)
20532 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20533 hardcode_libdir_flag_spec_F77='-R$libdir'
20534 hardcode_direct_F77=yes
20535 hardcode_shlibpath_var_F77=no
20539 if test "$GCC" = yes; then
20540 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'
20542 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'
20544 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20545 hardcode_libdir_separator_F77=:
20546 hardcode_direct_F77=yes
20548 # hardcode_minus_L: Not really in the search PATH,
20549 # but as the default location of the library.
20550 hardcode_minus_L_F77=yes
20551 export_dynamic_flag_spec_F77='${wl}-E'
20555 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20556 case "$host_cpu" in
20558 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20561 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20565 case "$host_cpu" in
20567 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20570 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20574 if test "$with_gnu_ld" = no; then
20575 case "$host_cpu" in
20577 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20578 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20579 hardcode_libdir_separator_F77=:
20580 hardcode_direct_F77=no
20581 hardcode_shlibpath_var_F77=no
20584 hardcode_libdir_flag_spec_F77='-L$libdir'
20585 hardcode_direct_F77=no
20586 hardcode_shlibpath_var_F77=no
20588 # hardcode_minus_L: Not really in the search PATH,
20589 # but as the default location of the library.
20590 hardcode_minus_L_F77=yes
20593 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20594 hardcode_libdir_separator_F77=:
20595 hardcode_direct_F77=yes
20596 export_dynamic_flag_spec_F77='${wl}-E'
20598 # hardcode_minus_L: Not really in the search PATH,
20599 # but as the default location of the library.
20600 hardcode_minus_L_F77=yes
20606 irix5* | irix6* | nonstopux*)
20607 if test "$GCC" = yes; then
20608 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'
20610 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'
20611 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20613 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20614 hardcode_libdir_separator_F77=:
20615 link_all_deplibs_F77=yes
20619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20620 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20622 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20624 hardcode_libdir_flag_spec_F77='-R$libdir'
20625 hardcode_direct_F77=yes
20626 hardcode_shlibpath_var_F77=no
20630 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20631 hardcode_direct_F77=yes
20632 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20633 hardcode_libdir_separator_F77=:
20634 hardcode_shlibpath_var_F77=no
20638 hardcode_direct_F77=yes
20639 hardcode_shlibpath_var_F77=no
20640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20641 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20642 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20643 export_dynamic_flag_spec_F77='${wl}-E'
20646 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20647 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20648 hardcode_libdir_flag_spec_F77='-R$libdir'
20651 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20652 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20659 hardcode_libdir_flag_spec_F77='-L$libdir'
20660 hardcode_minus_L_F77=yes
20661 allow_undefined_flag_F77=unsupported
20662 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'
20663 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20667 if test "$GCC" = yes; then
20668 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20669 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'
20671 allow_undefined_flag_F77=' -expect_unresolved \*'
20672 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'
20674 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20675 hardcode_libdir_separator_F77=:
20678 osf4* | osf5*) # as osf3* with the addition of -msym flag
20679 if test "$GCC" = yes; then
20680 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20681 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'
20682 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20684 allow_undefined_flag_F77=' -expect_unresolved \*'
20685 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'
20686 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~
20687 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
20689 # Both c and cxx compiler support -rpath directly
20690 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20692 hardcode_libdir_separator_F77=:
20696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20697 hardcode_shlibpath_var_F77=no
20698 export_dynamic_flag_spec_F77='${wl}-Bexport'
20699 runpath_var=LD_RUN_PATH
20700 hardcode_runpath_var=yes
20704 no_undefined_flag_F77=' -z text'
20705 if test "$GCC" = yes; then
20706 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20707 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20708 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20710 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20711 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20714 hardcode_libdir_flag_spec_F77='-R$libdir'
20715 hardcode_shlibpath_var_F77=no
20717 solaris2.[0-5] | solaris2.[0-5].*) ;;
20718 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20719 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20721 link_all_deplibs_F77=yes
20725 if test "x$host_vendor" = xsequent; then
20726 # Use $CC to link under sequent, because it throws in some extra .o
20727 # files that make .init and .fini sections work.
20728 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20730 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20732 hardcode_libdir_flag_spec_F77='-L$libdir'
20733 hardcode_direct_F77=yes
20734 hardcode_minus_L_F77=yes
20735 hardcode_shlibpath_var_F77=no
20739 case $host_vendor in
20741 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20742 hardcode_direct_F77=yes # is this really true???
20745 ## LD is ld it makes a PLAMLIB
20746 ## CC just makes a GrossModule.
20747 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20748 reload_cmds_F77='$CC -r -o $output$reload_objs'
20749 hardcode_direct_F77=no
20752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20753 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20756 runpath_var='LD_RUN_PATH'
20757 hardcode_shlibpath_var_F77=no
20761 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20762 hardcode_shlibpath_var_F77=no
20763 export_dynamic_flag_spec_F77='-Bexport'
20767 if test -d /usr/nec; then
20768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20769 hardcode_shlibpath_var_F77=no
20770 runpath_var=LD_RUN_PATH
20771 hardcode_runpath_var=yes
20777 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20778 hardcode_direct_F77=yes
20779 hardcode_minus_L_F77=no
20780 hardcode_shlibpath_var_F77=no
20781 hardcode_runpath_var=yes
20782 runpath_var=LD_RUN_PATH
20785 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20786 no_undefined_flag_F77='${wl}-z ${wl}text'
20787 if test "$GCC" = yes; then
20788 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20790 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20792 runpath_var='LD_RUN_PATH'
20793 hardcode_shlibpath_var_F77=no
20797 no_undefined_flag_F77=' -z text'
20798 # $CC -shared without GNU ld will not create a library from C++
20799 # object files and a static libstdc++, better avoid it by now
20800 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20801 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20803 hardcode_libdir_flag_spec_F77=
20804 hardcode_shlibpath_var_F77=no
20805 runpath_var='LD_RUN_PATH'
20809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20810 hardcode_libdir_flag_spec_F77='-L$libdir'
20811 hardcode_shlibpath_var_F77=no
20820 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20821 echo "${ECHO_T}$ld_shlibs_F77" >&6
20822 test "$ld_shlibs_F77" = no && can_build_shared=no
20824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20825 if test "$GCC" = yes; then
20826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20830 # Do we need to explicitly link libc?
20832 case "x$archive_cmds_need_lc_F77" in
20834 # Assume -lc should be added
20835 archive_cmds_need_lc_F77=yes
20837 if test "$enable_shared" = yes && test "$GCC" = yes; then
20838 case $archive_cmds_F77 in
20840 # FIXME: we may have to deal with multi-command sequences.
20843 # Test whether the compiler implicitly links with -lc since on some
20844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20845 # to ld, don't add -lc before -lgcc.
20846 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20847 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20852 (eval $ac_compile) 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } 2>conftest.err; then
20858 libobjs=conftest.$ac_objext
20860 wl=$lt_prog_compiler_wl_F77
20866 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20867 allow_undefined_flag_F77=
20868 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20869 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }
20874 archive_cmds_need_lc_F77=no
20876 archive_cmds_need_lc_F77=yes
20878 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20880 cat conftest.err 1>&5
20883 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20884 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20891 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20893 library_names_spec=
20894 libname_spec='lib$name'
20898 postuninstall_cmds=
20902 shlibpath_overrides_runpath=unknown
20904 dynamic_linker="$host_os ld.so"
20905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20906 if test "$GCC" = yes; then
20907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20909 # if the path contains ";" then we assume it to be the separator
20910 # otherwise default to the standard path separator (i.e. ":") - it is
20911 # assumed that no part of a normal pathname contains ";" but that should
20912 # okay in the real world where ";" in dirpaths is itself problematic.
20913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20920 need_lib_prefix=unknown
20921 hardcode_into_libs=no
20923 # when you set need_version to no, make sure it does not cause -set_version
20924 # flags to be left without arguments
20925 need_version=unknown
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20931 shlibpath_var=LIBPATH
20933 # AIX 3 has no versioning support, so we append a major version to the name.
20934 soname_spec='${libname}${release}${shared_ext}$major'
20941 hardcode_into_libs=yes
20942 if test "$host_cpu" = ia64; then
20943 # AIX 5 supports IA64
20944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20945 shlibpath_var=LD_LIBRARY_PATH
20947 # With GCC up to 2.95.x, collect2 would create an import file
20948 # for dependence libraries. The import file would start with
20949 # the line `#! .'. This would cause the generated library to
20950 # depend on `.', always an invalid library. This was fixed in
20951 # development snapshots of GCC prior to 3.0.
20953 aix4 | aix4.[01] | aix4.[01].*)
20954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20959 can_build_shared=no
20963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20964 # soname into executable. Probably we can add versioning support to
20965 # collect2, so additional links can be useful in future.
20966 if test "$aix_use_runtimelinking" = yes; then
20967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20968 # instead of lib<name>.a to let people know that these are not
20969 # typical AIX shared libraries.
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 # We preserve .a as extension for shared libraries through AIX4.2
20973 # and later when we are not doing run time linking.
20974 library_names_spec='${libname}${release}.a $libname.a'
20975 soname_spec='${libname}${release}${shared_ext}$major'
20977 shlibpath_var=LIBPATH
20982 library_names_spec='$libname.ixlibrary $libname.a'
20983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20984 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'
20988 library_names_spec='${libname}${shared_ext}'
20989 dynamic_linker="$host_os ld.so"
20990 shlibpath_var=LIBRARY_PATH
20996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20997 soname_spec='${libname}${release}${shared_ext}$major'
20998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20999 shlibpath_var=LD_LIBRARY_PATH
21000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21002 # the default ld.so.conf also contains /usr/contrib/lib and
21003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21004 # libtool to hard-code these into programs
21007 cygwin* | mingw* | pw32*)
21008 version_type=windows
21013 case $GCC,$host_os in
21014 yes,cygwin* | yes,mingw* | yes,pw32*)
21015 library_names_spec='$libname.dll.a'
21016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21017 postinstall_cmds='base_file=`basename \${file}`~
21018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21019 dldir=$destdir/`dirname \$dlpath`~
21020 test -d \$dldir || mkdir -p \$dldir~
21021 $install_prog $dir/$dlname \$dldir/$dlname'
21022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21023 dlpath=$dir/\$dldll~
21025 shlibpath_overrides_runpath=yes
21029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21031 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21034 # MinGW DLLs use traditional 'lib' prefix
21035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21037 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21038 # It is most probably a Windows format PATH printed by
21039 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21040 # path with ; separators, and with drive letters. We can handle the
21041 # drive letters (cygwin fileutils understands them), so leave them,
21042 # especially as we might pass files found there to a mingw objdump,
21043 # which wouldn't understand a cygwinified path. Ahh.
21044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21050 # pw32 DLLs use 'pw' prefix rather than 'lib'
21051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21060 dynamic_linker='Win32 ld.exe'
21061 # FIXME: first we should search . and the directory the executable is in
21065 darwin* | rhapsody*)
21066 dynamic_linker="$host_os dyld"
21067 version_type=darwin
21070 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21071 soname_spec='${libname}${release}${major}$shared_ext'
21072 shlibpath_overrides_runpath=yes
21073 shlibpath_var=DYLD_LIBRARY_PATH
21074 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21075 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21076 if test "$GCC" = yes; then
21077 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"`
21079 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21081 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21089 soname_spec='${libname}${release}${shared_ext}$major'
21090 shlibpath_var=LD_LIBRARY_PATH
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21102 soname_spec='${libname}${release}${shared_ext}$major'
21103 shlibpath_var=LD_LIBRARY_PATH
21104 shlibpath_overrides_runpath=no
21105 hardcode_into_libs=yes
21106 dynamic_linker='GNU ld.so'
21110 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21111 version_type=freebsd-$objformat
21112 case $version_type in
21114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21123 shlibpath_var=LD_LIBRARY_PATH
21126 shlibpath_overrides_runpath=yes
21128 freebsd3.01* | freebsdelf3.01*)
21129 shlibpath_overrides_runpath=yes
21130 hardcode_into_libs=yes
21133 shlibpath_overrides_runpath=no
21134 hardcode_into_libs=yes
21143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21144 soname_spec='${libname}${release}${shared_ext}$major'
21145 shlibpath_var=LD_LIBRARY_PATH
21146 hardcode_into_libs=yes
21149 hpux9* | hpux10* | hpux11*)
21150 # Give a soname corresponding to the major version so that dld.sl refuses to
21151 # link against other versions.
21155 case "$host_cpu" in
21158 hardcode_into_libs=yes
21159 dynamic_linker="$host_os dld.so"
21160 shlibpath_var=LD_LIBRARY_PATH
21161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163 soname_spec='${libname}${release}${shared_ext}$major'
21164 if test "X$HPUX_IA64_MODE" = X32; then
21165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21173 hardcode_into_libs=yes
21174 dynamic_linker="$host_os dld.sl"
21175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21178 soname_spec='${libname}${release}${shared_ext}$major'
21179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21184 dynamic_linker="$host_os dld.sl"
21185 shlibpath_var=SHLIB_PATH
21186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec='${libname}${release}${shared_ext}$major'
21191 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21192 postinstall_cmds='chmod 555 $lib'
21195 irix5* | irix6* | nonstopux*)
21197 nonstopux*) version_type=nonstopux ;;
21199 if test "$lt_cv_prog_gnu_ld" = yes; then
21207 soname_spec='${libname}${release}${shared_ext}$major'
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21210 irix5* | nonstopux*)
21211 libsuff= shlibsuff=
21214 case $LD in # libtool.m4 will add one of these switches to LD
21215 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21216 libsuff= shlibsuff= libmagic=32-bit;;
21217 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21218 libsuff=32 shlibsuff=N32 libmagic=N32;;
21219 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21220 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21221 *) libsuff= shlibsuff= libmagic=never-match;;
21225 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21226 shlibpath_overrides_runpath=no
21227 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21228 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21229 hardcode_into_libs=yes
21232 # No shared lib support for Linux oldld, aout, or coff.
21233 linux*oldld* | linux*aout* | linux*coff*)
21237 # This must be Linux ELF.
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243 soname_spec='${libname}${release}${shared_ext}$major'
21244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21245 shlibpath_var=LD_LIBRARY_PATH
21246 shlibpath_overrides_runpath=no
21247 # This implies no fast_install, which is unacceptable.
21248 # Some rework will be needed to allow for fast_install
21249 # before this can be enabled.
21250 hardcode_into_libs=yes
21252 # Append ld.so.conf contents to the search path
21253 if test -f /etc/ld.so.conf; then
21254 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21258 # We used to test for /lib/ld.so.1 and disable shared libraries on
21259 # powerpc, because MkLinux only supported shared libraries with the
21260 # GNU dynamic linker. Since this was broken with cross compilers,
21261 # most powerpc-linux boxes support dynamic linking these days and
21262 # people can always --disable-shared, the test was removed, and we
21263 # assume the GNU/Linux dynamic linker is in use.
21264 dynamic_linker='GNU/Linux ld.so'
21271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21272 soname_spec='${libname}${release}${shared_ext}$major'
21273 shlibpath_var=LD_LIBRARY_PATH
21274 shlibpath_overrides_runpath=no
21275 hardcode_into_libs=yes
21276 dynamic_linker='GNU ld.so'
21283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21286 dynamic_linker='NetBSD (a.out) ld.so'
21288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21289 soname_spec='${libname}${release}${shared_ext}$major'
21290 dynamic_linker='NetBSD ld.elf_so'
21292 shlibpath_var=LD_LIBRARY_PATH
21293 shlibpath_overrides_runpath=yes
21294 hardcode_into_libs=yes
21299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300 shlibpath_var=LD_LIBRARY_PATH
21301 shlibpath_overrides_runpath=yes
21308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21309 soname_spec='${libname}${release}${shared_ext}$major'
21310 shlibpath_var=LD_LIBRARY_PATH
21311 shlibpath_overrides_runpath=yes
21318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21320 shlibpath_var=LD_LIBRARY_PATH
21321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21323 openbsd2.[89] | openbsd2.[89].*)
21324 shlibpath_overrides_runpath=no
21327 shlibpath_overrides_runpath=yes
21331 shlibpath_overrides_runpath=yes
21336 libname_spec='$name'
21339 library_names_spec='$libname${shared_ext} $libname.a'
21340 dynamic_linker='OS/2 ld.exe'
21341 shlibpath_var=LIBPATH
21344 osf3* | osf4* | osf5*)
21348 soname_spec='${libname}${release}${shared_ext}$major'
21349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21350 shlibpath_var=LD_LIBRARY_PATH
21351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21357 soname_spec='${libname}${release}${shared_ext}$major'
21358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21359 shlibpath_var=LD_LIBRARY_PATH
21366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21367 soname_spec='${libname}${release}${shared_ext}$major'
21368 shlibpath_var=LD_LIBRARY_PATH
21369 shlibpath_overrides_runpath=yes
21370 hardcode_into_libs=yes
21371 # ldd complains unless libraries are executable
21372 postinstall_cmds='chmod +x $lib'
21377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21379 shlibpath_var=LD_LIBRARY_PATH
21380 shlibpath_overrides_runpath=yes
21381 if test "$with_gnu_ld" = yes; then
21387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21390 soname_spec='${libname}${release}${shared_ext}$major'
21391 shlibpath_var=LD_LIBRARY_PATH
21392 case $host_vendor in
21394 shlibpath_overrides_runpath=no
21396 export_dynamic_flag_spec='${wl}-Blargedynsym'
21397 runpath_var=LD_RUN_PATH
21405 shlibpath_overrides_runpath=no
21406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21412 if test -d /usr/nec ;then
21414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21415 soname_spec='$libname${shared_ext}.$major'
21416 shlibpath_var=LD_LIBRARY_PATH
21422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21423 soname_spec='${libname}${release}${shared_ext}$major'
21424 shlibpath_var=LD_LIBRARY_PATH
21431 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21432 echo "${ECHO_T}$dynamic_linker" >&6
21433 test "$dynamic_linker" = no && can_build_shared=no
21435 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21436 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21437 hardcode_action_F77=
21438 if test -n "$hardcode_libdir_flag_spec_F77" || \
21439 test -n "$runpath_var F77" || \
21440 test "X$hardcode_automatic_F77"="Xyes" ; then
21442 # We can hardcode non-existant directories.
21443 if test "$hardcode_direct_F77" != no &&
21444 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21445 # have to relink, otherwise we might link with an installed library
21446 # when we should be linking with a yet-to-be-installed one
21447 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21448 test "$hardcode_minus_L_F77" != no; then
21449 # Linking always hardcodes the temporary library directory.
21450 hardcode_action_F77=relink
21452 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21453 hardcode_action_F77=immediate
21456 # We cannot hardcode anything, or else we can only hardcode existing
21458 hardcode_action_F77=unsupported
21460 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21461 echo "${ECHO_T}$hardcode_action_F77" >&6
21463 if test "$hardcode_action_F77" = relink; then
21464 # Fast installation is not supported
21465 enable_fast_install=no
21466 elif test "$shlibpath_overrides_runpath" = yes ||
21467 test "$enable_shared" = no; then
21468 # Fast installation is not necessary
21469 enable_fast_install=needless
21474 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21475 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21476 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21479 echo "$as_me:$LINENO: result: yes" >&5
21480 echo "${ECHO_T}yes" >&6
21482 # FIXME - insert some real tests, host_os isn't really good enough
21485 if test -n "$STRIP" ; then
21486 striplib="$STRIP -x"
21487 echo "$as_me:$LINENO: result: yes" >&5
21488 echo "${ECHO_T}yes" >&6
21490 echo "$as_me:$LINENO: result: no" >&5
21491 echo "${ECHO_T}no" >&6
21495 echo "$as_me:$LINENO: result: no" >&5
21496 echo "${ECHO_T}no" >&6
21503 # The else clause should only fire when bootstrapping the
21504 # libtool distribution, otherwise you forgot to ship ltmain.sh
21505 # with your package, and you will get complaints that there are
21506 # no rules to generate ltmain.sh.
21507 if test -f "$ltmain"; then
21508 # See if we are running on zsh, and set the options which allow our commands through
21509 # without removal of \ escapes.
21510 if test -n "${ZSH_VERSION+set}" ; then
21511 setopt NO_GLOB_SUBST
21513 # Now quote all the things that may contain metacharacters while being
21514 # careful not to overquote the AC_SUBSTed values. We take copies of the
21515 # variables and quote the copies for generation of the libtool script.
21516 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21518 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21519 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21520 deplibs_check_method reload_flag reload_cmds need_locks \
21521 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21522 lt_cv_sys_global_symbol_to_c_name_address \
21523 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21524 old_postinstall_cmds old_postuninstall_cmds \
21528 lt_prog_compiler_wl_F77 \
21529 lt_prog_compiler_pic_F77 \
21530 lt_prog_compiler_static_F77 \
21531 lt_prog_compiler_no_builtin_flag_F77 \
21532 export_dynamic_flag_spec_F77 \
21533 thread_safe_flag_spec_F77 \
21534 whole_archive_flag_spec_F77 \
21535 enable_shared_with_static_runtimes_F77 \
21536 old_archive_cmds_F77 \
21537 old_archive_from_new_cmds_F77 \
21538 predep_objects_F77 \
21539 postdep_objects_F77 \
21542 compiler_lib_search_path_F77 \
21544 archive_expsym_cmds_F77 \
21545 postinstall_cmds_F77 \
21546 postuninstall_cmds_F77 \
21547 old_archive_from_expsyms_cmds_F77 \
21548 allow_undefined_flag_F77 \
21549 no_undefined_flag_F77 \
21550 export_symbols_cmds_F77 \
21551 hardcode_libdir_flag_spec_F77 \
21552 hardcode_libdir_flag_spec_ld_F77 \
21553 hardcode_libdir_separator_F77 \
21554 hardcode_automatic_F77 \
21556 module_expsym_cmds_F77 \
21557 lt_cv_prog_compiler_c_o_F77 \
21558 exclude_expsyms_F77 \
21559 include_expsyms_F77; do
21562 old_archive_cmds_F77 | \
21563 old_archive_from_new_cmds_F77 | \
21564 archive_cmds_F77 | \
21565 archive_expsym_cmds_F77 | \
21566 module_cmds_F77 | \
21567 module_expsym_cmds_F77 | \
21568 old_archive_from_expsyms_cmds_F77 | \
21569 export_symbols_cmds_F77 | \
21570 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21571 postinstall_cmds | postuninstall_cmds | \
21572 old_postinstall_cmds | old_postuninstall_cmds | \
21573 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21574 # Double-quote double-evaled strings.
21575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21578 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21584 *'\$0 --fallback-echo"')
21585 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21591 cat <<__EOF__ >> "$cfgfile"
21592 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21596 # Shell to use when invoking shell scripts.
21599 # Whether or not to build shared libraries.
21600 build_libtool_libs=$enable_shared
21602 # Whether or not to build static libraries.
21603 build_old_libs=$enable_static
21605 # Whether or not to add -lc for building shared libraries.
21606 build_libtool_need_lc=$archive_cmds_need_lc_F77
21608 # Whether or not to disallow shared libs when runtime libs are static
21609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21611 # Whether or not to optimize for fast installation.
21612 fast_install=$enable_fast_install
21615 host_alias=$host_alias
21618 # An echo program that does not interpret backslashes.
21623 AR_FLAGS=$lt_AR_FLAGS
21628 # A language-specific compiler.
21629 CC=$lt_compiler_F77
21631 # Is the compiler the GNU C compiler?
21637 # The linker used to build libraries.
21640 # Whether we need hard or soft links.
21643 # A BSD-compatible nm program.
21646 # A symbol stripping program
21649 # Used to examine libraries when file_magic_cmd begins "file"
21650 MAGIC_CMD=$MAGIC_CMD
21652 # Used on cygwin: DLL creation program.
21655 # Used on cygwin: object dumper.
21658 # Used on cygwin: assembler.
21661 # The name of the directory that contains temporary libtool files.
21664 # How to create reloadable object files.
21665 reload_flag=$lt_reload_flag
21666 reload_cmds=$lt_reload_cmds
21668 # How to pass a linker flag through the compiler.
21669 wl=$lt_lt_prog_compiler_wl_F77
21671 # Object file suffix (normally "o").
21672 objext="$ac_objext"
21674 # Old archive suffix (normally "a").
21677 # Shared library suffix (normally ".so").
21678 shrext_cmds='$shrext_cmds'
21680 # Executable file suffix (normally "").
21683 # Additional compiler flags for building library objects.
21684 pic_flag=$lt_lt_prog_compiler_pic_F77
21687 # What is the maximum length of a command?
21688 max_cmd_len=$lt_cv_sys_max_cmd_len
21690 # Does compiler simultaneously support -c and -o options?
21691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21693 # Must we lock files when doing compilation ?
21694 need_locks=$lt_need_locks
21696 # Do we need the lib prefix for modules?
21697 need_lib_prefix=$need_lib_prefix
21699 # Do we need a version for libraries?
21700 need_version=$need_version
21702 # Whether dlopen is supported.
21703 dlopen_support=$enable_dlopen
21705 # Whether dlopen of programs is supported.
21706 dlopen_self=$enable_dlopen_self
21708 # Whether dlopen of statically linked programs is supported.
21709 dlopen_self_static=$enable_dlopen_self_static
21711 # Compiler flag to prevent dynamic linking.
21712 link_static_flag=$lt_lt_prog_compiler_static_F77
21714 # Compiler flag to turn off builtin functions.
21715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21717 # Compiler flag to allow reflexive dlopens.
21718 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21720 # Compiler flag to generate shared objects directly from archives.
21721 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21723 # Compiler flag to generate thread-safe objects.
21724 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21726 # Library versioning type.
21727 version_type=$version_type
21729 # Format of library name prefix.
21730 libname_spec=$lt_libname_spec
21732 # List of archive names. First name is the real one, the rest are links.
21733 # The last name is the one that the linker finds with -lNAME.
21734 library_names_spec=$lt_library_names_spec
21736 # The coded name of the library, if different from the real name.
21737 soname_spec=$lt_soname_spec
21739 # Commands used to build and install an old-style archive.
21741 old_archive_cmds=$lt_old_archive_cmds_F77
21742 old_postinstall_cmds=$lt_old_postinstall_cmds
21743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21745 # Create an old-style archive from a shared archive.
21746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21748 # Create a temporary old-style archive to link instead of a shared archive.
21749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21751 # Commands used to build and install a shared archive.
21752 archive_cmds=$lt_archive_cmds_F77
21753 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21754 postinstall_cmds=$lt_postinstall_cmds
21755 postuninstall_cmds=$lt_postuninstall_cmds
21757 # Commands used to build a loadable module (assumed same as above if empty)
21758 module_cmds=$lt_module_cmds_F77
21759 module_expsym_cmds=$lt_module_expsym_cmds_F77
21761 # Commands to strip libraries.
21762 old_striplib=$lt_old_striplib
21763 striplib=$lt_striplib
21765 # Dependencies to place before the objects being linked to create a
21767 predep_objects=$lt_predep_objects_F77
21769 # Dependencies to place after the objects being linked to create a
21771 postdep_objects=$lt_postdep_objects_F77
21773 # Dependencies to place before the objects being linked to create a
21775 predeps=$lt_predeps_F77
21777 # Dependencies to place after the objects being linked to create a
21779 postdeps=$lt_postdeps_F77
21781 # The library search path used internally by the compiler when linking
21782 # a shared library.
21783 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21785 # Method to check whether dependent libraries are shared objects.
21786 deplibs_check_method=$lt_deplibs_check_method
21788 # Command to use when deplibs_check_method == file_magic.
21789 file_magic_cmd=$lt_file_magic_cmd
21791 # Flag that allows shared libraries with undefined symbols to be built.
21792 allow_undefined_flag=$lt_allow_undefined_flag_F77
21794 # Flag that forces no undefined symbols.
21795 no_undefined_flag=$lt_no_undefined_flag_F77
21797 # Commands used to finish a libtool library installation in a directory.
21798 finish_cmds=$lt_finish_cmds
21800 # Same as above, but a single script fragment to be evaled but not shown.
21801 finish_eval=$lt_finish_eval
21803 # Take the output of nm and produce a listing of raw symbols and C names.
21804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21806 # Transform the output of nm in a proper C declaration
21807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21809 # Transform the output of nm in a C name address pair
21810 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21812 # This is the shared library runtime path variable.
21813 runpath_var=$runpath_var
21815 # This is the shared library path variable.
21816 shlibpath_var=$shlibpath_var
21818 # Is shlibpath searched before the hard-coded library search path?
21819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21821 # How to hardcode a shared library path into an executable.
21822 hardcode_action=$hardcode_action_F77
21824 # Whether we should hardcode library paths into libraries.
21825 hardcode_into_libs=$hardcode_into_libs
21827 # Flag to hardcode \$libdir into a binary during linking.
21828 # This must work even if \$libdir does not exist.
21829 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21831 # If ld is used when linking, flag to hardcode \$libdir into
21832 # a binary during linking. This must work even if \$libdir does
21834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21836 # Whether we need a single -rpath flag with a separated argument.
21837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21839 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21840 # resulting binary.
21841 hardcode_direct=$hardcode_direct_F77
21843 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21844 # resulting binary.
21845 hardcode_minus_L=$hardcode_minus_L_F77
21847 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21848 # the resulting binary.
21849 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21851 # Set to yes if building a shared library automatically hardcodes DIR into the library
21852 # and all subsequent libraries and executables linked against it.
21853 hardcode_automatic=$hardcode_automatic_F77
21855 # Variables whose values should be saved in libtool wrapper scripts and
21856 # restored at relink time.
21857 variables_saved_for_relink="$variables_saved_for_relink"
21859 # Whether libtool must link a program against all its dependency libraries.
21860 link_all_deplibs=$link_all_deplibs_F77
21862 # Compile-time system search path for libraries
21863 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21865 # Run-time system search path for libraries
21866 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21868 # Fix the shell variable \$srcfile for the compiler.
21869 fix_srcfile_path="$fix_srcfile_path_F77"
21871 # Set to yes if exported symbols are required.
21872 always_export_symbols=$always_export_symbols_F77
21874 # The commands to list exported symbols.
21875 export_symbols_cmds=$lt_export_symbols_cmds_F77
21877 # The commands to extract the exported symbol list from a shared archive.
21878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21880 # Symbols that should not be listed in the preloaded symbols.
21881 exclude_expsyms=$lt_exclude_expsyms_F77
21883 # Symbols that must always be exported.
21884 include_expsyms=$lt_include_expsyms_F77
21886 # ### END LIBTOOL TAG CONFIG: $tagname
21892 # If there is no Makefile yet, we rely on a make rule to execute
21893 # `config.status --recheck' to rerun these tests and create the
21894 # libtool script then.
21895 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21896 if test -f "$ltmain_in"; then
21897 test -f Makefile && make "$ltmain"
21903 ac_cpp='$CPP $CPPFLAGS'
21904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21916 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21920 # Source file extension for Java test sources.
21923 # Object file extension for compiled Java test sources.
21927 # Code to be used in simple compile tests
21928 lt_simple_compile_test_code="class foo {}\n"
21930 # Code to be used in simple link tests
21931 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21935 # If no C compiler was specified, use CC.
21938 # Allow CC to be a program name with arguments.
21942 # Allow CC to be a program name with arguments.
21948 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21949 archive_cmds_need_lc_GCJ=no
21952 ## There is no encapsulation within the following macros, do not change
21953 ## the running order or otherwise move them around unless you know exactly
21954 ## what you are doing...
21956 lt_prog_compiler_no_builtin_flag_GCJ=
21958 if test "$GCC" = yes; then
21959 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21962 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21963 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21964 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 lt_cv_prog_compiler_rtti_exceptions=no
21968 ac_outfile=conftest.$ac_objext
21969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21970 lt_compiler_flag="-fno-rtti -fno-exceptions"
21971 # Insert the option either (1) after the last *FLAGS variable, or
21972 # (2) before a word containing "conftest.", or (3) at the end.
21973 # Note that $ac_compile itself does not contain backslashes and begins
21974 # with a dollar sign (not a hyphen), so the echo should work correctly.
21975 # The option is referenced via a variable to avoid confusing sed.
21976 lt_compile=`echo "$ac_compile" | $SED \
21977 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21979 -e 's:$: $lt_compiler_flag:'`
21980 (eval echo "\"\$as_me:21980: $lt_compile\"" >&5)
21981 (eval "$lt_compile" 2>conftest.err)
21983 cat conftest.err >&5
21984 echo "$as_me:21984: \$? = $ac_status" >&5
21985 if (exit $ac_status) && test -s "$ac_outfile"; then
21986 # The compiler can only warn and ignore the option if not recognized
21987 # So say no if there are warnings
21988 if test ! -s conftest.err; then
21989 lt_cv_prog_compiler_rtti_exceptions=yes
21995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21996 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21998 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21999 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22006 lt_prog_compiler_wl_GCJ=
22007 lt_prog_compiler_pic_GCJ=
22008 lt_prog_compiler_static_GCJ=
22010 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22011 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22013 if test "$GCC" = yes; then
22014 lt_prog_compiler_wl_GCJ='-Wl,'
22015 lt_prog_compiler_static_GCJ='-static'
22019 # All AIX code is PIC.
22020 if test "$host_cpu" = ia64; then
22021 # AIX 5 now supports IA64 processor
22022 lt_prog_compiler_static_GCJ='-Bstatic'
22027 # FIXME: we need at least 68020 code to build shared libraries, but
22028 # adding the `-m68020' flag to GCC prevents building anything better,
22030 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22033 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22034 # PIC is the default for these OSes.
22037 mingw* | pw32* | os2*)
22038 # This hack is so that the source file can tell whether it is being
22039 # built for inclusion in a dll (and should export symbols for example).
22040 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22043 darwin* | rhapsody*)
22044 # PIC is the default on this platform
22045 # Common symbols not allowed in MH_DYLIB files
22046 lt_prog_compiler_pic_GCJ='-fno-common'
22050 # Just because we use GCC doesn't mean we suddenly get shared libraries
22051 # on systems that don't support them.
22052 lt_prog_compiler_can_build_shared_GCJ=no
22057 if test -d /usr/nec; then
22058 lt_prog_compiler_pic_GCJ=-Kconform_pic
22063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22064 # not for PA HP-UX.
22065 case "$host_cpu" in
22070 lt_prog_compiler_pic_GCJ='-fPIC'
22076 lt_prog_compiler_pic_GCJ='-fPIC'
22080 # PORTME Check for flag to pass linker flags through the system compiler.
22083 lt_prog_compiler_wl_GCJ='-Wl,'
22084 if test "$host_cpu" = ia64; then
22085 # AIX 5 now supports IA64 processor
22086 lt_prog_compiler_static_GCJ='-Bstatic'
22088 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22092 mingw* | pw32* | os2*)
22093 # This hack is so that the source file can tell whether it is being
22094 # built for inclusion in a dll (and should export symbols for example).
22095 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22098 hpux9* | hpux10* | hpux11*)
22099 lt_prog_compiler_wl_GCJ='-Wl,'
22100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22101 # not for PA HP-UX.
22102 case "$host_cpu" in
22107 lt_prog_compiler_pic_GCJ='+Z'
22110 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22111 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22114 irix5* | irix6* | nonstopux*)
22115 lt_prog_compiler_wl_GCJ='-Wl,'
22116 # PIC (with -KPIC) is the default.
22117 lt_prog_compiler_static_GCJ='-non_shared'
22121 lt_prog_compiler_pic_GCJ='-KPIC'
22122 lt_prog_compiler_static_GCJ='-Bstatic'
22128 lt_prog_compiler_wl_GCJ='-Wl,'
22129 lt_prog_compiler_pic_GCJ='-KPIC'
22130 lt_prog_compiler_static_GCJ='-static'
22133 lt_prog_compiler_wl_GCJ='-Wl,'
22134 # All Alpha code is PIC.
22135 lt_prog_compiler_static_GCJ='-non_shared'
22140 osf3* | osf4* | osf5*)
22141 lt_prog_compiler_wl_GCJ='-Wl,'
22142 # All OSF/1 code is PIC.
22143 lt_prog_compiler_static_GCJ='-non_shared'
22147 lt_prog_compiler_pic_GCJ='-Kpic'
22148 lt_prog_compiler_static_GCJ='-dn'
22152 lt_prog_compiler_wl_GCJ='-Wl,'
22153 lt_prog_compiler_pic_GCJ='-KPIC'
22154 lt_prog_compiler_static_GCJ='-Bstatic'
22158 lt_prog_compiler_wl_GCJ='-Qoption ld '
22159 lt_prog_compiler_pic_GCJ='-PIC'
22160 lt_prog_compiler_static_GCJ='-Bstatic'
22163 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22164 lt_prog_compiler_wl_GCJ='-Wl,'
22165 lt_prog_compiler_pic_GCJ='-KPIC'
22166 lt_prog_compiler_static_GCJ='-Bstatic'
22170 if test -d /usr/nec ;then
22171 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22172 lt_prog_compiler_static_GCJ='-Bstatic'
22177 lt_prog_compiler_pic_GCJ='-pic'
22178 lt_prog_compiler_static_GCJ='-Bstatic'
22182 lt_prog_compiler_can_build_shared_GCJ=no
22187 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22188 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22191 # Check to make sure the PIC flag actually works.
22193 if test -n "$lt_prog_compiler_pic_GCJ"; then
22195 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22196 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22197 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 lt_prog_compiler_pic_works_GCJ=no
22201 ac_outfile=conftest.$ac_objext
22202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22203 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22204 # Insert the option either (1) after the last *FLAGS variable, or
22205 # (2) before a word containing "conftest.", or (3) at the end.
22206 # Note that $ac_compile itself does not contain backslashes and begins
22207 # with a dollar sign (not a hyphen), so the echo should work correctly.
22208 # The option is referenced via a variable to avoid confusing sed.
22209 lt_compile=`echo "$ac_compile" | $SED \
22210 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22212 -e 's:$: $lt_compiler_flag:'`
22213 (eval echo "\"\$as_me:22213: $lt_compile\"" >&5)
22214 (eval "$lt_compile" 2>conftest.err)
22216 cat conftest.err >&5
22217 echo "$as_me:22217: \$? = $ac_status" >&5
22218 if (exit $ac_status) && test -s "$ac_outfile"; then
22219 # The compiler can only warn and ignore the option if not recognized
22220 # So say no if there are warnings
22221 if test ! -s conftest.err; then
22222 lt_prog_compiler_pic_works_GCJ=yes
22228 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22229 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22231 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22232 case $lt_prog_compiler_pic_GCJ in
22234 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22237 lt_prog_compiler_pic_GCJ=
22238 lt_prog_compiler_can_build_shared_GCJ=no
22243 # For platforms which do not support PIC, -DPIC is meaningless:
22245 lt_prog_compiler_pic_GCJ=
22248 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22252 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22253 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22254 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 lt_cv_prog_compiler_c_o_GCJ=no
22258 $rm -r conftest 2>/dev/null
22262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22264 lt_compiler_flag="-o out/conftest2.$ac_objext"
22265 # Insert the option either (1) after the last *FLAGS variable, or
22266 # (2) before a word containing "conftest.", or (3) at the end.
22267 # Note that $ac_compile itself does not contain backslashes and begins
22268 # with a dollar sign (not a hyphen), so the echo should work correctly.
22269 lt_compile=`echo "$ac_compile" | $SED \
22270 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22272 -e 's:$: $lt_compiler_flag:'`
22273 (eval echo "\"\$as_me:22273: $lt_compile\"" >&5)
22274 (eval "$lt_compile" 2>out/conftest.err)
22276 cat out/conftest.err >&5
22277 echo "$as_me:22277: \$? = $ac_status" >&5
22278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22280 # The compiler can only warn and ignore the option if not recognized
22281 # So say no if there are warnings
22282 if test ! -s out/conftest.err; then
22283 lt_cv_prog_compiler_c_o_GCJ=yes
22288 # SGI C++ compiler will create directory out/ii_files/ for
22289 # template instantiation
22290 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22291 $rm out/* && rmdir out
22297 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22298 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22301 hard_links="nottested"
22302 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22303 # do not overwrite the value of need_locks provided by the user
22304 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22305 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22310 ln conftest.a conftest.b 2>&5 || hard_links=no
22311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22312 echo "$as_me:$LINENO: result: $hard_links" >&5
22313 echo "${ECHO_T}$hard_links" >&6
22314 if test "$hard_links" = no; then
22315 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22316 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22323 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22324 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22327 allow_undefined_flag_GCJ=
22328 enable_shared_with_static_runtimes_GCJ=no
22330 archive_expsym_cmds_GCJ=
22331 old_archive_From_new_cmds_GCJ=
22332 old_archive_from_expsyms_cmds_GCJ=
22333 export_dynamic_flag_spec_GCJ=
22334 whole_archive_flag_spec_GCJ=
22335 thread_safe_flag_spec_GCJ=
22336 hardcode_libdir_flag_spec_GCJ=
22337 hardcode_libdir_flag_spec_ld_GCJ=
22338 hardcode_libdir_separator_GCJ=
22339 hardcode_direct_GCJ=no
22340 hardcode_minus_L_GCJ=no
22341 hardcode_shlibpath_var_GCJ=unsupported
22342 link_all_deplibs_GCJ=unknown
22343 hardcode_automatic_GCJ=no
22345 module_expsym_cmds_GCJ=
22346 always_export_symbols_GCJ=no
22347 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22348 # include_expsyms should be a list of space-separated symbols to be *always*
22349 # included in the symbol list
22350 include_expsyms_GCJ=
22351 # exclude_expsyms can be an extended regexp of symbols to exclude
22352 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22353 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22354 # as well as any symbol that contains `d'.
22355 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22356 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22357 # platforms (ab)use it in PIC code, but their linkers get confused if
22358 # the symbol is explicitly referenced. Since portable code cannot
22359 # rely on this symbol name, it's probably fine to never include it in
22360 # preloaded symbol tables.
22361 extract_expsyms_cmds=
22364 cygwin* | mingw* | pw32*)
22365 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22366 # When not using gcc, we currently assume that we are using
22367 # Microsoft Visual C++.
22368 if test "$GCC" != yes; then
22378 if test "$with_gnu_ld" = yes; then
22379 # If archive_cmds runs LD, not CC, wlarc should be empty
22382 # See if GNU ld supports shared libraries.
22384 aix3* | aix4* | aix5*)
22385 # On AIX/PPC, the GNU linker is very broken
22386 if test "$host_cpu" != ia64; then
22390 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22391 *** to be unable to reliably create shared libraries on AIX.
22392 *** Therefore, libtool is disabling shared libraries support. If you
22393 *** really care for shared libraries, you may want to modify your PATH
22394 *** so that a non-GNU linker is found, and then restart.
22401 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)'
22402 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22403 hardcode_minus_L_GCJ=yes
22405 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22406 # that the semantics of dynamic libraries on AmigaOS, at least up
22407 # to version 4, is to share data among multiple programs linked
22408 # with the same dynamic library. Since this doesn't match the
22409 # behavior of shared libraries on other platforms, we can't use
22415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22416 allow_undefined_flag_GCJ=unsupported
22417 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22418 # support --undefined. This deserves some investigation. FIXME
22419 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22425 cygwin* | mingw* | pw32*)
22426 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22427 # as there is no search path for DLLs.
22428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22429 allow_undefined_flag_GCJ=unsupported
22430 always_export_symbols_GCJ=no
22431 enable_shared_with_static_runtimes_GCJ=yes
22432 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22434 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22436 # If the export-symbols file already is a .def file (1st line
22437 # is EXPORTS), use it as is; otherwise, prepend...
22438 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22439 cp $export_symbols $output_objdir/$soname.def;
22441 echo EXPORTS > $output_objdir/$soname.def;
22442 cat $export_symbols >> $output_objdir/$soname.def;
22444 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22452 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22456 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22461 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22466 *** create shared libraries on Solaris systems. Therefore, libtool
22467 *** is disabling shared libraries support. We urge you to upgrade GNU
22468 *** binutils to release 2.9.1 or newer. Another option is to modify
22469 *** your PATH or compiler configuration so that the native linker is
22470 *** used, and then restart.
22473 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22474 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22475 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22482 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22484 hardcode_direct_GCJ=yes
22485 hardcode_shlibpath_var_GCJ=no
22489 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22490 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22491 archive_cmds_GCJ="$tmp_archive_cmds"
22492 supports_anon_versioning=no
22493 case `$LD -v 2>/dev/null` in
22494 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22497 *\ 2.11.*) ;; # other 2.11 versions
22498 *) supports_anon_versioning=yes ;;
22500 if test $supports_anon_versioning = yes; then
22501 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22503 $echo "local: *; };" >> $output_objdir/$libname.ver~
22504 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22506 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22516 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22523 if test "$ld_shlibs_GCJ" = yes; then
22524 runpath_var=LD_RUN_PATH
22525 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22526 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22527 # ancient GNU ld didn't support --whole-archive et. al.
22528 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22529 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22531 whole_archive_flag_spec_GCJ=
22535 # PORTME fill in a description of your system's linker (not GNU ld)
22538 allow_undefined_flag_GCJ=unsupported
22539 always_export_symbols_GCJ=yes
22540 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'
22541 # Note: this linker hardcodes the directories in LIBPATH if there
22542 # are no directories specified by -L.
22543 hardcode_minus_L_GCJ=yes
22544 if test "$GCC" = yes && test -z "$link_static_flag"; then
22545 # Neither direct hardcoding nor static linking is supported with a
22547 hardcode_direct_GCJ=unsupported
22552 if test "$host_cpu" = ia64; then
22553 # On IA64, the linker does run time linking by default, so we don't
22554 # have to do anything special.
22555 aix_use_runtimelinking=no
22556 exp_sym_flag='-Bexport'
22559 # If we're using GNU nm, then we don't want the "-C" option.
22560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22562 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'
22564 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'
22566 aix_use_runtimelinking=no
22568 # Test if we are trying to use run time linking or normal
22569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22570 # need to do runtime linking.
22571 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22572 for ld_flag in $LDFLAGS; do
22573 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22574 aix_use_runtimelinking=yes
22580 exp_sym_flag='-bexport'
22581 no_entry_flag='-bnoentry'
22584 # When large executables or shared objects are built, AIX ld can
22585 # have problems creating the table of contents. If linking a library
22586 # or program results in "error TOC overflow" add -mminimal-toc to
22587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22590 archive_cmds_GCJ=''
22591 hardcode_direct_GCJ=yes
22592 hardcode_libdir_separator_GCJ=':'
22593 link_all_deplibs_GCJ=yes
22595 if test "$GCC" = yes; then
22596 case $host_os in aix4.012|aix4.012.*)
22597 # We only want to do this on AIX 4.2 and lower, the check
22598 # below for broken collect2 doesn't work under 4.3+
22599 collect2name=`${CC} -print-prog-name=collect2`
22600 if test -f "$collect2name" && \
22601 strings "$collect2name" | grep resolve_lib_name >/dev/null
22603 # We have reworked collect2
22604 hardcode_direct_GCJ=yes
22606 # We have old collect2
22607 hardcode_direct_GCJ=unsupported
22608 # It fails to find uninstalled libraries when the uninstalled
22609 # path is not listed in the libpath. Setting hardcode_minus_L
22610 # to unsupported forces relinking
22611 hardcode_minus_L_GCJ=yes
22612 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22613 hardcode_libdir_separator_GCJ=
22616 shared_flag='-shared'
22619 if test "$host_cpu" = ia64; then
22620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22621 # chokes on -Wl,-G. The following line is correct:
22624 if test "$aix_use_runtimelinking" = yes; then
22625 shared_flag='${wl}-G'
22627 shared_flag='${wl}-bM:SRE'
22632 # It seems that -bexpall does not export symbols beginning with
22633 # underscore (_), so it is better to generate a list of symbols to export.
22634 always_export_symbols_GCJ=yes
22635 if test "$aix_use_runtimelinking" = yes; then
22636 # Warning - without using the other runtime loading flags (-brtl),
22637 # -berok will link without error, but may produce a broken library.
22638 allow_undefined_flag_GCJ='-berok'
22639 # Determine the default libpath from the value encoded in an empty executable.
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22655 rm -f conftest.$ac_objext conftest$ac_exeext
22656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22657 (eval $ac_link) 2>conftest.er1
22659 grep -v '^ *+' conftest.er1 >conftest.err
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } &&
22664 { ac_try='test -z "$ac_c_werror_flag"
22665 || test ! -s conftest.err'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; } &&
22671 { ac_try='test -s conftest$ac_exeext'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
22678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22680 # Check for a 64-bit object if we didn't find anything.
22681 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; }
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22688 rm -f conftest.err conftest.$ac_objext \
22689 conftest$ac_exeext conftest.$ac_ext
22690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22692 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22693 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"
22695 if test "$host_cpu" = ia64; then
22696 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22697 allow_undefined_flag_GCJ="-z nodefs"
22698 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"
22700 # Determine the default libpath from the value encoded in an empty executable.
22701 cat >conftest.$ac_ext <<_ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22718 (eval $ac_link) 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } &&
22725 { ac_try='test -z "$ac_c_werror_flag"
22726 || test ! -s conftest.err'
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest$ac_exeext'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22741 # Check for a 64-bit object if we didn't find anything.
22742 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; }
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22749 rm -f conftest.err conftest.$ac_objext \
22750 conftest$ac_exeext conftest.$ac_ext
22751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22753 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22754 # Warning - without using the other run time loading flags,
22755 # -berok will link without error, but may produce a broken library.
22756 no_undefined_flag_GCJ=' ${wl}-bernotok'
22757 allow_undefined_flag_GCJ=' ${wl}-berok'
22758 # -bexpall does not export symbols beginning with underscore (_)
22759 always_export_symbols_GCJ=yes
22760 # Exported symbols can be pulled into shared objects from archives
22761 whole_archive_flag_spec_GCJ=' '
22762 archive_cmds_need_lc_GCJ=yes
22763 # This is similar to how AIX traditionally builds it's shared libraries.
22764 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'
22770 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)'
22771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22772 hardcode_minus_L_GCJ=yes
22773 # see comment about different semantics on the GNU ld section
22778 export_dynamic_flag_spec_GCJ=-rdynamic
22781 cygwin* | mingw* | pw32*)
22782 # When not using gcc, we currently assume that we are using
22783 # Microsoft Visual C++.
22784 # hardcode_libdir_flag_spec is actually meaningless, as there is
22785 # no search path for DLLs.
22786 hardcode_libdir_flag_spec_GCJ=' '
22787 allow_undefined_flag_GCJ=unsupported
22788 # Tell ltmain to make .lib files, not .a files.
22790 # Tell ltmain to make .dll files, not .so files.
22792 # FIXME: Setting linknames here is a bad hack.
22793 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22794 # The linker will automatically build a .lib file if we build a DLL.
22795 old_archive_From_new_cmds_GCJ='true'
22796 # FIXME: Should let the user specify the lib program.
22797 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22798 fix_srcfile_path='`cygpath -w "$srcfile"`'
22799 enable_shared_with_static_runtimes_GCJ=yes
22802 darwin* | rhapsody*)
22803 if test "$GXX" = yes ; then
22804 archive_cmds_need_lc_GCJ=no
22806 rhapsody* | darwin1.[012])
22807 allow_undefined_flag_GCJ='-undefined suppress'
22810 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22811 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22813 case ${MACOSX_DEPLOYMENT_TARGET} in
22815 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22818 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
22824 lt_int_apple_cc_single_mod=no
22825 output_verbose_link_cmd='echo'
22826 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
22827 lt_int_apple_cc_single_mod=yes
22829 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22830 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22832 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
22834 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22835 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22836 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22837 archive_expsym_cmds_GCJ='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}'
22839 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
22841 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}'
22842 hardcode_direct_GCJ=no
22843 hardcode_automatic_GCJ=yes
22844 hardcode_shlibpath_var_GCJ=unsupported
22845 whole_archive_flag_spec_GCJ='-all_load $convenience'
22846 link_all_deplibs_GCJ=yes
22853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22855 hardcode_shlibpath_var_GCJ=no
22862 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22863 # support. Future versions do this automatically, but an explicit c++rt0.o
22864 # does not break anything, and helps significantly (at the cost of a little
22867 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22868 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22869 hardcode_direct_GCJ=yes
22870 hardcode_shlibpath_var_GCJ=no
22873 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22875 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22876 hardcode_direct_GCJ=yes
22877 hardcode_minus_L_GCJ=yes
22878 hardcode_shlibpath_var_GCJ=no
22881 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22882 freebsd* | kfreebsd*-gnu)
22883 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22885 hardcode_direct_GCJ=yes
22886 hardcode_shlibpath_var_GCJ=no
22890 if test "$GCC" = yes; then
22891 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'
22893 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'
22895 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22896 hardcode_libdir_separator_GCJ=:
22897 hardcode_direct_GCJ=yes
22899 # hardcode_minus_L: Not really in the search PATH,
22900 # but as the default location of the library.
22901 hardcode_minus_L_GCJ=yes
22902 export_dynamic_flag_spec_GCJ='${wl}-E'
22906 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22907 case "$host_cpu" in
22909 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22912 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22916 case "$host_cpu" in
22918 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22921 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22925 if test "$with_gnu_ld" = no; then
22926 case "$host_cpu" in
22928 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22929 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22930 hardcode_libdir_separator_GCJ=:
22931 hardcode_direct_GCJ=no
22932 hardcode_shlibpath_var_GCJ=no
22935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22936 hardcode_direct_GCJ=no
22937 hardcode_shlibpath_var_GCJ=no
22939 # hardcode_minus_L: Not really in the search PATH,
22940 # but as the default location of the library.
22941 hardcode_minus_L_GCJ=yes
22944 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22945 hardcode_libdir_separator_GCJ=:
22946 hardcode_direct_GCJ=yes
22947 export_dynamic_flag_spec_GCJ='${wl}-E'
22949 # hardcode_minus_L: Not really in the search PATH,
22950 # but as the default location of the library.
22951 hardcode_minus_L_GCJ=yes
22957 irix5* | irix6* | nonstopux*)
22958 if test "$GCC" = yes; then
22959 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'
22961 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'
22962 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22965 hardcode_libdir_separator_GCJ=:
22966 link_all_deplibs_GCJ=yes
22970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22971 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22973 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22975 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22976 hardcode_direct_GCJ=yes
22977 hardcode_shlibpath_var_GCJ=no
22981 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22982 hardcode_direct_GCJ=yes
22983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22984 hardcode_libdir_separator_GCJ=:
22985 hardcode_shlibpath_var_GCJ=no
22989 hardcode_direct_GCJ=yes
22990 hardcode_shlibpath_var_GCJ=no
22991 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22992 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22994 export_dynamic_flag_spec_GCJ='${wl}-E'
22997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22998 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22999 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23002 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23011 hardcode_minus_L_GCJ=yes
23012 allow_undefined_flag_GCJ=unsupported
23013 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'
23014 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23018 if test "$GCC" = yes; then
23019 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23020 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'
23022 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23023 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'
23025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23026 hardcode_libdir_separator_GCJ=:
23029 osf4* | osf5*) # as osf3* with the addition of -msym flag
23030 if test "$GCC" = yes; then
23031 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23032 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'
23033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23035 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23036 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'
23037 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~
23038 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
23040 # Both c and cxx compiler support -rpath directly
23041 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23043 hardcode_libdir_separator_GCJ=:
23047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23048 hardcode_shlibpath_var_GCJ=no
23049 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23050 runpath_var=LD_RUN_PATH
23051 hardcode_runpath_var=yes
23055 no_undefined_flag_GCJ=' -z text'
23056 if test "$GCC" = yes; then
23057 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23058 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23059 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23061 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23062 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23065 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23066 hardcode_shlibpath_var_GCJ=no
23068 solaris2.[0-5] | solaris2.[0-5].*) ;;
23069 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
23070 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23072 link_all_deplibs_GCJ=yes
23076 if test "x$host_vendor" = xsequent; then
23077 # Use $CC to link under sequent, because it throws in some extra .o
23078 # files that make .init and .fini sections work.
23079 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23081 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23084 hardcode_direct_GCJ=yes
23085 hardcode_minus_L_GCJ=yes
23086 hardcode_shlibpath_var_GCJ=no
23090 case $host_vendor in
23092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23093 hardcode_direct_GCJ=yes # is this really true???
23096 ## LD is ld it makes a PLAMLIB
23097 ## CC just makes a GrossModule.
23098 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23099 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23100 hardcode_direct_GCJ=no
23103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23104 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23107 runpath_var='LD_RUN_PATH'
23108 hardcode_shlibpath_var_GCJ=no
23112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23113 hardcode_shlibpath_var_GCJ=no
23114 export_dynamic_flag_spec_GCJ='-Bexport'
23118 if test -d /usr/nec; then
23119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23120 hardcode_shlibpath_var_GCJ=no
23121 runpath_var=LD_RUN_PATH
23122 hardcode_runpath_var=yes
23128 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23129 hardcode_direct_GCJ=yes
23130 hardcode_minus_L_GCJ=no
23131 hardcode_shlibpath_var_GCJ=no
23132 hardcode_runpath_var=yes
23133 runpath_var=LD_RUN_PATH
23136 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
23137 no_undefined_flag_GCJ='${wl}-z ${wl}text'
23138 if test "$GCC" = yes; then
23139 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23141 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23143 runpath_var='LD_RUN_PATH'
23144 hardcode_shlibpath_var_GCJ=no
23148 no_undefined_flag_GCJ=' -z text'
23149 # $CC -shared without GNU ld will not create a library from C++
23150 # object files and a static libstdc++, better avoid it by now
23151 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23152 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23154 hardcode_libdir_flag_spec_GCJ=
23155 hardcode_shlibpath_var_GCJ=no
23156 runpath_var='LD_RUN_PATH'
23160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23162 hardcode_shlibpath_var_GCJ=no
23171 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23172 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23173 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23176 if test "$GCC" = yes; then
23177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23181 # Do we need to explicitly link libc?
23183 case "x$archive_cmds_need_lc_GCJ" in
23185 # Assume -lc should be added
23186 archive_cmds_need_lc_GCJ=yes
23188 if test "$enable_shared" = yes && test "$GCC" = yes; then
23189 case $archive_cmds_GCJ in
23191 # FIXME: we may have to deal with multi-command sequences.
23194 # Test whether the compiler implicitly links with -lc since on some
23195 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23196 # to ld, don't add -lc before -lgcc.
23197 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23198 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23203 (eval $ac_compile) 2>&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } 2>conftest.err; then
23209 libobjs=conftest.$ac_objext
23211 wl=$lt_prog_compiler_wl_GCJ
23217 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23218 allow_undefined_flag_GCJ=
23219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23220 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }
23225 archive_cmds_need_lc_GCJ=no
23227 archive_cmds_need_lc_GCJ=yes
23229 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23231 cat conftest.err 1>&5
23234 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23235 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23242 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23244 library_names_spec=
23245 libname_spec='lib$name'
23249 postuninstall_cmds=
23253 shlibpath_overrides_runpath=unknown
23255 dynamic_linker="$host_os ld.so"
23256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23257 if test "$GCC" = yes; then
23258 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23259 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23260 # if the path contains ";" then we assume it to be the separator
23261 # otherwise default to the standard path separator (i.e. ":") - it is
23262 # assumed that no part of a normal pathname contains ";" but that should
23263 # okay in the real world where ";" in dirpaths is itself problematic.
23264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23271 need_lib_prefix=unknown
23272 hardcode_into_libs=no
23274 # when you set need_version to no, make sure it does not cause -set_version
23275 # flags to be left without arguments
23276 need_version=unknown
23281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23282 shlibpath_var=LIBPATH
23284 # AIX 3 has no versioning support, so we append a major version to the name.
23285 soname_spec='${libname}${release}${shared_ext}$major'
23292 hardcode_into_libs=yes
23293 if test "$host_cpu" = ia64; then
23294 # AIX 5 supports IA64
23295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23296 shlibpath_var=LD_LIBRARY_PATH
23298 # With GCC up to 2.95.x, collect2 would create an import file
23299 # for dependence libraries. The import file would start with
23300 # the line `#! .'. This would cause the generated library to
23301 # depend on `.', always an invalid library. This was fixed in
23302 # development snapshots of GCC prior to 3.0.
23304 aix4 | aix4.[01] | aix4.[01].*)
23305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23310 can_build_shared=no
23314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23315 # soname into executable. Probably we can add versioning support to
23316 # collect2, so additional links can be useful in future.
23317 if test "$aix_use_runtimelinking" = yes; then
23318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23319 # instead of lib<name>.a to let people know that these are not
23320 # typical AIX shared libraries.
23321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23323 # We preserve .a as extension for shared libraries through AIX4.2
23324 # and later when we are not doing run time linking.
23325 library_names_spec='${libname}${release}.a $libname.a'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23328 shlibpath_var=LIBPATH
23333 library_names_spec='$libname.ixlibrary $libname.a'
23334 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23335 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'
23339 library_names_spec='${libname}${shared_ext}'
23340 dynamic_linker="$host_os ld.so"
23341 shlibpath_var=LIBRARY_PATH
23347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23348 soname_spec='${libname}${release}${shared_ext}$major'
23349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23350 shlibpath_var=LD_LIBRARY_PATH
23351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23353 # the default ld.so.conf also contains /usr/contrib/lib and
23354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23355 # libtool to hard-code these into programs
23358 cygwin* | mingw* | pw32*)
23359 version_type=windows
23364 case $GCC,$host_os in
23365 yes,cygwin* | yes,mingw* | yes,pw32*)
23366 library_names_spec='$libname.dll.a'
23367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23368 postinstall_cmds='base_file=`basename \${file}`~
23369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23370 dldir=$destdir/`dirname \$dlpath`~
23371 test -d \$dldir || mkdir -p \$dldir~
23372 $install_prog $dir/$dlname \$dldir/$dlname'
23373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23374 dlpath=$dir/\$dldll~
23376 shlibpath_overrides_runpath=yes
23380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23381 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23382 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23385 # MinGW DLLs use traditional 'lib' prefix
23386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23388 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23389 # It is most probably a Windows format PATH printed by
23390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23391 # path with ; separators, and with drive letters. We can handle the
23392 # drive letters (cygwin fileutils understands them), so leave them,
23393 # especially as we might pass files found there to a mingw objdump,
23394 # which wouldn't understand a cygwinified path. Ahh.
23395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23401 # pw32 DLLs use 'pw' prefix rather than 'lib'
23402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23411 dynamic_linker='Win32 ld.exe'
23412 # FIXME: first we should search . and the directory the executable is in
23416 darwin* | rhapsody*)
23417 dynamic_linker="$host_os dyld"
23418 version_type=darwin
23421 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23422 soname_spec='${libname}${release}${major}$shared_ext'
23423 shlibpath_overrides_runpath=yes
23424 shlibpath_var=DYLD_LIBRARY_PATH
23425 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23426 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23427 if test "$GCC" = yes; then
23428 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"`
23430 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23440 soname_spec='${libname}${release}${shared_ext}$major'
23441 shlibpath_var=LD_LIBRARY_PATH
23452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23453 soname_spec='${libname}${release}${shared_ext}$major'
23454 shlibpath_var=LD_LIBRARY_PATH
23455 shlibpath_overrides_runpath=no
23456 hardcode_into_libs=yes
23457 dynamic_linker='GNU ld.so'
23461 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23462 version_type=freebsd-$objformat
23463 case $version_type in
23465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23474 shlibpath_var=LD_LIBRARY_PATH
23477 shlibpath_overrides_runpath=yes
23479 freebsd3.01* | freebsdelf3.01*)
23480 shlibpath_overrides_runpath=yes
23481 hardcode_into_libs=yes
23484 shlibpath_overrides_runpath=no
23485 hardcode_into_libs=yes
23494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23495 soname_spec='${libname}${release}${shared_ext}$major'
23496 shlibpath_var=LD_LIBRARY_PATH
23497 hardcode_into_libs=yes
23500 hpux9* | hpux10* | hpux11*)
23501 # Give a soname corresponding to the major version so that dld.sl refuses to
23502 # link against other versions.
23506 case "$host_cpu" in
23509 hardcode_into_libs=yes
23510 dynamic_linker="$host_os dld.so"
23511 shlibpath_var=LD_LIBRARY_PATH
23512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23514 soname_spec='${libname}${release}${shared_ext}$major'
23515 if test "X$HPUX_IA64_MODE" = X32; then
23516 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23518 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23524 hardcode_into_libs=yes
23525 dynamic_linker="$host_os dld.sl"
23526 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23529 soname_spec='${libname}${release}${shared_ext}$major'
23530 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23535 dynamic_linker="$host_os dld.sl"
23536 shlibpath_var=SHLIB_PATH
23537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23539 soname_spec='${libname}${release}${shared_ext}$major'
23542 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23543 postinstall_cmds='chmod 555 $lib'
23546 irix5* | irix6* | nonstopux*)
23548 nonstopux*) version_type=nonstopux ;;
23550 if test "$lt_cv_prog_gnu_ld" = yes; then
23558 soname_spec='${libname}${release}${shared_ext}$major'
23559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23561 irix5* | nonstopux*)
23562 libsuff= shlibsuff=
23565 case $LD in # libtool.m4 will add one of these switches to LD
23566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23567 libsuff= shlibsuff= libmagic=32-bit;;
23568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23569 libsuff=32 shlibsuff=N32 libmagic=N32;;
23570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23572 *) libsuff= shlibsuff= libmagic=never-match;;
23576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23577 shlibpath_overrides_runpath=no
23578 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23579 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23580 hardcode_into_libs=yes
23583 # No shared lib support for Linux oldld, aout, or coff.
23584 linux*oldld* | linux*aout* | linux*coff*)
23588 # This must be Linux ELF.
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594 soname_spec='${libname}${release}${shared_ext}$major'
23595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23596 shlibpath_var=LD_LIBRARY_PATH
23597 shlibpath_overrides_runpath=no
23598 # This implies no fast_install, which is unacceptable.
23599 # Some rework will be needed to allow for fast_install
23600 # before this can be enabled.
23601 hardcode_into_libs=yes
23603 # Append ld.so.conf contents to the search path
23604 if test -f /etc/ld.so.conf; then
23605 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23606 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23609 # We used to test for /lib/ld.so.1 and disable shared libraries on
23610 # powerpc, because MkLinux only supported shared libraries with the
23611 # GNU dynamic linker. Since this was broken with cross compilers,
23612 # most powerpc-linux boxes support dynamic linking these days and
23613 # people can always --disable-shared, the test was removed, and we
23614 # assume the GNU/Linux dynamic linker is in use.
23615 dynamic_linker='GNU/Linux ld.so'
23622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23623 soname_spec='${libname}${release}${shared_ext}$major'
23624 shlibpath_var=LD_LIBRARY_PATH
23625 shlibpath_overrides_runpath=no
23626 hardcode_into_libs=yes
23627 dynamic_linker='GNU ld.so'
23634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23637 dynamic_linker='NetBSD (a.out) ld.so'
23639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23640 soname_spec='${libname}${release}${shared_ext}$major'
23641 dynamic_linker='NetBSD ld.elf_so'
23643 shlibpath_var=LD_LIBRARY_PATH
23644 shlibpath_overrides_runpath=yes
23645 hardcode_into_libs=yes
23650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23651 shlibpath_var=LD_LIBRARY_PATH
23652 shlibpath_overrides_runpath=yes
23659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23660 soname_spec='${libname}${release}${shared_ext}$major'
23661 shlibpath_var=LD_LIBRARY_PATH
23662 shlibpath_overrides_runpath=yes
23669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23671 shlibpath_var=LD_LIBRARY_PATH
23672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23674 openbsd2.[89] | openbsd2.[89].*)
23675 shlibpath_overrides_runpath=no
23678 shlibpath_overrides_runpath=yes
23682 shlibpath_overrides_runpath=yes
23687 libname_spec='$name'
23690 library_names_spec='$libname${shared_ext} $libname.a'
23691 dynamic_linker='OS/2 ld.exe'
23692 shlibpath_var=LIBPATH
23695 osf3* | osf4* | osf5*)
23699 soname_spec='${libname}${release}${shared_ext}$major'
23700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23701 shlibpath_var=LD_LIBRARY_PATH
23702 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23703 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23708 soname_spec='${libname}${release}${shared_ext}$major'
23709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23710 shlibpath_var=LD_LIBRARY_PATH
23717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23718 soname_spec='${libname}${release}${shared_ext}$major'
23719 shlibpath_var=LD_LIBRARY_PATH
23720 shlibpath_overrides_runpath=yes
23721 hardcode_into_libs=yes
23722 # ldd complains unless libraries are executable
23723 postinstall_cmds='chmod +x $lib'
23728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23730 shlibpath_var=LD_LIBRARY_PATH
23731 shlibpath_overrides_runpath=yes
23732 if test "$with_gnu_ld" = yes; then
23738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23741 soname_spec='${libname}${release}${shared_ext}$major'
23742 shlibpath_var=LD_LIBRARY_PATH
23743 case $host_vendor in
23745 shlibpath_overrides_runpath=no
23747 export_dynamic_flag_spec='${wl}-Blargedynsym'
23748 runpath_var=LD_RUN_PATH
23756 shlibpath_overrides_runpath=no
23757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23763 if test -d /usr/nec ;then
23765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23766 soname_spec='$libname${shared_ext}.$major'
23767 shlibpath_var=LD_LIBRARY_PATH
23773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23774 soname_spec='${libname}${release}${shared_ext}$major'
23775 shlibpath_var=LD_LIBRARY_PATH
23782 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23783 echo "${ECHO_T}$dynamic_linker" >&6
23784 test "$dynamic_linker" = no && can_build_shared=no
23786 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23787 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23788 hardcode_action_GCJ=
23789 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23790 test -n "$runpath_var GCJ" || \
23791 test "X$hardcode_automatic_GCJ"="Xyes" ; then
23793 # We can hardcode non-existant directories.
23794 if test "$hardcode_direct_GCJ" != no &&
23795 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23796 # have to relink, otherwise we might link with an installed library
23797 # when we should be linking with a yet-to-be-installed one
23798 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23799 test "$hardcode_minus_L_GCJ" != no; then
23800 # Linking always hardcodes the temporary library directory.
23801 hardcode_action_GCJ=relink
23803 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23804 hardcode_action_GCJ=immediate
23807 # We cannot hardcode anything, or else we can only hardcode existing
23809 hardcode_action_GCJ=unsupported
23811 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23812 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23814 if test "$hardcode_action_GCJ" = relink; then
23815 # Fast installation is not supported
23816 enable_fast_install=no
23817 elif test "$shlibpath_overrides_runpath" = yes ||
23818 test "$enable_shared" = no; then
23819 # Fast installation is not necessary
23820 enable_fast_install=needless
23825 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23826 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23827 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23828 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23829 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23830 echo "$as_me:$LINENO: result: yes" >&5
23831 echo "${ECHO_T}yes" >&6
23833 # FIXME - insert some real tests, host_os isn't really good enough
23836 if test -n "$STRIP" ; then
23837 striplib="$STRIP -x"
23838 echo "$as_me:$LINENO: result: yes" >&5
23839 echo "${ECHO_T}yes" >&6
23841 echo "$as_me:$LINENO: result: no" >&5
23842 echo "${ECHO_T}no" >&6
23846 echo "$as_me:$LINENO: result: no" >&5
23847 echo "${ECHO_T}no" >&6
23852 if test "x$enable_dlopen" != xyes; then
23853 enable_dlopen=unknown
23854 enable_dlopen_self=unknown
23855 enable_dlopen_self_static=unknown
23862 lt_cv_dlopen="load_add_on"
23864 lt_cv_dlopen_self=yes
23868 lt_cv_dlopen="LoadLibrary"
23873 lt_cv_dlopen="dlopen"
23878 # if libdl is installed we need to link against it
23879 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23880 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23881 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 ac_check_lib_save_LIBS=$LIBS
23886 cat >conftest.$ac_ext <<_ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23893 /* Override any gcc2 internal prototype to avoid an error. */
23897 /* We use char because int might match the return type of a gcc2
23898 builtin and then its argument prototype would still apply. */
23908 rm -f conftest.$ac_objext conftest$ac_exeext
23909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23910 (eval $ac_link) 2>conftest.er1
23912 grep -v '^ *+' conftest.er1 >conftest.err
23914 cat conftest.err >&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } &&
23917 { ac_try='test -z "$ac_c_werror_flag"
23918 || test ! -s conftest.err'
23919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920 (eval $ac_try) 2>&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); }; } &&
23924 { ac_try='test -s conftest$ac_exeext'
23925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; }; then
23930 ac_cv_lib_dl_dlopen=yes
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23935 ac_cv_lib_dl_dlopen=no
23937 rm -f conftest.err conftest.$ac_objext \
23938 conftest$ac_exeext conftest.$ac_ext
23939 LIBS=$ac_check_lib_save_LIBS
23941 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23942 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23943 if test $ac_cv_lib_dl_dlopen = yes; then
23944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23947 lt_cv_dlopen="dyld"
23949 lt_cv_dlopen_self=yes
23956 echo "$as_me:$LINENO: checking for shl_load" >&5
23957 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23958 if test "${ac_cv_func_shl_load+set}" = set; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23961 cat >conftest.$ac_ext <<_ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23969 #define shl_load innocuous_shl_load
23971 /* System header to define __stub macros and hopefully few prototypes,
23972 which can conflict with char shl_load (); below.
23973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23974 <limits.h> exists even on freestanding compilers. */
23977 # include <limits.h>
23979 # include <assert.h>
23984 /* Override any gcc2 internal prototype to avoid an error. */
23989 /* We use char because int might match the return type of a gcc2
23990 builtin and then its argument prototype would still apply. */
23992 /* The GNU C library defines this for functions which it implements
23993 to always fail with ENOSYS. Some functions are actually named
23994 something starting with __ and the normal name is an alias. */
23995 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23998 char (*f) () = shl_load;
24007 return f != shl_load;
24012 rm -f conftest.$ac_objext conftest$ac_exeext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014 (eval $ac_link) 2>conftest.er1
24016 grep -v '^ *+' conftest.er1 >conftest.err
24018 cat conftest.err >&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } &&
24021 { ac_try='test -z "$ac_c_werror_flag"
24022 || test ! -s conftest.err'
24023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024 (eval $ac_try) 2>&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); }; } &&
24028 { ac_try='test -s conftest$ac_exeext'
24029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24030 (eval $ac_try) 2>&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); }; }; then
24034 ac_cv_func_shl_load=yes
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 ac_cv_func_shl_load=no
24041 rm -f conftest.err conftest.$ac_objext \
24042 conftest$ac_exeext conftest.$ac_ext
24044 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24045 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24046 if test $ac_cv_func_shl_load = yes; then
24047 lt_cv_dlopen="shl_load"
24049 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24050 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24051 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 ac_check_lib_save_LIBS=$LIBS
24056 cat >conftest.$ac_ext <<_ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h. */
24063 /* Override any gcc2 internal prototype to avoid an error. */
24067 /* We use char because int might match the return type of a gcc2
24068 builtin and then its argument prototype would still apply. */
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24080 (eval $ac_link) 2>conftest.er1
24082 grep -v '^ *+' conftest.er1 >conftest.err
24084 cat conftest.err >&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } &&
24087 { ac_try='test -z "$ac_c_werror_flag"
24088 || test ! -s conftest.err'
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; } &&
24094 { ac_try='test -s conftest$ac_exeext'
24095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096 (eval $ac_try) 2>&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24100 ac_cv_lib_dld_shl_load=yes
24102 echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24105 ac_cv_lib_dld_shl_load=no
24107 rm -f conftest.err conftest.$ac_objext \
24108 conftest$ac_exeext conftest.$ac_ext
24109 LIBS=$ac_check_lib_save_LIBS
24111 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24112 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24113 if test $ac_cv_lib_dld_shl_load = yes; then
24114 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24116 echo "$as_me:$LINENO: checking for dlopen" >&5
24117 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24118 if test "${ac_cv_func_dlopen+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 cat >conftest.$ac_ext <<_ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24129 #define dlopen innocuous_dlopen
24131 /* System header to define __stub macros and hopefully few prototypes,
24132 which can conflict with char dlopen (); below.
24133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24134 <limits.h> exists even on freestanding compilers. */
24137 # include <limits.h>
24139 # include <assert.h>
24144 /* Override any gcc2 internal prototype to avoid an error. */
24149 /* We use char because int might match the return type of a gcc2
24150 builtin and then its argument prototype would still apply. */
24152 /* The GNU C library defines this for functions which it implements
24153 to always fail with ENOSYS. Some functions are actually named
24154 something starting with __ and the normal name is an alias. */
24155 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24158 char (*f) () = dlopen;
24167 return f != dlopen;
24172 rm -f conftest.$ac_objext conftest$ac_exeext
24173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24174 (eval $ac_link) 2>conftest.er1
24176 grep -v '^ *+' conftest.er1 >conftest.err
24178 cat conftest.err >&5
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); } &&
24181 { ac_try='test -z "$ac_c_werror_flag"
24182 || test ! -s conftest.err'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; } &&
24188 { ac_try='test -s conftest$ac_exeext'
24189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190 (eval $ac_try) 2>&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); }; }; then
24194 ac_cv_func_dlopen=yes
24196 echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24199 ac_cv_func_dlopen=no
24201 rm -f conftest.err conftest.$ac_objext \
24202 conftest$ac_exeext conftest.$ac_ext
24204 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24205 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24206 if test $ac_cv_func_dlopen = yes; then
24207 lt_cv_dlopen="dlopen"
24209 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24212 echo $ECHO_N "(cached) $ECHO_C" >&6
24214 ac_check_lib_save_LIBS=$LIBS
24216 cat >conftest.$ac_ext <<_ACEOF
24219 cat confdefs.h >>conftest.$ac_ext
24220 cat >>conftest.$ac_ext <<_ACEOF
24221 /* end confdefs.h. */
24223 /* Override any gcc2 internal prototype to avoid an error. */
24227 /* We use char because int might match the return type of a gcc2
24228 builtin and then its argument prototype would still apply. */
24238 rm -f conftest.$ac_objext conftest$ac_exeext
24239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24240 (eval $ac_link) 2>conftest.er1
24242 grep -v '^ *+' conftest.er1 >conftest.err
24244 cat conftest.err >&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } &&
24247 { ac_try='test -z "$ac_c_werror_flag"
24248 || test ! -s conftest.err'
24249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24250 (eval $ac_try) 2>&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); }; } &&
24254 { ac_try='test -s conftest$ac_exeext'
24255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24256 (eval $ac_try) 2>&5
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); }; }; then
24260 ac_cv_lib_dl_dlopen=yes
24262 echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24265 ac_cv_lib_dl_dlopen=no
24267 rm -f conftest.err conftest.$ac_objext \
24268 conftest$ac_exeext conftest.$ac_ext
24269 LIBS=$ac_check_lib_save_LIBS
24271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24273 if test $ac_cv_lib_dl_dlopen = yes; then
24274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24276 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24277 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24278 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24279 echo $ECHO_N "(cached) $ECHO_C" >&6
24281 ac_check_lib_save_LIBS=$LIBS
24282 LIBS="-lsvld $LIBS"
24283 cat >conftest.$ac_ext <<_ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24290 /* Override any gcc2 internal prototype to avoid an error. */
24294 /* We use char because int might match the return type of a gcc2
24295 builtin and then its argument prototype would still apply. */
24305 rm -f conftest.$ac_objext conftest$ac_exeext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24307 (eval $ac_link) 2>conftest.er1
24309 grep -v '^ *+' conftest.er1 >conftest.err
24311 cat conftest.err >&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } &&
24314 { ac_try='test -z "$ac_c_werror_flag"
24315 || test ! -s conftest.err'
24316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317 (eval $ac_try) 2>&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; } &&
24321 { ac_try='test -s conftest$ac_exeext'
24322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323 (eval $ac_try) 2>&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327 ac_cv_lib_svld_dlopen=yes
24329 echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ac_cv_lib_svld_dlopen=no
24334 rm -f conftest.err conftest.$ac_objext \
24335 conftest$ac_exeext conftest.$ac_ext
24336 LIBS=$ac_check_lib_save_LIBS
24338 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24339 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24340 if test $ac_cv_lib_svld_dlopen = yes; then
24341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24343 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24344 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24345 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24346 echo $ECHO_N "(cached) $ECHO_C" >&6
24348 ac_check_lib_save_LIBS=$LIBS
24350 cat >conftest.$ac_ext <<_ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24357 /* Override any gcc2 internal prototype to avoid an error. */
24361 /* We use char because int might match the return type of a gcc2
24362 builtin and then its argument prototype would still apply. */
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24374 (eval $ac_link) 2>conftest.er1
24376 grep -v '^ *+' conftest.er1 >conftest.err
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } &&
24381 { ac_try='test -z "$ac_c_werror_flag"
24382 || test ! -s conftest.err'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; } &&
24388 { ac_try='test -s conftest$ac_exeext'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24394 ac_cv_lib_dld_dld_link=yes
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24399 ac_cv_lib_dld_dld_link=no
24401 rm -f conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
24403 LIBS=$ac_check_lib_save_LIBS
24405 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24406 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24407 if test $ac_cv_lib_dld_dld_link = yes; then
24408 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24429 if test "x$lt_cv_dlopen" != xno; then
24435 case $lt_cv_dlopen in
24437 save_CPPFLAGS="$CPPFLAGS"
24438 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24440 save_LDFLAGS="$LDFLAGS"
24441 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24444 LIBS="$lt_cv_dlopen_libs $LIBS"
24446 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24447 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24448 if test "${lt_cv_dlopen_self+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 if test "$cross_compiling" = yes; then :
24452 lt_cv_dlopen_self=cross
24454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24455 lt_status=$lt_dlunknown
24456 cat > conftest.$ac_ext <<EOF
24457 #line 24457 "configure"
24458 #include "confdefs.h"
24467 # define LT_DLGLOBAL RTLD_GLOBAL
24470 # define LT_DLGLOBAL DL_GLOBAL
24472 # define LT_DLGLOBAL 0
24476 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24477 find out it does not work in some platform. */
24478 #ifndef LT_DLLAZY_OR_NOW
24480 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24483 # define LT_DLLAZY_OR_NOW DL_LAZY
24486 # define LT_DLLAZY_OR_NOW RTLD_NOW
24489 # define LT_DLLAZY_OR_NOW DL_NOW
24491 # define LT_DLLAZY_OR_NOW 0
24499 extern "C" void exit (int);
24502 void fnord() { int i=42;}
24505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24506 int status = $lt_dlunknown;
24510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24511 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24512 /* dlclose (self); */
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519 (eval $ac_link) 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24523 (./conftest; exit; ) 2>/dev/null
24525 case x$lt_status in
24526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24528 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24531 # compilation failed
24532 lt_cv_dlopen_self=no
24539 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24540 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24542 if test "x$lt_cv_dlopen_self" = xyes; then
24543 LDFLAGS="$LDFLAGS $link_static_flag"
24544 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24545 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24546 if test "${lt_cv_dlopen_self_static+set}" = set; then
24547 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 if test "$cross_compiling" = yes; then :
24550 lt_cv_dlopen_self_static=cross
24552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24553 lt_status=$lt_dlunknown
24554 cat > conftest.$ac_ext <<EOF
24555 #line 24555 "configure"
24556 #include "confdefs.h"
24565 # define LT_DLGLOBAL RTLD_GLOBAL
24568 # define LT_DLGLOBAL DL_GLOBAL
24570 # define LT_DLGLOBAL 0
24574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24575 find out it does not work in some platform. */
24576 #ifndef LT_DLLAZY_OR_NOW
24578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24581 # define LT_DLLAZY_OR_NOW DL_LAZY
24584 # define LT_DLLAZY_OR_NOW RTLD_NOW
24587 # define LT_DLLAZY_OR_NOW DL_NOW
24589 # define LT_DLLAZY_OR_NOW 0
24597 extern "C" void exit (int);
24600 void fnord() { int i=42;}
24603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24604 int status = $lt_dlunknown;
24608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24610 /* dlclose (self); */
24616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24617 (eval $ac_link) 2>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24621 (./conftest; exit; ) 2>/dev/null
24623 case x$lt_status in
24624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24626 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24629 # compilation failed
24630 lt_cv_dlopen_self_static=no
24637 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24638 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24641 CPPFLAGS="$save_CPPFLAGS"
24642 LDFLAGS="$save_LDFLAGS"
24647 case $lt_cv_dlopen_self in
24648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24649 *) enable_dlopen_self=unknown ;;
24652 case $lt_cv_dlopen_self_static in
24653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24654 *) enable_dlopen_self_static=unknown ;;
24659 # The else clause should only fire when bootstrapping the
24660 # libtool distribution, otherwise you forgot to ship ltmain.sh
24661 # with your package, and you will get complaints that there are
24662 # no rules to generate ltmain.sh.
24663 if test -f "$ltmain"; then
24664 # See if we are running on zsh, and set the options which allow our commands through
24665 # without removal of \ escapes.
24666 if test -n "${ZSH_VERSION+set}" ; then
24667 setopt NO_GLOB_SUBST
24669 # Now quote all the things that may contain metacharacters while being
24670 # careful not to overquote the AC_SUBSTed values. We take copies of the
24671 # variables and quote the copies for generation of the libtool script.
24672 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24674 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24675 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24676 deplibs_check_method reload_flag reload_cmds need_locks \
24677 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24678 lt_cv_sys_global_symbol_to_c_name_address \
24679 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24680 old_postinstall_cmds old_postuninstall_cmds \
24684 lt_prog_compiler_wl_GCJ \
24685 lt_prog_compiler_pic_GCJ \
24686 lt_prog_compiler_static_GCJ \
24687 lt_prog_compiler_no_builtin_flag_GCJ \
24688 export_dynamic_flag_spec_GCJ \
24689 thread_safe_flag_spec_GCJ \
24690 whole_archive_flag_spec_GCJ \
24691 enable_shared_with_static_runtimes_GCJ \
24692 old_archive_cmds_GCJ \
24693 old_archive_from_new_cmds_GCJ \
24694 predep_objects_GCJ \
24695 postdep_objects_GCJ \
24698 compiler_lib_search_path_GCJ \
24700 archive_expsym_cmds_GCJ \
24701 postinstall_cmds_GCJ \
24702 postuninstall_cmds_GCJ \
24703 old_archive_from_expsyms_cmds_GCJ \
24704 allow_undefined_flag_GCJ \
24705 no_undefined_flag_GCJ \
24706 export_symbols_cmds_GCJ \
24707 hardcode_libdir_flag_spec_GCJ \
24708 hardcode_libdir_flag_spec_ld_GCJ \
24709 hardcode_libdir_separator_GCJ \
24710 hardcode_automatic_GCJ \
24712 module_expsym_cmds_GCJ \
24713 lt_cv_prog_compiler_c_o_GCJ \
24714 exclude_expsyms_GCJ \
24715 include_expsyms_GCJ; do
24718 old_archive_cmds_GCJ | \
24719 old_archive_from_new_cmds_GCJ | \
24720 archive_cmds_GCJ | \
24721 archive_expsym_cmds_GCJ | \
24722 module_cmds_GCJ | \
24723 module_expsym_cmds_GCJ | \
24724 old_archive_from_expsyms_cmds_GCJ | \
24725 export_symbols_cmds_GCJ | \
24726 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24727 postinstall_cmds | postuninstall_cmds | \
24728 old_postinstall_cmds | old_postuninstall_cmds | \
24729 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24730 # Double-quote double-evaled strings.
24731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24740 *'\$0 --fallback-echo"')
24741 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24747 cat <<__EOF__ >> "$cfgfile"
24748 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24752 # Shell to use when invoking shell scripts.
24755 # Whether or not to build shared libraries.
24756 build_libtool_libs=$enable_shared
24758 # Whether or not to build static libraries.
24759 build_old_libs=$enable_static
24761 # Whether or not to add -lc for building shared libraries.
24762 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24764 # Whether or not to disallow shared libs when runtime libs are static
24765 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24767 # Whether or not to optimize for fast installation.
24768 fast_install=$enable_fast_install
24771 host_alias=$host_alias
24774 # An echo program that does not interpret backslashes.
24779 AR_FLAGS=$lt_AR_FLAGS
24784 # A language-specific compiler.
24785 CC=$lt_compiler_GCJ
24787 # Is the compiler the GNU C compiler?
24793 # The linker used to build libraries.
24796 # Whether we need hard or soft links.
24799 # A BSD-compatible nm program.
24802 # A symbol stripping program
24805 # Used to examine libraries when file_magic_cmd begins "file"
24806 MAGIC_CMD=$MAGIC_CMD
24808 # Used on cygwin: DLL creation program.
24811 # Used on cygwin: object dumper.
24814 # Used on cygwin: assembler.
24817 # The name of the directory that contains temporary libtool files.
24820 # How to create reloadable object files.
24821 reload_flag=$lt_reload_flag
24822 reload_cmds=$lt_reload_cmds
24824 # How to pass a linker flag through the compiler.
24825 wl=$lt_lt_prog_compiler_wl_GCJ
24827 # Object file suffix (normally "o").
24828 objext="$ac_objext"
24830 # Old archive suffix (normally "a").
24833 # Shared library suffix (normally ".so").
24834 shrext_cmds='$shrext_cmds'
24836 # Executable file suffix (normally "").
24839 # Additional compiler flags for building library objects.
24840 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24843 # What is the maximum length of a command?
24844 max_cmd_len=$lt_cv_sys_max_cmd_len
24846 # Does compiler simultaneously support -c and -o options?
24847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24849 # Must we lock files when doing compilation ?
24850 need_locks=$lt_need_locks
24852 # Do we need the lib prefix for modules?
24853 need_lib_prefix=$need_lib_prefix
24855 # Do we need a version for libraries?
24856 need_version=$need_version
24858 # Whether dlopen is supported.
24859 dlopen_support=$enable_dlopen
24861 # Whether dlopen of programs is supported.
24862 dlopen_self=$enable_dlopen_self
24864 # Whether dlopen of statically linked programs is supported.
24865 dlopen_self_static=$enable_dlopen_self_static
24867 # Compiler flag to prevent dynamic linking.
24868 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24870 # Compiler flag to turn off builtin functions.
24871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24873 # Compiler flag to allow reflexive dlopens.
24874 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24876 # Compiler flag to generate shared objects directly from archives.
24877 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24879 # Compiler flag to generate thread-safe objects.
24880 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24882 # Library versioning type.
24883 version_type=$version_type
24885 # Format of library name prefix.
24886 libname_spec=$lt_libname_spec
24888 # List of archive names. First name is the real one, the rest are links.
24889 # The last name is the one that the linker finds with -lNAME.
24890 library_names_spec=$lt_library_names_spec
24892 # The coded name of the library, if different from the real name.
24893 soname_spec=$lt_soname_spec
24895 # Commands used to build and install an old-style archive.
24897 old_archive_cmds=$lt_old_archive_cmds_GCJ
24898 old_postinstall_cmds=$lt_old_postinstall_cmds
24899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24901 # Create an old-style archive from a shared archive.
24902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24904 # Create a temporary old-style archive to link instead of a shared archive.
24905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24907 # Commands used to build and install a shared archive.
24908 archive_cmds=$lt_archive_cmds_GCJ
24909 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24910 postinstall_cmds=$lt_postinstall_cmds
24911 postuninstall_cmds=$lt_postuninstall_cmds
24913 # Commands used to build a loadable module (assumed same as above if empty)
24914 module_cmds=$lt_module_cmds_GCJ
24915 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24917 # Commands to strip libraries.
24918 old_striplib=$lt_old_striplib
24919 striplib=$lt_striplib
24921 # Dependencies to place before the objects being linked to create a
24923 predep_objects=$lt_predep_objects_GCJ
24925 # Dependencies to place after the objects being linked to create a
24927 postdep_objects=$lt_postdep_objects_GCJ
24929 # Dependencies to place before the objects being linked to create a
24931 predeps=$lt_predeps_GCJ
24933 # Dependencies to place after the objects being linked to create a
24935 postdeps=$lt_postdeps_GCJ
24937 # The library search path used internally by the compiler when linking
24938 # a shared library.
24939 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24941 # Method to check whether dependent libraries are shared objects.
24942 deplibs_check_method=$lt_deplibs_check_method
24944 # Command to use when deplibs_check_method == file_magic.
24945 file_magic_cmd=$lt_file_magic_cmd
24947 # Flag that allows shared libraries with undefined symbols to be built.
24948 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24950 # Flag that forces no undefined symbols.
24951 no_undefined_flag=$lt_no_undefined_flag_GCJ
24953 # Commands used to finish a libtool library installation in a directory.
24954 finish_cmds=$lt_finish_cmds
24956 # Same as above, but a single script fragment to be evaled but not shown.
24957 finish_eval=$lt_finish_eval
24959 # Take the output of nm and produce a listing of raw symbols and C names.
24960 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24962 # Transform the output of nm in a proper C declaration
24963 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24965 # Transform the output of nm in a C name address pair
24966 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24968 # This is the shared library runtime path variable.
24969 runpath_var=$runpath_var
24971 # This is the shared library path variable.
24972 shlibpath_var=$shlibpath_var
24974 # Is shlibpath searched before the hard-coded library search path?
24975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24977 # How to hardcode a shared library path into an executable.
24978 hardcode_action=$hardcode_action_GCJ
24980 # Whether we should hardcode library paths into libraries.
24981 hardcode_into_libs=$hardcode_into_libs
24983 # Flag to hardcode \$libdir into a binary during linking.
24984 # This must work even if \$libdir does not exist.
24985 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24987 # If ld is used when linking, flag to hardcode \$libdir into
24988 # a binary during linking. This must work even if \$libdir does
24990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24992 # Whether we need a single -rpath flag with a separated argument.
24993 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24995 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24996 # resulting binary.
24997 hardcode_direct=$hardcode_direct_GCJ
24999 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25000 # resulting binary.
25001 hardcode_minus_L=$hardcode_minus_L_GCJ
25003 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25004 # the resulting binary.
25005 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25007 # Set to yes if building a shared library automatically hardcodes DIR into the library
25008 # and all subsequent libraries and executables linked against it.
25009 hardcode_automatic=$hardcode_automatic_GCJ
25011 # Variables whose values should be saved in libtool wrapper scripts and
25012 # restored at relink time.
25013 variables_saved_for_relink="$variables_saved_for_relink"
25015 # Whether libtool must link a program against all its dependency libraries.
25016 link_all_deplibs=$link_all_deplibs_GCJ
25018 # Compile-time system search path for libraries
25019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25021 # Run-time system search path for libraries
25022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25024 # Fix the shell variable \$srcfile for the compiler.
25025 fix_srcfile_path="$fix_srcfile_path_GCJ"
25027 # Set to yes if exported symbols are required.
25028 always_export_symbols=$always_export_symbols_GCJ
25030 # The commands to list exported symbols.
25031 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25033 # The commands to extract the exported symbol list from a shared archive.
25034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25036 # Symbols that should not be listed in the preloaded symbols.
25037 exclude_expsyms=$lt_exclude_expsyms_GCJ
25039 # Symbols that must always be exported.
25040 include_expsyms=$lt_include_expsyms_GCJ
25042 # ### END LIBTOOL TAG CONFIG: $tagname
25048 # If there is no Makefile yet, we rely on a make rule to execute
25049 # `config.status --recheck' to rerun these tests and create the
25050 # libtool script then.
25051 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25052 if test -f "$ltmain_in"; then
25053 test -f Makefile && make "$ltmain"
25059 ac_cpp='$CPP $CPPFLAGS'
25060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25075 # Source file extension for RC test sources.
25078 # Object file extension for compiled RC test sources.
25082 # Code to be used in simple compile tests
25083 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25085 # Code to be used in simple link tests
25086 lt_simple_link_test_code="$lt_simple_compile_test_code"
25088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25090 # If no C compiler was specified, use CC.
25093 # Allow CC to be a program name with arguments.
25097 # Allow CC to be a program name with arguments.
25102 lt_cv_prog_compiler_c_o_RC=yes
25104 # The else clause should only fire when bootstrapping the
25105 # libtool distribution, otherwise you forgot to ship ltmain.sh
25106 # with your package, and you will get complaints that there are
25107 # no rules to generate ltmain.sh.
25108 if test -f "$ltmain"; then
25109 # See if we are running on zsh, and set the options which allow our commands through
25110 # without removal of \ escapes.
25111 if test -n "${ZSH_VERSION+set}" ; then
25112 setopt NO_GLOB_SUBST
25114 # Now quote all the things that may contain metacharacters while being
25115 # careful not to overquote the AC_SUBSTed values. We take copies of the
25116 # variables and quote the copies for generation of the libtool script.
25117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25121 deplibs_check_method reload_flag reload_cmds need_locks \
25122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25123 lt_cv_sys_global_symbol_to_c_name_address \
25124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25125 old_postinstall_cmds old_postuninstall_cmds \
25129 lt_prog_compiler_wl_RC \
25130 lt_prog_compiler_pic_RC \
25131 lt_prog_compiler_static_RC \
25132 lt_prog_compiler_no_builtin_flag_RC \
25133 export_dynamic_flag_spec_RC \
25134 thread_safe_flag_spec_RC \
25135 whole_archive_flag_spec_RC \
25136 enable_shared_with_static_runtimes_RC \
25137 old_archive_cmds_RC \
25138 old_archive_from_new_cmds_RC \
25139 predep_objects_RC \
25140 postdep_objects_RC \
25143 compiler_lib_search_path_RC \
25145 archive_expsym_cmds_RC \
25146 postinstall_cmds_RC \
25147 postuninstall_cmds_RC \
25148 old_archive_from_expsyms_cmds_RC \
25149 allow_undefined_flag_RC \
25150 no_undefined_flag_RC \
25151 export_symbols_cmds_RC \
25152 hardcode_libdir_flag_spec_RC \
25153 hardcode_libdir_flag_spec_ld_RC \
25154 hardcode_libdir_separator_RC \
25155 hardcode_automatic_RC \
25157 module_expsym_cmds_RC \
25158 lt_cv_prog_compiler_c_o_RC \
25159 exclude_expsyms_RC \
25160 include_expsyms_RC; do
25163 old_archive_cmds_RC | \
25164 old_archive_from_new_cmds_RC | \
25165 archive_cmds_RC | \
25166 archive_expsym_cmds_RC | \
25168 module_expsym_cmds_RC | \
25169 old_archive_from_expsyms_cmds_RC | \
25170 export_symbols_cmds_RC | \
25171 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25172 postinstall_cmds | postuninstall_cmds | \
25173 old_postinstall_cmds | old_postuninstall_cmds | \
25174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25175 # Double-quote double-evaled strings.
25176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25185 *'\$0 --fallback-echo"')
25186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25192 cat <<__EOF__ >> "$cfgfile"
25193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25197 # Shell to use when invoking shell scripts.
25200 # Whether or not to build shared libraries.
25201 build_libtool_libs=$enable_shared
25203 # Whether or not to build static libraries.
25204 build_old_libs=$enable_static
25206 # Whether or not to add -lc for building shared libraries.
25207 build_libtool_need_lc=$archive_cmds_need_lc_RC
25209 # Whether or not to disallow shared libs when runtime libs are static
25210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25212 # Whether or not to optimize for fast installation.
25213 fast_install=$enable_fast_install
25216 host_alias=$host_alias
25219 # An echo program that does not interpret backslashes.
25224 AR_FLAGS=$lt_AR_FLAGS
25229 # A language-specific compiler.
25232 # Is the compiler the GNU C compiler?
25238 # The linker used to build libraries.
25241 # Whether we need hard or soft links.
25244 # A BSD-compatible nm program.
25247 # A symbol stripping program
25250 # Used to examine libraries when file_magic_cmd begins "file"
25251 MAGIC_CMD=$MAGIC_CMD
25253 # Used on cygwin: DLL creation program.
25256 # Used on cygwin: object dumper.
25259 # Used on cygwin: assembler.
25262 # The name of the directory that contains temporary libtool files.
25265 # How to create reloadable object files.
25266 reload_flag=$lt_reload_flag
25267 reload_cmds=$lt_reload_cmds
25269 # How to pass a linker flag through the compiler.
25270 wl=$lt_lt_prog_compiler_wl_RC
25272 # Object file suffix (normally "o").
25273 objext="$ac_objext"
25275 # Old archive suffix (normally "a").
25278 # Shared library suffix (normally ".so").
25279 shrext_cmds='$shrext_cmds'
25281 # Executable file suffix (normally "").
25284 # Additional compiler flags for building library objects.
25285 pic_flag=$lt_lt_prog_compiler_pic_RC
25288 # What is the maximum length of a command?
25289 max_cmd_len=$lt_cv_sys_max_cmd_len
25291 # Does compiler simultaneously support -c and -o options?
25292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25294 # Must we lock files when doing compilation ?
25295 need_locks=$lt_need_locks
25297 # Do we need the lib prefix for modules?
25298 need_lib_prefix=$need_lib_prefix
25300 # Do we need a version for libraries?
25301 need_version=$need_version
25303 # Whether dlopen is supported.
25304 dlopen_support=$enable_dlopen
25306 # Whether dlopen of programs is supported.
25307 dlopen_self=$enable_dlopen_self
25309 # Whether dlopen of statically linked programs is supported.
25310 dlopen_self_static=$enable_dlopen_self_static
25312 # Compiler flag to prevent dynamic linking.
25313 link_static_flag=$lt_lt_prog_compiler_static_RC
25315 # Compiler flag to turn off builtin functions.
25316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25318 # Compiler flag to allow reflexive dlopens.
25319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25321 # Compiler flag to generate shared objects directly from archives.
25322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25324 # Compiler flag to generate thread-safe objects.
25325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25327 # Library versioning type.
25328 version_type=$version_type
25330 # Format of library name prefix.
25331 libname_spec=$lt_libname_spec
25333 # List of archive names. First name is the real one, the rest are links.
25334 # The last name is the one that the linker finds with -lNAME.
25335 library_names_spec=$lt_library_names_spec
25337 # The coded name of the library, if different from the real name.
25338 soname_spec=$lt_soname_spec
25340 # Commands used to build and install an old-style archive.
25342 old_archive_cmds=$lt_old_archive_cmds_RC
25343 old_postinstall_cmds=$lt_old_postinstall_cmds
25344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25346 # Create an old-style archive from a shared archive.
25347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25349 # Create a temporary old-style archive to link instead of a shared archive.
25350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25352 # Commands used to build and install a shared archive.
25353 archive_cmds=$lt_archive_cmds_RC
25354 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25355 postinstall_cmds=$lt_postinstall_cmds
25356 postuninstall_cmds=$lt_postuninstall_cmds
25358 # Commands used to build a loadable module (assumed same as above if empty)
25359 module_cmds=$lt_module_cmds_RC
25360 module_expsym_cmds=$lt_module_expsym_cmds_RC
25362 # Commands to strip libraries.
25363 old_striplib=$lt_old_striplib
25364 striplib=$lt_striplib
25366 # Dependencies to place before the objects being linked to create a
25368 predep_objects=$lt_predep_objects_RC
25370 # Dependencies to place after the objects being linked to create a
25372 postdep_objects=$lt_postdep_objects_RC
25374 # Dependencies to place before the objects being linked to create a
25376 predeps=$lt_predeps_RC
25378 # Dependencies to place after the objects being linked to create a
25380 postdeps=$lt_postdeps_RC
25382 # The library search path used internally by the compiler when linking
25383 # a shared library.
25384 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25386 # Method to check whether dependent libraries are shared objects.
25387 deplibs_check_method=$lt_deplibs_check_method
25389 # Command to use when deplibs_check_method == file_magic.
25390 file_magic_cmd=$lt_file_magic_cmd
25392 # Flag that allows shared libraries with undefined symbols to be built.
25393 allow_undefined_flag=$lt_allow_undefined_flag_RC
25395 # Flag that forces no undefined symbols.
25396 no_undefined_flag=$lt_no_undefined_flag_RC
25398 # Commands used to finish a libtool library installation in a directory.
25399 finish_cmds=$lt_finish_cmds
25401 # Same as above, but a single script fragment to be evaled but not shown.
25402 finish_eval=$lt_finish_eval
25404 # Take the output of nm and produce a listing of raw symbols and C names.
25405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25407 # Transform the output of nm in a proper C declaration
25408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25410 # Transform the output of nm in a C name address pair
25411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25413 # This is the shared library runtime path variable.
25414 runpath_var=$runpath_var
25416 # This is the shared library path variable.
25417 shlibpath_var=$shlibpath_var
25419 # Is shlibpath searched before the hard-coded library search path?
25420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25422 # How to hardcode a shared library path into an executable.
25423 hardcode_action=$hardcode_action_RC
25425 # Whether we should hardcode library paths into libraries.
25426 hardcode_into_libs=$hardcode_into_libs
25428 # Flag to hardcode \$libdir into a binary during linking.
25429 # This must work even if \$libdir does not exist.
25430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25432 # If ld is used when linking, flag to hardcode \$libdir into
25433 # a binary during linking. This must work even if \$libdir does
25435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25437 # Whether we need a single -rpath flag with a separated argument.
25438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25441 # resulting binary.
25442 hardcode_direct=$hardcode_direct_RC
25444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25445 # resulting binary.
25446 hardcode_minus_L=$hardcode_minus_L_RC
25448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25449 # the resulting binary.
25450 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25452 # Set to yes if building a shared library automatically hardcodes DIR into the library
25453 # and all subsequent libraries and executables linked against it.
25454 hardcode_automatic=$hardcode_automatic_RC
25456 # Variables whose values should be saved in libtool wrapper scripts and
25457 # restored at relink time.
25458 variables_saved_for_relink="$variables_saved_for_relink"
25460 # Whether libtool must link a program against all its dependency libraries.
25461 link_all_deplibs=$link_all_deplibs_RC
25463 # Compile-time system search path for libraries
25464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25466 # Run-time system search path for libraries
25467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25469 # Fix the shell variable \$srcfile for the compiler.
25470 fix_srcfile_path="$fix_srcfile_path_RC"
25472 # Set to yes if exported symbols are required.
25473 always_export_symbols=$always_export_symbols_RC
25475 # The commands to list exported symbols.
25476 export_symbols_cmds=$lt_export_symbols_cmds_RC
25478 # The commands to extract the exported symbol list from a shared archive.
25479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25481 # Symbols that should not be listed in the preloaded symbols.
25482 exclude_expsyms=$lt_exclude_expsyms_RC
25484 # Symbols that must always be exported.
25485 include_expsyms=$lt_include_expsyms_RC
25487 # ### END LIBTOOL TAG CONFIG: $tagname
25493 # If there is no Makefile yet, we rely on a make rule to execute
25494 # `config.status --recheck' to rerun these tests and create the
25495 # libtool script then.
25496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25497 if test -f "$ltmain_in"; then
25498 test -f Makefile && make "$ltmain"
25504 ac_cpp='$CPP $CPPFLAGS'
25505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25514 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25515 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25516 { (exit 1); exit 1; }; }
25520 # Append the new tag name to the list of available tags.
25521 if test -n "$tagname" ; then
25522 available_tags="$available_tags $tagname"
25528 # Now substitute the updated list of available tags.
25529 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25530 mv "${ofile}T" "$ofile"
25534 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25535 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25536 { (exit 1); exit 1; }; }
25542 # This can be used to rebuild libtool when needed
25543 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25545 # Always use our own libtool.
25546 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25548 # Prevent multiple expansion
25571 if test $ac_cv_c_compiler_gnu = yes; then
25572 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25573 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
25574 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25577 ac_pattern="Autoconf.*'x'"
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25588 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25589 ac_cv_prog_gcc_traditional=yes
25591 ac_cv_prog_gcc_traditional=no
25596 if test $ac_cv_prog_gcc_traditional = no; then
25597 cat >conftest.$ac_ext <<_ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 #include <termio.h>
25606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25607 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25608 ac_cv_prog_gcc_traditional=yes
25614 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25615 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
25616 if test $ac_cv_prog_gcc_traditional = yes; then
25617 CC="$CC -traditional"
25621 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
25623 if test "${ac_cv_c_const+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25626 cat >conftest.$ac_ext <<_ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25636 /* FIXME: Include the comments suggested by Paul. */
25637 #ifndef __cplusplus
25638 /* Ultrix mips cc rejects this. */
25639 typedef int charset[2];
25641 /* SunOS 4.1.1 cc rejects this. */
25642 char const *const *ccp;
25644 /* NEC SVR4.0.2 mips cc rejects this. */
25645 struct point {int x, y;};
25646 static struct point const zero = {0,0};
25647 /* AIX XL C 1.02.0.0 rejects this.
25648 It does not let you subtract one const X* pointer from another in
25649 an arm of an if-expression whose if-part is not a constant
25651 const char *g = "string";
25652 ccp = &g + (g ? g-g : 0);
25653 /* HPUX 7.0 cc rejects these. */
25656 ccp = (char const *const *) p;
25657 { /* SCO 3.2v4 cc rejects this. */
25659 char const *s = 0 ? (char *) 0 : (char const *) 0;
25663 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25664 int x[] = {25, 17};
25665 const int *foo = &x[0];
25668 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25669 typedef const int *iptr;
25673 { /* AIX XL C 1.02.0.0 rejects this saying
25674 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25675 struct s { int j; const int *ap[3]; };
25676 struct s *b; b->j = 5;
25678 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25679 const int foo = 10;
25687 rm -f conftest.$ac_objext
25688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25689 (eval $ac_compile) 2>conftest.er1
25691 grep -v '^ *+' conftest.er1 >conftest.err
25693 cat conftest.err >&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); } &&
25696 { ac_try='test -z "$ac_c_werror_flag"
25697 || test ! -s conftest.err'
25698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699 (eval $ac_try) 2>&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; } &&
25703 { ac_try='test -s conftest.$ac_objext'
25704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705 (eval $ac_try) 2>&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; }; then
25711 echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25718 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25719 echo "${ECHO_T}$ac_cv_c_const" >&6
25720 if test $ac_cv_c_const = no; then
25722 cat >>confdefs.h <<\_ACEOF
25729 echo "$as_me:$LINENO: checking for working volatile" >&5
25730 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
25731 if test "${amanda_cv_c_volatile+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25746 volatile int aaa = 0;
25752 rm -f conftest.$ac_objext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754 (eval $ac_compile) 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } &&
25761 { ac_try='test -z "$ac_c_werror_flag"
25762 || test ! -s conftest.err'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; } &&
25768 { ac_try='test -s conftest.$ac_objext'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; }; then
25774 amanda_cv_c_volatile=yes
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 amanda_cv_c_volatile=no
25782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25786 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
25787 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
25788 if test $amanda_cv_c_volatile = no; then
25790 cat >>confdefs.h <<\_ACEOF
25798 echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
25799 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
25800 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25822 rm -f conftest.$ac_objext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25824 (eval $ac_compile) 2>conftest.er1
25826 grep -v '^ *+' conftest.er1 >conftest.err
25828 cat conftest.err >&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
25831 { ac_try='test -z "$ac_c_werror_flag"
25832 || test ! -s conftest.err'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
25838 { ac_try='test -s conftest.$ac_objext'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 amanda_cv_c_unsigned_long_constants=yes
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25849 amanda_cv_c_unsigned_long_constants=no
25852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25856 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
25857 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
25858 if test "$amanda_cv_c_unsigned_long_constants" = yes; then
25860 cat >>confdefs.h <<\_ACEOF
25861 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
25867 echo "$as_me:$LINENO: checking for off_t" >&5
25868 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25869 if test "${ac_cv_type_off_t+set}" = set; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25872 cat >conftest.$ac_ext <<_ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25878 $ac_includes_default
25884 if (sizeof (off_t))
25890 rm -f conftest.$ac_objext
25891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25892 (eval $ac_compile) 2>conftest.er1
25894 grep -v '^ *+' conftest.er1 >conftest.err
25896 cat conftest.err >&5
25897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); } &&
25899 { ac_try='test -z "$ac_c_werror_flag"
25900 || test ! -s conftest.err'
25901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902 (eval $ac_try) 2>&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; } &&
25906 { ac_try='test -s conftest.$ac_objext'
25907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908 (eval $ac_try) 2>&5
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); }; }; then
25912 ac_cv_type_off_t=yes
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_cv_type_off_t=no
25919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25921 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25922 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25923 if test $ac_cv_type_off_t = yes; then
25927 cat >>confdefs.h <<_ACEOF
25933 echo "$as_me:$LINENO: checking for pid_t" >&5
25934 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25935 if test "${ac_cv_type_pid_t+set}" = set; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25938 cat >conftest.$ac_ext <<_ACEOF
25941 cat confdefs.h >>conftest.$ac_ext
25942 cat >>conftest.$ac_ext <<_ACEOF
25943 /* end confdefs.h. */
25944 $ac_includes_default
25950 if (sizeof (pid_t))
25956 rm -f conftest.$ac_objext
25957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25958 (eval $ac_compile) 2>conftest.er1
25960 grep -v '^ *+' conftest.er1 >conftest.err
25962 cat conftest.err >&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); } &&
25965 { ac_try='test -z "$ac_c_werror_flag"
25966 || test ! -s conftest.err'
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; } &&
25972 { ac_try='test -s conftest.$ac_objext'
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25978 ac_cv_type_pid_t=yes
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 ac_cv_type_pid_t=no
25985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25987 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25988 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25989 if test $ac_cv_type_pid_t = yes; then
25993 cat >>confdefs.h <<_ACEOF
25999 echo "$as_me:$LINENO: checking for size_t" >&5
26000 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26001 if test "${ac_cv_type_size_t+set}" = set; then
26002 echo $ECHO_N "(cached) $ECHO_C" >&6
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 $ac_includes_default
26016 if (sizeof (size_t))
26022 rm -f conftest.$ac_objext
26023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26024 (eval $ac_compile) 2>conftest.er1
26026 grep -v '^ *+' conftest.er1 >conftest.err
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } &&
26031 { ac_try='test -z "$ac_c_werror_flag"
26032 || test ! -s conftest.err'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; } &&
26038 { ac_try='test -s conftest.$ac_objext'
26039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040 (eval $ac_try) 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 ac_cv_type_size_t=yes
26046 echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26049 ac_cv_type_size_t=no
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26054 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26055 if test $ac_cv_type_size_t = yes; then
26059 cat >>confdefs.h <<_ACEOF
26060 #define size_t unsigned
26070 echo "$as_me:$LINENO: checking for ssize_t" >&5
26071 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26072 if test "${ac_cv_type_ssize_t+set}" = set; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26075 cat >conftest.$ac_ext <<_ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h. */
26081 $ac_includes_default
26087 if (sizeof (ssize_t))
26093 rm -f conftest.$ac_objext
26094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26095 (eval $ac_compile) 2>conftest.er1
26097 grep -v '^ *+' conftest.er1 >conftest.err
26099 cat conftest.err >&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); } &&
26102 { ac_try='test -z "$ac_c_werror_flag"
26103 || test ! -s conftest.err'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; } &&
26109 { ac_try='test -s conftest.$ac_objext'
26110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111 (eval $ac_try) 2>&5
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); }; }; then
26115 ac_cv_type_ssize_t=yes
26117 echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 ac_cv_type_ssize_t=no
26122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26124 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26125 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26126 if test $ac_cv_type_ssize_t = yes; then
26130 cat >>confdefs.h <<_ACEOF
26131 #define ssize_t int
26137 echo "$as_me:$LINENO: checking for unsigned long long" >&5
26138 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
26139 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26140 echo $ECHO_N "(cached) $ECHO_C" >&6
26142 cat >conftest.$ac_ext <<_ACEOF
26145 cat confdefs.h >>conftest.$ac_ext
26146 cat >>conftest.$ac_ext <<_ACEOF
26147 /* end confdefs.h. */
26148 $ac_includes_default
26152 if ((unsigned long long *) 0)
26154 if (sizeof (unsigned long long))
26160 rm -f conftest.$ac_objext
26161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26162 (eval $ac_compile) 2>conftest.er1
26164 grep -v '^ *+' conftest.er1 >conftest.err
26166 cat conftest.err >&5
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); } &&
26169 { ac_try='test -z "$ac_c_werror_flag"
26170 || test ! -s conftest.err'
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; } &&
26176 { ac_try='test -s conftest.$ac_objext'
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; }; then
26182 ac_cv_type_unsigned_long_long=yes
26184 echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26187 ac_cv_type_unsigned_long_long=no
26189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26191 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26192 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
26193 if test $ac_cv_type_unsigned_long_long = yes; then
26195 cat >>confdefs.h <<_ACEOF
26196 #define HAVE_UNSIGNED_LONG_LONG 1
26207 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26208 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26209 if test "${ac_cv_type_uid_t+set}" = set; then
26210 echo $ECHO_N "(cached) $ECHO_C" >&6
26212 cat >conftest.$ac_ext <<_ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26218 #include <sys/types.h>
26221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26222 $EGREP "uid_t" >/dev/null 2>&1; then
26223 ac_cv_type_uid_t=yes
26225 ac_cv_type_uid_t=no
26230 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26231 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26232 if test $ac_cv_type_uid_t = no; then
26234 cat >>confdefs.h <<\_ACEOF
26239 cat >>confdefs.h <<\_ACEOF
26245 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26246 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26247 if test "${ac_cv_type_signal+set}" = set; then
26248 echo $ECHO_N "(cached) $ECHO_C" >&6
26250 cat >conftest.$ac_ext <<_ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 #include <sys/types.h>
26257 #include <signal.h>
26262 extern "C" void (*signal (int, void (*)(int)))(int);
26264 void (*signal ()) ();
26275 rm -f conftest.$ac_objext
26276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26277 (eval $ac_compile) 2>conftest.er1
26279 grep -v '^ *+' conftest.er1 >conftest.err
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } &&
26284 { ac_try='test -z "$ac_c_werror_flag"
26285 || test ! -s conftest.err'
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; } &&
26291 { ac_try='test -s conftest.$ac_objext'
26292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293 (eval $ac_try) 2>&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); }; }; then
26297 ac_cv_type_signal=void
26299 echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26302 ac_cv_type_signal=int
26304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26306 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26307 echo "${ECHO_T}$ac_cv_type_signal" >&6
26309 cat >>confdefs.h <<_ACEOF
26310 #define RETSIGTYPE $ac_cv_type_signal
26314 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26315 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26316 if test "${ac_cv_struct_tm+set}" = set; then
26317 echo $ECHO_N "(cached) $ECHO_C" >&6
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 #include <sys/types.h>
26331 struct tm *tp; tp->tm_sec;
26336 rm -f conftest.$ac_objext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338 (eval $ac_compile) 2>conftest.er1
26340 grep -v '^ *+' conftest.er1 >conftest.err
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest.$ac_objext'
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 ac_cv_struct_tm=time.h
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_cv_struct_tm=sys/time.h
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26367 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26368 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26369 if test $ac_cv_struct_tm = sys/time.h; then
26371 cat >>confdefs.h <<\_ACEOF
26372 #define TM_IN_SYS_TIME 1
26377 for ac_prog in flex lex
26379 # Extract the first word of "$ac_prog", so it can be a program name with args.
26380 set dummy $ac_prog; ac_word=$2
26381 echo "$as_me:$LINENO: checking for $ac_word" >&5
26382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26383 if test "${ac_cv_prog_LEX+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26386 if test -n "$LEX"; then
26387 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26390 for as_dir in $PATH
26393 test -z "$as_dir" && as_dir=.
26394 for ac_exec_ext in '' $ac_executable_extensions; do
26395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26396 ac_cv_prog_LEX="$ac_prog"
26397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26405 LEX=$ac_cv_prog_LEX
26406 if test -n "$LEX"; then
26407 echo "$as_me:$LINENO: result: $LEX" >&5
26408 echo "${ECHO_T}$LEX" >&6
26410 echo "$as_me:$LINENO: result: no" >&5
26411 echo "${ECHO_T}no" >&6
26414 test -n "$LEX" && break
26416 test -n "$LEX" || LEX=":"
26418 if test -z "$LEXLIB"
26420 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
26421 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
26422 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
26423 echo $ECHO_N "(cached) $ECHO_C" >&6
26425 ac_check_lib_save_LIBS=$LIBS
26427 cat >conftest.$ac_ext <<_ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h. */
26434 /* Override any gcc2 internal prototype to avoid an error. */
26438 /* We use char because int might match the return type of a gcc2
26439 builtin and then its argument prototype would still apply. */
26449 rm -f conftest.$ac_objext conftest$ac_exeext
26450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26451 (eval $ac_link) 2>conftest.er1
26453 grep -v '^ *+' conftest.er1 >conftest.err
26455 cat conftest.err >&5
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); } &&
26458 { ac_try='test -z "$ac_c_werror_flag"
26459 || test ! -s conftest.err'
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; } &&
26465 { ac_try='test -s conftest$ac_exeext'
26466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467 (eval $ac_try) 2>&5
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); }; }; then
26471 ac_cv_lib_fl_yywrap=yes
26473 echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26476 ac_cv_lib_fl_yywrap=no
26478 rm -f conftest.err conftest.$ac_objext \
26479 conftest$ac_exeext conftest.$ac_ext
26480 LIBS=$ac_check_lib_save_LIBS
26482 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
26483 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
26484 if test $ac_cv_lib_fl_yywrap = yes; then
26487 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
26488 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
26489 if test "${ac_cv_lib_l_yywrap+set}" = set; then
26490 echo $ECHO_N "(cached) $ECHO_C" >&6
26492 ac_check_lib_save_LIBS=$LIBS
26494 cat >conftest.$ac_ext <<_ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26501 /* Override any gcc2 internal prototype to avoid an error. */
26505 /* We use char because int might match the return type of a gcc2
26506 builtin and then its argument prototype would still apply. */
26516 rm -f conftest.$ac_objext conftest$ac_exeext
26517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26518 (eval $ac_link) 2>conftest.er1
26520 grep -v '^ *+' conftest.er1 >conftest.err
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } &&
26525 { ac_try='test -z "$ac_c_werror_flag"
26526 || test ! -s conftest.err'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; } &&
26532 { ac_try='test -s conftest$ac_exeext'
26533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534 (eval $ac_try) 2>&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; }; then
26538 ac_cv_lib_l_yywrap=yes
26540 echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26543 ac_cv_lib_l_yywrap=no
26545 rm -f conftest.err conftest.$ac_objext \
26546 conftest$ac_exeext conftest.$ac_ext
26547 LIBS=$ac_check_lib_save_LIBS
26549 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
26550 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
26551 if test $ac_cv_lib_l_yywrap = yes; then
26559 if test "x$LEX" != "x:"; then
26560 echo "$as_me:$LINENO: checking lex output file root" >&5
26561 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
26562 if test "${ac_cv_prog_lex_root+set}" = set; then
26563 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 # The minimal lex program is just a single line: %%. But some broken lexes
26566 # (Solaris, I think it was) want two %% lines, so accommodate them.
26567 cat >conftest.l <<_ACEOF
26571 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
26572 (eval $LEX conftest.l) 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }
26576 if test -f lex.yy.c; then
26577 ac_cv_prog_lex_root=lex.yy
26578 elif test -f lexyy.c; then
26579 ac_cv_prog_lex_root=lexyy
26581 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26582 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26583 { (exit 1); exit 1; }; }
26586 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26587 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
26589 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26591 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26592 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
26593 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26596 # POSIX says lex can declare yytext either as a pointer or an array; the
26597 # default is implementation-dependent. Figure out which it is, since
26598 # not all implementations provide the %pointer and %array declarations.
26599 ac_cv_prog_lex_yytext_pointer=no
26600 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
26602 LIBS="$LIBS $LEXLIB"
26603 cat >conftest.$ac_ext <<_ACEOF
26604 `cat $LEX_OUTPUT_ROOT.c`
26606 rm -f conftest.$ac_objext conftest$ac_exeext
26607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26608 (eval $ac_link) 2>conftest.er1
26610 grep -v '^ *+' conftest.er1 >conftest.err
26612 cat conftest.err >&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } &&
26615 { ac_try='test -z "$ac_c_werror_flag"
26616 || test ! -s conftest.err'
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; } &&
26622 { ac_try='test -s conftest$ac_exeext'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; }; then
26628 ac_cv_prog_lex_yytext_pointer=yes
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26634 rm -f conftest.err conftest.$ac_objext \
26635 conftest$ac_exeext conftest.$ac_ext
26637 rm -f "${LEX_OUTPUT_ROOT}.c"
26640 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26641 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
26642 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26644 cat >>confdefs.h <<\_ACEOF
26645 #define YYTEXT_POINTER 1
26651 if test "$LEX" = :; then
26652 LEX=${am_missing_run}flex
26656 echo "$as_me:$LINENO: checking for socklen_t" >&5
26657 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26658 if test "${ac_cv_type_socklen_t+set}" = set; then
26659 echo $ECHO_N "(cached) $ECHO_C" >&6
26661 cat >conftest.$ac_ext <<_ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h. */
26667 #include <sys/types.h>
26669 #include <stdlib.h>
26670 #include <stddef.h>
26672 #include <sys/socket.h>
26674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26675 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
26676 ac_cv_type_socklen_t=yes
26678 ac_cv_type_socklen_t=no
26683 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26684 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
26685 if test $ac_cv_type_socklen_t = no; then
26687 cat >>confdefs.h <<\_ACEOF
26688 #define socklen_t int
26694 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26695 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26696 if test "${ac_cv_header_stdc+set}" = set; then
26697 echo $ECHO_N "(cached) $ECHO_C" >&6
26699 cat >conftest.$ac_ext <<_ACEOF
26702 cat confdefs.h >>conftest.$ac_ext
26703 cat >>conftest.$ac_ext <<_ACEOF
26704 /* end confdefs.h. */
26705 #include <stdlib.h>
26706 #include <stdarg.h>
26707 #include <string.h>
26718 rm -f conftest.$ac_objext
26719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26720 (eval $ac_compile) 2>conftest.er1
26722 grep -v '^ *+' conftest.er1 >conftest.err
26724 cat conftest.err >&5
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
26727 { ac_try='test -z "$ac_c_werror_flag"
26728 || test ! -s conftest.err'
26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; } &&
26734 { ac_try='test -s conftest.$ac_objext'
26735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736 (eval $ac_try) 2>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; }; then
26740 ac_cv_header_stdc=yes
26742 echo "$as_me: failed program was:" >&5
26743 sed 's/^/| /' conftest.$ac_ext >&5
26745 ac_cv_header_stdc=no
26747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26749 if test $ac_cv_header_stdc = yes; then
26750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26751 cat >conftest.$ac_ext <<_ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 #include <string.h>
26760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26761 $EGREP "memchr" >/dev/null 2>&1; then
26764 ac_cv_header_stdc=no
26770 if test $ac_cv_header_stdc = yes; then
26771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26772 cat >conftest.$ac_ext <<_ACEOF
26775 cat confdefs.h >>conftest.$ac_ext
26776 cat >>conftest.$ac_ext <<_ACEOF
26777 /* end confdefs.h. */
26778 #include <stdlib.h>
26781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26782 $EGREP "free" >/dev/null 2>&1; then
26785 ac_cv_header_stdc=no
26791 if test $ac_cv_header_stdc = yes; then
26792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26793 if test "$cross_compiling" = yes; then
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26803 #if ((' ' & 0x0FF) == 0x020)
26804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26807 # define ISLOWER(c) \
26808 (('a' <= (c) && (c) <= 'i') \
26809 || ('j' <= (c) && (c) <= 'r') \
26810 || ('s' <= (c) && (c) <= 'z'))
26811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26819 for (i = 0; i < 256; i++)
26820 if (XOR (islower (i), ISLOWER (i))
26821 || toupper (i) != TOUPPER (i))
26826 rm -f conftest$ac_exeext
26827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26828 (eval $ac_link) 2>&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26839 echo "$as_me: program exited with status $ac_status" >&5
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26843 ( exit $ac_status )
26844 ac_cv_header_stdc=no
26846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26850 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26851 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26852 if test $ac_cv_header_stdc = yes; then
26854 cat >>confdefs.h <<\_ACEOF
26855 #define STDC_HEADERS 1
26865 ac_header_dirent=no
26866 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26867 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26868 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26869 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26871 echo $ECHO_N "(cached) $ECHO_C" >&6
26873 cat >conftest.$ac_ext <<_ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h. */
26879 #include <sys/types.h>
26891 rm -f conftest.$ac_objext
26892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26893 (eval $ac_compile) 2>conftest.er1
26895 grep -v '^ *+' conftest.er1 >conftest.err
26897 cat conftest.err >&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } &&
26900 { ac_try='test -z "$ac_c_werror_flag"
26901 || test ! -s conftest.err'
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; } &&
26907 { ac_try='test -s conftest.$ac_objext'
26908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; }; then
26913 eval "$as_ac_Header=yes"
26915 echo "$as_me: failed program was:" >&5
26916 sed 's/^/| /' conftest.$ac_ext >&5
26918 eval "$as_ac_Header=no"
26920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26925 cat >>confdefs.h <<_ACEOF
26926 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26929 ac_header_dirent=$ac_hdr; break
26933 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26934 if test $ac_header_dirent = dirent.h; then
26935 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26936 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26937 if test "${ac_cv_search_opendir+set}" = set; then
26938 echo $ECHO_N "(cached) $ECHO_C" >&6
26940 ac_func_search_save_LIBS=$LIBS
26941 ac_cv_search_opendir=no
26942 cat >conftest.$ac_ext <<_ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h. */
26949 /* Override any gcc2 internal prototype to avoid an error. */
26953 /* We use char because int might match the return type of a gcc2
26954 builtin and then its argument prototype would still apply. */
26964 rm -f conftest.$ac_objext conftest$ac_exeext
26965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26966 (eval $ac_link) 2>conftest.er1
26968 grep -v '^ *+' conftest.er1 >conftest.err
26970 cat conftest.err >&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); } &&
26973 { ac_try='test -z "$ac_c_werror_flag"
26974 || test ! -s conftest.err'
26975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976 (eval $ac_try) 2>&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; } &&
26980 { ac_try='test -s conftest$ac_exeext'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; }; then
26986 ac_cv_search_opendir="none required"
26988 echo "$as_me: failed program was:" >&5
26989 sed 's/^/| /' conftest.$ac_ext >&5
26992 rm -f conftest.err conftest.$ac_objext \
26993 conftest$ac_exeext conftest.$ac_ext
26994 if test "$ac_cv_search_opendir" = no; then
26995 for ac_lib in dir; do
26996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26997 cat >conftest.$ac_ext <<_ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27004 /* Override any gcc2 internal prototype to avoid an error. */
27008 /* We use char because int might match the return type of a gcc2
27009 builtin and then its argument prototype would still apply. */
27019 rm -f conftest.$ac_objext conftest$ac_exeext
27020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27021 (eval $ac_link) 2>conftest.er1
27023 grep -v '^ *+' conftest.er1 >conftest.err
27025 cat conftest.err >&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } &&
27028 { ac_try='test -z "$ac_c_werror_flag"
27029 || test ! -s conftest.err'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; } &&
27035 { ac_try='test -s conftest$ac_exeext'
27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037 (eval $ac_try) 2>&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
27041 ac_cv_search_opendir="-l$ac_lib"
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27048 rm -f conftest.err conftest.$ac_objext \
27049 conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_func_search_save_LIBS
27054 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27055 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27056 if test "$ac_cv_search_opendir" != no; then
27057 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27062 echo "$as_me:$LINENO: checking for library containing opendir" >&5
27063 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
27064 if test "${ac_cv_search_opendir+set}" = set; then
27065 echo $ECHO_N "(cached) $ECHO_C" >&6
27067 ac_func_search_save_LIBS=$LIBS
27068 ac_cv_search_opendir=no
27069 cat >conftest.$ac_ext <<_ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27076 /* Override any gcc2 internal prototype to avoid an error. */
27080 /* We use char because int might match the return type of a gcc2
27081 builtin and then its argument prototype would still apply. */
27091 rm -f conftest.$ac_objext conftest$ac_exeext
27092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27093 (eval $ac_link) 2>conftest.er1
27095 grep -v '^ *+' conftest.er1 >conftest.err
27097 cat conftest.err >&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); } &&
27100 { ac_try='test -z "$ac_c_werror_flag"
27101 || test ! -s conftest.err'
27102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103 (eval $ac_try) 2>&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; } &&
27107 { ac_try='test -s conftest$ac_exeext'
27108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27109 (eval $ac_try) 2>&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; }; then
27113 ac_cv_search_opendir="none required"
27115 echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27119 rm -f conftest.err conftest.$ac_objext \
27120 conftest$ac_exeext conftest.$ac_ext
27121 if test "$ac_cv_search_opendir" = no; then
27122 for ac_lib in x; do
27123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27124 cat >conftest.$ac_ext <<_ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27131 /* Override any gcc2 internal prototype to avoid an error. */
27135 /* We use char because int might match the return type of a gcc2
27136 builtin and then its argument prototype would still apply. */
27146 rm -f conftest.$ac_objext conftest$ac_exeext
27147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27148 (eval $ac_link) 2>conftest.er1
27150 grep -v '^ *+' conftest.er1 >conftest.err
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
27155 { ac_try='test -z "$ac_c_werror_flag"
27156 || test ! -s conftest.err'
27157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158 (eval $ac_try) 2>&5
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); }; } &&
27162 { ac_try='test -s conftest$ac_exeext'
27163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164 (eval $ac_try) 2>&5
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); }; }; then
27168 ac_cv_search_opendir="-l$ac_lib"
27171 echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27175 rm -f conftest.err conftest.$ac_objext \
27176 conftest$ac_exeext conftest.$ac_ext
27179 LIBS=$ac_func_search_save_LIBS
27181 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27182 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27183 if test "$ac_cv_search_opendir" != no; then
27184 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27194 for ac_header in sys/wait.h wait.h
27196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27198 echo "$as_me:$LINENO: checking for $ac_header" >&5
27199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27206 # Is the header compilable?
27207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27209 cat >conftest.$ac_ext <<_ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h. */
27215 $ac_includes_default
27216 #include <$ac_header>
27218 rm -f conftest.$ac_objext
27219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27220 (eval $ac_compile) 2>conftest.er1
27222 grep -v '^ *+' conftest.er1 >conftest.err
27224 cat conftest.err >&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } &&
27227 { ac_try='test -z "$ac_c_werror_flag"
27228 || test ! -s conftest.err'
27229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230 (eval $ac_try) 2>&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; } &&
27234 { ac_try='test -s conftest.$ac_objext'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; }; then
27240 ac_header_compiler=yes
27242 echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27245 ac_header_compiler=no
27247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27249 echo "${ECHO_T}$ac_header_compiler" >&6
27251 # Is the header present?
27252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27254 cat >conftest.$ac_ext <<_ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h. */
27260 #include <$ac_header>
27262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27265 grep -v '^ *+' conftest.er1 >conftest.err
27267 cat conftest.err >&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } >/dev/null; then
27270 if test -s conftest.err; then
27271 ac_cpp_err=$ac_c_preproc_warn_flag
27272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27279 if test -z "$ac_cpp_err"; then
27280 ac_header_preproc=yes
27282 echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27285 ac_header_preproc=no
27287 rm -f conftest.err conftest.$ac_ext
27288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27289 echo "${ECHO_T}$ac_header_preproc" >&6
27291 # So? What about this header?
27292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27298 ac_header_preproc=yes
27301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27315 ## ------------------------------------------ ##
27316 ## Report this to the AC_PACKAGE_NAME lists. ##
27317 ## ------------------------------------------ ##
27320 sed "s/^/$as_me: WARNING: /" >&2
27323 echo "$as_me:$LINENO: checking for $ac_header" >&5
27324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27328 eval "$as_ac_Header=\$ac_header_preproc"
27330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27335 cat >>confdefs.h <<_ACEOF
27336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27343 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
27344 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
27345 if test "${cf_cv_arg_union_wait+set}" = set; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 cat >conftest.$ac_ext <<_ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h. */
27355 #include <sys/types.h>
27357 #if HAVE_SYS_WAIT_H
27358 # include <sys/wait.h>
27366 pid_t wait(union wait *);
27373 union wait x; int i;
27374 wait(&x); i = WIFEXITED(x)
27380 rm -f conftest.$ac_objext
27381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27382 (eval $ac_compile) 2>conftest.er1
27384 grep -v '^ *+' conftest.er1 >conftest.err
27386 cat conftest.err >&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); } &&
27389 { ac_try='test -z "$ac_c_werror_flag"
27390 || test ! -s conftest.err'
27391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392 (eval $ac_try) 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; } &&
27396 { ac_try='test -s conftest.$ac_objext'
27397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398 (eval $ac_try) 2>&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); }; }; then
27402 cf_cv_arg_union_wait=yes
27404 echo "$as_me: failed program was:" >&5
27405 sed 's/^/| /' conftest.$ac_ext >&5
27407 cf_cv_arg_union_wait=no
27409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27411 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
27412 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
27413 if test $cf_cv_arg_union_wait = yes; then
27415 cat >>confdefs.h <<\_ACEOF
27416 #define WAIT_USES_UNION 1
27425 for ac_header in sys/wait.h wait.h
27427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27429 echo "$as_me:$LINENO: checking for $ac_header" >&5
27430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27432 echo $ECHO_N "(cached) $ECHO_C" >&6
27434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27437 # Is the header compilable?
27438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27440 cat >conftest.$ac_ext <<_ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446 $ac_includes_default
27447 #include <$ac_header>
27449 rm -f conftest.$ac_objext
27450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27451 (eval $ac_compile) 2>conftest.er1
27453 grep -v '^ *+' conftest.er1 >conftest.err
27455 cat conftest.err >&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } &&
27458 { ac_try='test -z "$ac_c_werror_flag"
27459 || test ! -s conftest.err'
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest.$ac_objext'
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; }; then
27471 ac_header_compiler=yes
27473 echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27476 ac_header_compiler=no
27478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27480 echo "${ECHO_T}$ac_header_compiler" >&6
27482 # Is the header present?
27483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27485 cat >conftest.$ac_ext <<_ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27491 #include <$ac_header>
27493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27496 grep -v '^ *+' conftest.er1 >conftest.err
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } >/dev/null; then
27501 if test -s conftest.err; then
27502 ac_cpp_err=$ac_c_preproc_warn_flag
27503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27510 if test -z "$ac_cpp_err"; then
27511 ac_header_preproc=yes
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27516 ac_header_preproc=no
27518 rm -f conftest.err conftest.$ac_ext
27519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27520 echo "${ECHO_T}$ac_header_preproc" >&6
27522 # So? What about this header?
27523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27529 ac_header_preproc=yes
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27546 ## ------------------------------------------ ##
27547 ## Report this to the AC_PACKAGE_NAME lists. ##
27548 ## ------------------------------------------ ##
27551 sed "s/^/$as_me: WARNING: /" >&2
27554 echo "$as_me:$LINENO: checking for $ac_header" >&5
27555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27559 eval "$as_ac_Header=\$ac_header_preproc"
27561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27566 cat >>confdefs.h <<_ACEOF
27567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27574 echo "$as_me:$LINENO: checking whether wait uses int" >&5
27575 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
27576 if test "${cf_cv_arg_int+set}" = set; then
27577 echo $ECHO_N "(cached) $ECHO_C" >&6
27579 cat >conftest.$ac_ext <<_ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h. */
27586 #include <sys/types.h>
27588 #if HAVE_SYS_WAIT_H
27589 # include <sys/wait.h>
27605 wait(&x); i = WIFEXITED(x)
27611 rm -f conftest.$ac_objext
27612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27613 (eval $ac_compile) 2>conftest.er1
27615 grep -v '^ *+' conftest.er1 >conftest.err
27617 cat conftest.err >&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } &&
27620 { ac_try='test -z "$ac_c_werror_flag"
27621 || test ! -s conftest.err'
27622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623 (eval $ac_try) 2>&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); }; } &&
27627 { ac_try='test -s conftest.$ac_objext'
27628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; }; then
27635 echo "$as_me: failed program was:" >&5
27636 sed 's/^/| /' conftest.$ac_ext >&5
27640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27642 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
27643 echo "${ECHO_T}$cf_cv_arg_int" >&6
27644 if test $cf_cv_arg_int = yes; then
27646 cat >>confdefs.h <<\_ACEOF
27647 #define WAIT_USES_INT 1
27652 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27653 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
27654 if test "${ac_cv_header_time+set}" = set; then
27655 echo $ECHO_N "(cached) $ECHO_C" >&6
27657 cat >conftest.$ac_ext <<_ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27663 #include <sys/types.h>
27664 #include <sys/time.h>
27670 if ((struct tm *) 0)
27676 rm -f conftest.$ac_objext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27678 (eval $ac_compile) 2>conftest.er1
27680 grep -v '^ *+' conftest.er1 >conftest.err
27682 cat conftest.err >&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag"
27686 || test ! -s conftest.err'
27687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688 (eval $ac_try) 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; } &&
27692 { ac_try='test -s conftest.$ac_objext'
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; }; then
27698 ac_cv_header_time=yes
27700 echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27703 ac_cv_header_time=no
27705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27707 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27708 echo "${ECHO_T}$ac_cv_header_time" >&6
27709 if test $ac_cv_header_time = yes; then
27711 cat >>confdefs.h <<\_ACEOF
27712 #define TIME_WITH_SYS_TIME 1
27778 cam/scsi/scsi_message.h \
27794 netinet/in_systm.h \
27796 readline/history.h \
27797 readline/readline.h \
27799 scsi/scsi_ioctl.h \
27817 sys/scsi/impl/uscsi.h \
27818 sys/scsi/scsi/ioctl.h \
27834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27836 echo "$as_me:$LINENO: checking for $ac_header" >&5
27837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27844 # Is the header compilable?
27845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27847 cat >conftest.$ac_ext <<_ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27853 $ac_includes_default
27854 #include <$ac_header>
27856 rm -f conftest.$ac_objext
27857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27858 (eval $ac_compile) 2>conftest.er1
27860 grep -v '^ *+' conftest.er1 >conftest.err
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } &&
27865 { ac_try='test -z "$ac_c_werror_flag"
27866 || test ! -s conftest.err'
27867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27868 (eval $ac_try) 2>&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; } &&
27872 { ac_try='test -s conftest.$ac_objext'
27873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874 (eval $ac_try) 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; }; then
27878 ac_header_compiler=yes
27880 echo "$as_me: failed program was:" >&5
27881 sed 's/^/| /' conftest.$ac_ext >&5
27883 ac_header_compiler=no
27885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27887 echo "${ECHO_T}$ac_header_compiler" >&6
27889 # Is the header present?
27890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27892 cat >conftest.$ac_ext <<_ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27898 #include <$ac_header>
27900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27903 grep -v '^ *+' conftest.er1 >conftest.err
27905 cat conftest.err >&5
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); } >/dev/null; then
27908 if test -s conftest.err; then
27909 ac_cpp_err=$ac_c_preproc_warn_flag
27910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27917 if test -z "$ac_cpp_err"; then
27918 ac_header_preproc=yes
27920 echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27923 ac_header_preproc=no
27925 rm -f conftest.err conftest.$ac_ext
27926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27927 echo "${ECHO_T}$ac_header_preproc" >&6
27929 # So? What about this header?
27930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27936 ac_header_preproc=yes
27939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27953 ## ------------------------------------------ ##
27954 ## Report this to the AC_PACKAGE_NAME lists. ##
27955 ## ------------------------------------------ ##
27958 sed "s/^/$as_me: WARNING: /" >&2
27961 echo "$as_me:$LINENO: checking for $ac_header" >&5
27962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27964 echo $ECHO_N "(cached) $ECHO_C" >&6
27966 eval "$as_ac_Header=\$ac_header_preproc"
27968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973 cat >>confdefs.h <<_ACEOF
27974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27983 for ac_header in netinet/ip.h
27985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986 echo "$as_me:$LINENO: checking for $ac_header" >&5
27987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27991 cat >conftest.$ac_ext <<_ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h. */
27997 #include <sys/socket.h>
27998 #if HAVE_SYS_TYPES_H
27999 #include <sys/types.h>
28001 #ifdef HAVE_NETINET_IN_SYSTM_H
28002 #include <netinet/in_systm.h>
28004 #include <netinet/in.h>
28007 #include <$ac_header>
28009 rm -f conftest.$ac_objext
28010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28011 (eval $ac_compile) 2>conftest.er1
28013 grep -v '^ *+' conftest.er1 >conftest.err
28015 cat conftest.err >&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } &&
28018 { ac_try='test -z "$ac_c_werror_flag"
28019 || test ! -s conftest.err'
28020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021 (eval $ac_try) 2>&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); }; } &&
28025 { ac_try='test -s conftest.$ac_objext'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; }; then
28031 eval "$as_ac_Header=yes"
28033 echo "$as_me: failed program was:" >&5
28034 sed 's/^/| /' conftest.$ac_ext >&5
28036 eval "$as_ac_Header=no"
28038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28043 cat >>confdefs.h <<_ACEOF
28044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28053 for ac_header in sys/mount.h
28055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28056 echo "$as_me:$LINENO: checking for $ac_header" >&5
28057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
28061 cat >conftest.$ac_ext <<_ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h. */
28067 #ifdef HAVE_SYS_PARAM_H
28068 #include <sys/param.h>
28072 #include <$ac_header>
28074 rm -f conftest.$ac_objext
28075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28076 (eval $ac_compile) 2>conftest.er1
28078 grep -v '^ *+' conftest.er1 >conftest.err
28080 cat conftest.err >&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } &&
28083 { ac_try='test -z "$ac_c_werror_flag"
28084 || test ! -s conftest.err'
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; } &&
28090 { ac_try='test -s conftest.$ac_objext'
28091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28092 (eval $ac_try) 2>&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; }; then
28096 eval "$as_ac_Header=yes"
28098 echo "$as_me: failed program was:" >&5
28099 sed 's/^/| /' conftest.$ac_ext >&5
28101 eval "$as_ac_Header=no"
28103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28108 cat >>confdefs.h <<_ACEOF
28109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28117 NO_SCSI_CHANGER_MODE=true
28118 NO_CHIO_CHANGER_MODE=true
28120 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28121 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28122 if test "${ac_cv_c_bigendian+set}" = set; then
28123 echo $ECHO_N "(cached) $ECHO_C" >&6
28125 # See if sys/param.h defines the BYTE_ORDER macro.
28126 cat >conftest.$ac_ext <<_ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h. */
28132 #include <sys/types.h>
28133 #include <sys/param.h>
28138 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28139 bogus endian macros
28146 rm -f conftest.$ac_objext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28148 (eval $ac_compile) 2>conftest.er1
28150 grep -v '^ *+' conftest.er1 >conftest.err
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
28155 { ac_try='test -z "$ac_c_werror_flag"
28156 || test ! -s conftest.err'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest.$ac_objext'
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
28168 # It does; now see whether it defined to BIG_ENDIAN or not.
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28175 #include <sys/types.h>
28176 #include <sys/param.h>
28181 #if BYTE_ORDER != BIG_ENDIAN
28189 rm -f conftest.$ac_objext
28190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28191 (eval $ac_compile) 2>conftest.er1
28193 grep -v '^ *+' conftest.er1 >conftest.err
28195 cat conftest.err >&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } &&
28198 { ac_try='test -z "$ac_c_werror_flag"
28199 || test ! -s conftest.err'
28200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28201 (eval $ac_try) 2>&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); }; } &&
28205 { ac_try='test -s conftest.$ac_objext'
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; }; then
28211 ac_cv_c_bigendian=yes
28213 echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.$ac_ext >&5
28216 ac_cv_c_bigendian=no
28218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28223 # It does not; compile a test program.
28224 if test "$cross_compiling" = yes; then
28225 # try to guess the endianness by grepping values into an object file
28226 ac_cv_c_bigendian=unknown
28227 cat >conftest.$ac_ext <<_ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h. */
28233 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28234 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28235 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28236 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28237 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28238 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28242 _ascii (); _ebcdic ();
28247 rm -f conftest.$ac_objext
28248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28249 (eval $ac_compile) 2>conftest.er1
28251 grep -v '^ *+' conftest.er1 >conftest.err
28253 cat conftest.err >&5
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); } &&
28256 { ac_try='test -z "$ac_c_werror_flag"
28257 || test ! -s conftest.err'
28258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259 (eval $ac_try) 2>&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; } &&
28263 { ac_try='test -s conftest.$ac_objext'
28264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265 (eval $ac_try) 2>&5
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); }; }; then
28269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28270 ac_cv_c_bigendian=yes
28272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28273 if test "$ac_cv_c_bigendian" = unknown; then
28274 ac_cv_c_bigendian=no
28276 # finding both strings is unlikely to happen, but who knows?
28277 ac_cv_c_bigendian=unknown
28281 echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28287 cat >conftest.$ac_ext <<_ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h. */
28296 /* Are we little or big endian? From Harbison&Steele. */
28300 char c[sizeof (long)];
28303 exit (u.c[sizeof (long) - 1] == 1);
28306 rm -f conftest$ac_exeext
28307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28308 (eval $ac_link) 2>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ac_cv_c_bigendian=no
28319 echo "$as_me: program exited with status $ac_status" >&5
28320 echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.$ac_ext >&5
28323 ( exit $ac_status )
28324 ac_cv_c_bigendian=yes
28326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28331 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28332 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28333 case $ac_cv_c_bigendian in
28336 cat >>confdefs.h <<\_ACEOF
28337 #define WORDS_BIGENDIAN 1
28343 { { echo "$as_me:$LINENO: error: unknown endianness
28344 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28345 echo "$as_me: error: unknown endianness
28346 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28347 { (exit 1); exit 1; }; } ;;
28351 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28352 echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
28353 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
28354 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
28355 echo $ECHO_N "(cached) $ECHO_C" >&6
28357 cat >conftest.$ac_ext <<_ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h. */
28364 #include <sys/scsi.h>
28370 static struct element_addresses changer_info;
28371 int i = SIOC_ELEMENT_ADDRESSES;
28372 int j = SIOC_ELEMENT_STATUS;
28373 int k = SIOC_MOVE_MEDIUM;
28379 rm -f conftest.$ac_objext
28380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28381 (eval $ac_compile) 2>conftest.er1
28383 grep -v '^ *+' conftest.er1 >conftest.err
28385 cat conftest.err >&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
28388 { ac_try='test -z "$ac_c_werror_flag"
28389 || test ! -s conftest.err'
28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391 (eval $ac_try) 2>&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; } &&
28395 { ac_try='test -s conftest.$ac_objext'
28396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397 (eval $ac_try) 2>&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; }; then
28401 amanda_cv_hpux_scsi_chio=yes
28403 echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28406 amanda_cv_hpux_scsi_chio=no
28408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28410 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
28411 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
28412 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
28414 cat >>confdefs.h <<\_ACEOF
28415 #define HAVE_HPUX_SCSI_CHIO 1
28418 NO_SCSI_CHANGER_MODE=false
28422 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28423 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
28424 echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
28425 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
28426 if test "${amanda_cv_linux_scsi+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28429 cat >conftest.$ac_ext <<_ACEOF
28432 cat confdefs.h >>conftest.$ac_ext
28433 cat >>conftest.$ac_ext <<_ACEOF
28434 /* end confdefs.h. */
28436 #include <scsi/scsi_ioctl.h>
28437 #include <sys/mtio.h>
28445 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
28451 rm -f conftest.$ac_objext
28452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28453 (eval $ac_compile) 2>conftest.er1
28455 grep -v '^ *+' conftest.er1 >conftest.err
28457 cat conftest.err >&5
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } &&
28460 { ac_try='test -z "$ac_c_werror_flag"
28461 || test ! -s conftest.err'
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest.$ac_objext'
28468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469 (eval $ac_try) 2>&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; }; then
28473 amanda_cv_linux_scsi=yes
28475 echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28478 amanda_cv_linux_scsi=no
28480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28482 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
28483 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
28486 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28487 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
28488 echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
28489 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
28490 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
28491 echo $ECHO_N "(cached) $ECHO_C" >&6
28493 cat >conftest.$ac_ext <<_ACEOF
28496 cat confdefs.h >>conftest.$ac_ext
28497 cat >>conftest.$ac_ext <<_ACEOF
28498 /* end confdefs.h. */
28500 #include <scsi/sg.h>
28501 #include <sys/mtio.h>
28508 struct sg_header *psg_header;
28510 write(device, buffer, 1);
28516 rm -f conftest.$ac_objext
28517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28518 (eval $ac_compile) 2>conftest.er1
28520 grep -v '^ *+' conftest.er1 >conftest.err
28522 cat conftest.err >&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } &&
28525 { ac_try='test -z "$ac_c_werror_flag"
28526 || test ! -s conftest.err'
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; } &&
28532 { ac_try='test -s conftest.$ac_objext'
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; }; then
28538 amanda_cv_linux_sg_scsi=yes
28540 echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28543 amanda_cv_linux_sg_scsi=no
28545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28547 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
28548 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
28551 if test x"$amanda_cv_linux_scsi" = x"yes" ||
28552 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
28554 cat >>confdefs.h <<\_ACEOF
28555 #define HAVE_LINUX_LIKE_SCSI 1
28558 NO_SCSI_CHANGER_MODE=false
28561 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28562 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28563 echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
28564 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
28565 if test "${amanda_cv_hpux_scsi+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28576 #include <sys/ioctl.h>
28577 #include <sys/scsi.h>
28578 #include <sys/mtio.h>
28586 ioctl(device, SIOC_IO, Command);
28592 rm -f conftest.$ac_objext
28593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28594 (eval $ac_compile) 2>conftest.er1
28596 grep -v '^ *+' conftest.er1 >conftest.err
28598 cat conftest.err >&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } &&
28601 { ac_try='test -z "$ac_c_werror_flag"
28602 || test ! -s conftest.err'
28603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604 (eval $ac_try) 2>&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); }; } &&
28608 { ac_try='test -s conftest.$ac_objext'
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; }; then
28614 amanda_cv_hpux_scsi=yes
28616 echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28619 amanda_cv_hpux_scsi=no
28621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28623 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
28624 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
28625 if test x"$amanda_cv_hpux_scsi" = x"yes";then
28627 cat >>confdefs.h <<\_ACEOF
28628 #define HAVE_HPUX_LIKE_SCSI 1
28631 NO_SCSI_CHANGER_MODE=false
28632 NO_CHIO_CHANGER_MODE=false
28636 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28637 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
28638 echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
28639 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
28640 if test "${amanda_cv_irix_scsi+set}" = set; then
28641 echo $ECHO_N "(cached) $ECHO_C" >&6
28643 cat >conftest.$ac_ext <<_ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h. */
28650 #include <sys/types.h>
28651 #include <sys/dsreq.h>
28652 #include <sys/mtio.h>
28660 ioctl(device, DS_ENTER, &Command);
28666 rm -f conftest.$ac_objext
28667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28668 (eval $ac_compile) 2>conftest.er1
28670 grep -v '^ *+' conftest.er1 >conftest.err
28672 cat conftest.err >&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); } &&
28675 { ac_try='test -z "$ac_c_werror_flag"
28676 || test ! -s conftest.err'
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; } &&
28682 { ac_try='test -s conftest.$ac_objext'
28683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28684 (eval $ac_try) 2>&5
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); }; }; then
28688 amanda_cv_irix_scsi=yes
28690 echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28693 amanda_cv_irix_scsi=no
28695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28697 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
28698 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
28699 if test x"$amanda_cv_irix_scsi" = x"yes";then
28701 cat >>confdefs.h <<\_ACEOF
28702 #define HAVE_IRIX_LIKE_SCSI 1
28705 NO_SCSI_CHANGER_MODE=false
28709 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28710 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
28711 echo "$as_me:$LINENO: checking for Solaris like scsi support" >&5
28712 echo $ECHO_N "checking for Solaris like scsi support... $ECHO_C" >&6
28713 if test "${amanda_cv_solaris_scsi+set}" = set; then
28714 echo $ECHO_N "(cached) $ECHO_C" >&6
28716 cat >conftest.$ac_ext <<_ACEOF
28719 cat confdefs.h >>conftest.$ac_ext
28720 cat >>conftest.$ac_ext <<_ACEOF
28721 /* end confdefs.h. */
28723 #include <sys/types.h>
28724 #include <sys/scsi/impl/uscsi.h>
28725 #include <sys/mtio.h>
28733 ioctl(device, USCSICMD, Command);
28739 rm -f conftest.$ac_objext
28740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28741 (eval $ac_compile) 2>conftest.er1
28743 grep -v '^ *+' conftest.er1 >conftest.err
28745 cat conftest.err >&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } &&
28748 { ac_try='test -z "$ac_c_werror_flag"
28749 || test ! -s conftest.err'
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; } &&
28755 { ac_try='test -s conftest.$ac_objext'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; }; then
28761 amanda_cv_solaris_scsi=yes
28763 echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28766 amanda_cv_solaris_scsi=no
28768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28770 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
28771 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
28772 if test x"$amanda_cv_solaris_scsi" = x"yes";then
28774 cat >>confdefs.h <<\_ACEOF
28775 #define HAVE_SOLARIS_LIKE_SCSI 1
28778 NO_SCSI_CHANGER_MODE=false
28782 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
28783 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
28784 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
28785 echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
28786 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
28787 if test "${amanda_cv_aix_scsi+set}" = set; then
28788 echo $ECHO_N "(cached) $ECHO_C" >&6
28790 cat >conftest.$ac_ext <<_ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28797 #include <sys/types.h>
28798 #include <sys/scarray.h>
28799 #include <sys/tape.h>
28807 ioctl(device, STIOCMD, Command);
28813 rm -f conftest.$ac_objext
28814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28815 (eval $ac_compile) 2>conftest.er1
28817 grep -v '^ *+' conftest.er1 >conftest.err
28819 cat conftest.err >&5
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); } &&
28822 { ac_try='test -z "$ac_c_werror_flag"
28823 || test ! -s conftest.err'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; } &&
28829 { ac_try='test -s conftest.$ac_objext'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; }; then
28835 amanda_cv_aix_scsi=yes
28837 echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28840 amanda_cv_aix_scsi=no
28842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28844 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
28845 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
28846 if test x"$amanda_cv_aix_scsi" = x"yes";then
28848 cat >>confdefs.h <<\_ACEOF
28849 #define HAVE_AIX_LIKE_SCSI 1
28852 NO_SCSI_CHANGER_MODE=false
28855 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
28856 echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
28857 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
28858 if test "${amanda_cv_cam_scsi+set}" = set; then
28859 echo $ECHO_N "(cached) $ECHO_C" >&6
28861 cat >conftest.$ac_ext <<_ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28869 # include <fcntl.h>
28870 # include <cam/cam.h>
28871 # include <cam/cam_ccb.h>
28872 # include <cam/scsi/scsi_message.h>
28873 # include <cam/scsi/scsi_pass.h>
28874 # include <camlib.h>
28880 struct cam_device *curdev;
28882 curdev = cam_open_pass("", O_RDWR, NULL);
28888 rm -f conftest.$ac_objext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28890 (eval $ac_compile) 2>conftest.er1
28892 grep -v '^ *+' conftest.er1 >conftest.err
28894 cat conftest.err >&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } &&
28897 { ac_try='test -z "$ac_c_werror_flag"
28898 || test ! -s conftest.err'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; } &&
28904 { ac_try='test -s conftest.$ac_objext'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
28910 amanda_cv_cam_scsi=yes
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28915 amanda_cv_cam_scsi=no
28917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28919 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
28920 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
28921 if test x"$amanda_cv_cam_scsi" = x"yes";then
28923 cat >>confdefs.h <<\_ACEOF
28924 #define HAVE_CAM_LIKE_SCSI 1
28927 NO_SCSI_CHANGER_MODE=false
28929 echo "$as_me:$LINENO: checking for main in -lcam" >&5
28930 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
28931 if test "${ac_cv_lib_cam_main+set}" = set; then
28932 echo $ECHO_N "(cached) $ECHO_C" >&6
28934 ac_check_lib_save_LIBS=$LIBS
28936 cat >conftest.$ac_ext <<_ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h. */
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28954 (eval $ac_link) 2>conftest.er1
28956 grep -v '^ *+' conftest.er1 >conftest.err
28958 cat conftest.err >&5
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); } &&
28961 { ac_try='test -z "$ac_c_werror_flag"
28962 || test ! -s conftest.err'
28963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28964 (eval $ac_try) 2>&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); }; } &&
28968 { ac_try='test -s conftest$ac_exeext'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; }; then
28974 ac_cv_lib_cam_main=yes
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 ac_cv_lib_cam_main=no
28981 rm -f conftest.err conftest.$ac_objext \
28982 conftest$ac_exeext conftest.$ac_ext
28983 LIBS=$ac_check_lib_save_LIBS
28985 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
28986 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
28987 if test $ac_cv_lib_cam_main = yes; then
28988 cat >>confdefs.h <<_ACEOF
28989 #define HAVE_LIBCAM 1
28999 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29000 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
29001 echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
29002 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
29003 if test "${amanda_cv_bsd_scsi+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29006 cat >conftest.$ac_ext <<_ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h. */
29013 #include <sys/types.h>
29014 #include <sys/scsiio.h>
29015 #include <sys/mtio.h>
29023 ioctl(device, SCIOCCOMMAND, &Command);
29029 rm -f conftest.$ac_objext
29030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29031 (eval $ac_compile) 2>conftest.er1
29033 grep -v '^ *+' conftest.er1 >conftest.err
29035 cat conftest.err >&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); } &&
29038 { ac_try='test -z "$ac_c_werror_flag"
29039 || test ! -s conftest.err'
29040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041 (eval $ac_try) 2>&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); }; } &&
29045 { ac_try='test -s conftest.$ac_objext'
29046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047 (eval $ac_try) 2>&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); }; }; then
29051 amanda_cv_bsd_scsi=yes
29053 echo "$as_me: failed program was:" >&5
29054 sed 's/^/| /' conftest.$ac_ext >&5
29056 amanda_cv_bsd_scsi=no
29058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29060 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
29061 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
29062 if test x"$amanda_cv_bsd_scsi" = x"yes";then
29064 cat >>confdefs.h <<\_ACEOF
29065 #define HAVE_BSD_LIKE_SCSI 1
29068 NO_SCSI_CHANGER_MODE=false
29072 if test x"$ac_cv_header_chio_h" = x"yes" ||
29073 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
29074 if test x"$ac_cv_header_camlib_h" != x"yes"; then
29075 if $NO_SCSI_CHANGER_MODE; then
29076 NO_SCSI_CHANGER_MODE=false
29078 NO_CHIO_CHANGER_MODE=false
29084 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
29085 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
29086 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29089 ac_check_lib_save_LIBS=$LIBS
29090 LIBS="-lcur_colr $LIBS"
29091 cat >conftest.$ac_ext <<_ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h. */
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29109 (eval $ac_link) 2>conftest.er1
29111 grep -v '^ *+' conftest.er1 >conftest.err
29113 cat conftest.err >&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); } &&
29116 { ac_try='test -z "$ac_c_werror_flag"
29117 || test ! -s conftest.err'
29118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119 (eval $ac_try) 2>&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest$ac_exeext'
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; }; then
29129 ac_cv_lib_cur_colr_main=yes
29131 echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29134 ac_cv_lib_cur_colr_main=no
29136 rm -f conftest.err conftest.$ac_objext \
29137 conftest$ac_exeext conftest.$ac_ext
29138 LIBS=$ac_check_lib_save_LIBS
29140 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
29141 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
29142 if test $ac_cv_lib_cur_colr_main = yes; then
29143 cat >>confdefs.h <<_ACEOF
29144 #define HAVE_LIBCUR_COLR 1
29147 LIBS="-lcur_colr $LIBS"
29153 echo "$as_me:$LINENO: checking for main in -lintl" >&5
29154 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
29155 if test "${ac_cv_lib_intl_main+set}" = set; then
29156 echo $ECHO_N "(cached) $ECHO_C" >&6
29158 ac_check_lib_save_LIBS=$LIBS
29159 LIBS="-lintl $LIBS"
29160 cat >conftest.$ac_ext <<_ACEOF
29163 cat confdefs.h >>conftest.$ac_ext
29164 cat >>conftest.$ac_ext <<_ACEOF
29165 /* end confdefs.h. */
29176 rm -f conftest.$ac_objext conftest$ac_exeext
29177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29178 (eval $ac_link) 2>conftest.er1
29180 grep -v '^ *+' conftest.er1 >conftest.err
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } &&
29185 { ac_try='test -z "$ac_c_werror_flag"
29186 || test ! -s conftest.err'
29187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188 (eval $ac_try) 2>&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); }; } &&
29192 { ac_try='test -s conftest$ac_exeext'
29193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29194 (eval $ac_try) 2>&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); }; }; then
29198 ac_cv_lib_intl_main=yes
29200 echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29203 ac_cv_lib_intl_main=no
29205 rm -f conftest.err conftest.$ac_objext \
29206 conftest$ac_exeext conftest.$ac_ext
29207 LIBS=$ac_check_lib_save_LIBS
29209 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
29210 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
29211 if test $ac_cv_lib_intl_main = yes; then
29212 cat >>confdefs.h <<_ACEOF
29213 #define HAVE_LIBINTL 1
29216 LIBS="-lintl $LIBS"
29224 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29225 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29226 if test "${ac_cv_lib_socket_main+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29229 ac_check_lib_save_LIBS=$LIBS
29230 LIBS="-lsocket $LIBS"
29231 cat >conftest.$ac_ext <<_ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h. */
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249 (eval $ac_link) 2>conftest.er1
29251 grep -v '^ *+' conftest.er1 >conftest.err
29253 cat conftest.err >&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
29256 { ac_try='test -z "$ac_c_werror_flag"
29257 || test ! -s conftest.err'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; } &&
29263 { ac_try='test -s conftest$ac_exeext'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; }; then
29269 ac_cv_lib_socket_main=yes
29271 echo "$as_me: failed program was:" >&5
29272 sed 's/^/| /' conftest.$ac_ext >&5
29274 ac_cv_lib_socket_main=no
29276 rm -f conftest.err conftest.$ac_objext \
29277 conftest$ac_exeext conftest.$ac_ext
29278 LIBS=$ac_check_lib_save_LIBS
29280 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29281 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29282 if test $ac_cv_lib_socket_main = yes; then
29283 cat >>confdefs.h <<_ACEOF
29284 #define HAVE_LIBSOCKET 1
29287 LIBS="-lsocket $LIBS"
29294 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
29295 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
29296 if test "${ac_cv_lib_nsl_main+set}" = set; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29299 ac_check_lib_save_LIBS=$LIBS
29301 cat >conftest.$ac_ext <<_ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h. */
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319 (eval $ac_link) 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
29326 { ac_try='test -z "$ac_c_werror_flag"
29327 || test ! -s conftest.err'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest$ac_exeext'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29339 ac_cv_lib_nsl_main=yes
29341 echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29344 ac_cv_lib_nsl_main=no
29346 rm -f conftest.err conftest.$ac_objext \
29347 conftest$ac_exeext conftest.$ac_ext
29348 LIBS=$ac_check_lib_save_LIBS
29350 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
29351 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
29352 if test $ac_cv_lib_nsl_main = yes; then
29353 cat >>confdefs.h <<_ACEOF
29354 #define HAVE_LIBNSL 1
29362 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29363 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29364 if test "${ac_cv_lib_socket_main+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 ac_check_lib_save_LIBS=$LIBS
29368 LIBS="-lsocket $LIBS"
29369 cat >conftest.$ac_ext <<_ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29385 rm -f conftest.$ac_objext conftest$ac_exeext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29387 (eval $ac_link) 2>conftest.er1
29389 grep -v '^ *+' conftest.er1 >conftest.err
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } &&
29394 { ac_try='test -z "$ac_c_werror_flag"
29395 || test ! -s conftest.err'
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; } &&
29401 { ac_try='test -s conftest$ac_exeext'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407 ac_cv_lib_socket_main=yes
29409 echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29412 ac_cv_lib_socket_main=no
29414 rm -f conftest.err conftest.$ac_objext \
29415 conftest$ac_exeext conftest.$ac_ext
29416 LIBS=$ac_check_lib_save_LIBS
29418 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29419 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29420 if test $ac_cv_lib_socket_main = yes; then
29421 cat >>confdefs.h <<_ACEOF
29422 #define HAVE_LIBSOCKET 1
29425 LIBS="-lsocket $LIBS"
29430 echo "$as_me:$LINENO: checking for main in -lsun" >&5
29431 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
29432 if test "${ac_cv_lib_sun_main+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29435 ac_check_lib_save_LIBS=$LIBS
29437 cat >conftest.$ac_ext <<_ACEOF
29440 cat confdefs.h >>conftest.$ac_ext
29441 cat >>conftest.$ac_ext <<_ACEOF
29442 /* end confdefs.h. */
29453 rm -f conftest.$ac_objext conftest$ac_exeext
29454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29455 (eval $ac_link) 2>conftest.er1
29457 grep -v '^ *+' conftest.er1 >conftest.err
29459 cat conftest.err >&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); } &&
29462 { ac_try='test -z "$ac_c_werror_flag"
29463 || test ! -s conftest.err'
29464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; } &&
29469 { ac_try='test -s conftest$ac_exeext'
29470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471 (eval $ac_try) 2>&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); }; }; then
29475 ac_cv_lib_sun_main=yes
29477 echo "$as_me: failed program was:" >&5
29478 sed 's/^/| /' conftest.$ac_ext >&5
29480 ac_cv_lib_sun_main=no
29482 rm -f conftest.err conftest.$ac_objext \
29483 conftest$ac_exeext conftest.$ac_ext
29484 LIBS=$ac_check_lib_save_LIBS
29486 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
29487 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
29488 if test $ac_cv_lib_sun_main = yes; then
29489 cat >>confdefs.h <<_ACEOF
29490 #define HAVE_LIBSUN 1
29501 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29502 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
29503 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29504 echo $ECHO_N "(cached) $ECHO_C" >&6
29506 ac_check_lib_save_LIBS=$LIBS
29507 LIBS="-ltermcap $LIBS"
29508 cat >conftest.$ac_ext <<_ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h. */
29515 /* Override any gcc2 internal prototype to avoid an error. */
29519 /* We use char because int might match the return type of a gcc2
29520 builtin and then its argument prototype would still apply. */
29530 rm -f conftest.$ac_objext conftest$ac_exeext
29531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29532 (eval $ac_link) 2>conftest.er1
29534 grep -v '^ *+' conftest.er1 >conftest.err
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } &&
29539 { ac_try='test -z "$ac_c_werror_flag"
29540 || test ! -s conftest.err'
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; } &&
29546 { ac_try='test -s conftest$ac_exeext'
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; }; then
29552 ac_cv_lib_termcap_tgetent=yes
29554 echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29557 ac_cv_lib_termcap_tgetent=no
29559 rm -f conftest.err conftest.$ac_objext \
29560 conftest$ac_exeext conftest.$ac_ext
29561 LIBS=$ac_check_lib_save_LIBS
29563 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29564 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
29565 if test $ac_cv_lib_termcap_tgetent = yes; then
29566 cat >>confdefs.h <<_ACEOF
29567 #define HAVE_LIBTERMCAP 1
29570 LIBS="-ltermcap $LIBS"
29574 if test "$ac_cv_lib_termcap_tgetent" != yes; then
29576 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29577 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
29578 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
29579 echo $ECHO_N "(cached) $ECHO_C" >&6
29581 ac_check_lib_save_LIBS=$LIBS
29582 LIBS="-lcurses $LIBS"
29583 cat >conftest.$ac_ext <<_ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29590 /* Override any gcc2 internal prototype to avoid an error. */
29594 /* We use char because int might match the return type of a gcc2
29595 builtin and then its argument prototype would still apply. */
29605 rm -f conftest.$ac_objext conftest$ac_exeext
29606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29607 (eval $ac_link) 2>conftest.er1
29609 grep -v '^ *+' conftest.er1 >conftest.err
29611 cat conftest.err >&5
29612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613 (exit $ac_status); } &&
29614 { ac_try='test -z "$ac_c_werror_flag"
29615 || test ! -s conftest.err'
29616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29617 (eval $ac_try) 2>&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); }; } &&
29621 { ac_try='test -s conftest$ac_exeext'
29622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623 (eval $ac_try) 2>&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; }; then
29627 ac_cv_lib_curses_tgetent=yes
29629 echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29632 ac_cv_lib_curses_tgetent=no
29634 rm -f conftest.err conftest.$ac_objext \
29635 conftest$ac_exeext conftest.$ac_ext
29636 LIBS=$ac_check_lib_save_LIBS
29638 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29639 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
29640 if test $ac_cv_lib_curses_tgetent = yes; then
29641 cat >>confdefs.h <<_ACEOF
29642 #define HAVE_LIBCURSES 1
29645 LIBS="-lcurses $LIBS"
29649 if test "$ac_cv_lib_curses_tgetent" != yes; then
29651 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29652 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
29653 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
29654 echo $ECHO_N "(cached) $ECHO_C" >&6
29656 ac_check_lib_save_LIBS=$LIBS
29657 LIBS="-lncurses $LIBS"
29658 cat >conftest.$ac_ext <<_ACEOF
29661 cat confdefs.h >>conftest.$ac_ext
29662 cat >>conftest.$ac_ext <<_ACEOF
29663 /* end confdefs.h. */
29665 /* Override any gcc2 internal prototype to avoid an error. */
29669 /* We use char because int might match the return type of a gcc2
29670 builtin and then its argument prototype would still apply. */
29680 rm -f conftest.$ac_objext conftest$ac_exeext
29681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29682 (eval $ac_link) 2>conftest.er1
29684 grep -v '^ *+' conftest.er1 >conftest.err
29686 cat conftest.err >&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
29689 { ac_try='test -z "$ac_c_werror_flag"
29690 || test ! -s conftest.err'
29691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29692 (eval $ac_try) 2>&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; } &&
29696 { ac_try='test -s conftest$ac_exeext'
29697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29698 (eval $ac_try) 2>&5
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); }; }; then
29702 ac_cv_lib_ncurses_tgetent=yes
29704 echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29707 ac_cv_lib_ncurses_tgetent=no
29709 rm -f conftest.err conftest.$ac_objext \
29710 conftest$ac_exeext conftest.$ac_ext
29711 LIBS=$ac_check_lib_save_LIBS
29713 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29714 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
29715 if test $ac_cv_lib_ncurses_tgetent = yes; then
29716 cat >>confdefs.h <<_ACEOF
29717 #define HAVE_LIBNCURSES 1
29720 LIBS="-lncurses $LIBS"
29726 if test "$ac_cv_lib_termcap_tgetent" = yes ||
29727 test "$ac_cv_lib_curses_tgetent" = yes ||
29728 test "$ac_cv_lib_ncurses_tgetent" = yes; then
29730 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29731 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29732 if test "${ac_cv_lib_readline_readline+set}" = set; then
29733 echo $ECHO_N "(cached) $ECHO_C" >&6
29735 ac_check_lib_save_LIBS=$LIBS
29736 LIBS="-lreadline $LIBS"
29737 cat >conftest.$ac_ext <<_ACEOF
29740 cat confdefs.h >>conftest.$ac_ext
29741 cat >>conftest.$ac_ext <<_ACEOF
29742 /* end confdefs.h. */
29744 /* Override any gcc2 internal prototype to avoid an error. */
29748 /* We use char because int might match the return type of a gcc2
29749 builtin and then its argument prototype would still apply. */
29759 rm -f conftest.$ac_objext conftest$ac_exeext
29760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29761 (eval $ac_link) 2>conftest.er1
29763 grep -v '^ *+' conftest.er1 >conftest.err
29765 cat conftest.err >&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } &&
29768 { ac_try='test -z "$ac_c_werror_flag"
29769 || test ! -s conftest.err'
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; } &&
29775 { ac_try='test -s conftest$ac_exeext'
29776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29777 (eval $ac_try) 2>&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); }; }; then
29781 ac_cv_lib_readline_readline=yes
29783 echo "$as_me: failed program was:" >&5
29784 sed 's/^/| /' conftest.$ac_ext >&5
29786 ac_cv_lib_readline_readline=no
29788 rm -f conftest.err conftest.$ac_objext \
29789 conftest$ac_exeext conftest.$ac_ext
29790 LIBS=$ac_check_lib_save_LIBS
29792 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29793 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29794 if test $ac_cv_lib_readline_readline = yes; then
29795 cat >>confdefs.h <<_ACEOF
29796 #define HAVE_LIBREADLINE 1
29799 LIBS="-lreadline $LIBS"
29803 if test "$ac_cv_lib_readline_readline" != yes; then
29804 { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
29805 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
29808 { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
29809 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
29812 if test "$ac_cv_lib_readline_readline" = yes; then
29813 READLINE_LIBS=-lreadline
29814 LIBS=`echo $LIBS | sed s/-lreadline//`
29818 if test "$ac_cv_header_linux_zftape_h" = yes; then
29819 if test "$ac_cv_header_vtblc_h" = yes; then
29821 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
29822 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
29823 if test "${ac_cv_lib_vtblc_main+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 ac_check_lib_save_LIBS=$LIBS
29827 LIBS="-lvtblc $LIBS"
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846 (eval $ac_link) 2>conftest.er1
29848 grep -v '^ *+' conftest.er1 >conftest.err
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } &&
29853 { ac_try='test -z "$ac_c_werror_flag"
29854 || test ! -s conftest.err'
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest$ac_exeext'
29861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862 (eval $ac_try) 2>&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; }; then
29866 ac_cv_lib_vtblc_main=yes
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ac_cv_lib_vtblc_main=no
29873 rm -f conftest.err conftest.$ac_objext \
29874 conftest$ac_exeext conftest.$ac_ext
29875 LIBS=$ac_check_lib_save_LIBS
29877 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
29878 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
29879 if test $ac_cv_lib_vtblc_main = yes; then
29880 cat >>confdefs.h <<_ACEOF
29881 #define HAVE_LIBVTBLC 1
29884 LIBS="-lvtblc $LIBS"
29888 if test "$ac_cv_lib_vtblc_main" != yes; then
29889 { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
29890 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
29893 { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
29894 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
29899 echo "$as_me:$LINENO: checking for modf in -lm" >&5
29900 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
29901 if test "${ac_cv_lib_m_modf+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29904 ac_check_lib_save_LIBS=$LIBS
29906 cat >conftest.$ac_ext <<_ACEOF
29909 cat confdefs.h >>conftest.$ac_ext
29910 cat >>conftest.$ac_ext <<_ACEOF
29911 /* end confdefs.h. */
29913 /* Override any gcc2 internal prototype to avoid an error. */
29917 /* We use char because int might match the return type of a gcc2
29918 builtin and then its argument prototype would still apply. */
29928 rm -f conftest.$ac_objext conftest$ac_exeext
29929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29930 (eval $ac_link) 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
29937 { ac_try='test -z "$ac_c_werror_flag"
29938 || test ! -s conftest.err'
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; } &&
29944 { ac_try='test -s conftest$ac_exeext'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 ac_cv_lib_m_modf=yes
29952 echo "$as_me: failed program was:" >&5
29953 sed 's/^/| /' conftest.$ac_ext >&5
29955 ac_cv_lib_m_modf=no
29957 rm -f conftest.err conftest.$ac_objext \
29958 conftest$ac_exeext conftest.$ac_ext
29959 LIBS=$ac_check_lib_save_LIBS
29961 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
29962 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
29963 if test $ac_cv_lib_m_modf = yes; then
29964 cat >>confdefs.h <<_ACEOF
29965 #define HAVE_LIBM 1
29974 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
29975 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
29976 mt_flags_result="found"
29977 cat >conftest.$ac_ext <<_ACEOF
29980 cat confdefs.h >>conftest.$ac_ext
29981 cat >>conftest.$ac_ext <<_ACEOF
29982 /* end confdefs.h. */
29985 #include <sys/types.h>
29986 #include <sys/mtio.h>
30001 rm -f conftest.$ac_objext
30002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30003 (eval $ac_compile) 2>conftest.er1
30005 grep -v '^ *+' conftest.er1 >conftest.err
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
30010 { ac_try='test -z "$ac_c_werror_flag"
30011 || test ! -s conftest.err'
30012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; } &&
30017 { ac_try='test -s conftest.$ac_objext'
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; }; then
30024 cat >>confdefs.h <<\_ACEOF
30025 #define HAVE_MT_FLAGS 1
30029 echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30032 mt_flags_result="not found"
30034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30035 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
30036 echo "${ECHO_T}$mt_flags_result" >&6
30038 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30039 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
30040 mt_fileno_result="found"
30041 cat >conftest.$ac_ext <<_ACEOF
30044 cat confdefs.h >>conftest.$ac_ext
30045 cat >>conftest.$ac_ext <<_ACEOF
30046 /* end confdefs.h. */
30049 #include <sys/types.h>
30050 #include <sys/mtio.h>
30059 ds = buf.mt_fileno;
30065 rm -f conftest.$ac_objext
30066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30067 (eval $ac_compile) 2>conftest.er1
30069 grep -v '^ *+' conftest.er1 >conftest.err
30071 cat conftest.err >&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
30074 { ac_try='test -z "$ac_c_werror_flag"
30075 || test ! -s conftest.err'
30076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30077 (eval $ac_try) 2>&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; } &&
30081 { ac_try='test -s conftest.$ac_objext'
30082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083 (eval $ac_try) 2>&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; }; then
30088 cat >>confdefs.h <<\_ACEOF
30089 #define HAVE_MT_FILENO 1
30093 echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30096 mt_fileno_result="not found"
30098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30099 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
30100 echo "${ECHO_T}$mt_fileno_result" >&6
30102 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30103 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
30104 mt_blkno_result="found"
30105 cat >conftest.$ac_ext <<_ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h. */
30113 #include <sys/types.h>
30114 #include <sys/mtio.h>
30129 rm -f conftest.$ac_objext
30130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30131 (eval $ac_compile) 2>conftest.er1
30133 grep -v '^ *+' conftest.er1 >conftest.err
30135 cat conftest.err >&5
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } &&
30138 { ac_try='test -z "$ac_c_werror_flag"
30139 || test ! -s conftest.err'
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; } &&
30145 { ac_try='test -s conftest.$ac_objext'
30146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30147 (eval $ac_try) 2>&5
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); }; }; then
30152 cat >>confdefs.h <<\_ACEOF
30153 #define HAVE_MT_BLKNO 1
30157 echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30160 mt_blkno_result="not found"
30162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30163 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
30164 echo "${ECHO_T}$mt_blkno_result" >&6
30166 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30167 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
30168 mt_dsreg_result="found"
30169 cat >conftest.$ac_ext <<_ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h. */
30177 #include <sys/types.h>
30178 #include <sys/mtio.h>
30193 rm -f conftest.$ac_objext
30194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30195 (eval $ac_compile) 2>conftest.er1
30197 grep -v '^ *+' conftest.er1 >conftest.err
30199 cat conftest.err >&5
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); } &&
30202 { ac_try='test -z "$ac_c_werror_flag"
30203 || test ! -s conftest.err'
30204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205 (eval $ac_try) 2>&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; } &&
30209 { ac_try='test -s conftest.$ac_objext'
30210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30211 (eval $ac_try) 2>&5
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); }; }; then
30216 cat >>confdefs.h <<\_ACEOF
30217 #define HAVE_MT_DSREG 1
30221 echo "$as_me: failed program was:" >&5
30222 sed 's/^/| /' conftest.$ac_ext >&5
30224 mt_dsreg_result="not found"
30226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30227 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
30228 echo "${ECHO_T}$mt_dsreg_result" >&6
30230 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30231 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
30232 mt_erreg_result="found"
30233 cat >conftest.$ac_ext <<_ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h. */
30241 #include <sys/types.h>
30242 #include <sys/mtio.h>
30257 rm -f conftest.$ac_objext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30259 (eval $ac_compile) 2>conftest.er1
30261 grep -v '^ *+' conftest.er1 >conftest.err
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } &&
30266 { ac_try='test -z "$ac_c_werror_flag"
30267 || test ! -s conftest.err'
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; } &&
30273 { ac_try='test -s conftest.$ac_objext'
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30280 cat >>confdefs.h <<\_ACEOF
30281 #define HAVE_MT_ERREG 1
30285 echo "$as_me: failed program was:" >&5
30286 sed 's/^/| /' conftest.$ac_ext >&5
30288 mt_erreg_result="not found"
30290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30291 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
30292 echo "${ECHO_T}$mt_erreg_result" >&6
30300 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
30301 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
30302 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30305 ac_check_lib_save_LIBS=$LIBS
30307 cat >conftest.$ac_ext <<_ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h. */
30314 /* Override any gcc2 internal prototype to avoid an error. */
30318 /* We use char because int might match the return type of a gcc2
30319 builtin and then its argument prototype would still apply. */
30329 rm -f conftest.$ac_objext conftest$ac_exeext
30330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30331 (eval $ac_link) 2>conftest.er1
30333 grep -v '^ *+' conftest.er1 >conftest.err
30335 cat conftest.err >&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); } &&
30338 { ac_try='test -z "$ac_c_werror_flag"
30339 || test ! -s conftest.err'
30340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341 (eval $ac_try) 2>&5
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); }; } &&
30345 { ac_try='test -s conftest$ac_exeext'
30346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347 (eval $ac_try) 2>&5
30349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); }; }; then
30351 ac_cv_lib_c_dbm_open=yes
30353 echo "$as_me: failed program was:" >&5
30354 sed 's/^/| /' conftest.$ac_ext >&5
30356 ac_cv_lib_c_dbm_open=no
30358 rm -f conftest.err conftest.$ac_objext \
30359 conftest$ac_exeext conftest.$ac_ext
30360 LIBS=$ac_check_lib_save_LIBS
30362 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
30363 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
30364 if test $ac_cv_lib_c_dbm_open = yes; then
30365 cat >>confdefs.h <<_ACEOF
30366 #define HAVE_LIBC 1
30375 case "$DB_STYLE" in
30377 if test "$ac_cv_header_db_h" = yes; then
30379 echo "$as_me:$LINENO: checking for main in -ldb" >&5
30380 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
30381 if test "${ac_cv_lib_db_main+set}" = set; then
30382 echo $ECHO_N "(cached) $ECHO_C" >&6
30384 ac_check_lib_save_LIBS=$LIBS
30386 cat >conftest.$ac_ext <<_ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h. */
30402 rm -f conftest.$ac_objext conftest$ac_exeext
30403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30404 (eval $ac_link) 2>conftest.er1
30406 grep -v '^ *+' conftest.er1 >conftest.err
30408 cat conftest.err >&5
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); } &&
30411 { ac_try='test -z "$ac_c_werror_flag"
30412 || test ! -s conftest.err'
30413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414 (eval $ac_try) 2>&5
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); }; } &&
30418 { ac_try='test -s conftest$ac_exeext'
30419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420 (eval $ac_try) 2>&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; }; then
30424 ac_cv_lib_db_main=yes
30426 echo "$as_me: failed program was:" >&5
30427 sed 's/^/| /' conftest.$ac_ext >&5
30429 ac_cv_lib_db_main=no
30431 rm -f conftest.err conftest.$ac_objext \
30432 conftest$ac_exeext conftest.$ac_ext
30433 LIBS=$ac_check_lib_save_LIBS
30435 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
30436 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
30437 if test $ac_cv_lib_db_main = yes; then
30438 cat >>confdefs.h <<_ACEOF
30439 #define HAVE_LIBDB 1
30446 if test "$ac_cv_lib_db_main" = yes; then
30448 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
30449 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
30450 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30453 ac_check_lib_save_LIBS=$LIBS
30455 cat >conftest.$ac_ext <<_ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h. */
30462 /* Override any gcc2 internal prototype to avoid an error. */
30466 /* We use char because int might match the return type of a gcc2
30467 builtin and then its argument prototype would still apply. */
30477 rm -f conftest.$ac_objext conftest$ac_exeext
30478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30479 (eval $ac_link) 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } &&
30486 { ac_try='test -z "$ac_c_werror_flag"
30487 || test ! -s conftest.err'
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; } &&
30493 { ac_try='test -s conftest$ac_exeext'
30494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495 (eval $ac_try) 2>&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; }; then
30499 ac_cv_lib_db_dbm_open=yes
30501 echo "$as_me: failed program was:" >&5
30502 sed 's/^/| /' conftest.$ac_ext >&5
30504 ac_cv_lib_db_dbm_open=no
30506 rm -f conftest.err conftest.$ac_objext \
30507 conftest$ac_exeext conftest.$ac_ext
30508 LIBS=$ac_check_lib_save_LIBS
30510 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
30511 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
30512 if test $ac_cv_lib_db_dbm_open = yes; then
30513 cat >>confdefs.h <<_ACEOF
30514 #define HAVE_LIBDB 1
30521 if test "$ac_cv_lib_db_dbm_open" = yes; then
30526 { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
30527 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
30530 if test "$ac_cv_lib_c_dbm_open" = yes; then
30535 { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
30536 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
30541 { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
30542 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
30547 if test "$ac_cv_header_dbm_h" = yes; then
30549 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
30550 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
30551 if test "${ac_cv_lib_dbm_main+set}" = set; then
30552 echo $ECHO_N "(cached) $ECHO_C" >&6
30554 ac_check_lib_save_LIBS=$LIBS
30556 cat >conftest.$ac_ext <<_ACEOF
30559 cat confdefs.h >>conftest.$ac_ext
30560 cat >>conftest.$ac_ext <<_ACEOF
30561 /* end confdefs.h. */
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574 (eval $ac_link) 2>conftest.er1
30576 grep -v '^ *+' conftest.er1 >conftest.err
30578 cat conftest.err >&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } &&
30581 { ac_try='test -z "$ac_c_werror_flag"
30582 || test ! -s conftest.err'
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; } &&
30588 { ac_try='test -s conftest$ac_exeext'
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594 ac_cv_lib_dbm_main=yes
30596 echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30599 ac_cv_lib_dbm_main=no
30601 rm -f conftest.err conftest.$ac_objext \
30602 conftest$ac_exeext conftest.$ac_ext
30603 LIBS=$ac_check_lib_save_LIBS
30605 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
30606 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
30607 if test $ac_cv_lib_dbm_main = yes; then
30608 cat >>confdefs.h <<_ACEOF
30609 #define HAVE_LIBDBM 1
30616 if test "$ac_cv_lib_dbm_main" = yes; then
30618 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
30619 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
30620 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
30621 echo $ECHO_N "(cached) $ECHO_C" >&6
30623 ac_check_lib_save_LIBS=$LIBS
30625 cat >conftest.$ac_ext <<_ACEOF
30628 cat confdefs.h >>conftest.$ac_ext
30629 cat >>conftest.$ac_ext <<_ACEOF
30630 /* end confdefs.h. */
30632 /* Override any gcc2 internal prototype to avoid an error. */
30636 /* We use char because int might match the return type of a gcc2
30637 builtin and then its argument prototype would still apply. */
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30649 (eval $ac_link) 2>conftest.er1
30651 grep -v '^ *+' conftest.er1 >conftest.err
30653 cat conftest.err >&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); } &&
30656 { ac_try='test -z "$ac_c_werror_flag"
30657 || test ! -s conftest.err'
30658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659 (eval $ac_try) 2>&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest$ac_exeext'
30664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665 (eval $ac_try) 2>&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30669 ac_cv_lib_dbm_dbm_open=yes
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30674 ac_cv_lib_dbm_dbm_open=no
30676 rm -f conftest.err conftest.$ac_objext \
30677 conftest$ac_exeext conftest.$ac_ext
30678 LIBS=$ac_check_lib_save_LIBS
30680 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
30681 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
30682 if test $ac_cv_lib_dbm_dbm_open = yes; then
30683 cat >>confdefs.h <<_ACEOF
30684 #define HAVE_LIBDBM 1
30691 if test "$ac_cv_lib_dbm_dbm_open" = yes; then
30696 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
30697 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
30700 if test "$ac_cv_lib_c_dbm_open" = yes; then
30705 { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
30706 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
30711 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
30712 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
30717 if test "$ac_cv_header_ndbm_h" = yes; then
30719 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
30720 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
30721 if test "${ac_cv_lib_gdbm_main+set}" = set; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30724 ac_check_lib_save_LIBS=$LIBS
30725 LIBS="-lgdbm $LIBS"
30726 cat >conftest.$ac_ext <<_ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h. */
30742 rm -f conftest.$ac_objext conftest$ac_exeext
30743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30744 (eval $ac_link) 2>conftest.er1
30746 grep -v '^ *+' conftest.er1 >conftest.err
30748 cat conftest.err >&5
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); } &&
30751 { ac_try='test -z "$ac_c_werror_flag"
30752 || test ! -s conftest.err'
30753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754 (eval $ac_try) 2>&5
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; } &&
30758 { ac_try='test -s conftest$ac_exeext'
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; }; then
30764 ac_cv_lib_gdbm_main=yes
30766 echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30769 ac_cv_lib_gdbm_main=no
30771 rm -f conftest.err conftest.$ac_objext \
30772 conftest$ac_exeext conftest.$ac_ext
30773 LIBS=$ac_check_lib_save_LIBS
30775 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
30776 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
30777 if test $ac_cv_lib_gdbm_main = yes; then
30778 cat >>confdefs.h <<_ACEOF
30779 #define HAVE_LIBGDBM 1
30782 LIBS="-lgdbm $LIBS"
30786 if test "$ac_cv_lib_gdbm_main" = yes; then
30788 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
30789 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
30790 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
30791 echo $ECHO_N "(cached) $ECHO_C" >&6
30793 ac_check_lib_save_LIBS=$LIBS
30794 LIBS="-lgdbm $LIBS"
30795 cat >conftest.$ac_ext <<_ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h. */
30802 /* Override any gcc2 internal prototype to avoid an error. */
30806 /* We use char because int might match the return type of a gcc2
30807 builtin and then its argument prototype would still apply. */
30817 rm -f conftest.$ac_objext conftest$ac_exeext
30818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30819 (eval $ac_link) 2>conftest.er1
30821 grep -v '^ *+' conftest.er1 >conftest.err
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } &&
30826 { ac_try='test -z "$ac_c_werror_flag"
30827 || test ! -s conftest.err'
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; } &&
30833 { ac_try='test -s conftest$ac_exeext'
30834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30835 (eval $ac_try) 2>&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
30839 ac_cv_lib_gdbm_dbm_open=yes
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30844 ac_cv_lib_gdbm_dbm_open=no
30846 rm -f conftest.err conftest.$ac_objext \
30847 conftest$ac_exeext conftest.$ac_ext
30848 LIBS=$ac_check_lib_save_LIBS
30850 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
30851 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
30852 if test $ac_cv_lib_gdbm_dbm_open = yes; then
30853 cat >>confdefs.h <<_ACEOF
30854 #define HAVE_LIBGDBM 1
30857 LIBS="-lgdbm $LIBS"
30861 if test "$ac_cv_lib_gdbm_dbm_open" = yes; then
30866 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
30867 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
30870 if test "$ac_cv_lib_c_dbm_open" = yes; then
30875 { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
30876 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
30881 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
30882 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
30887 if test "$ac_cv_header_ndbm_h" = yes; then
30889 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
30890 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
30891 if test "${ac_cv_lib_ndbm_main+set}" = set; then
30892 echo $ECHO_N "(cached) $ECHO_C" >&6
30894 ac_check_lib_save_LIBS=$LIBS
30895 LIBS="-lndbm $LIBS"
30896 cat >conftest.$ac_ext <<_ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h. */
30912 rm -f conftest.$ac_objext conftest$ac_exeext
30913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30914 (eval $ac_link) 2>conftest.er1
30916 grep -v '^ *+' conftest.er1 >conftest.err
30918 cat conftest.err >&5
30919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); } &&
30921 { ac_try='test -z "$ac_c_werror_flag"
30922 || test ! -s conftest.err'
30923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924 (eval $ac_try) 2>&5
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; } &&
30928 { ac_try='test -s conftest$ac_exeext'
30929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30930 (eval $ac_try) 2>&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); }; }; then
30934 ac_cv_lib_ndbm_main=yes
30936 echo "$as_me: failed program was:" >&5
30937 sed 's/^/| /' conftest.$ac_ext >&5
30939 ac_cv_lib_ndbm_main=no
30941 rm -f conftest.err conftest.$ac_objext \
30942 conftest$ac_exeext conftest.$ac_ext
30943 LIBS=$ac_check_lib_save_LIBS
30945 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
30946 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
30947 if test $ac_cv_lib_ndbm_main = yes; then
30948 cat >>confdefs.h <<_ACEOF
30949 #define HAVE_LIBNDBM 1
30952 LIBS="-lndbm $LIBS"
30956 if test "$ac_cv_lib_ndbm_main" = yes; then
30958 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
30959 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
30960 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
30961 echo $ECHO_N "(cached) $ECHO_C" >&6
30963 ac_check_lib_save_LIBS=$LIBS
30964 LIBS="-lndbm $LIBS"
30965 cat >conftest.$ac_ext <<_ACEOF
30968 cat confdefs.h >>conftest.$ac_ext
30969 cat >>conftest.$ac_ext <<_ACEOF
30970 /* end confdefs.h. */
30972 /* Override any gcc2 internal prototype to avoid an error. */
30976 /* We use char because int might match the return type of a gcc2
30977 builtin and then its argument prototype would still apply. */
30987 rm -f conftest.$ac_objext conftest$ac_exeext
30988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30989 (eval $ac_link) 2>conftest.er1
30991 grep -v '^ *+' conftest.er1 >conftest.err
30993 cat conftest.err >&5
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } &&
30996 { ac_try='test -z "$ac_c_werror_flag"
30997 || test ! -s conftest.err'
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; } &&
31003 { ac_try='test -s conftest$ac_exeext'
31004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005 (eval $ac_try) 2>&5
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; }; then
31009 ac_cv_lib_ndbm_dbm_open=yes
31011 echo "$as_me: failed program was:" >&5
31012 sed 's/^/| /' conftest.$ac_ext >&5
31014 ac_cv_lib_ndbm_dbm_open=no
31016 rm -f conftest.err conftest.$ac_objext \
31017 conftest$ac_exeext conftest.$ac_ext
31018 LIBS=$ac_check_lib_save_LIBS
31020 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
31021 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
31022 if test $ac_cv_lib_ndbm_dbm_open = yes; then
31023 cat >>confdefs.h <<_ACEOF
31024 #define HAVE_LIBNDBM 1
31027 LIBS="-lndbm $LIBS"
31031 if test "$ac_cv_lib_ndbm_dbm_open" = yes; then
31036 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
31037 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
31040 if test "$ac_cv_lib_c_dbm_open" = yes; then
31045 { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
31046 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
31051 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
31052 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
31062 if test -z "$DB_STYLE"; then
31069 if test "$DB_STYLE" = text; then
31071 cat >>confdefs.h <<\_ACEOF
31076 echo "$as_me:$LINENO: checking for database" >&5
31077 echo $ECHO_N "checking for database... $ECHO_C" >&6
31078 echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
31079 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
31080 case "$DB_STYLE" in
31082 cat >>confdefs.h <<\_ACEOF
31087 cat >>confdefs.h <<\_ACEOF
31088 #define USE_DBM_H 1
31092 cat >>confdefs.h <<\_ACEOF
31093 #define USE_GDBM_H 1
31097 cat >>confdefs.h <<\_ACEOF
31098 #define USE_NDBM_H 1
31103 echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
31104 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
31105 if test "${amanda_cv_struct_datum+set}" = set; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31109 cat >conftest.$ac_ext <<_ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h. */
31116 #if defined(USE_DB_H)
31119 # if defined(USE_DBM_H)
31122 # if defined(USE_NDBM_H)
31138 rm -f conftest.$ac_objext
31139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31140 (eval $ac_compile) 2>conftest.er1
31142 grep -v '^ *+' conftest.er1 >conftest.err
31144 cat conftest.err >&5
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); } &&
31147 { ac_try='test -z "$ac_c_werror_flag"
31148 || test ! -s conftest.err'
31149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31150 (eval $ac_try) 2>&5
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; } &&
31154 { ac_try='test -s conftest.$ac_objext'
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
31160 amanda_cv_struct_datum=yes
31162 echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31165 amanda_cv_struct_datum=no
31168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31171 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
31172 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
31173 if test "$amanda_cv_struct_datum" = yes; then
31175 cat >>confdefs.h <<\_ACEOF
31176 #define HAVE_STRUCT_DATUM 1
31182 case "$DB_STYLE" in
31184 gdbm) DB_EXT='""';;
31185 dbm | ndbm) DB_EXT=".dir .pag";;
31186 text) DB_EXT='""';;
31191 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
31192 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
31193 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
31194 echo $ECHO_N "(cached) $ECHO_C" >&6
31196 cat >conftest.$ac_ext <<_ACEOF
31199 cat confdefs.h >>conftest.$ac_ext
31200 cat >>conftest.$ac_ext <<_ACEOF
31201 /* end confdefs.h. */
31203 #include <limits.h>
31204 #ifdef _POSIX2_RE_DUP_MAX
31209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31210 $EGREP "yes" >/dev/null 2>&1; then
31211 amanda_cv_have__posix2_re_dup_max=yes
31213 amanda_cv_have__posix2_re_dup_max=no
31218 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
31219 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
31220 if test "$amanda_cv_have__posix2_re_dup_max" = yes; then
31222 cat >>confdefs.h <<\_ACEOF
31223 #define HAVE__POSIX2_RE_DUP_MAX 1
31228 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
31229 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
31230 if test "${amanda_cv_have_char_min+set}" = set; then
31231 echo $ECHO_N "(cached) $ECHO_C" >&6
31233 cat >conftest.$ac_ext <<_ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h. */
31240 #include <limits.h>
31246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31247 $EGREP "yes" >/dev/null 2>&1; then
31248 amanda_cv_have_char_min=yes
31250 amanda_cv_have_char_min=no
31255 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
31256 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
31257 if test "$amanda_cv_have_char_min" = yes; then
31259 cat >>confdefs.h <<\_ACEOF
31260 #define HAVE_CHAR_MIN 1
31265 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
31266 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
31267 if test "${amanda_cv_have_char_max+set}" = set; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31270 cat >conftest.$ac_ext <<_ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h. */
31277 #include <limits.h>
31283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31284 $EGREP "yes" >/dev/null 2>&1; then
31285 amanda_cv_have_char_max=yes
31287 amanda_cv_have_char_max=no
31292 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
31293 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
31294 if test "$amanda_cv_have_char_max" = yes; then
31296 cat >>confdefs.h <<\_ACEOF
31297 #define HAVE_CHAR_MAX 1
31302 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
31303 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
31304 if test "${amanda_cv_have_char_bit+set}" = set; then
31305 echo $ECHO_N "(cached) $ECHO_C" >&6
31307 cat >conftest.$ac_ext <<_ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h. */
31314 #include <limits.h>
31320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31321 $EGREP "yes" >/dev/null 2>&1; then
31322 amanda_cv_have_char_bit=yes
31324 amanda_cv_have_char_bit=no
31329 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
31330 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
31331 if test "$amanda_cv_have_char_bit" = yes; then
31333 cat >>confdefs.h <<\_ACEOF
31334 #define HAVE_CHAR_BIT 1
31342 for ac_func in accept
31344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31345 echo "$as_me:$LINENO: checking for $ac_func" >&5
31346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31347 if eval "test \"\${$as_ac_var+set}\" = set"; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31350 cat >conftest.$ac_ext <<_ACEOF
31353 cat confdefs.h >>conftest.$ac_ext
31354 cat >>conftest.$ac_ext <<_ACEOF
31355 /* end confdefs.h. */
31356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31358 #define $ac_func innocuous_$ac_func
31360 /* System header to define __stub macros and hopefully few prototypes,
31361 which can conflict with char $ac_func (); below.
31362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31363 <limits.h> exists even on freestanding compilers. */
31366 # include <limits.h>
31368 # include <assert.h>
31373 /* Override any gcc2 internal prototype to avoid an error. */
31378 /* We use char because int might match the return type of a gcc2
31379 builtin and then its argument prototype would still apply. */
31381 /* The GNU C library defines this for functions which it implements
31382 to always fail with ENOSYS. Some functions are actually named
31383 something starting with __ and the normal name is an alias. */
31384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31387 char (*f) () = $ac_func;
31396 return f != $ac_func;
31401 rm -f conftest.$ac_objext conftest$ac_exeext
31402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31403 (eval $ac_link) 2>conftest.er1
31405 grep -v '^ *+' conftest.er1 >conftest.err
31407 cat conftest.err >&5
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); } &&
31410 { ac_try='test -z "$ac_c_werror_flag"
31411 || test ! -s conftest.err'
31412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31413 (eval $ac_try) 2>&5
31415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416 (exit $ac_status); }; } &&
31417 { ac_try='test -s conftest$ac_exeext'
31418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31419 (eval $ac_try) 2>&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); }; }; then
31423 eval "$as_ac_var=yes"
31425 echo "$as_me: failed program was:" >&5
31426 sed 's/^/| /' conftest.$ac_ext >&5
31428 eval "$as_ac_var=no"
31430 rm -f conftest.err conftest.$ac_objext \
31431 conftest$ac_exeext conftest.$ac_ext
31433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31435 if test `eval echo '${'$as_ac_var'}'` = yes; then
31436 cat >>confdefs.h <<_ACEOF
31437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31439 ice_have_accept=yes
31443 if test "${ice_have_accept}" = yes; then
31444 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
31445 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
31446 if test "${ice_cv_have_accept_decl+set}" = set; then
31447 echo $ECHO_N "(cached) $ECHO_C" >&6
31450 ice_cv_have_accept_decl=no
31451 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
31452 ice_re_word='(^|[^a-zA-Z0-9_])'
31453 for header in sys/types.h sys/socket.h; do
31454 # Check for ordinary declaration
31455 cat >conftest.$ac_ext <<_ACEOF
31458 cat confdefs.h >>conftest.$ac_ext
31459 cat >>conftest.$ac_ext <<_ACEOF
31460 /* end confdefs.h. */
31464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31465 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
31466 ice_cv_have_accept_decl=yes
31470 if test "$ice_cv_have_accept_decl" = yes; then
31473 # Check for "fixed" declaration like "getpid _PARAMS((int))"
31474 cat >conftest.$ac_ext <<_ACEOF
31477 cat confdefs.h >>conftest.$ac_ext
31478 cat >>conftest.$ac_ext <<_ACEOF
31479 /* end confdefs.h. */
31483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31484 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
31485 ice_cv_have_accept_decl=yes
31489 if test "$ice_cv_have_accept_decl" = yes; then
31496 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
31497 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
31498 if test "$ice_cv_have_accept_decl" = yes; then
31500 cat >>confdefs.h <<_ACEOF
31501 #define HAVE_ACCEPT_DECL 1
31507 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31508 # for constant arguments. Useless!
31509 echo "$as_me:$LINENO: checking for working alloca.h" >&5
31510 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
31511 if test "${ac_cv_working_alloca_h+set}" = set; then
31512 echo $ECHO_N "(cached) $ECHO_C" >&6
31514 cat >conftest.$ac_ext <<_ACEOF
31517 cat confdefs.h >>conftest.$ac_ext
31518 cat >>conftest.$ac_ext <<_ACEOF
31519 /* end confdefs.h. */
31520 #include <alloca.h>
31524 char *p = (char *) alloca (2 * sizeof (int));
31529 rm -f conftest.$ac_objext conftest$ac_exeext
31530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31531 (eval $ac_link) 2>conftest.er1
31533 grep -v '^ *+' conftest.er1 >conftest.err
31535 cat conftest.err >&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); } &&
31538 { ac_try='test -z "$ac_c_werror_flag"
31539 || test ! -s conftest.err'
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; } &&
31545 { ac_try='test -s conftest$ac_exeext'
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
31551 ac_cv_working_alloca_h=yes
31553 echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31556 ac_cv_working_alloca_h=no
31558 rm -f conftest.err conftest.$ac_objext \
31559 conftest$ac_exeext conftest.$ac_ext
31561 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31562 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
31563 if test $ac_cv_working_alloca_h = yes; then
31565 cat >>confdefs.h <<\_ACEOF
31566 #define HAVE_ALLOCA_H 1
31571 echo "$as_me:$LINENO: checking for alloca" >&5
31572 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
31573 if test "${ac_cv_func_alloca_works+set}" = set; then
31574 echo $ECHO_N "(cached) $ECHO_C" >&6
31576 cat >conftest.$ac_ext <<_ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31583 # define alloca __builtin_alloca
31586 # include <malloc.h>
31587 # define alloca _alloca
31590 # include <alloca.h>
31595 # ifndef alloca /* predefined by HP cc +Olibcalls */
31606 char *p = (char *) alloca (1);
31611 rm -f conftest.$ac_objext conftest$ac_exeext
31612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31613 (eval $ac_link) 2>conftest.er1
31615 grep -v '^ *+' conftest.er1 >conftest.err
31617 cat conftest.err >&5
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); } &&
31620 { ac_try='test -z "$ac_c_werror_flag"
31621 || test ! -s conftest.err'
31622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31623 (eval $ac_try) 2>&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; } &&
31627 { ac_try='test -s conftest$ac_exeext'
31628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629 (eval $ac_try) 2>&5
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; }; then
31633 ac_cv_func_alloca_works=yes
31635 echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31638 ac_cv_func_alloca_works=no
31640 rm -f conftest.err conftest.$ac_objext \
31641 conftest$ac_exeext conftest.$ac_ext
31643 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
31646 if test $ac_cv_func_alloca_works = yes; then
31648 cat >>confdefs.h <<\_ACEOF
31649 #define HAVE_ALLOCA 1
31653 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31654 # that cause trouble. Some versions do not even contain alloca or
31655 # contain a buggy version. If you still want to use their alloca,
31656 # use ar to extract alloca.o from them instead of compiling alloca.c.
31658 ALLOCA=alloca.$ac_objext
31660 cat >>confdefs.h <<\_ACEOF
31665 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31666 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
31667 if test "${ac_cv_os_cray+set}" = set; then
31668 echo $ECHO_N "(cached) $ECHO_C" >&6
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31676 #if defined(CRAY) && ! defined(CRAY2)
31683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31684 $EGREP "webecray" >/dev/null 2>&1; then
31692 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31693 echo "${ECHO_T}$ac_cv_os_cray" >&6
31694 if test $ac_cv_os_cray = yes; then
31695 for ac_func in _getb67 GETB67 getb67; do
31696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31697 echo "$as_me:$LINENO: checking for $ac_func" >&5
31698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31699 if eval "test \"\${$as_ac_var+set}\" = set"; then
31700 echo $ECHO_N "(cached) $ECHO_C" >&6
31702 cat >conftest.$ac_ext <<_ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h. */
31708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31710 #define $ac_func innocuous_$ac_func
31712 /* System header to define __stub macros and hopefully few prototypes,
31713 which can conflict with char $ac_func (); below.
31714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31715 <limits.h> exists even on freestanding compilers. */
31718 # include <limits.h>
31720 # include <assert.h>
31725 /* Override any gcc2 internal prototype to avoid an error. */
31730 /* We use char because int might match the return type of a gcc2
31731 builtin and then its argument prototype would still apply. */
31733 /* The GNU C library defines this for functions which it implements
31734 to always fail with ENOSYS. Some functions are actually named
31735 something starting with __ and the normal name is an alias. */
31736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31739 char (*f) () = $ac_func;
31748 return f != $ac_func;
31753 rm -f conftest.$ac_objext conftest$ac_exeext
31754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31755 (eval $ac_link) 2>conftest.er1
31757 grep -v '^ *+' conftest.er1 >conftest.err
31759 cat conftest.err >&5
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); } &&
31762 { ac_try='test -z "$ac_c_werror_flag"
31763 || test ! -s conftest.err'
31764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31765 (eval $ac_try) 2>&5
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; } &&
31769 { ac_try='test -s conftest$ac_exeext'
31770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771 (eval $ac_try) 2>&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; }; then
31775 eval "$as_ac_var=yes"
31777 echo "$as_me: failed program was:" >&5
31778 sed 's/^/| /' conftest.$ac_ext >&5
31780 eval "$as_ac_var=no"
31782 rm -f conftest.err conftest.$ac_objext \
31783 conftest$ac_exeext conftest.$ac_ext
31785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31787 if test `eval echo '${'$as_ac_var'}'` = yes; then
31789 cat >>confdefs.h <<_ACEOF
31790 #define CRAY_STACKSEG_END $ac_func
31799 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31800 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
31801 if test "${ac_cv_c_stack_direction+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31804 if test "$cross_compiling" = yes; then
31805 ac_cv_c_stack_direction=0
31807 cat >conftest.$ac_ext <<_ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h. */
31814 find_stack_direction ()
31816 static char *addr = 0;
31821 return find_stack_direction ();
31824 return (&dummy > addr) ? 1 : -1;
31830 exit (find_stack_direction () < 0);
31833 rm -f conftest$ac_exeext
31834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31835 (eval $ac_link) 2>&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840 (eval $ac_try) 2>&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; }; then
31844 ac_cv_c_stack_direction=1
31846 echo "$as_me: program exited with status $ac_status" >&5
31847 echo "$as_me: failed program was:" >&5
31848 sed 's/^/| /' conftest.$ac_ext >&5
31850 ( exit $ac_status )
31851 ac_cv_c_stack_direction=-1
31853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31856 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31857 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
31859 cat >>confdefs.h <<_ACEOF
31860 #define STACK_DIRECTION $ac_cv_c_stack_direction
31867 for ac_func in atexit
31869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31870 echo "$as_me:$LINENO: checking for $ac_func" >&5
31871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31872 if eval "test \"\${$as_ac_var+set}\" = set"; then
31873 echo $ECHO_N "(cached) $ECHO_C" >&6
31875 cat >conftest.$ac_ext <<_ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h. */
31881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31883 #define $ac_func innocuous_$ac_func
31885 /* System header to define __stub macros and hopefully few prototypes,
31886 which can conflict with char $ac_func (); below.
31887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31888 <limits.h> exists even on freestanding compilers. */
31891 # include <limits.h>
31893 # include <assert.h>
31898 /* Override any gcc2 internal prototype to avoid an error. */
31903 /* We use char because int might match the return type of a gcc2
31904 builtin and then its argument prototype would still apply. */
31906 /* The GNU C library defines this for functions which it implements
31907 to always fail with ENOSYS. Some functions are actually named
31908 something starting with __ and the normal name is an alias. */
31909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31912 char (*f) () = $ac_func;
31921 return f != $ac_func;
31926 rm -f conftest.$ac_objext conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928 (eval $ac_link) 2>conftest.er1
31930 grep -v '^ *+' conftest.er1 >conftest.err
31932 cat conftest.err >&5
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
31935 { ac_try='test -z "$ac_c_werror_flag"
31936 || test ! -s conftest.err'
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; } &&
31942 { ac_try='test -s conftest$ac_exeext'
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }; then
31948 eval "$as_ac_var=yes"
31950 echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31953 eval "$as_ac_var=no"
31955 rm -f conftest.err conftest.$ac_objext \
31956 conftest$ac_exeext conftest.$ac_ext
31958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31960 if test `eval echo '${'$as_ac_var'}'` = yes; then
31961 cat >>confdefs.h <<_ACEOF
31962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31971 for ac_func in atof
31973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31974 echo "$as_me:$LINENO: checking for $ac_func" >&5
31975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31976 if eval "test \"\${$as_ac_var+set}\" = set"; then
31977 echo $ECHO_N "(cached) $ECHO_C" >&6
31979 cat >conftest.$ac_ext <<_ACEOF
31982 cat confdefs.h >>conftest.$ac_ext
31983 cat >>conftest.$ac_ext <<_ACEOF
31984 /* end confdefs.h. */
31985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31987 #define $ac_func innocuous_$ac_func
31989 /* System header to define __stub macros and hopefully few prototypes,
31990 which can conflict with char $ac_func (); below.
31991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31992 <limits.h> exists even on freestanding compilers. */
31995 # include <limits.h>
31997 # include <assert.h>
32002 /* Override any gcc2 internal prototype to avoid an error. */
32007 /* We use char because int might match the return type of a gcc2
32008 builtin and then its argument prototype would still apply. */
32010 /* The GNU C library defines this for functions which it implements
32011 to always fail with ENOSYS. Some functions are actually named
32012 something starting with __ and the normal name is an alias. */
32013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32016 char (*f) () = $ac_func;
32025 return f != $ac_func;
32030 rm -f conftest.$ac_objext conftest$ac_exeext
32031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32032 (eval $ac_link) 2>conftest.er1
32034 grep -v '^ *+' conftest.er1 >conftest.err
32036 cat conftest.err >&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); } &&
32039 { ac_try='test -z "$ac_c_werror_flag"
32040 || test ! -s conftest.err'
32041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32042 (eval $ac_try) 2>&5
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; } &&
32046 { ac_try='test -s conftest$ac_exeext'
32047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048 (eval $ac_try) 2>&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); }; }; then
32052 eval "$as_ac_var=yes"
32054 echo "$as_me: failed program was:" >&5
32055 sed 's/^/| /' conftest.$ac_ext >&5
32057 eval "$as_ac_var=no"
32059 rm -f conftest.err conftest.$ac_objext \
32060 conftest$ac_exeext conftest.$ac_ext
32062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32064 if test `eval echo '${'$as_ac_var'}'` = yes; then
32065 cat >>confdefs.h <<_ACEOF
32066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32072 if test "${ice_have_atof}" = yes; then
32073 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
32074 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
32075 if test "${ice_cv_have_atof_decl+set}" = set; then
32076 echo $ECHO_N "(cached) $ECHO_C" >&6
32079 ice_cv_have_atof_decl=no
32080 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32081 ice_re_word='(^|[^a-zA-Z0-9_])'
32082 for header in stdlib.h; do
32083 # Check for ordinary declaration
32084 cat >conftest.$ac_ext <<_ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h. */
32093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32094 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
32095 ice_cv_have_atof_decl=yes
32099 if test "$ice_cv_have_atof_decl" = yes; then
32102 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32103 cat >conftest.$ac_ext <<_ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h. */
32112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32113 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32114 ice_cv_have_atof_decl=yes
32118 if test "$ice_cv_have_atof_decl" = yes; then
32125 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
32126 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
32127 if test "$ice_cv_have_atof_decl" = yes; then
32129 cat >>confdefs.h <<_ACEOF
32130 #define HAVE_ATOF_DECL 1
32137 for ac_func in basename
32139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32140 echo "$as_me:$LINENO: checking for $ac_func" >&5
32141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32142 if eval "test \"\${$as_ac_var+set}\" = set"; then
32143 echo $ECHO_N "(cached) $ECHO_C" >&6
32145 cat >conftest.$ac_ext <<_ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h. */
32151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32153 #define $ac_func innocuous_$ac_func
32155 /* System header to define __stub macros and hopefully few prototypes,
32156 which can conflict with char $ac_func (); below.
32157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32158 <limits.h> exists even on freestanding compilers. */
32161 # include <limits.h>
32163 # include <assert.h>
32168 /* Override any gcc2 internal prototype to avoid an error. */
32173 /* We use char because int might match the return type of a gcc2
32174 builtin and then its argument prototype would still apply. */
32176 /* The GNU C library defines this for functions which it implements
32177 to always fail with ENOSYS. Some functions are actually named
32178 something starting with __ and the normal name is an alias. */
32179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32182 char (*f) () = $ac_func;
32191 return f != $ac_func;
32196 rm -f conftest.$ac_objext conftest$ac_exeext
32197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32198 (eval $ac_link) 2>conftest.er1
32200 grep -v '^ *+' conftest.er1 >conftest.err
32202 cat conftest.err >&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } &&
32205 { ac_try='test -z "$ac_c_werror_flag"
32206 || test ! -s conftest.err'
32207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208 (eval $ac_try) 2>&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
32218 eval "$as_ac_var=yes"
32220 echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32223 eval "$as_ac_var=no"
32225 rm -f conftest.err conftest.$ac_objext \
32226 conftest$ac_exeext conftest.$ac_ext
32228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32230 if test `eval echo '${'$as_ac_var'}'` = yes; then
32231 cat >>confdefs.h <<_ACEOF
32232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32241 for ac_func in bind
32243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32244 echo "$as_me:$LINENO: checking for $ac_func" >&5
32245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32246 if eval "test \"\${$as_ac_var+set}\" = set"; then
32247 echo $ECHO_N "(cached) $ECHO_C" >&6
32249 cat >conftest.$ac_ext <<_ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h. */
32255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32257 #define $ac_func innocuous_$ac_func
32259 /* System header to define __stub macros and hopefully few prototypes,
32260 which can conflict with char $ac_func (); below.
32261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32262 <limits.h> exists even on freestanding compilers. */
32265 # include <limits.h>
32267 # include <assert.h>
32272 /* Override any gcc2 internal prototype to avoid an error. */
32277 /* We use char because int might match the return type of a gcc2
32278 builtin and then its argument prototype would still apply. */
32280 /* The GNU C library defines this for functions which it implements
32281 to always fail with ENOSYS. Some functions are actually named
32282 something starting with __ and the normal name is an alias. */
32283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32286 char (*f) () = $ac_func;
32295 return f != $ac_func;
32300 rm -f conftest.$ac_objext conftest$ac_exeext
32301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32302 (eval $ac_link) 2>conftest.er1
32304 grep -v '^ *+' conftest.er1 >conftest.err
32306 cat conftest.err >&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); } &&
32309 { ac_try='test -z "$ac_c_werror_flag"
32310 || test ! -s conftest.err'
32311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32312 (eval $ac_try) 2>&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); }; } &&
32316 { ac_try='test -s conftest$ac_exeext'
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; }; then
32322 eval "$as_ac_var=yes"
32324 echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32327 eval "$as_ac_var=no"
32329 rm -f conftest.err conftest.$ac_objext \
32330 conftest$ac_exeext conftest.$ac_ext
32332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32334 if test `eval echo '${'$as_ac_var'}'` = yes; then
32335 cat >>confdefs.h <<_ACEOF
32336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32342 if test "${ice_have_bind}" = yes; then
32343 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
32344 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32345 if test "${ice_cv_have_bind_decl+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32349 ice_cv_have_bind_decl=no
32350 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32351 ice_re_word='(^|[^a-zA-Z0-9_])'
32352 for header in sys/types.h sys/socket.h; do
32353 # Check for ordinary declaration
32354 cat >conftest.$ac_ext <<_ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h. */
32363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32364 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
32365 ice_cv_have_bind_decl=yes
32369 if test "$ice_cv_have_bind_decl" = yes; then
32372 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32373 cat >conftest.$ac_ext <<_ACEOF
32376 cat confdefs.h >>conftest.$ac_ext
32377 cat >>conftest.$ac_ext <<_ACEOF
32378 /* end confdefs.h. */
32382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32383 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32384 ice_cv_have_bind_decl=yes
32388 if test "$ice_cv_have_bind_decl" = yes; then
32395 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
32396 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
32397 if test "$ice_cv_have_bind_decl" = yes; then
32399 cat >>confdefs.h <<_ACEOF
32400 #define HAVE_BIND_DECL 1
32409 for ac_func in bcopy
32411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32412 echo "$as_me:$LINENO: checking for $ac_func" >&5
32413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32414 if eval "test \"\${$as_ac_var+set}\" = set"; then
32415 echo $ECHO_N "(cached) $ECHO_C" >&6
32417 cat >conftest.$ac_ext <<_ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h. */
32423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32425 #define $ac_func innocuous_$ac_func
32427 /* System header to define __stub macros and hopefully few prototypes,
32428 which can conflict with char $ac_func (); below.
32429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32430 <limits.h> exists even on freestanding compilers. */
32433 # include <limits.h>
32435 # include <assert.h>
32440 /* Override any gcc2 internal prototype to avoid an error. */
32445 /* We use char because int might match the return type of a gcc2
32446 builtin and then its argument prototype would still apply. */
32448 /* The GNU C library defines this for functions which it implements
32449 to always fail with ENOSYS. Some functions are actually named
32450 something starting with __ and the normal name is an alias. */
32451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32454 char (*f) () = $ac_func;
32463 return f != $ac_func;
32468 rm -f conftest.$ac_objext conftest$ac_exeext
32469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32470 (eval $ac_link) 2>conftest.er1
32472 grep -v '^ *+' conftest.er1 >conftest.err
32474 cat conftest.err >&5
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); } &&
32477 { ac_try='test -z "$ac_c_werror_flag"
32478 || test ! -s conftest.err'
32479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32480 (eval $ac_try) 2>&5
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); }; } &&
32484 { ac_try='test -s conftest$ac_exeext'
32485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486 (eval $ac_try) 2>&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; }; then
32490 eval "$as_ac_var=yes"
32492 echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32495 eval "$as_ac_var=no"
32497 rm -f conftest.err conftest.$ac_objext \
32498 conftest$ac_exeext conftest.$ac_ext
32500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32502 if test `eval echo '${'$as_ac_var'}'` = yes; then
32503 cat >>confdefs.h <<_ACEOF
32504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32510 if test "${ice_have_bcopy}" = yes; then
32511 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
32512 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32513 if test "${ice_cv_have_bcopy_decl+set}" = set; then
32514 echo $ECHO_N "(cached) $ECHO_C" >&6
32517 ice_cv_have_bcopy_decl=no
32518 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32519 ice_re_word='(^|[^a-zA-Z0-9_])'
32520 for header in string.h strings.h stdlib.h; do
32521 # Check for ordinary declaration
32522 cat >conftest.$ac_ext <<_ACEOF
32525 cat confdefs.h >>conftest.$ac_ext
32526 cat >>conftest.$ac_ext <<_ACEOF
32527 /* end confdefs.h. */
32531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32532 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
32533 ice_cv_have_bcopy_decl=yes
32537 if test "$ice_cv_have_bcopy_decl" = yes; then
32540 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32541 cat >conftest.$ac_ext <<_ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h. */
32550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32551 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32552 ice_cv_have_bcopy_decl=yes
32556 if test "$ice_cv_have_bcopy_decl" = yes; then
32563 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
32564 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
32565 if test "$ice_cv_have_bcopy_decl" = yes; then
32567 cat >>confdefs.h <<_ACEOF
32568 #define HAVE_BCOPY_DECL 1
32577 for ac_func in bzero
32579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32580 echo "$as_me:$LINENO: checking for $ac_func" >&5
32581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32582 if eval "test \"\${$as_ac_var+set}\" = set"; then
32583 echo $ECHO_N "(cached) $ECHO_C" >&6
32585 cat >conftest.$ac_ext <<_ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32593 #define $ac_func innocuous_$ac_func
32595 /* System header to define __stub macros and hopefully few prototypes,
32596 which can conflict with char $ac_func (); below.
32597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32598 <limits.h> exists even on freestanding compilers. */
32601 # include <limits.h>
32603 # include <assert.h>
32608 /* Override any gcc2 internal prototype to avoid an error. */
32613 /* We use char because int might match the return type of a gcc2
32614 builtin and then its argument prototype would still apply. */
32616 /* The GNU C library defines this for functions which it implements
32617 to always fail with ENOSYS. Some functions are actually named
32618 something starting with __ and the normal name is an alias. */
32619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32622 char (*f) () = $ac_func;
32631 return f != $ac_func;
32636 rm -f conftest.$ac_objext conftest$ac_exeext
32637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32638 (eval $ac_link) 2>conftest.er1
32640 grep -v '^ *+' conftest.er1 >conftest.err
32642 cat conftest.err >&5
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); } &&
32645 { ac_try='test -z "$ac_c_werror_flag"
32646 || test ! -s conftest.err'
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; } &&
32652 { ac_try='test -s conftest$ac_exeext'
32653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654 (eval $ac_try) 2>&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); }; }; then
32658 eval "$as_ac_var=yes"
32660 echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32663 eval "$as_ac_var=no"
32665 rm -f conftest.err conftest.$ac_objext \
32666 conftest$ac_exeext conftest.$ac_ext
32668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32670 if test `eval echo '${'$as_ac_var'}'` = yes; then
32671 cat >>confdefs.h <<_ACEOF
32672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32678 if test "${ice_have_bzero}" = yes; then
32679 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
32680 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32681 if test "${ice_cv_have_bzero_decl+set}" = set; then
32682 echo $ECHO_N "(cached) $ECHO_C" >&6
32685 ice_cv_have_bzero_decl=no
32686 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32687 ice_re_word='(^|[^a-zA-Z0-9_])'
32688 for header in string.h strings.h stdlib.h; do
32689 # Check for ordinary declaration
32690 cat >conftest.$ac_ext <<_ACEOF
32693 cat confdefs.h >>conftest.$ac_ext
32694 cat >>conftest.$ac_ext <<_ACEOF
32695 /* end confdefs.h. */
32699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32700 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
32701 ice_cv_have_bzero_decl=yes
32705 if test "$ice_cv_have_bzero_decl" = yes; then
32708 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32709 cat >conftest.$ac_ext <<_ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h. */
32718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32719 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32720 ice_cv_have_bzero_decl=yes
32724 if test "$ice_cv_have_bzero_decl" = yes; then
32731 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
32732 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
32733 if test "$ice_cv_have_bzero_decl" = yes; then
32735 cat >>confdefs.h <<_ACEOF
32736 #define HAVE_BZERO_DECL 1
32742 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32743 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
32744 if test "${ac_cv_func_closedir_void+set}" = set; then
32745 echo $ECHO_N "(cached) $ECHO_C" >&6
32747 if test "$cross_compiling" = yes; then
32748 ac_cv_func_closedir_void=yes
32750 cat >conftest.$ac_ext <<_ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h. */
32756 $ac_includes_default
32757 #include <$ac_header_dirent>
32758 #ifndef __cplusplus
32765 exit (closedir (opendir (".")) != 0);
32770 rm -f conftest$ac_exeext
32771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32772 (eval $ac_link) 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 ac_cv_func_closedir_void=no
32783 echo "$as_me: program exited with status $ac_status" >&5
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ( exit $ac_status )
32788 ac_cv_func_closedir_void=yes
32790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32793 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32794 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
32795 if test $ac_cv_func_closedir_void = yes; then
32797 cat >>confdefs.h <<\_ACEOF
32798 #define CLOSEDIR_VOID 1
32804 ice_have_closelog=no
32806 for ac_func in closelog
32808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32809 echo "$as_me:$LINENO: checking for $ac_func" >&5
32810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32811 if eval "test \"\${$as_ac_var+set}\" = set"; then
32812 echo $ECHO_N "(cached) $ECHO_C" >&6
32814 cat >conftest.$ac_ext <<_ACEOF
32817 cat confdefs.h >>conftest.$ac_ext
32818 cat >>conftest.$ac_ext <<_ACEOF
32819 /* end confdefs.h. */
32820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32822 #define $ac_func innocuous_$ac_func
32824 /* System header to define __stub macros and hopefully few prototypes,
32825 which can conflict with char $ac_func (); below.
32826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32827 <limits.h> exists even on freestanding compilers. */
32830 # include <limits.h>
32832 # include <assert.h>
32837 /* Override any gcc2 internal prototype to avoid an error. */
32842 /* We use char because int might match the return type of a gcc2
32843 builtin and then its argument prototype would still apply. */
32845 /* The GNU C library defines this for functions which it implements
32846 to always fail with ENOSYS. Some functions are actually named
32847 something starting with __ and the normal name is an alias. */
32848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32851 char (*f) () = $ac_func;
32860 return f != $ac_func;
32865 rm -f conftest.$ac_objext conftest$ac_exeext
32866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32867 (eval $ac_link) 2>conftest.er1
32869 grep -v '^ *+' conftest.er1 >conftest.err
32871 cat conftest.err >&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } &&
32874 { ac_try='test -z "$ac_c_werror_flag"
32875 || test ! -s conftest.err'
32876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32877 (eval $ac_try) 2>&5
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); }; } &&
32881 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
32887 eval "$as_ac_var=yes"
32889 echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.$ac_ext >&5
32892 eval "$as_ac_var=no"
32894 rm -f conftest.err conftest.$ac_objext \
32895 conftest$ac_exeext conftest.$ac_ext
32897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32899 if test `eval echo '${'$as_ac_var'}'` = yes; then
32900 cat >>confdefs.h <<_ACEOF
32901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32903 ice_have_closelog=yes
32907 if test "${ice_have_closelog}" = yes; then
32908 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
32909 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
32910 if test "${ice_cv_have_closelog_decl+set}" = set; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32914 ice_cv_have_closelog_decl=no
32915 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32916 ice_re_word='(^|[^a-zA-Z0-9_])'
32917 for header in syslog.h; do
32918 # Check for ordinary declaration
32919 cat >conftest.$ac_ext <<_ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h. */
32928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32929 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
32930 ice_cv_have_closelog_decl=yes
32934 if test "$ice_cv_have_closelog_decl" = yes; then
32937 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32938 cat >conftest.$ac_ext <<_ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h. */
32947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32948 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32949 ice_cv_have_closelog_decl=yes
32953 if test "$ice_cv_have_closelog_decl" = yes; then
32960 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
32961 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
32962 if test "$ice_cv_have_closelog_decl" = yes; then
32964 cat >>confdefs.h <<_ACEOF
32965 #define HAVE_CLOSELOG_DECL 1
32972 ice_have_connect=no
32974 for ac_func in connect
32976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32977 echo "$as_me:$LINENO: checking for $ac_func" >&5
32978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32979 if eval "test \"\${$as_ac_var+set}\" = set"; then
32980 echo $ECHO_N "(cached) $ECHO_C" >&6
32982 cat >conftest.$ac_ext <<_ACEOF
32985 cat confdefs.h >>conftest.$ac_ext
32986 cat >>conftest.$ac_ext <<_ACEOF
32987 /* end confdefs.h. */
32988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32990 #define $ac_func innocuous_$ac_func
32992 /* System header to define __stub macros and hopefully few prototypes,
32993 which can conflict with char $ac_func (); below.
32994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32995 <limits.h> exists even on freestanding compilers. */
32998 # include <limits.h>
33000 # include <assert.h>
33005 /* Override any gcc2 internal prototype to avoid an error. */
33010 /* We use char because int might match the return type of a gcc2
33011 builtin and then its argument prototype would still apply. */
33013 /* The GNU C library defines this for functions which it implements
33014 to always fail with ENOSYS. Some functions are actually named
33015 something starting with __ and the normal name is an alias. */
33016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33019 char (*f) () = $ac_func;
33028 return f != $ac_func;
33033 rm -f conftest.$ac_objext conftest$ac_exeext
33034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33035 (eval $ac_link) 2>conftest.er1
33037 grep -v '^ *+' conftest.er1 >conftest.err
33039 cat conftest.err >&5
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); } &&
33042 { ac_try='test -z "$ac_c_werror_flag"
33043 || test ! -s conftest.err'
33044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33045 (eval $ac_try) 2>&5
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); }; } &&
33049 { ac_try='test -s conftest$ac_exeext'
33050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 (eval $ac_try) 2>&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; }; then
33055 eval "$as_ac_var=yes"
33057 echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.$ac_ext >&5
33060 eval "$as_ac_var=no"
33062 rm -f conftest.err conftest.$ac_objext \
33063 conftest$ac_exeext conftest.$ac_ext
33065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33067 if test `eval echo '${'$as_ac_var'}'` = yes; then
33068 cat >>confdefs.h <<_ACEOF
33069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33071 ice_have_connect=yes
33075 if test "${ice_have_connect}" = yes; then
33076 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
33077 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
33078 if test "${ice_cv_have_connect_decl+set}" = set; then
33079 echo $ECHO_N "(cached) $ECHO_C" >&6
33082 ice_cv_have_connect_decl=no
33083 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33084 ice_re_word='(^|[^a-zA-Z0-9_])'
33085 for header in sys/types.h sys/socket.h; do
33086 # Check for ordinary declaration
33087 cat >conftest.$ac_ext <<_ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h. */
33096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33097 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
33098 ice_cv_have_connect_decl=yes
33102 if test "$ice_cv_have_connect_decl" = yes; then
33105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33106 cat >conftest.$ac_ext <<_ACEOF
33109 cat confdefs.h >>conftest.$ac_ext
33110 cat >>conftest.$ac_ext <<_ACEOF
33111 /* end confdefs.h. */
33115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33116 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33117 ice_cv_have_connect_decl=yes
33121 if test "$ice_cv_have_connect_decl" = yes; then
33128 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
33129 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
33130 if test "$ice_cv_have_connect_decl" = yes; then
33132 cat >>confdefs.h <<_ACEOF
33133 #define HAVE_CONNECT_DECL 1
33140 ice_have_dbm_open=no
33142 for ac_func in dbm_open
33144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33145 echo "$as_me:$LINENO: checking for $ac_func" >&5
33146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33147 if eval "test \"\${$as_ac_var+set}\" = set"; then
33148 echo $ECHO_N "(cached) $ECHO_C" >&6
33150 cat >conftest.$ac_ext <<_ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h. */
33156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33158 #define $ac_func innocuous_$ac_func
33160 /* System header to define __stub macros and hopefully few prototypes,
33161 which can conflict with char $ac_func (); below.
33162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33163 <limits.h> exists even on freestanding compilers. */
33166 # include <limits.h>
33168 # include <assert.h>
33173 /* Override any gcc2 internal prototype to avoid an error. */
33178 /* We use char because int might match the return type of a gcc2
33179 builtin and then its argument prototype would still apply. */
33181 /* The GNU C library defines this for functions which it implements
33182 to always fail with ENOSYS. Some functions are actually named
33183 something starting with __ and the normal name is an alias. */
33184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33187 char (*f) () = $ac_func;
33196 return f != $ac_func;
33201 rm -f conftest.$ac_objext conftest$ac_exeext
33202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33203 (eval $ac_link) 2>conftest.er1
33205 grep -v '^ *+' conftest.er1 >conftest.err
33207 cat conftest.err >&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); } &&
33210 { ac_try='test -z "$ac_c_werror_flag"
33211 || test ! -s conftest.err'
33212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33213 (eval $ac_try) 2>&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; } &&
33217 { ac_try='test -s conftest$ac_exeext'
33218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33219 (eval $ac_try) 2>&5
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); }; }; then
33223 eval "$as_ac_var=yes"
33225 echo "$as_me: failed program was:" >&5
33226 sed 's/^/| /' conftest.$ac_ext >&5
33228 eval "$as_ac_var=no"
33230 rm -f conftest.err conftest.$ac_objext \
33231 conftest$ac_exeext conftest.$ac_ext
33233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33235 if test `eval echo '${'$as_ac_var'}'` = yes; then
33236 cat >>confdefs.h <<_ACEOF
33237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33239 ice_have_dbm_open=yes
33243 if test "${ice_have_dbm_open}" = yes; then
33244 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
33245 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
33246 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
33247 echo $ECHO_N "(cached) $ECHO_C" >&6
33250 ice_cv_have_dbm_open_decl=no
33251 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33252 ice_re_word='(^|[^a-zA-Z0-9_])'
33253 for header in ${DB_HEADER-no/db/header/file}; do
33254 # Check for ordinary declaration
33255 cat >conftest.$ac_ext <<_ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h. */
33264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33265 $EGREP "${ice_re_word}dbm_open[ ]*\(" >/dev/null 2>&1; then
33266 ice_cv_have_dbm_open_decl=yes
33270 if test "$ice_cv_have_dbm_open_decl" = yes; then
33273 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33274 cat >conftest.$ac_ext <<_ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h. */
33283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33284 $EGREP "${ice_re_word}dbm_open[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33285 ice_cv_have_dbm_open_decl=yes
33289 if test "$ice_cv_have_dbm_open_decl" = yes; then
33296 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
33297 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
33298 if test "$ice_cv_have_dbm_open_decl" = yes; then
33300 cat >>confdefs.h <<_ACEOF
33301 #define HAVE_DBM_OPEN_DECL 1
33308 for ac_func in endmntent
33310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33311 echo "$as_me:$LINENO: checking for $ac_func" >&5
33312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33313 if eval "test \"\${$as_ac_var+set}\" = set"; then
33314 echo $ECHO_N "(cached) $ECHO_C" >&6
33316 cat >conftest.$ac_ext <<_ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h. */
33322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33324 #define $ac_func innocuous_$ac_func
33326 /* System header to define __stub macros and hopefully few prototypes,
33327 which can conflict with char $ac_func (); below.
33328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33329 <limits.h> exists even on freestanding compilers. */
33332 # include <limits.h>
33334 # include <assert.h>
33339 /* Override any gcc2 internal prototype to avoid an error. */
33344 /* We use char because int might match the return type of a gcc2
33345 builtin and then its argument prototype would still apply. */
33347 /* The GNU C library defines this for functions which it implements
33348 to always fail with ENOSYS. Some functions are actually named
33349 something starting with __ and the normal name is an alias. */
33350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33353 char (*f) () = $ac_func;
33362 return f != $ac_func;
33367 rm -f conftest.$ac_objext conftest$ac_exeext
33368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33369 (eval $ac_link) 2>conftest.er1
33371 grep -v '^ *+' conftest.er1 >conftest.err
33373 cat conftest.err >&5
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); } &&
33376 { ac_try='test -z "$ac_c_werror_flag"
33377 || test ! -s conftest.err'
33378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33379 (eval $ac_try) 2>&5
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); }; } &&
33383 { ac_try='test -s conftest$ac_exeext'
33384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33385 (eval $ac_try) 2>&5
33387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388 (exit $ac_status); }; }; then
33389 eval "$as_ac_var=yes"
33391 echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33394 eval "$as_ac_var=no"
33396 rm -f conftest.err conftest.$ac_objext \
33397 conftest$ac_exeext conftest.$ac_ext
33399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33401 if test `eval echo '${'$as_ac_var'}'` = yes; then
33402 cat >>confdefs.h <<_ACEOF
33403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33412 for ac_func in fclose
33414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33415 echo "$as_me:$LINENO: checking for $ac_func" >&5
33416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33417 if eval "test \"\${$as_ac_var+set}\" = set"; then
33418 echo $ECHO_N "(cached) $ECHO_C" >&6
33420 cat >conftest.$ac_ext <<_ACEOF
33423 cat confdefs.h >>conftest.$ac_ext
33424 cat >>conftest.$ac_ext <<_ACEOF
33425 /* end confdefs.h. */
33426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33428 #define $ac_func innocuous_$ac_func
33430 /* System header to define __stub macros and hopefully few prototypes,
33431 which can conflict with char $ac_func (); below.
33432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33433 <limits.h> exists even on freestanding compilers. */
33436 # include <limits.h>
33438 # include <assert.h>
33443 /* Override any gcc2 internal prototype to avoid an error. */
33448 /* We use char because int might match the return type of a gcc2
33449 builtin and then its argument prototype would still apply. */
33451 /* The GNU C library defines this for functions which it implements
33452 to always fail with ENOSYS. Some functions are actually named
33453 something starting with __ and the normal name is an alias. */
33454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33457 char (*f) () = $ac_func;
33466 return f != $ac_func;
33471 rm -f conftest.$ac_objext conftest$ac_exeext
33472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33473 (eval $ac_link) 2>conftest.er1
33475 grep -v '^ *+' conftest.er1 >conftest.err
33477 cat conftest.err >&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } &&
33480 { ac_try='test -z "$ac_c_werror_flag"
33481 || test ! -s conftest.err'
33482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 (eval $ac_try) 2>&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; } &&
33487 { ac_try='test -s conftest$ac_exeext'
33488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 (eval $ac_try) 2>&5
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; }; then
33493 eval "$as_ac_var=yes"
33495 echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33498 eval "$as_ac_var=no"
33500 rm -f conftest.err conftest.$ac_objext \
33501 conftest$ac_exeext conftest.$ac_ext
33503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33505 if test `eval echo '${'$as_ac_var'}'` = yes; then
33506 cat >>confdefs.h <<_ACEOF
33507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33509 ice_have_fclose=yes
33513 if test "${ice_have_fclose}" = yes; then
33514 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
33515 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
33516 if test "${ice_cv_have_fclose_decl+set}" = set; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33520 ice_cv_have_fclose_decl=no
33521 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33522 ice_re_word='(^|[^a-zA-Z0-9_])'
33523 for header in stdio.h; do
33524 # Check for ordinary declaration
33525 cat >conftest.$ac_ext <<_ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h. */
33534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33535 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
33536 ice_cv_have_fclose_decl=yes
33540 if test "$ice_cv_have_fclose_decl" = yes; then
33543 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33544 cat >conftest.$ac_ext <<_ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h. */
33553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33554 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33555 ice_cv_have_fclose_decl=yes
33559 if test "$ice_cv_have_fclose_decl" = yes; then
33566 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
33567 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
33568 if test "$ice_cv_have_fclose_decl" = yes; then
33570 cat >>confdefs.h <<_ACEOF
33571 #define HAVE_FCLOSE_DECL 1
33580 for ac_func in fflush
33582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33583 echo "$as_me:$LINENO: checking for $ac_func" >&5
33584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33585 if eval "test \"\${$as_ac_var+set}\" = set"; then
33586 echo $ECHO_N "(cached) $ECHO_C" >&6
33588 cat >conftest.$ac_ext <<_ACEOF
33591 cat confdefs.h >>conftest.$ac_ext
33592 cat >>conftest.$ac_ext <<_ACEOF
33593 /* end confdefs.h. */
33594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33596 #define $ac_func innocuous_$ac_func
33598 /* System header to define __stub macros and hopefully few prototypes,
33599 which can conflict with char $ac_func (); below.
33600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33601 <limits.h> exists even on freestanding compilers. */
33604 # include <limits.h>
33606 # include <assert.h>
33611 /* Override any gcc2 internal prototype to avoid an error. */
33616 /* We use char because int might match the return type of a gcc2
33617 builtin and then its argument prototype would still apply. */
33619 /* The GNU C library defines this for functions which it implements
33620 to always fail with ENOSYS. Some functions are actually named
33621 something starting with __ and the normal name is an alias. */
33622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33625 char (*f) () = $ac_func;
33634 return f != $ac_func;
33639 rm -f conftest.$ac_objext conftest$ac_exeext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33641 (eval $ac_link) 2>conftest.er1
33643 grep -v '^ *+' conftest.er1 >conftest.err
33645 cat conftest.err >&5
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } &&
33648 { ac_try='test -z "$ac_c_werror_flag"
33649 || test ! -s conftest.err'
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; } &&
33655 { ac_try='test -s conftest$ac_exeext'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33661 eval "$as_ac_var=yes"
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33666 eval "$as_ac_var=no"
33668 rm -f conftest.err conftest.$ac_objext \
33669 conftest$ac_exeext conftest.$ac_ext
33671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33673 if test `eval echo '${'$as_ac_var'}'` = yes; then
33674 cat >>confdefs.h <<_ACEOF
33675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33677 ice_have_fflush=yes
33681 if test "${ice_have_fflush}" = yes; then
33682 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
33683 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
33684 if test "${ice_cv_have_fflush_decl+set}" = set; then
33685 echo $ECHO_N "(cached) $ECHO_C" >&6
33688 ice_cv_have_fflush_decl=no
33689 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33690 ice_re_word='(^|[^a-zA-Z0-9_])'
33691 for header in stdio.h; do
33692 # Check for ordinary declaration
33693 cat >conftest.$ac_ext <<_ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h. */
33702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33703 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
33704 ice_cv_have_fflush_decl=yes
33708 if test "$ice_cv_have_fflush_decl" = yes; then
33711 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33712 cat >conftest.$ac_ext <<_ACEOF
33715 cat confdefs.h >>conftest.$ac_ext
33716 cat >>conftest.$ac_ext <<_ACEOF
33717 /* end confdefs.h. */
33721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33722 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33723 ice_cv_have_fflush_decl=yes
33727 if test "$ice_cv_have_fflush_decl" = yes; then
33734 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
33735 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
33736 if test "$ice_cv_have_fflush_decl" = yes; then
33738 cat >>confdefs.h <<_ACEOF
33739 #define HAVE_FFLUSH_DECL 1
33748 for ac_func in flock
33750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33751 echo "$as_me:$LINENO: checking for $ac_func" >&5
33752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33753 if eval "test \"\${$as_ac_var+set}\" = set"; then
33754 echo $ECHO_N "(cached) $ECHO_C" >&6
33756 cat >conftest.$ac_ext <<_ACEOF
33759 cat confdefs.h >>conftest.$ac_ext
33760 cat >>conftest.$ac_ext <<_ACEOF
33761 /* end confdefs.h. */
33762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33764 #define $ac_func innocuous_$ac_func
33766 /* System header to define __stub macros and hopefully few prototypes,
33767 which can conflict with char $ac_func (); below.
33768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33769 <limits.h> exists even on freestanding compilers. */
33772 # include <limits.h>
33774 # include <assert.h>
33779 /* Override any gcc2 internal prototype to avoid an error. */
33784 /* We use char because int might match the return type of a gcc2
33785 builtin and then its argument prototype would still apply. */
33787 /* The GNU C library defines this for functions which it implements
33788 to always fail with ENOSYS. Some functions are actually named
33789 something starting with __ and the normal name is an alias. */
33790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33793 char (*f) () = $ac_func;
33802 return f != $ac_func;
33807 rm -f conftest.$ac_objext conftest$ac_exeext
33808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33809 (eval $ac_link) 2>conftest.er1
33811 grep -v '^ *+' conftest.er1 >conftest.err
33813 cat conftest.err >&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); } &&
33816 { ac_try='test -z "$ac_c_werror_flag"
33817 || test ! -s conftest.err'
33818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819 (eval $ac_try) 2>&5
33821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822 (exit $ac_status); }; } &&
33823 { ac_try='test -s conftest$ac_exeext'
33824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33825 (eval $ac_try) 2>&5
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); }; }; then
33829 eval "$as_ac_var=yes"
33831 echo "$as_me: failed program was:" >&5
33832 sed 's/^/| /' conftest.$ac_ext >&5
33834 eval "$as_ac_var=no"
33836 rm -f conftest.err conftest.$ac_objext \
33837 conftest$ac_exeext conftest.$ac_ext
33839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33841 if test `eval echo '${'$as_ac_var'}'` = yes; then
33842 cat >>confdefs.h <<_ACEOF
33843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33849 if test "${ice_have_flock}" = yes; then
33850 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
33851 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
33852 if test "${ice_cv_have_flock_decl+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33856 ice_cv_have_flock_decl=no
33857 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33858 ice_re_word='(^|[^a-zA-Z0-9_])'
33859 for header in sys/file.h; do
33860 # Check for ordinary declaration
33861 cat >conftest.$ac_ext <<_ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h. */
33870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33871 $EGREP "${ice_re_word}flock[ ]*\(" >/dev/null 2>&1; then
33872 ice_cv_have_flock_decl=yes
33876 if test "$ice_cv_have_flock_decl" = yes; then
33879 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33880 cat >conftest.$ac_ext <<_ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h. */
33889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33890 $EGREP "${ice_re_word}flock[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33891 ice_cv_have_flock_decl=yes
33895 if test "$ice_cv_have_flock_decl" = yes; then
33902 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
33903 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
33904 if test "$ice_cv_have_flock_decl" = yes; then
33906 cat >>confdefs.h <<_ACEOF
33907 #define HAVE_FLOCK_DECL 1
33914 ice_have_fprintf=no
33916 for ac_func in fprintf
33918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33919 echo "$as_me:$LINENO: checking for $ac_func" >&5
33920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33921 if eval "test \"\${$as_ac_var+set}\" = set"; then
33922 echo $ECHO_N "(cached) $ECHO_C" >&6
33924 cat >conftest.$ac_ext <<_ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h. */
33930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33932 #define $ac_func innocuous_$ac_func
33934 /* System header to define __stub macros and hopefully few prototypes,
33935 which can conflict with char $ac_func (); below.
33936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33937 <limits.h> exists even on freestanding compilers. */
33940 # include <limits.h>
33942 # include <assert.h>
33947 /* Override any gcc2 internal prototype to avoid an error. */
33952 /* We use char because int might match the return type of a gcc2
33953 builtin and then its argument prototype would still apply. */
33955 /* The GNU C library defines this for functions which it implements
33956 to always fail with ENOSYS. Some functions are actually named
33957 something starting with __ and the normal name is an alias. */
33958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33961 char (*f) () = $ac_func;
33970 return f != $ac_func;
33975 rm -f conftest.$ac_objext conftest$ac_exeext
33976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33977 (eval $ac_link) 2>conftest.er1
33979 grep -v '^ *+' conftest.er1 >conftest.err
33981 cat conftest.err >&5
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); } &&
33984 { ac_try='test -z "$ac_c_werror_flag"
33985 || test ! -s conftest.err'
33986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33987 (eval $ac_try) 2>&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); }; } &&
33991 { ac_try='test -s conftest$ac_exeext'
33992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33993 (eval $ac_try) 2>&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; }; then
33997 eval "$as_ac_var=yes"
33999 echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34002 eval "$as_ac_var=no"
34004 rm -f conftest.err conftest.$ac_objext \
34005 conftest$ac_exeext conftest.$ac_ext
34007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34009 if test `eval echo '${'$as_ac_var'}'` = yes; then
34010 cat >>confdefs.h <<_ACEOF
34011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34013 ice_have_fprintf=yes
34017 if test "${ice_have_fprintf}" = yes; then
34018 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
34019 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
34020 if test "${ice_cv_have_fprintf_decl+set}" = set; then
34021 echo $ECHO_N "(cached) $ECHO_C" >&6
34024 ice_cv_have_fprintf_decl=no
34025 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34026 ice_re_word='(^|[^a-zA-Z0-9_])'
34027 for header in stdio.h; do
34028 # Check for ordinary declaration
34029 cat >conftest.$ac_ext <<_ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h. */
34038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34039 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
34040 ice_cv_have_fprintf_decl=yes
34044 if test "$ice_cv_have_fprintf_decl" = yes; then
34047 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34048 cat >conftest.$ac_ext <<_ACEOF
34051 cat confdefs.h >>conftest.$ac_ext
34052 cat >>conftest.$ac_ext <<_ACEOF
34053 /* end confdefs.h. */
34057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34058 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34059 ice_cv_have_fprintf_decl=yes
34063 if test "$ice_cv_have_fprintf_decl" = yes; then
34070 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
34071 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
34072 if test "$ice_cv_have_fprintf_decl" = yes; then
34074 cat >>confdefs.h <<_ACEOF
34075 #define HAVE_FPRINTF_DECL 1
34084 for ac_func in fputc
34086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34087 echo "$as_me:$LINENO: checking for $ac_func" >&5
34088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34089 if eval "test \"\${$as_ac_var+set}\" = set"; then
34090 echo $ECHO_N "(cached) $ECHO_C" >&6
34092 cat >conftest.$ac_ext <<_ACEOF
34095 cat confdefs.h >>conftest.$ac_ext
34096 cat >>conftest.$ac_ext <<_ACEOF
34097 /* end confdefs.h. */
34098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34100 #define $ac_func innocuous_$ac_func
34102 /* System header to define __stub macros and hopefully few prototypes,
34103 which can conflict with char $ac_func (); below.
34104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34105 <limits.h> exists even on freestanding compilers. */
34108 # include <limits.h>
34110 # include <assert.h>
34115 /* Override any gcc2 internal prototype to avoid an error. */
34120 /* We use char because int might match the return type of a gcc2
34121 builtin and then its argument prototype would still apply. */
34123 /* The GNU C library defines this for functions which it implements
34124 to always fail with ENOSYS. Some functions are actually named
34125 something starting with __ and the normal name is an alias. */
34126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34129 char (*f) () = $ac_func;
34138 return f != $ac_func;
34143 rm -f conftest.$ac_objext conftest$ac_exeext
34144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34145 (eval $ac_link) 2>conftest.er1
34147 grep -v '^ *+' conftest.er1 >conftest.err
34149 cat conftest.err >&5
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); } &&
34152 { ac_try='test -z "$ac_c_werror_flag"
34153 || test ! -s conftest.err'
34154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34155 (eval $ac_try) 2>&5
34157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 (exit $ac_status); }; } &&
34159 { ac_try='test -s conftest$ac_exeext'
34160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34161 (eval $ac_try) 2>&5
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); }; }; then
34165 eval "$as_ac_var=yes"
34167 echo "$as_me: failed program was:" >&5
34168 sed 's/^/| /' conftest.$ac_ext >&5
34170 eval "$as_ac_var=no"
34172 rm -f conftest.err conftest.$ac_objext \
34173 conftest$ac_exeext conftest.$ac_ext
34175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34177 if test `eval echo '${'$as_ac_var'}'` = yes; then
34178 cat >>confdefs.h <<_ACEOF
34179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34185 if test "${ice_have_fputc}" = yes; then
34186 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
34187 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
34188 if test "${ice_cv_have_fputc_decl+set}" = set; then
34189 echo $ECHO_N "(cached) $ECHO_C" >&6
34192 ice_cv_have_fputc_decl=no
34193 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34194 ice_re_word='(^|[^a-zA-Z0-9_])'
34195 for header in stdio.h; do
34196 # Check for ordinary declaration
34197 cat >conftest.$ac_ext <<_ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h. */
34206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34207 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
34208 ice_cv_have_fputc_decl=yes
34212 if test "$ice_cv_have_fputc_decl" = yes; then
34215 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34216 cat >conftest.$ac_ext <<_ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h. */
34225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34226 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34227 ice_cv_have_fputc_decl=yes
34231 if test "$ice_cv_have_fputc_decl" = yes; then
34238 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
34239 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
34240 if test "$ice_cv_have_fputc_decl" = yes; then
34242 cat >>confdefs.h <<_ACEOF
34243 #define HAVE_FPUTC_DECL 1
34252 for ac_func in fputs
34254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34255 echo "$as_me:$LINENO: checking for $ac_func" >&5
34256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34257 if eval "test \"\${$as_ac_var+set}\" = set"; then
34258 echo $ECHO_N "(cached) $ECHO_C" >&6
34260 cat >conftest.$ac_ext <<_ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h. */
34266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34268 #define $ac_func innocuous_$ac_func
34270 /* System header to define __stub macros and hopefully few prototypes,
34271 which can conflict with char $ac_func (); below.
34272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34273 <limits.h> exists even on freestanding compilers. */
34276 # include <limits.h>
34278 # include <assert.h>
34283 /* Override any gcc2 internal prototype to avoid an error. */
34288 /* We use char because int might match the return type of a gcc2
34289 builtin and then its argument prototype would still apply. */
34291 /* The GNU C library defines this for functions which it implements
34292 to always fail with ENOSYS. Some functions are actually named
34293 something starting with __ and the normal name is an alias. */
34294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34297 char (*f) () = $ac_func;
34306 return f != $ac_func;
34311 rm -f conftest.$ac_objext conftest$ac_exeext
34312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34313 (eval $ac_link) 2>conftest.er1
34315 grep -v '^ *+' conftest.er1 >conftest.err
34317 cat conftest.err >&5
34318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319 (exit $ac_status); } &&
34320 { ac_try='test -z "$ac_c_werror_flag"
34321 || test ! -s conftest.err'
34322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323 (eval $ac_try) 2>&5
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); }; } &&
34327 { ac_try='test -s conftest$ac_exeext'
34328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34329 (eval $ac_try) 2>&5
34331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332 (exit $ac_status); }; }; then
34333 eval "$as_ac_var=yes"
34335 echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34338 eval "$as_ac_var=no"
34340 rm -f conftest.err conftest.$ac_objext \
34341 conftest$ac_exeext conftest.$ac_ext
34343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34345 if test `eval echo '${'$as_ac_var'}'` = yes; then
34346 cat >>confdefs.h <<_ACEOF
34347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34353 if test "${ice_have_fputs}" = yes; then
34354 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
34355 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
34356 if test "${ice_cv_have_fputs_decl+set}" = set; then
34357 echo $ECHO_N "(cached) $ECHO_C" >&6
34360 ice_cv_have_fputs_decl=no
34361 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34362 ice_re_word='(^|[^a-zA-Z0-9_])'
34363 for header in stdio.h; do
34364 # Check for ordinary declaration
34365 cat >conftest.$ac_ext <<_ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h. */
34374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34375 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
34376 ice_cv_have_fputs_decl=yes
34380 if test "$ice_cv_have_fputs_decl" = yes; then
34383 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34384 cat >conftest.$ac_ext <<_ACEOF
34387 cat confdefs.h >>conftest.$ac_ext
34388 cat >>conftest.$ac_ext <<_ACEOF
34389 /* end confdefs.h. */
34393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34394 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34395 ice_cv_have_fputs_decl=yes
34399 if test "$ice_cv_have_fputs_decl" = yes; then
34406 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
34407 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
34408 if test "$ice_cv_have_fputs_decl" = yes; then
34410 cat >>confdefs.h <<_ACEOF
34411 #define HAVE_FPUTS_DECL 1
34420 for ac_func in fread
34422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34423 echo "$as_me:$LINENO: checking for $ac_func" >&5
34424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34425 if eval "test \"\${$as_ac_var+set}\" = set"; then
34426 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 cat >conftest.$ac_ext <<_ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h. */
34434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34436 #define $ac_func innocuous_$ac_func
34438 /* System header to define __stub macros and hopefully few prototypes,
34439 which can conflict with char $ac_func (); below.
34440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34441 <limits.h> exists even on freestanding compilers. */
34444 # include <limits.h>
34446 # include <assert.h>
34451 /* Override any gcc2 internal prototype to avoid an error. */
34456 /* We use char because int might match the return type of a gcc2
34457 builtin and then its argument prototype would still apply. */
34459 /* The GNU C library defines this for functions which it implements
34460 to always fail with ENOSYS. Some functions are actually named
34461 something starting with __ and the normal name is an alias. */
34462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34465 char (*f) () = $ac_func;
34474 return f != $ac_func;
34479 rm -f conftest.$ac_objext conftest$ac_exeext
34480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34481 (eval $ac_link) 2>conftest.er1
34483 grep -v '^ *+' conftest.er1 >conftest.err
34485 cat conftest.err >&5
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
34488 { ac_try='test -z "$ac_c_werror_flag"
34489 || test ! -s conftest.err'
34490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491 (eval $ac_try) 2>&5
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); }; } &&
34495 { ac_try='test -s conftest$ac_exeext'
34496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 (eval $ac_try) 2>&5
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; }; then
34501 eval "$as_ac_var=yes"
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 eval "$as_ac_var=no"
34508 rm -f conftest.err conftest.$ac_objext \
34509 conftest$ac_exeext conftest.$ac_ext
34511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34513 if test `eval echo '${'$as_ac_var'}'` = yes; then
34514 cat >>confdefs.h <<_ACEOF
34515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34521 if test "${ice_have_fread}" = yes; then
34522 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
34523 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
34524 if test "${ice_cv_have_fread_decl+set}" = set; then
34525 echo $ECHO_N "(cached) $ECHO_C" >&6
34528 ice_cv_have_fread_decl=no
34529 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34530 ice_re_word='(^|[^a-zA-Z0-9_])'
34531 for header in stdio.h stdlib.h; do
34532 # Check for ordinary declaration
34533 cat >conftest.$ac_ext <<_ACEOF
34536 cat confdefs.h >>conftest.$ac_ext
34537 cat >>conftest.$ac_ext <<_ACEOF
34538 /* end confdefs.h. */
34542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34543 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
34544 ice_cv_have_fread_decl=yes
34548 if test "$ice_cv_have_fread_decl" = yes; then
34551 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34552 cat >conftest.$ac_ext <<_ACEOF
34555 cat confdefs.h >>conftest.$ac_ext
34556 cat >>conftest.$ac_ext <<_ACEOF
34557 /* end confdefs.h. */
34561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34562 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34563 ice_cv_have_fread_decl=yes
34567 if test "$ice_cv_have_fread_decl" = yes; then
34574 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
34575 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
34576 if test "$ice_cv_have_fread_decl" = yes; then
34578 cat >>confdefs.h <<_ACEOF
34579 #define HAVE_FREAD_DECL 1
34588 for ac_func in fseek
34590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34591 echo "$as_me:$LINENO: checking for $ac_func" >&5
34592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34593 if eval "test \"\${$as_ac_var+set}\" = set"; then
34594 echo $ECHO_N "(cached) $ECHO_C" >&6
34596 cat >conftest.$ac_ext <<_ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h. */
34602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34604 #define $ac_func innocuous_$ac_func
34606 /* System header to define __stub macros and hopefully few prototypes,
34607 which can conflict with char $ac_func (); below.
34608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34609 <limits.h> exists even on freestanding compilers. */
34612 # include <limits.h>
34614 # include <assert.h>
34619 /* Override any gcc2 internal prototype to avoid an error. */
34624 /* We use char because int might match the return type of a gcc2
34625 builtin and then its argument prototype would still apply. */
34627 /* The GNU C library defines this for functions which it implements
34628 to always fail with ENOSYS. Some functions are actually named
34629 something starting with __ and the normal name is an alias. */
34630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34633 char (*f) () = $ac_func;
34642 return f != $ac_func;
34647 rm -f conftest.$ac_objext conftest$ac_exeext
34648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34649 (eval $ac_link) 2>conftest.er1
34651 grep -v '^ *+' conftest.er1 >conftest.err
34653 cat conftest.err >&5
34654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655 (exit $ac_status); } &&
34656 { ac_try='test -z "$ac_c_werror_flag"
34657 || test ! -s conftest.err'
34658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659 (eval $ac_try) 2>&5
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); }; } &&
34663 { ac_try='test -s conftest$ac_exeext'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 eval "$as_ac_var=yes"
34671 echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34674 eval "$as_ac_var=no"
34676 rm -f conftest.err conftest.$ac_objext \
34677 conftest$ac_exeext conftest.$ac_ext
34679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34681 if test `eval echo '${'$as_ac_var'}'` = yes; then
34682 cat >>confdefs.h <<_ACEOF
34683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34689 if test "${ice_have_fseek}" = yes; then
34690 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
34691 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
34692 if test "${ice_cv_have_fseek_decl+set}" = set; then
34693 echo $ECHO_N "(cached) $ECHO_C" >&6
34696 ice_cv_have_fseek_decl=no
34697 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34698 ice_re_word='(^|[^a-zA-Z0-9_])'
34699 for header in stdio.h; do
34700 # Check for ordinary declaration
34701 cat >conftest.$ac_ext <<_ACEOF
34704 cat confdefs.h >>conftest.$ac_ext
34705 cat >>conftest.$ac_ext <<_ACEOF
34706 /* end confdefs.h. */
34710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34711 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
34712 ice_cv_have_fseek_decl=yes
34716 if test "$ice_cv_have_fseek_decl" = yes; then
34719 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34720 cat >conftest.$ac_ext <<_ACEOF
34723 cat confdefs.h >>conftest.$ac_ext
34724 cat >>conftest.$ac_ext <<_ACEOF
34725 /* end confdefs.h. */
34729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34730 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34731 ice_cv_have_fseek_decl=yes
34735 if test "$ice_cv_have_fseek_decl" = yes; then
34742 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
34743 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
34744 if test "$ice_cv_have_fseek_decl" = yes; then
34746 cat >>confdefs.h <<_ACEOF
34747 #define HAVE_FSEEK_DECL 1
34756 for ac_func in fwrite
34758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34759 echo "$as_me:$LINENO: checking for $ac_func" >&5
34760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34761 if eval "test \"\${$as_ac_var+set}\" = set"; then
34762 echo $ECHO_N "(cached) $ECHO_C" >&6
34764 cat >conftest.$ac_ext <<_ACEOF
34767 cat confdefs.h >>conftest.$ac_ext
34768 cat >>conftest.$ac_ext <<_ACEOF
34769 /* end confdefs.h. */
34770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34772 #define $ac_func innocuous_$ac_func
34774 /* System header to define __stub macros and hopefully few prototypes,
34775 which can conflict with char $ac_func (); below.
34776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34777 <limits.h> exists even on freestanding compilers. */
34780 # include <limits.h>
34782 # include <assert.h>
34787 /* Override any gcc2 internal prototype to avoid an error. */
34792 /* We use char because int might match the return type of a gcc2
34793 builtin and then its argument prototype would still apply. */
34795 /* The GNU C library defines this for functions which it implements
34796 to always fail with ENOSYS. Some functions are actually named
34797 something starting with __ and the normal name is an alias. */
34798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34801 char (*f) () = $ac_func;
34810 return f != $ac_func;
34815 rm -f conftest.$ac_objext conftest$ac_exeext
34816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34817 (eval $ac_link) 2>conftest.er1
34819 grep -v '^ *+' conftest.er1 >conftest.err
34821 cat conftest.err >&5
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); } &&
34824 { ac_try='test -z "$ac_c_werror_flag"
34825 || test ! -s conftest.err'
34826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827 (eval $ac_try) 2>&5
34829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); }; } &&
34831 { ac_try='test -s conftest$ac_exeext'
34832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833 (eval $ac_try) 2>&5
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); }; }; then
34837 eval "$as_ac_var=yes"
34839 echo "$as_me: failed program was:" >&5
34840 sed 's/^/| /' conftest.$ac_ext >&5
34842 eval "$as_ac_var=no"
34844 rm -f conftest.err conftest.$ac_objext \
34845 conftest$ac_exeext conftest.$ac_ext
34847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34849 if test `eval echo '${'$as_ac_var'}'` = yes; then
34850 cat >>confdefs.h <<_ACEOF
34851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34853 ice_have_fwrite=yes
34857 if test "${ice_have_fwrite}" = yes; then
34858 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
34859 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
34860 if test "${ice_cv_have_fwrite_decl+set}" = set; then
34861 echo $ECHO_N "(cached) $ECHO_C" >&6
34864 ice_cv_have_fwrite_decl=no
34865 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34866 ice_re_word='(^|[^a-zA-Z0-9_])'
34867 for header in stdio.h stdlib.h; do
34868 # Check for ordinary declaration
34869 cat >conftest.$ac_ext <<_ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34879 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
34880 ice_cv_have_fwrite_decl=yes
34884 if test "$ice_cv_have_fwrite_decl" = yes; then
34887 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34888 cat >conftest.$ac_ext <<_ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h. */
34897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34898 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34899 ice_cv_have_fwrite_decl=yes
34903 if test "$ice_cv_have_fwrite_decl" = yes; then
34910 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
34911 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
34912 if test "$ice_cv_have_fwrite_decl" = yes; then
34914 cat >>confdefs.h <<_ACEOF
34915 #define HAVE_FWRITE_DECL 1
34922 for ac_func in getcwd
34924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34925 echo "$as_me:$LINENO: checking for $ac_func" >&5
34926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34927 if eval "test \"\${$as_ac_var+set}\" = set"; then
34928 echo $ECHO_N "(cached) $ECHO_C" >&6
34930 cat >conftest.$ac_ext <<_ACEOF
34933 cat confdefs.h >>conftest.$ac_ext
34934 cat >>conftest.$ac_ext <<_ACEOF
34935 /* end confdefs.h. */
34936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34938 #define $ac_func innocuous_$ac_func
34940 /* System header to define __stub macros and hopefully few prototypes,
34941 which can conflict with char $ac_func (); below.
34942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34943 <limits.h> exists even on freestanding compilers. */
34946 # include <limits.h>
34948 # include <assert.h>
34953 /* Override any gcc2 internal prototype to avoid an error. */
34958 /* We use char because int might match the return type of a gcc2
34959 builtin and then its argument prototype would still apply. */
34961 /* The GNU C library defines this for functions which it implements
34962 to always fail with ENOSYS. Some functions are actually named
34963 something starting with __ and the normal name is an alias. */
34964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34967 char (*f) () = $ac_func;
34976 return f != $ac_func;
34981 rm -f conftest.$ac_objext conftest$ac_exeext
34982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34983 (eval $ac_link) 2>conftest.er1
34985 grep -v '^ *+' conftest.er1 >conftest.err
34987 cat conftest.err >&5
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); } &&
34990 { ac_try='test -z "$ac_c_werror_flag"
34991 || test ! -s conftest.err'
34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993 (eval $ac_try) 2>&5
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; } &&
34997 { ac_try='test -s conftest$ac_exeext'
34998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34999 (eval $ac_try) 2>&5
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); }; }; then
35003 eval "$as_ac_var=yes"
35005 echo "$as_me: failed program was:" >&5
35006 sed 's/^/| /' conftest.$ac_ext >&5
35008 eval "$as_ac_var=no"
35010 rm -f conftest.err conftest.$ac_objext \
35011 conftest$ac_exeext conftest.$ac_ext
35013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35015 if test `eval echo '${'$as_ac_var'}'` = yes; then
35016 cat >>confdefs.h <<_ACEOF
35017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35022 "$ac_func.$ac_objext" | \
35023 *" $ac_func.$ac_objext" | \
35024 "$ac_func.$ac_objext "* | \
35025 *" $ac_func.$ac_objext "* ) ;;
35026 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
35034 for ac_func in getfsent
35036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35037 echo "$as_me:$LINENO: checking for $ac_func" >&5
35038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35039 if eval "test \"\${$as_ac_var+set}\" = set"; then
35040 echo $ECHO_N "(cached) $ECHO_C" >&6
35042 cat >conftest.$ac_ext <<_ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h. */
35048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35050 #define $ac_func innocuous_$ac_func
35052 /* System header to define __stub macros and hopefully few prototypes,
35053 which can conflict with char $ac_func (); below.
35054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35055 <limits.h> exists even on freestanding compilers. */
35058 # include <limits.h>
35060 # include <assert.h>
35065 /* Override any gcc2 internal prototype to avoid an error. */
35070 /* We use char because int might match the return type of a gcc2
35071 builtin and then its argument prototype would still apply. */
35073 /* The GNU C library defines this for functions which it implements
35074 to always fail with ENOSYS. Some functions are actually named
35075 something starting with __ and the normal name is an alias. */
35076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35079 char (*f) () = $ac_func;
35088 return f != $ac_func;
35093 rm -f conftest.$ac_objext conftest$ac_exeext
35094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35095 (eval $ac_link) 2>conftest.er1
35097 grep -v '^ *+' conftest.er1 >conftest.err
35099 cat conftest.err >&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); } &&
35102 { ac_try='test -z "$ac_c_werror_flag"
35103 || test ! -s conftest.err'
35104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105 (eval $ac_try) 2>&5
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); }; } &&
35109 { ac_try='test -s conftest$ac_exeext'
35110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35111 (eval $ac_try) 2>&5
35113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 (exit $ac_status); }; }; then
35115 eval "$as_ac_var=yes"
35117 echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35120 eval "$as_ac_var=no"
35122 rm -f conftest.err conftest.$ac_objext \
35123 conftest$ac_exeext conftest.$ac_ext
35125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35127 if test `eval echo '${'$as_ac_var'}'` = yes; then
35128 cat >>confdefs.h <<_ACEOF
35129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35136 ice_have_gethostname=no
35138 for ac_func in gethostname
35140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35141 echo "$as_me:$LINENO: checking for $ac_func" >&5
35142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35143 if eval "test \"\${$as_ac_var+set}\" = set"; then
35144 echo $ECHO_N "(cached) $ECHO_C" >&6
35146 cat >conftest.$ac_ext <<_ACEOF
35149 cat confdefs.h >>conftest.$ac_ext
35150 cat >>conftest.$ac_ext <<_ACEOF
35151 /* end confdefs.h. */
35152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35154 #define $ac_func innocuous_$ac_func
35156 /* System header to define __stub macros and hopefully few prototypes,
35157 which can conflict with char $ac_func (); below.
35158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35159 <limits.h> exists even on freestanding compilers. */
35162 # include <limits.h>
35164 # include <assert.h>
35169 /* Override any gcc2 internal prototype to avoid an error. */
35174 /* We use char because int might match the return type of a gcc2
35175 builtin and then its argument prototype would still apply. */
35177 /* The GNU C library defines this for functions which it implements
35178 to always fail with ENOSYS. Some functions are actually named
35179 something starting with __ and the normal name is an alias. */
35180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35183 char (*f) () = $ac_func;
35192 return f != $ac_func;
35197 rm -f conftest.$ac_objext conftest$ac_exeext
35198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35199 (eval $ac_link) 2>conftest.er1
35201 grep -v '^ *+' conftest.er1 >conftest.err
35203 cat conftest.err >&5
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); } &&
35206 { ac_try='test -z "$ac_c_werror_flag"
35207 || test ! -s conftest.err'
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; } &&
35213 { ac_try='test -s conftest$ac_exeext'
35214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215 (eval $ac_try) 2>&5
35217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218 (exit $ac_status); }; }; then
35219 eval "$as_ac_var=yes"
35221 echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35224 eval "$as_ac_var=no"
35226 rm -f conftest.err conftest.$ac_objext \
35227 conftest$ac_exeext conftest.$ac_ext
35229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35231 if test `eval echo '${'$as_ac_var'}'` = yes; then
35232 cat >>confdefs.h <<_ACEOF
35233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35235 ice_have_gethostname=yes
35239 if test "${ice_have_gethostname}" = yes; then
35240 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
35241 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
35242 if test "${ice_cv_have_gethostname_decl+set}" = set; then
35243 echo $ECHO_N "(cached) $ECHO_C" >&6
35246 ice_cv_have_gethostname_decl=no
35247 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35248 ice_re_word='(^|[^a-zA-Z0-9_])'
35249 for header in unistd.h; do
35250 # Check for ordinary declaration
35251 cat >conftest.$ac_ext <<_ACEOF
35254 cat confdefs.h >>conftest.$ac_ext
35255 cat >>conftest.$ac_ext <<_ACEOF
35256 /* end confdefs.h. */
35260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35261 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
35262 ice_cv_have_gethostname_decl=yes
35266 if test "$ice_cv_have_gethostname_decl" = yes; then
35269 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35270 cat >conftest.$ac_ext <<_ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h. */
35279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35280 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35281 ice_cv_have_gethostname_decl=yes
35285 if test "$ice_cv_have_gethostname_decl" = yes; then
35292 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
35293 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
35294 if test "$ice_cv_have_gethostname_decl" = yes; then
35296 cat >>confdefs.h <<_ACEOF
35297 #define HAVE_GETHOSTNAME_DECL 1
35303 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35304 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35305 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35306 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35307 echo $ECHO_N "(cached) $ECHO_C" >&6
35309 ac_check_lib_save_LIBS=$LIBS
35311 cat >conftest.$ac_ext <<_ACEOF
35314 cat confdefs.h >>conftest.$ac_ext
35315 cat >>conftest.$ac_ext <<_ACEOF
35316 /* end confdefs.h. */
35318 /* Override any gcc2 internal prototype to avoid an error. */
35322 /* We use char because int might match the return type of a gcc2
35323 builtin and then its argument prototype would still apply. */
35333 rm -f conftest.$ac_objext conftest$ac_exeext
35334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35335 (eval $ac_link) 2>conftest.er1
35337 grep -v '^ *+' conftest.er1 >conftest.err
35339 cat conftest.err >&5
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); } &&
35342 { ac_try='test -z "$ac_c_werror_flag"
35343 || test ! -s conftest.err'
35344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35345 (eval $ac_try) 2>&5
35347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348 (exit $ac_status); }; } &&
35349 { ac_try='test -s conftest$ac_exeext'
35350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35351 (eval $ac_try) 2>&5
35353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354 (exit $ac_status); }; }; then
35355 ac_cv_lib_sun_getmntent=yes
35357 echo "$as_me: failed program was:" >&5
35358 sed 's/^/| /' conftest.$ac_ext >&5
35360 ac_cv_lib_sun_getmntent=no
35362 rm -f conftest.err conftest.$ac_objext \
35363 conftest$ac_exeext conftest.$ac_ext
35364 LIBS=$ac_check_lib_save_LIBS
35366 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35367 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35368 if test $ac_cv_lib_sun_getmntent = yes; then
35371 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35372 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35373 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35374 echo $ECHO_N "(cached) $ECHO_C" >&6
35376 ac_check_lib_save_LIBS=$LIBS
35378 cat >conftest.$ac_ext <<_ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h. */
35385 /* Override any gcc2 internal prototype to avoid an error. */
35389 /* We use char because int might match the return type of a gcc2
35390 builtin and then its argument prototype would still apply. */
35400 rm -f conftest.$ac_objext conftest$ac_exeext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35402 (eval $ac_link) 2>conftest.er1
35404 grep -v '^ *+' conftest.er1 >conftest.err
35406 cat conftest.err >&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); } &&
35409 { ac_try='test -z "$ac_c_werror_flag"
35410 || test ! -s conftest.err'
35411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412 (eval $ac_try) 2>&5
35414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415 (exit $ac_status); }; } &&
35416 { ac_try='test -s conftest$ac_exeext'
35417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418 (eval $ac_try) 2>&5
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); }; }; then
35422 ac_cv_lib_seq_getmntent=yes
35424 echo "$as_me: failed program was:" >&5
35425 sed 's/^/| /' conftest.$ac_ext >&5
35427 ac_cv_lib_seq_getmntent=no
35429 rm -f conftest.err conftest.$ac_objext \
35430 conftest$ac_exeext conftest.$ac_ext
35431 LIBS=$ac_check_lib_save_LIBS
35433 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35434 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35435 if test $ac_cv_lib_seq_getmntent = yes; then
35438 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35439 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35440 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35441 echo $ECHO_N "(cached) $ECHO_C" >&6
35443 ac_check_lib_save_LIBS=$LIBS
35445 cat >conftest.$ac_ext <<_ACEOF
35448 cat confdefs.h >>conftest.$ac_ext
35449 cat >>conftest.$ac_ext <<_ACEOF
35450 /* end confdefs.h. */
35452 /* Override any gcc2 internal prototype to avoid an error. */
35456 /* We use char because int might match the return type of a gcc2
35457 builtin and then its argument prototype would still apply. */
35467 rm -f conftest.$ac_objext conftest$ac_exeext
35468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35469 (eval $ac_link) 2>conftest.er1
35471 grep -v '^ *+' conftest.er1 >conftest.err
35473 cat conftest.err >&5
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); } &&
35476 { ac_try='test -z "$ac_c_werror_flag"
35477 || test ! -s conftest.err'
35478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35479 (eval $ac_try) 2>&5
35481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 (exit $ac_status); }; } &&
35483 { ac_try='test -s conftest$ac_exeext'
35484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35485 (eval $ac_try) 2>&5
35487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 (exit $ac_status); }; }; then
35489 ac_cv_lib_gen_getmntent=yes
35491 echo "$as_me: failed program was:" >&5
35492 sed 's/^/| /' conftest.$ac_ext >&5
35494 ac_cv_lib_gen_getmntent=no
35496 rm -f conftest.err conftest.$ac_objext \
35497 conftest$ac_exeext conftest.$ac_ext
35498 LIBS=$ac_check_lib_save_LIBS
35500 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35501 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35502 if test $ac_cv_lib_gen_getmntent = yes; then
35511 for ac_func in getmntent
35513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35514 echo "$as_me:$LINENO: checking for $ac_func" >&5
35515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35516 if eval "test \"\${$as_ac_var+set}\" = set"; then
35517 echo $ECHO_N "(cached) $ECHO_C" >&6
35519 cat >conftest.$ac_ext <<_ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h. */
35525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35527 #define $ac_func innocuous_$ac_func
35529 /* System header to define __stub macros and hopefully few prototypes,
35530 which can conflict with char $ac_func (); below.
35531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35532 <limits.h> exists even on freestanding compilers. */
35535 # include <limits.h>
35537 # include <assert.h>
35542 /* Override any gcc2 internal prototype to avoid an error. */
35547 /* We use char because int might match the return type of a gcc2
35548 builtin and then its argument prototype would still apply. */
35550 /* The GNU C library defines this for functions which it implements
35551 to always fail with ENOSYS. Some functions are actually named
35552 something starting with __ and the normal name is an alias. */
35553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35556 char (*f) () = $ac_func;
35565 return f != $ac_func;
35570 rm -f conftest.$ac_objext conftest$ac_exeext
35571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35572 (eval $ac_link) 2>conftest.er1
35574 grep -v '^ *+' conftest.er1 >conftest.err
35576 cat conftest.err >&5
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } &&
35579 { ac_try='test -z "$ac_c_werror_flag"
35580 || test ! -s conftest.err'
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; } &&
35586 { ac_try='test -s conftest$ac_exeext'
35587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588 (eval $ac_try) 2>&5
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); }; }; then
35592 eval "$as_ac_var=yes"
35594 echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35597 eval "$as_ac_var=no"
35599 rm -f conftest.err conftest.$ac_objext \
35600 conftest$ac_exeext conftest.$ac_ext
35602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35604 if test `eval echo '${'$as_ac_var'}'` = yes; then
35605 cat >>confdefs.h <<_ACEOF
35606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35616 for ac_func in getopt
35618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35619 echo "$as_me:$LINENO: checking for $ac_func" >&5
35620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35621 if eval "test \"\${$as_ac_var+set}\" = set"; then
35622 echo $ECHO_N "(cached) $ECHO_C" >&6
35624 cat >conftest.$ac_ext <<_ACEOF
35627 cat confdefs.h >>conftest.$ac_ext
35628 cat >>conftest.$ac_ext <<_ACEOF
35629 /* end confdefs.h. */
35630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35632 #define $ac_func innocuous_$ac_func
35634 /* System header to define __stub macros and hopefully few prototypes,
35635 which can conflict with char $ac_func (); below.
35636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35637 <limits.h> exists even on freestanding compilers. */
35640 # include <limits.h>
35642 # include <assert.h>
35647 /* Override any gcc2 internal prototype to avoid an error. */
35652 /* We use char because int might match the return type of a gcc2
35653 builtin and then its argument prototype would still apply. */
35655 /* The GNU C library defines this for functions which it implements
35656 to always fail with ENOSYS. Some functions are actually named
35657 something starting with __ and the normal name is an alias. */
35658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35661 char (*f) () = $ac_func;
35670 return f != $ac_func;
35675 rm -f conftest.$ac_objext conftest$ac_exeext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35677 (eval $ac_link) 2>conftest.er1
35679 grep -v '^ *+' conftest.er1 >conftest.err
35681 cat conftest.err >&5
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); } &&
35684 { ac_try='test -z "$ac_c_werror_flag"
35685 || test ! -s conftest.err'
35686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35687 (eval $ac_try) 2>&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); }; } &&
35691 { ac_try='test -s conftest$ac_exeext'
35692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693 (eval $ac_try) 2>&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); }; }; then
35697 eval "$as_ac_var=yes"
35699 echo "$as_me: failed program was:" >&5
35700 sed 's/^/| /' conftest.$ac_ext >&5
35702 eval "$as_ac_var=no"
35704 rm -f conftest.err conftest.$ac_objext \
35705 conftest$ac_exeext conftest.$ac_ext
35707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35709 if test `eval echo '${'$as_ac_var'}'` = yes; then
35710 cat >>confdefs.h <<_ACEOF
35711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35713 ice_have_getopt=yes
35717 if test "${ice_have_getopt}" = yes; then
35718 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
35719 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
35720 if test "${ice_cv_have_getopt_decl+set}" = set; then
35721 echo $ECHO_N "(cached) $ECHO_C" >&6
35724 ice_cv_have_getopt_decl=no
35725 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35726 ice_re_word='(^|[^a-zA-Z0-9_])'
35727 for header in stdlib.h unistd.h libc.h; do
35728 # Check for ordinary declaration
35729 cat >conftest.$ac_ext <<_ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h. */
35738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35739 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
35740 ice_cv_have_getopt_decl=yes
35744 if test "$ice_cv_have_getopt_decl" = yes; then
35747 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35748 cat >conftest.$ac_ext <<_ACEOF
35751 cat confdefs.h >>conftest.$ac_ext
35752 cat >>conftest.$ac_ext <<_ACEOF
35753 /* end confdefs.h. */
35757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35758 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35759 ice_cv_have_getopt_decl=yes
35763 if test "$ice_cv_have_getopt_decl" = yes; then
35770 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
35771 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
35772 if test "$ice_cv_have_getopt_decl" = yes; then
35774 cat >>confdefs.h <<_ACEOF
35775 #define HAVE_GETOPT_DECL 1
35782 ice_have_getpeername=no
35784 for ac_func in getpeername
35786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35787 echo "$as_me:$LINENO: checking for $ac_func" >&5
35788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35789 if eval "test \"\${$as_ac_var+set}\" = set"; then
35790 echo $ECHO_N "(cached) $ECHO_C" >&6
35792 cat >conftest.$ac_ext <<_ACEOF
35795 cat confdefs.h >>conftest.$ac_ext
35796 cat >>conftest.$ac_ext <<_ACEOF
35797 /* end confdefs.h. */
35798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35800 #define $ac_func innocuous_$ac_func
35802 /* System header to define __stub macros and hopefully few prototypes,
35803 which can conflict with char $ac_func (); below.
35804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35805 <limits.h> exists even on freestanding compilers. */
35808 # include <limits.h>
35810 # include <assert.h>
35815 /* Override any gcc2 internal prototype to avoid an error. */
35820 /* We use char because int might match the return type of a gcc2
35821 builtin and then its argument prototype would still apply. */
35823 /* The GNU C library defines this for functions which it implements
35824 to always fail with ENOSYS. Some functions are actually named
35825 something starting with __ and the normal name is an alias. */
35826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35829 char (*f) () = $ac_func;
35838 return f != $ac_func;
35843 rm -f conftest.$ac_objext conftest$ac_exeext
35844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35845 (eval $ac_link) 2>conftest.er1
35847 grep -v '^ *+' conftest.er1 >conftest.err
35849 cat conftest.err >&5
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); } &&
35852 { ac_try='test -z "$ac_c_werror_flag"
35853 || test ! -s conftest.err'
35854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35855 (eval $ac_try) 2>&5
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); }; } &&
35859 { ac_try='test -s conftest$ac_exeext'
35860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861 (eval $ac_try) 2>&5
35863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864 (exit $ac_status); }; }; then
35865 eval "$as_ac_var=yes"
35867 echo "$as_me: failed program was:" >&5
35868 sed 's/^/| /' conftest.$ac_ext >&5
35870 eval "$as_ac_var=no"
35872 rm -f conftest.err conftest.$ac_objext \
35873 conftest$ac_exeext conftest.$ac_ext
35875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35877 if test `eval echo '${'$as_ac_var'}'` = yes; then
35878 cat >>confdefs.h <<_ACEOF
35879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35881 ice_have_getpeername=yes
35885 if test "${ice_have_getpeername}" = yes; then
35886 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
35887 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35888 if test "${ice_cv_have_getpeername_decl+set}" = set; then
35889 echo $ECHO_N "(cached) $ECHO_C" >&6
35892 ice_cv_have_getpeername_decl=no
35893 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35894 ice_re_word='(^|[^a-zA-Z0-9_])'
35895 for header in sys/types.h sys/socket.h; do
35896 # Check for ordinary declaration
35897 cat >conftest.$ac_ext <<_ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h. */
35906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35907 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
35908 ice_cv_have_getpeername_decl=yes
35912 if test "$ice_cv_have_getpeername_decl" = yes; then
35915 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35916 cat >conftest.$ac_ext <<_ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h. */
35925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35926 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35927 ice_cv_have_getpeername_decl=yes
35931 if test "$ice_cv_have_getpeername_decl" = yes; then
35938 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
35939 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
35940 if test "$ice_cv_have_getpeername_decl" = yes; then
35942 cat >>confdefs.h <<_ACEOF
35943 #define HAVE_GETPEERNAME_DECL 1
35950 for ac_func in getpgrp
35952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35953 echo "$as_me:$LINENO: checking for $ac_func" >&5
35954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35955 if eval "test \"\${$as_ac_var+set}\" = set"; then
35956 echo $ECHO_N "(cached) $ECHO_C" >&6
35958 cat >conftest.$ac_ext <<_ACEOF
35961 cat confdefs.h >>conftest.$ac_ext
35962 cat >>conftest.$ac_ext <<_ACEOF
35963 /* end confdefs.h. */
35964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35966 #define $ac_func innocuous_$ac_func
35968 /* System header to define __stub macros and hopefully few prototypes,
35969 which can conflict with char $ac_func (); below.
35970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35971 <limits.h> exists even on freestanding compilers. */
35974 # include <limits.h>
35976 # include <assert.h>
35981 /* Override any gcc2 internal prototype to avoid an error. */
35986 /* We use char because int might match the return type of a gcc2
35987 builtin and then its argument prototype would still apply. */
35989 /* The GNU C library defines this for functions which it implements
35990 to always fail with ENOSYS. Some functions are actually named
35991 something starting with __ and the normal name is an alias. */
35992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35995 char (*f) () = $ac_func;
36004 return f != $ac_func;
36009 rm -f conftest.$ac_objext conftest$ac_exeext
36010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36011 (eval $ac_link) 2>conftest.er1
36013 grep -v '^ *+' conftest.er1 >conftest.err
36015 cat conftest.err >&5
36016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017 (exit $ac_status); } &&
36018 { ac_try='test -z "$ac_c_werror_flag"
36019 || test ! -s conftest.err'
36020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36021 (eval $ac_try) 2>&5
36023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024 (exit $ac_status); }; } &&
36025 { ac_try='test -s conftest$ac_exeext'
36026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36027 (eval $ac_try) 2>&5
36029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030 (exit $ac_status); }; }; then
36031 eval "$as_ac_var=yes"
36033 echo "$as_me: failed program was:" >&5
36034 sed 's/^/| /' conftest.$ac_ext >&5
36036 eval "$as_ac_var=no"
36038 rm -f conftest.err conftest.$ac_objext \
36039 conftest$ac_exeext conftest.$ac_ext
36041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36043 if test `eval echo '${'$as_ac_var'}'` = yes; then
36044 cat >>confdefs.h <<_ACEOF
36045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36051 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
36052 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
36053 if test "${ac_cv_func_getpgrp_void+set}" = set; then
36054 echo $ECHO_N "(cached) $ECHO_C" >&6
36056 # Use it with a single arg.
36057 cat >conftest.$ac_ext <<_ACEOF
36060 cat confdefs.h >>conftest.$ac_ext
36061 cat >>conftest.$ac_ext <<_ACEOF
36062 /* end confdefs.h. */
36063 $ac_includes_default
36072 rm -f conftest.$ac_objext
36073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36074 (eval $ac_compile) 2>conftest.er1
36076 grep -v '^ *+' conftest.er1 >conftest.err
36078 cat conftest.err >&5
36079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080 (exit $ac_status); } &&
36081 { ac_try='test -z "$ac_c_werror_flag"
36082 || test ! -s conftest.err'
36083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36084 (eval $ac_try) 2>&5
36086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087 (exit $ac_status); }; } &&
36088 { ac_try='test -s conftest.$ac_objext'
36089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36090 (eval $ac_try) 2>&5
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); }; }; then
36094 ac_cv_func_getpgrp_void=no
36096 echo "$as_me: failed program was:" >&5
36097 sed 's/^/| /' conftest.$ac_ext >&5
36099 ac_cv_func_getpgrp_void=yes
36101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36104 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
36105 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
36106 if test $ac_cv_func_getpgrp_void = yes; then
36108 cat >>confdefs.h <<\_ACEOF
36109 #define GETPGRP_VOID 1
36115 ice_have_getsockname=no
36117 for ac_func in getsockname
36119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36120 echo "$as_me:$LINENO: checking for $ac_func" >&5
36121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36122 if eval "test \"\${$as_ac_var+set}\" = set"; then
36123 echo $ECHO_N "(cached) $ECHO_C" >&6
36125 cat >conftest.$ac_ext <<_ACEOF
36128 cat confdefs.h >>conftest.$ac_ext
36129 cat >>conftest.$ac_ext <<_ACEOF
36130 /* end confdefs.h. */
36131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36133 #define $ac_func innocuous_$ac_func
36135 /* System header to define __stub macros and hopefully few prototypes,
36136 which can conflict with char $ac_func (); below.
36137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36138 <limits.h> exists even on freestanding compilers. */
36141 # include <limits.h>
36143 # include <assert.h>
36148 /* Override any gcc2 internal prototype to avoid an error. */
36153 /* We use char because int might match the return type of a gcc2
36154 builtin and then its argument prototype would still apply. */
36156 /* The GNU C library defines this for functions which it implements
36157 to always fail with ENOSYS. Some functions are actually named
36158 something starting with __ and the normal name is an alias. */
36159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36162 char (*f) () = $ac_func;
36171 return f != $ac_func;
36176 rm -f conftest.$ac_objext conftest$ac_exeext
36177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36178 (eval $ac_link) 2>conftest.er1
36180 grep -v '^ *+' conftest.er1 >conftest.err
36182 cat conftest.err >&5
36183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184 (exit $ac_status); } &&
36185 { ac_try='test -z "$ac_c_werror_flag"
36186 || test ! -s conftest.err'
36187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188 (eval $ac_try) 2>&5
36190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 (exit $ac_status); }; } &&
36192 { ac_try='test -s conftest$ac_exeext'
36193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194 (eval $ac_try) 2>&5
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); }; }; then
36198 eval "$as_ac_var=yes"
36200 echo "$as_me: failed program was:" >&5
36201 sed 's/^/| /' conftest.$ac_ext >&5
36203 eval "$as_ac_var=no"
36205 rm -f conftest.err conftest.$ac_objext \
36206 conftest$ac_exeext conftest.$ac_ext
36208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36210 if test `eval echo '${'$as_ac_var'}'` = yes; then
36211 cat >>confdefs.h <<_ACEOF
36212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36214 ice_have_getsockname=yes
36218 if test "${ice_have_getsockname}" = yes; then
36219 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
36220 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36221 if test "${ice_cv_have_getsockname_decl+set}" = set; then
36222 echo $ECHO_N "(cached) $ECHO_C" >&6
36225 ice_cv_have_getsockname_decl=no
36226 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36227 ice_re_word='(^|[^a-zA-Z0-9_])'
36228 for header in sys/types.h sys/socket.h; do
36229 # Check for ordinary declaration
36230 cat >conftest.$ac_ext <<_ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h. */
36239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36240 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
36241 ice_cv_have_getsockname_decl=yes
36245 if test "$ice_cv_have_getsockname_decl" = yes; then
36248 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36249 cat >conftest.$ac_ext <<_ACEOF
36252 cat confdefs.h >>conftest.$ac_ext
36253 cat >>conftest.$ac_ext <<_ACEOF
36254 /* end confdefs.h. */
36258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36259 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36260 ice_cv_have_getsockname_decl=yes
36264 if test "$ice_cv_have_getsockname_decl" = yes; then
36271 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
36272 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
36273 if test "$ice_cv_have_getsockname_decl" = yes; then
36275 cat >>confdefs.h <<_ACEOF
36276 #define HAVE_GETSOCKNAME_DECL 1
36283 ice_have_getsockopt=no
36285 for ac_func in getsockopt
36287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36288 echo "$as_me:$LINENO: checking for $ac_func" >&5
36289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36290 if eval "test \"\${$as_ac_var+set}\" = set"; then
36291 echo $ECHO_N "(cached) $ECHO_C" >&6
36293 cat >conftest.$ac_ext <<_ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h. */
36299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36301 #define $ac_func innocuous_$ac_func
36303 /* System header to define __stub macros and hopefully few prototypes,
36304 which can conflict with char $ac_func (); below.
36305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36306 <limits.h> exists even on freestanding compilers. */
36309 # include <limits.h>
36311 # include <assert.h>
36316 /* Override any gcc2 internal prototype to avoid an error. */
36321 /* We use char because int might match the return type of a gcc2
36322 builtin and then its argument prototype would still apply. */
36324 /* The GNU C library defines this for functions which it implements
36325 to always fail with ENOSYS. Some functions are actually named
36326 something starting with __ and the normal name is an alias. */
36327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36330 char (*f) () = $ac_func;
36339 return f != $ac_func;
36344 rm -f conftest.$ac_objext conftest$ac_exeext
36345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36346 (eval $ac_link) 2>conftest.er1
36348 grep -v '^ *+' conftest.er1 >conftest.err
36350 cat conftest.err >&5
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); } &&
36353 { ac_try='test -z "$ac_c_werror_flag"
36354 || test ! -s conftest.err'
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; } &&
36360 { ac_try='test -s conftest$ac_exeext'
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; }; then
36366 eval "$as_ac_var=yes"
36368 echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36371 eval "$as_ac_var=no"
36373 rm -f conftest.err conftest.$ac_objext \
36374 conftest$ac_exeext conftest.$ac_ext
36376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36378 if test `eval echo '${'$as_ac_var'}'` = yes; then
36379 cat >>confdefs.h <<_ACEOF
36380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36382 ice_have_getsockopt=yes
36386 if test "${ice_have_getsockopt}" = yes; then
36387 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
36388 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36389 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
36390 echo $ECHO_N "(cached) $ECHO_C" >&6
36393 ice_cv_have_getsockopt_decl=no
36394 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36395 ice_re_word='(^|[^a-zA-Z0-9_])'
36396 for header in sys/types.h sys/socket.h; do
36397 # Check for ordinary declaration
36398 cat >conftest.$ac_ext <<_ACEOF
36401 cat confdefs.h >>conftest.$ac_ext
36402 cat >>conftest.$ac_ext <<_ACEOF
36403 /* end confdefs.h. */
36407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36408 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
36409 ice_cv_have_getsockopt_decl=yes
36413 if test "$ice_cv_have_getsockopt_decl" = yes; then
36416 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36417 cat >conftest.$ac_ext <<_ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h. */
36426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36427 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36428 ice_cv_have_getsockopt_decl=yes
36432 if test "$ice_cv_have_getsockopt_decl" = yes; then
36439 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
36440 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
36441 if test "$ice_cv_have_getsockopt_decl" = yes; then
36443 cat >>confdefs.h <<_ACEOF
36444 #define HAVE_GETSOCKOPT_DECL 1
36451 ice_have_gettimeofday=no
36453 for ac_func in gettimeofday
36455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36456 echo "$as_me:$LINENO: checking for $ac_func" >&5
36457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36458 if eval "test \"\${$as_ac_var+set}\" = set"; then
36459 echo $ECHO_N "(cached) $ECHO_C" >&6
36461 cat >conftest.$ac_ext <<_ACEOF
36464 cat confdefs.h >>conftest.$ac_ext
36465 cat >>conftest.$ac_ext <<_ACEOF
36466 /* end confdefs.h. */
36467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36469 #define $ac_func innocuous_$ac_func
36471 /* System header to define __stub macros and hopefully few prototypes,
36472 which can conflict with char $ac_func (); below.
36473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36474 <limits.h> exists even on freestanding compilers. */
36477 # include <limits.h>
36479 # include <assert.h>
36484 /* Override any gcc2 internal prototype to avoid an error. */
36489 /* We use char because int might match the return type of a gcc2
36490 builtin and then its argument prototype would still apply. */
36492 /* The GNU C library defines this for functions which it implements
36493 to always fail with ENOSYS. Some functions are actually named
36494 something starting with __ and the normal name is an alias. */
36495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36498 char (*f) () = $ac_func;
36507 return f != $ac_func;
36512 rm -f conftest.$ac_objext conftest$ac_exeext
36513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36514 (eval $ac_link) 2>conftest.er1
36516 grep -v '^ *+' conftest.er1 >conftest.err
36518 cat conftest.err >&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); } &&
36521 { ac_try='test -z "$ac_c_werror_flag"
36522 || test ! -s conftest.err'
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; } &&
36528 { ac_try='test -s conftest$ac_exeext'
36529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530 (eval $ac_try) 2>&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); }; }; then
36534 eval "$as_ac_var=yes"
36536 echo "$as_me: failed program was:" >&5
36537 sed 's/^/| /' conftest.$ac_ext >&5
36539 eval "$as_ac_var=no"
36541 rm -f conftest.err conftest.$ac_objext \
36542 conftest$ac_exeext conftest.$ac_ext
36544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36546 if test `eval echo '${'$as_ac_var'}'` = yes; then
36547 cat >>confdefs.h <<_ACEOF
36548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36550 ice_have_gettimeofday=yes
36554 if test "${ice_have_gettimeofday}" = yes; then
36555 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
36556 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
36557 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
36558 echo $ECHO_N "(cached) $ECHO_C" >&6
36561 ice_cv_have_gettimeofday_decl=no
36562 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36563 ice_re_word='(^|[^a-zA-Z0-9_])'
36564 for header in time.h sys/time.h; do
36565 # Check for ordinary declaration
36566 cat >conftest.$ac_ext <<_ACEOF
36569 cat confdefs.h >>conftest.$ac_ext
36570 cat >>conftest.$ac_ext <<_ACEOF
36571 /* end confdefs.h. */
36575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36576 $EGREP "${ice_re_word}gettimeofday[ ]*\(" >/dev/null 2>&1; then
36577 ice_cv_have_gettimeofday_decl=yes
36581 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36584 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36585 cat >conftest.$ac_ext <<_ACEOF
36588 cat confdefs.h >>conftest.$ac_ext
36589 cat >>conftest.$ac_ext <<_ACEOF
36590 /* end confdefs.h. */
36594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36595 $EGREP "${ice_re_word}gettimeofday[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36596 ice_cv_have_gettimeofday_decl=yes
36600 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36607 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
36608 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
36609 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36611 cat >>confdefs.h <<_ACEOF
36612 #define HAVE_GETTIMEOFDAY_DECL 1
36620 echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
36621 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
36622 if test "${amanda_cv_gettimeofday_args+set}" = set; then
36623 echo $ECHO_N "(cached) $ECHO_C" >&6
36626 cat >conftest.$ac_ext <<_ACEOF
36629 cat confdefs.h >>conftest.$ac_ext
36630 cat >>conftest.$ac_ext <<_ACEOF
36631 /* end confdefs.h. */
36633 #ifdef TIME_WITH_SYS_TIME
36634 # include <sys/time.h>
36637 # ifdef HAVE_SYS_TIME_H
36638 # include <sys/time.h>
36648 struct timeval val;
36649 struct timezone zone;
36650 gettimeofday(&val, &zone);
36656 rm -f conftest.$ac_objext
36657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36658 (eval $ac_compile) 2>conftest.er1
36660 grep -v '^ *+' conftest.er1 >conftest.err
36662 cat conftest.err >&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); } &&
36665 { ac_try='test -z "$ac_c_werror_flag"
36666 || test ! -s conftest.err'
36667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36668 (eval $ac_try) 2>&5
36670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671 (exit $ac_status); }; } &&
36672 { ac_try='test -s conftest.$ac_objext'
36673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36674 (eval $ac_try) 2>&5
36676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677 (exit $ac_status); }; }; then
36678 amanda_cv_gettimeofday_args=2
36680 echo "$as_me: failed program was:" >&5
36681 sed 's/^/| /' conftest.$ac_ext >&5
36683 amanda_cv_gettimeofday_args=1
36686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36690 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
36691 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
36692 if test "$amanda_cv_gettimeofday_args" = 2; then
36694 cat >>confdefs.h <<\_ACEOF
36695 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
36704 for ac_func in getvfsent initgroups isascii
36706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36707 echo "$as_me:$LINENO: checking for $ac_func" >&5
36708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36709 if eval "test \"\${$as_ac_var+set}\" = set"; then
36710 echo $ECHO_N "(cached) $ECHO_C" >&6
36712 cat >conftest.$ac_ext <<_ACEOF
36715 cat confdefs.h >>conftest.$ac_ext
36716 cat >>conftest.$ac_ext <<_ACEOF
36717 /* end confdefs.h. */
36718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36720 #define $ac_func innocuous_$ac_func
36722 /* System header to define __stub macros and hopefully few prototypes,
36723 which can conflict with char $ac_func (); below.
36724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36725 <limits.h> exists even on freestanding compilers. */
36728 # include <limits.h>
36730 # include <assert.h>
36735 /* Override any gcc2 internal prototype to avoid an error. */
36740 /* We use char because int might match the return type of a gcc2
36741 builtin and then its argument prototype would still apply. */
36743 /* The GNU C library defines this for functions which it implements
36744 to always fail with ENOSYS. Some functions are actually named
36745 something starting with __ and the normal name is an alias. */
36746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36749 char (*f) () = $ac_func;
36758 return f != $ac_func;
36763 rm -f conftest.$ac_objext conftest$ac_exeext
36764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36765 (eval $ac_link) 2>conftest.er1
36767 grep -v '^ *+' conftest.er1 >conftest.err
36769 cat conftest.err >&5
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); } &&
36772 { ac_try='test -z "$ac_c_werror_flag"
36773 || test ! -s conftest.err'
36774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36775 (eval $ac_try) 2>&5
36777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778 (exit $ac_status); }; } &&
36779 { ac_try='test -s conftest$ac_exeext'
36780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36781 (eval $ac_try) 2>&5
36783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784 (exit $ac_status); }; }; then
36785 eval "$as_ac_var=yes"
36787 echo "$as_me: failed program was:" >&5
36788 sed 's/^/| /' conftest.$ac_ext >&5
36790 eval "$as_ac_var=no"
36792 rm -f conftest.err conftest.$ac_objext \
36793 conftest$ac_exeext conftest.$ac_ext
36795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36797 if test `eval echo '${'$as_ac_var'}'` = yes; then
36798 cat >>confdefs.h <<_ACEOF
36799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36806 ice_have_initgroups=no
36808 for ac_func in initgroups
36810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36811 echo "$as_me:$LINENO: checking for $ac_func" >&5
36812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36813 if eval "test \"\${$as_ac_var+set}\" = set"; then
36814 echo $ECHO_N "(cached) $ECHO_C" >&6
36816 cat >conftest.$ac_ext <<_ACEOF
36819 cat confdefs.h >>conftest.$ac_ext
36820 cat >>conftest.$ac_ext <<_ACEOF
36821 /* end confdefs.h. */
36822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36824 #define $ac_func innocuous_$ac_func
36826 /* System header to define __stub macros and hopefully few prototypes,
36827 which can conflict with char $ac_func (); below.
36828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36829 <limits.h> exists even on freestanding compilers. */
36832 # include <limits.h>
36834 # include <assert.h>
36839 /* Override any gcc2 internal prototype to avoid an error. */
36844 /* We use char because int might match the return type of a gcc2
36845 builtin and then its argument prototype would still apply. */
36847 /* The GNU C library defines this for functions which it implements
36848 to always fail with ENOSYS. Some functions are actually named
36849 something starting with __ and the normal name is an alias. */
36850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36853 char (*f) () = $ac_func;
36862 return f != $ac_func;
36867 rm -f conftest.$ac_objext conftest$ac_exeext
36868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36869 (eval $ac_link) 2>conftest.er1
36871 grep -v '^ *+' conftest.er1 >conftest.err
36873 cat conftest.err >&5
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); } &&
36876 { ac_try='test -z "$ac_c_werror_flag"
36877 || test ! -s conftest.err'
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; } &&
36883 { ac_try='test -s conftest$ac_exeext'
36884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36885 (eval $ac_try) 2>&5
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); }; }; then
36889 eval "$as_ac_var=yes"
36891 echo "$as_me: failed program was:" >&5
36892 sed 's/^/| /' conftest.$ac_ext >&5
36894 eval "$as_ac_var=no"
36896 rm -f conftest.err conftest.$ac_objext \
36897 conftest$ac_exeext conftest.$ac_ext
36899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36901 if test `eval echo '${'$as_ac_var'}'` = yes; then
36902 cat >>confdefs.h <<_ACEOF
36903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36905 ice_have_initgroups=yes
36909 if test "${ice_have_initgroups}" = yes; then
36910 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
36911 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
36912 if test "${ice_cv_have_initgroups_decl+set}" = set; then
36913 echo $ECHO_N "(cached) $ECHO_C" >&6
36916 ice_cv_have_initgroups_decl=no
36917 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36918 ice_re_word='(^|[^a-zA-Z0-9_])'
36919 for header in grp.h sys/types.h unistd.h libc.h; do
36920 # Check for ordinary declaration
36921 cat >conftest.$ac_ext <<_ACEOF
36924 cat confdefs.h >>conftest.$ac_ext
36925 cat >>conftest.$ac_ext <<_ACEOF
36926 /* end confdefs.h. */
36930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36931 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
36932 ice_cv_have_initgroups_decl=yes
36936 if test "$ice_cv_have_initgroups_decl" = yes; then
36939 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36940 cat >conftest.$ac_ext <<_ACEOF
36943 cat confdefs.h >>conftest.$ac_ext
36944 cat >>conftest.$ac_ext <<_ACEOF
36945 /* end confdefs.h. */
36949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36950 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36951 ice_cv_have_initgroups_decl=yes
36955 if test "$ice_cv_have_initgroups_decl" = yes; then
36962 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
36963 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
36964 if test "$ice_cv_have_initgroups_decl" = yes; then
36966 cat >>confdefs.h <<_ACEOF
36967 #define HAVE_INITGROUPS_DECL 1
36976 for ac_func in ioctl
36978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36979 echo "$as_me:$LINENO: checking for $ac_func" >&5
36980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36981 if eval "test \"\${$as_ac_var+set}\" = set"; then
36982 echo $ECHO_N "(cached) $ECHO_C" >&6
36984 cat >conftest.$ac_ext <<_ACEOF
36987 cat confdefs.h >>conftest.$ac_ext
36988 cat >>conftest.$ac_ext <<_ACEOF
36989 /* end confdefs.h. */
36990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36992 #define $ac_func innocuous_$ac_func
36994 /* System header to define __stub macros and hopefully few prototypes,
36995 which can conflict with char $ac_func (); below.
36996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36997 <limits.h> exists even on freestanding compilers. */
37000 # include <limits.h>
37002 # include <assert.h>
37007 /* Override any gcc2 internal prototype to avoid an error. */
37012 /* We use char because int might match the return type of a gcc2
37013 builtin and then its argument prototype would still apply. */
37015 /* The GNU C library defines this for functions which it implements
37016 to always fail with ENOSYS. Some functions are actually named
37017 something starting with __ and the normal name is an alias. */
37018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37021 char (*f) () = $ac_func;
37030 return f != $ac_func;
37035 rm -f conftest.$ac_objext conftest$ac_exeext
37036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37037 (eval $ac_link) 2>conftest.er1
37039 grep -v '^ *+' conftest.er1 >conftest.err
37041 cat conftest.err >&5
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); } &&
37044 { ac_try='test -z "$ac_c_werror_flag"
37045 || test ! -s conftest.err'
37046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37047 (eval $ac_try) 2>&5
37049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050 (exit $ac_status); }; } &&
37051 { ac_try='test -s conftest$ac_exeext'
37052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37053 (eval $ac_try) 2>&5
37055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056 (exit $ac_status); }; }; then
37057 eval "$as_ac_var=yes"
37059 echo "$as_me: failed program was:" >&5
37060 sed 's/^/| /' conftest.$ac_ext >&5
37062 eval "$as_ac_var=no"
37064 rm -f conftest.err conftest.$ac_objext \
37065 conftest$ac_exeext conftest.$ac_ext
37067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37069 if test `eval echo '${'$as_ac_var'}'` = yes; then
37070 cat >>confdefs.h <<_ACEOF
37071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37077 if test "${ice_have_ioctl}" = yes; then
37078 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
37079 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
37080 if test "${ice_cv_have_ioctl_decl+set}" = set; then
37081 echo $ECHO_N "(cached) $ECHO_C" >&6
37084 ice_cv_have_ioctl_decl=no
37085 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37086 ice_re_word='(^|[^a-zA-Z0-9_])'
37087 for header in sys/ioctl.h unistd.h libc.h; do
37088 # Check for ordinary declaration
37089 cat >conftest.$ac_ext <<_ACEOF
37092 cat confdefs.h >>conftest.$ac_ext
37093 cat >>conftest.$ac_ext <<_ACEOF
37094 /* end confdefs.h. */
37098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37099 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
37100 ice_cv_have_ioctl_decl=yes
37104 if test "$ice_cv_have_ioctl_decl" = yes; then
37107 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37108 cat >conftest.$ac_ext <<_ACEOF
37111 cat confdefs.h >>conftest.$ac_ext
37112 cat >>conftest.$ac_ext <<_ACEOF
37113 /* end confdefs.h. */
37117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37118 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37119 ice_cv_have_ioctl_decl=yes
37123 if test "$ice_cv_have_ioctl_decl" = yes; then
37130 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
37131 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
37132 if test "$ice_cv_have_ioctl_decl" = yes; then
37134 cat >>confdefs.h <<_ACEOF
37135 #define HAVE_IOCTL_DECL 1
37144 for ac_func in listen
37146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37147 echo "$as_me:$LINENO: checking for $ac_func" >&5
37148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37149 if eval "test \"\${$as_ac_var+set}\" = set"; then
37150 echo $ECHO_N "(cached) $ECHO_C" >&6
37152 cat >conftest.$ac_ext <<_ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h. */
37158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37160 #define $ac_func innocuous_$ac_func
37162 /* System header to define __stub macros and hopefully few prototypes,
37163 which can conflict with char $ac_func (); below.
37164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37165 <limits.h> exists even on freestanding compilers. */
37168 # include <limits.h>
37170 # include <assert.h>
37175 /* Override any gcc2 internal prototype to avoid an error. */
37180 /* We use char because int might match the return type of a gcc2
37181 builtin and then its argument prototype would still apply. */
37183 /* The GNU C library defines this for functions which it implements
37184 to always fail with ENOSYS. Some functions are actually named
37185 something starting with __ and the normal name is an alias. */
37186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37189 char (*f) () = $ac_func;
37198 return f != $ac_func;
37203 rm -f conftest.$ac_objext conftest$ac_exeext
37204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37205 (eval $ac_link) 2>conftest.er1
37207 grep -v '^ *+' conftest.er1 >conftest.err
37209 cat conftest.err >&5
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); } &&
37212 { ac_try='test -z "$ac_c_werror_flag"
37213 || test ! -s conftest.err'
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; } &&
37219 { ac_try='test -s conftest$ac_exeext'
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; }; then
37225 eval "$as_ac_var=yes"
37227 echo "$as_me: failed program was:" >&5
37228 sed 's/^/| /' conftest.$ac_ext >&5
37230 eval "$as_ac_var=no"
37232 rm -f conftest.err conftest.$ac_objext \
37233 conftest$ac_exeext conftest.$ac_ext
37235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37237 if test `eval echo '${'$as_ac_var'}'` = yes; then
37238 cat >>confdefs.h <<_ACEOF
37239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37241 ice_have_listen=yes
37245 if test "${ice_have_listen}" = yes; then
37246 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
37247 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37248 if test "${ice_cv_have_listen_decl+set}" = set; then
37249 echo $ECHO_N "(cached) $ECHO_C" >&6
37252 ice_cv_have_listen_decl=no
37253 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37254 ice_re_word='(^|[^a-zA-Z0-9_])'
37255 for header in sys/types.h sys/socket.h; do
37256 # Check for ordinary declaration
37257 cat >conftest.$ac_ext <<_ACEOF
37260 cat confdefs.h >>conftest.$ac_ext
37261 cat >>conftest.$ac_ext <<_ACEOF
37262 /* end confdefs.h. */
37266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37267 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
37268 ice_cv_have_listen_decl=yes
37272 if test "$ice_cv_have_listen_decl" = yes; then
37275 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37276 cat >conftest.$ac_ext <<_ACEOF
37279 cat confdefs.h >>conftest.$ac_ext
37280 cat >>conftest.$ac_ext <<_ACEOF
37281 /* end confdefs.h. */
37285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37286 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37287 ice_cv_have_listen_decl=yes
37291 if test "$ice_cv_have_listen_decl" = yes; then
37298 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
37299 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
37300 if test "$ice_cv_have_listen_decl" = yes; then
37302 cat >>confdefs.h <<_ACEOF
37303 #define HAVE_LISTEN_DECL 1
37312 for ac_func in lstat
37314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37315 echo "$as_me:$LINENO: checking for $ac_func" >&5
37316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37317 if eval "test \"\${$as_ac_var+set}\" = set"; then
37318 echo $ECHO_N "(cached) $ECHO_C" >&6
37320 cat >conftest.$ac_ext <<_ACEOF
37323 cat confdefs.h >>conftest.$ac_ext
37324 cat >>conftest.$ac_ext <<_ACEOF
37325 /* end confdefs.h. */
37326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37328 #define $ac_func innocuous_$ac_func
37330 /* System header to define __stub macros and hopefully few prototypes,
37331 which can conflict with char $ac_func (); below.
37332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37333 <limits.h> exists even on freestanding compilers. */
37336 # include <limits.h>
37338 # include <assert.h>
37343 /* Override any gcc2 internal prototype to avoid an error. */
37348 /* We use char because int might match the return type of a gcc2
37349 builtin and then its argument prototype would still apply. */
37351 /* The GNU C library defines this for functions which it implements
37352 to always fail with ENOSYS. Some functions are actually named
37353 something starting with __ and the normal name is an alias. */
37354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37357 char (*f) () = $ac_func;
37366 return f != $ac_func;
37371 rm -f conftest.$ac_objext conftest$ac_exeext
37372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37373 (eval $ac_link) 2>conftest.er1
37375 grep -v '^ *+' conftest.er1 >conftest.err
37377 cat conftest.err >&5
37378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379 (exit $ac_status); } &&
37380 { ac_try='test -z "$ac_c_werror_flag"
37381 || test ! -s conftest.err'
37382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37383 (eval $ac_try) 2>&5
37385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386 (exit $ac_status); }; } &&
37387 { ac_try='test -s conftest$ac_exeext'
37388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389 (eval $ac_try) 2>&5
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); }; }; then
37393 eval "$as_ac_var=yes"
37395 echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37398 eval "$as_ac_var=no"
37400 rm -f conftest.err conftest.$ac_objext \
37401 conftest$ac_exeext conftest.$ac_ext
37403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37405 if test `eval echo '${'$as_ac_var'}'` = yes; then
37406 cat >>confdefs.h <<_ACEOF
37407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37413 if test "${ice_have_lstat}" = yes; then
37414 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
37415 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
37416 if test "${ice_cv_have_lstat_decl+set}" = set; then
37417 echo $ECHO_N "(cached) $ECHO_C" >&6
37420 ice_cv_have_lstat_decl=no
37421 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37422 ice_re_word='(^|[^a-zA-Z0-9_])'
37423 for header in sys/types.h sys/stat.h; do
37424 # Check for ordinary declaration
37425 cat >conftest.$ac_ext <<_ACEOF
37428 cat confdefs.h >>conftest.$ac_ext
37429 cat >>conftest.$ac_ext <<_ACEOF
37430 /* end confdefs.h. */
37434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37435 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
37436 ice_cv_have_lstat_decl=yes
37440 if test "$ice_cv_have_lstat_decl" = yes; then
37443 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37444 cat >conftest.$ac_ext <<_ACEOF
37447 cat confdefs.h >>conftest.$ac_ext
37448 cat >>conftest.$ac_ext <<_ACEOF
37449 /* end confdefs.h. */
37453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37454 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37455 ice_cv_have_lstat_decl=yes
37459 if test "$ice_cv_have_lstat_decl" = yes; then
37466 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
37467 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
37468 if test "$ice_cv_have_lstat_decl" = yes; then
37470 cat >>confdefs.h <<_ACEOF
37471 #define HAVE_LSTAT_DECL 1
37480 for ac_func in malloc
37482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37483 echo "$as_me:$LINENO: checking for $ac_func" >&5
37484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37485 if eval "test \"\${$as_ac_var+set}\" = set"; then
37486 echo $ECHO_N "(cached) $ECHO_C" >&6
37488 cat >conftest.$ac_ext <<_ACEOF
37491 cat confdefs.h >>conftest.$ac_ext
37492 cat >>conftest.$ac_ext <<_ACEOF
37493 /* end confdefs.h. */
37494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37496 #define $ac_func innocuous_$ac_func
37498 /* System header to define __stub macros and hopefully few prototypes,
37499 which can conflict with char $ac_func (); below.
37500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37501 <limits.h> exists even on freestanding compilers. */
37504 # include <limits.h>
37506 # include <assert.h>
37511 /* Override any gcc2 internal prototype to avoid an error. */
37516 /* We use char because int might match the return type of a gcc2
37517 builtin and then its argument prototype would still apply. */
37519 /* The GNU C library defines this for functions which it implements
37520 to always fail with ENOSYS. Some functions are actually named
37521 something starting with __ and the normal name is an alias. */
37522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37525 char (*f) () = $ac_func;
37534 return f != $ac_func;
37539 rm -f conftest.$ac_objext conftest$ac_exeext
37540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37541 (eval $ac_link) 2>conftest.er1
37543 grep -v '^ *+' conftest.er1 >conftest.err
37545 cat conftest.err >&5
37546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547 (exit $ac_status); } &&
37548 { ac_try='test -z "$ac_c_werror_flag"
37549 || test ! -s conftest.err'
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; } &&
37555 { ac_try='test -s conftest$ac_exeext'
37556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37557 (eval $ac_try) 2>&5
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); }; }; then
37561 eval "$as_ac_var=yes"
37563 echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37566 eval "$as_ac_var=no"
37568 rm -f conftest.err conftest.$ac_objext \
37569 conftest$ac_exeext conftest.$ac_ext
37571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37573 if test `eval echo '${'$as_ac_var'}'` = yes; then
37574 cat >>confdefs.h <<_ACEOF
37575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37577 ice_have_malloc=yes
37581 if test "${ice_have_malloc}" = yes; then
37582 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
37583 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
37584 if test "${ice_cv_have_malloc_decl+set}" = set; then
37585 echo $ECHO_N "(cached) $ECHO_C" >&6
37588 ice_cv_have_malloc_decl=no
37589 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37590 ice_re_word='(^|[^a-zA-Z0-9_])'
37591 for header in stdlib.h; do
37592 # Check for ordinary declaration
37593 cat >conftest.$ac_ext <<_ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h. */
37602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37603 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
37604 ice_cv_have_malloc_decl=yes
37608 if test "$ice_cv_have_malloc_decl" = yes; then
37611 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37612 cat >conftest.$ac_ext <<_ACEOF
37615 cat confdefs.h >>conftest.$ac_ext
37616 cat >>conftest.$ac_ext <<_ACEOF
37617 /* end confdefs.h. */
37621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37622 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37623 ice_cv_have_malloc_decl=yes
37627 if test "$ice_cv_have_malloc_decl" = yes; then
37634 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
37635 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
37636 if test "$ice_cv_have_malloc_decl" = yes; then
37638 cat >>confdefs.h <<_ACEOF
37639 #define HAVE_MALLOC_DECL 1
37646 for ac_func in memmove
37648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37649 echo "$as_me:$LINENO: checking for $ac_func" >&5
37650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37651 if eval "test \"\${$as_ac_var+set}\" = set"; then
37652 echo $ECHO_N "(cached) $ECHO_C" >&6
37654 cat >conftest.$ac_ext <<_ACEOF
37657 cat confdefs.h >>conftest.$ac_ext
37658 cat >>conftest.$ac_ext <<_ACEOF
37659 /* end confdefs.h. */
37660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37662 #define $ac_func innocuous_$ac_func
37664 /* System header to define __stub macros and hopefully few prototypes,
37665 which can conflict with char $ac_func (); below.
37666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37667 <limits.h> exists even on freestanding compilers. */
37670 # include <limits.h>
37672 # include <assert.h>
37677 /* Override any gcc2 internal prototype to avoid an error. */
37682 /* We use char because int might match the return type of a gcc2
37683 builtin and then its argument prototype would still apply. */
37685 /* The GNU C library defines this for functions which it implements
37686 to always fail with ENOSYS. Some functions are actually named
37687 something starting with __ and the normal name is an alias. */
37688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37691 char (*f) () = $ac_func;
37700 return f != $ac_func;
37705 rm -f conftest.$ac_objext conftest$ac_exeext
37706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37707 (eval $ac_link) 2>conftest.er1
37709 grep -v '^ *+' conftest.er1 >conftest.err
37711 cat conftest.err >&5
37712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713 (exit $ac_status); } &&
37714 { ac_try='test -z "$ac_c_werror_flag"
37715 || test ! -s conftest.err'
37716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717 (eval $ac_try) 2>&5
37719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); }; } &&
37721 { ac_try='test -s conftest$ac_exeext'
37722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37723 (eval $ac_try) 2>&5
37725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726 (exit $ac_status); }; }; then
37727 eval "$as_ac_var=yes"
37729 echo "$as_me: failed program was:" >&5
37730 sed 's/^/| /' conftest.$ac_ext >&5
37732 eval "$as_ac_var=no"
37734 rm -f conftest.err conftest.$ac_objext \
37735 conftest$ac_exeext conftest.$ac_ext
37737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37739 if test `eval echo '${'$as_ac_var'}'` = yes; then
37740 cat >>confdefs.h <<_ACEOF
37741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37746 "$ac_func.$ac_objext" | \
37747 *" $ac_func.$ac_objext" | \
37748 "$ac_func.$ac_objext "* | \
37749 *" $ac_func.$ac_objext "* ) ;;
37750 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37758 ice_have_memmove=no
37760 for ac_func in memmove
37762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37763 echo "$as_me:$LINENO: checking for $ac_func" >&5
37764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37765 if eval "test \"\${$as_ac_var+set}\" = set"; then
37766 echo $ECHO_N "(cached) $ECHO_C" >&6
37768 cat >conftest.$ac_ext <<_ACEOF
37771 cat confdefs.h >>conftest.$ac_ext
37772 cat >>conftest.$ac_ext <<_ACEOF
37773 /* end confdefs.h. */
37774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37776 #define $ac_func innocuous_$ac_func
37778 /* System header to define __stub macros and hopefully few prototypes,
37779 which can conflict with char $ac_func (); below.
37780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37781 <limits.h> exists even on freestanding compilers. */
37784 # include <limits.h>
37786 # include <assert.h>
37791 /* Override any gcc2 internal prototype to avoid an error. */
37796 /* We use char because int might match the return type of a gcc2
37797 builtin and then its argument prototype would still apply. */
37799 /* The GNU C library defines this for functions which it implements
37800 to always fail with ENOSYS. Some functions are actually named
37801 something starting with __ and the normal name is an alias. */
37802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37805 char (*f) () = $ac_func;
37814 return f != $ac_func;
37819 rm -f conftest.$ac_objext conftest$ac_exeext
37820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37821 (eval $ac_link) 2>conftest.er1
37823 grep -v '^ *+' conftest.er1 >conftest.err
37825 cat conftest.err >&5
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); } &&
37828 { ac_try='test -z "$ac_c_werror_flag"
37829 || test ! -s conftest.err'
37830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37831 (eval $ac_try) 2>&5
37833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834 (exit $ac_status); }; } &&
37835 { ac_try='test -s conftest$ac_exeext'
37836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37837 (eval $ac_try) 2>&5
37839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840 (exit $ac_status); }; }; then
37841 eval "$as_ac_var=yes"
37843 echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37846 eval "$as_ac_var=no"
37848 rm -f conftest.err conftest.$ac_objext \
37849 conftest$ac_exeext conftest.$ac_ext
37851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37853 if test `eval echo '${'$as_ac_var'}'` = yes; then
37854 cat >>confdefs.h <<_ACEOF
37855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37857 ice_have_memmove=yes
37861 if test "${ice_have_memmove}" = yes; then
37862 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
37863 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
37864 if test "${ice_cv_have_memmove_decl+set}" = set; then
37865 echo $ECHO_N "(cached) $ECHO_C" >&6
37868 ice_cv_have_memmove_decl=no
37869 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37870 ice_re_word='(^|[^a-zA-Z0-9_])'
37871 for header in string.h strings.h; do
37872 # Check for ordinary declaration
37873 cat >conftest.$ac_ext <<_ACEOF
37876 cat confdefs.h >>conftest.$ac_ext
37877 cat >>conftest.$ac_ext <<_ACEOF
37878 /* end confdefs.h. */
37882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37883 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
37884 ice_cv_have_memmove_decl=yes
37888 if test "$ice_cv_have_memmove_decl" = yes; then
37891 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37892 cat >conftest.$ac_ext <<_ACEOF
37895 cat confdefs.h >>conftest.$ac_ext
37896 cat >>conftest.$ac_ext <<_ACEOF
37897 /* end confdefs.h. */
37901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37902 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37903 ice_cv_have_memmove_decl=yes
37907 if test "$ice_cv_have_memmove_decl" = yes; then
37914 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
37915 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
37916 if test "$ice_cv_have_memmove_decl" = yes; then
37918 cat >>confdefs.h <<_ACEOF
37919 #define HAVE_MEMMOVE_DECL 1
37928 for ac_func in memset
37930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37931 echo "$as_me:$LINENO: checking for $ac_func" >&5
37932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37933 if eval "test \"\${$as_ac_var+set}\" = set"; then
37934 echo $ECHO_N "(cached) $ECHO_C" >&6
37936 cat >conftest.$ac_ext <<_ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h. */
37942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37944 #define $ac_func innocuous_$ac_func
37946 /* System header to define __stub macros and hopefully few prototypes,
37947 which can conflict with char $ac_func (); below.
37948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37949 <limits.h> exists even on freestanding compilers. */
37952 # include <limits.h>
37954 # include <assert.h>
37959 /* Override any gcc2 internal prototype to avoid an error. */
37964 /* We use char because int might match the return type of a gcc2
37965 builtin and then its argument prototype would still apply. */
37967 /* The GNU C library defines this for functions which it implements
37968 to always fail with ENOSYS. Some functions are actually named
37969 something starting with __ and the normal name is an alias. */
37970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37973 char (*f) () = $ac_func;
37982 return f != $ac_func;
37987 rm -f conftest.$ac_objext conftest$ac_exeext
37988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37989 (eval $ac_link) 2>conftest.er1
37991 grep -v '^ *+' conftest.er1 >conftest.err
37993 cat conftest.err >&5
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); } &&
37996 { ac_try='test -z "$ac_c_werror_flag"
37997 || test ! -s conftest.err'
37998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37999 (eval $ac_try) 2>&5
38001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002 (exit $ac_status); }; } &&
38003 { ac_try='test -s conftest$ac_exeext'
38004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38005 (eval $ac_try) 2>&5
38007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008 (exit $ac_status); }; }; then
38009 eval "$as_ac_var=yes"
38011 echo "$as_me: failed program was:" >&5
38012 sed 's/^/| /' conftest.$ac_ext >&5
38014 eval "$as_ac_var=no"
38016 rm -f conftest.err conftest.$ac_objext \
38017 conftest$ac_exeext conftest.$ac_ext
38019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38021 if test `eval echo '${'$as_ac_var'}'` = yes; then
38022 cat >>confdefs.h <<_ACEOF
38023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38025 ice_have_memset=yes
38029 if test "${ice_have_memset}" = yes; then
38030 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
38031 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
38032 if test "${ice_cv_have_memset_decl+set}" = set; then
38033 echo $ECHO_N "(cached) $ECHO_C" >&6
38036 ice_cv_have_memset_decl=no
38037 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38038 ice_re_word='(^|[^a-zA-Z0-9_])'
38039 for header in string.h strings.h; do
38040 # Check for ordinary declaration
38041 cat >conftest.$ac_ext <<_ACEOF
38044 cat confdefs.h >>conftest.$ac_ext
38045 cat >>conftest.$ac_ext <<_ACEOF
38046 /* end confdefs.h. */
38050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38051 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
38052 ice_cv_have_memset_decl=yes
38056 if test "$ice_cv_have_memset_decl" = yes; then
38059 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38060 cat >conftest.$ac_ext <<_ACEOF
38063 cat confdefs.h >>conftest.$ac_ext
38064 cat >>conftest.$ac_ext <<_ACEOF
38065 /* end confdefs.h. */
38069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38070 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38071 ice_cv_have_memset_decl=yes
38075 if test "$ice_cv_have_memset_decl" = yes; then
38082 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
38083 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
38084 if test "$ice_cv_have_memset_decl" = yes; then
38086 cat >>confdefs.h <<_ACEOF
38087 #define HAVE_MEMSET_DECL 1
38094 for ac_func in mkdir
38096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38097 echo "$as_me:$LINENO: checking for $ac_func" >&5
38098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38099 if eval "test \"\${$as_ac_var+set}\" = set"; then
38100 echo $ECHO_N "(cached) $ECHO_C" >&6
38102 cat >conftest.$ac_ext <<_ACEOF
38105 cat confdefs.h >>conftest.$ac_ext
38106 cat >>conftest.$ac_ext <<_ACEOF
38107 /* end confdefs.h. */
38108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38110 #define $ac_func innocuous_$ac_func
38112 /* System header to define __stub macros and hopefully few prototypes,
38113 which can conflict with char $ac_func (); below.
38114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38115 <limits.h> exists even on freestanding compilers. */
38118 # include <limits.h>
38120 # include <assert.h>
38125 /* Override any gcc2 internal prototype to avoid an error. */
38130 /* We use char because int might match the return type of a gcc2
38131 builtin and then its argument prototype would still apply. */
38133 /* The GNU C library defines this for functions which it implements
38134 to always fail with ENOSYS. Some functions are actually named
38135 something starting with __ and the normal name is an alias. */
38136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38139 char (*f) () = $ac_func;
38148 return f != $ac_func;
38153 rm -f conftest.$ac_objext conftest$ac_exeext
38154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38155 (eval $ac_link) 2>conftest.er1
38157 grep -v '^ *+' conftest.er1 >conftest.err
38159 cat conftest.err >&5
38160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 (exit $ac_status); } &&
38162 { ac_try='test -z "$ac_c_werror_flag"
38163 || test ! -s conftest.err'
38164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38165 (eval $ac_try) 2>&5
38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); }; } &&
38169 { ac_try='test -s conftest$ac_exeext'
38170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38171 (eval $ac_try) 2>&5
38173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174 (exit $ac_status); }; }; then
38175 eval "$as_ac_var=yes"
38177 echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38180 eval "$as_ac_var=no"
38182 rm -f conftest.err conftest.$ac_objext \
38183 conftest$ac_exeext conftest.$ac_ext
38185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38187 if test `eval echo '${'$as_ac_var'}'` = yes; then
38188 cat >>confdefs.h <<_ACEOF
38189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38198 for ac_func in mktemp
38200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38201 echo "$as_me:$LINENO: checking for $ac_func" >&5
38202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38203 if eval "test \"\${$as_ac_var+set}\" = set"; then
38204 echo $ECHO_N "(cached) $ECHO_C" >&6
38206 cat >conftest.$ac_ext <<_ACEOF
38209 cat confdefs.h >>conftest.$ac_ext
38210 cat >>conftest.$ac_ext <<_ACEOF
38211 /* end confdefs.h. */
38212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38214 #define $ac_func innocuous_$ac_func
38216 /* System header to define __stub macros and hopefully few prototypes,
38217 which can conflict with char $ac_func (); below.
38218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38219 <limits.h> exists even on freestanding compilers. */
38222 # include <limits.h>
38224 # include <assert.h>
38229 /* Override any gcc2 internal prototype to avoid an error. */
38234 /* We use char because int might match the return type of a gcc2
38235 builtin and then its argument prototype would still apply. */
38237 /* The GNU C library defines this for functions which it implements
38238 to always fail with ENOSYS. Some functions are actually named
38239 something starting with __ and the normal name is an alias. */
38240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38243 char (*f) () = $ac_func;
38252 return f != $ac_func;
38257 rm -f conftest.$ac_objext conftest$ac_exeext
38258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38259 (eval $ac_link) 2>conftest.er1
38261 grep -v '^ *+' conftest.er1 >conftest.err
38263 cat conftest.err >&5
38264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265 (exit $ac_status); } &&
38266 { ac_try='test -z "$ac_c_werror_flag"
38267 || test ! -s conftest.err'
38268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38269 (eval $ac_try) 2>&5
38271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272 (exit $ac_status); }; } &&
38273 { ac_try='test -s conftest$ac_exeext'
38274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38275 (eval $ac_try) 2>&5
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); }; }; then
38279 eval "$as_ac_var=yes"
38281 echo "$as_me: failed program was:" >&5
38282 sed 's/^/| /' conftest.$ac_ext >&5
38284 eval "$as_ac_var=no"
38286 rm -f conftest.err conftest.$ac_objext \
38287 conftest$ac_exeext conftest.$ac_ext
38289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38291 if test `eval echo '${'$as_ac_var'}'` = yes; then
38292 cat >>confdefs.h <<_ACEOF
38293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38295 ice_have_mktemp=yes
38299 if test "${ice_have_mktemp}" = yes; then
38300 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
38301 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
38302 if test "${ice_cv_have_mktemp_decl+set}" = set; then
38303 echo $ECHO_N "(cached) $ECHO_C" >&6
38306 ice_cv_have_mktemp_decl=no
38307 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38308 ice_re_word='(^|[^a-zA-Z0-9_])'
38309 for header in stdlib.h; do
38310 # Check for ordinary declaration
38311 cat >conftest.$ac_ext <<_ACEOF
38314 cat confdefs.h >>conftest.$ac_ext
38315 cat >>conftest.$ac_ext <<_ACEOF
38316 /* end confdefs.h. */
38320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38321 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
38322 ice_cv_have_mktemp_decl=yes
38326 if test "$ice_cv_have_mktemp_decl" = yes; then
38329 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38330 cat >conftest.$ac_ext <<_ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h. */
38339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38340 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38341 ice_cv_have_mktemp_decl=yes
38345 if test "$ice_cv_have_mktemp_decl" = yes; then
38352 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
38353 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
38354 if test "$ice_cv_have_mktemp_decl" = yes; then
38356 cat >>confdefs.h <<_ACEOF
38357 #define HAVE_MKTEMP_DECL 1
38364 for ac_func in mktime
38366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38367 echo "$as_me:$LINENO: checking for $ac_func" >&5
38368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38369 if eval "test \"\${$as_ac_var+set}\" = set"; then
38370 echo $ECHO_N "(cached) $ECHO_C" >&6
38372 cat >conftest.$ac_ext <<_ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h. */
38378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38380 #define $ac_func innocuous_$ac_func
38382 /* System header to define __stub macros and hopefully few prototypes,
38383 which can conflict with char $ac_func (); below.
38384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38385 <limits.h> exists even on freestanding compilers. */
38388 # include <limits.h>
38390 # include <assert.h>
38395 /* Override any gcc2 internal prototype to avoid an error. */
38400 /* We use char because int might match the return type of a gcc2
38401 builtin and then its argument prototype would still apply. */
38403 /* The GNU C library defines this for functions which it implements
38404 to always fail with ENOSYS. Some functions are actually named
38405 something starting with __ and the normal name is an alias. */
38406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38409 char (*f) () = $ac_func;
38418 return f != $ac_func;
38423 rm -f conftest.$ac_objext conftest$ac_exeext
38424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38425 (eval $ac_link) 2>conftest.er1
38427 grep -v '^ *+' conftest.er1 >conftest.err
38429 cat conftest.err >&5
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); } &&
38432 { ac_try='test -z "$ac_c_werror_flag"
38433 || test ! -s conftest.err'
38434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38435 (eval $ac_try) 2>&5
38437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438 (exit $ac_status); }; } &&
38439 { ac_try='test -s conftest$ac_exeext'
38440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38441 (eval $ac_try) 2>&5
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); }; }; then
38445 eval "$as_ac_var=yes"
38447 echo "$as_me: failed program was:" >&5
38448 sed 's/^/| /' conftest.$ac_ext >&5
38450 eval "$as_ac_var=no"
38452 rm -f conftest.err conftest.$ac_objext \
38453 conftest$ac_exeext conftest.$ac_ext
38455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38457 if test `eval echo '${'$as_ac_var'}'` = yes; then
38458 cat >>confdefs.h <<_ACEOF
38459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38464 "$ac_func.$ac_objext" | \
38465 *" $ac_func.$ac_objext" | \
38466 "$ac_func.$ac_objext "* | \
38467 *" $ac_func.$ac_objext "* ) ;;
38468 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38478 for ac_func in mktime
38480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38481 echo "$as_me:$LINENO: checking for $ac_func" >&5
38482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38483 if eval "test \"\${$as_ac_var+set}\" = set"; then
38484 echo $ECHO_N "(cached) $ECHO_C" >&6
38486 cat >conftest.$ac_ext <<_ACEOF
38489 cat confdefs.h >>conftest.$ac_ext
38490 cat >>conftest.$ac_ext <<_ACEOF
38491 /* end confdefs.h. */
38492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38494 #define $ac_func innocuous_$ac_func
38496 /* System header to define __stub macros and hopefully few prototypes,
38497 which can conflict with char $ac_func (); below.
38498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38499 <limits.h> exists even on freestanding compilers. */
38502 # include <limits.h>
38504 # include <assert.h>
38509 /* Override any gcc2 internal prototype to avoid an error. */
38514 /* We use char because int might match the return type of a gcc2
38515 builtin and then its argument prototype would still apply. */
38517 /* The GNU C library defines this for functions which it implements
38518 to always fail with ENOSYS. Some functions are actually named
38519 something starting with __ and the normal name is an alias. */
38520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38523 char (*f) () = $ac_func;
38532 return f != $ac_func;
38537 rm -f conftest.$ac_objext conftest$ac_exeext
38538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38539 (eval $ac_link) 2>conftest.er1
38541 grep -v '^ *+' conftest.er1 >conftest.err
38543 cat conftest.err >&5
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); } &&
38546 { ac_try='test -z "$ac_c_werror_flag"
38547 || test ! -s conftest.err'
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; } &&
38553 { ac_try='test -s conftest$ac_exeext'
38554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38555 (eval $ac_try) 2>&5
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); }; }; then
38559 eval "$as_ac_var=yes"
38561 echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38564 eval "$as_ac_var=no"
38566 rm -f conftest.err conftest.$ac_objext \
38567 conftest$ac_exeext conftest.$ac_ext
38569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38571 if test `eval echo '${'$as_ac_var'}'` = yes; then
38572 cat >>confdefs.h <<_ACEOF
38573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38575 ice_have_mktime=yes
38579 if test "${ice_have_mktime}" = yes; then
38580 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
38581 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
38582 if test "${ice_cv_have_mktime_decl+set}" = set; then
38583 echo $ECHO_N "(cached) $ECHO_C" >&6
38586 ice_cv_have_mktime_decl=no
38587 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38588 ice_re_word='(^|[^a-zA-Z0-9_])'
38589 for header in time.h sys/time.h; do
38590 # Check for ordinary declaration
38591 cat >conftest.$ac_ext <<_ACEOF
38594 cat confdefs.h >>conftest.$ac_ext
38595 cat >>conftest.$ac_ext <<_ACEOF
38596 /* end confdefs.h. */
38600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38601 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
38602 ice_cv_have_mktime_decl=yes
38606 if test "$ice_cv_have_mktime_decl" = yes; then
38609 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38610 cat >conftest.$ac_ext <<_ACEOF
38613 cat confdefs.h >>conftest.$ac_ext
38614 cat >>conftest.$ac_ext <<_ACEOF
38615 /* end confdefs.h. */
38619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38620 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38621 ice_cv_have_mktime_decl=yes
38625 if test "$ice_cv_have_mktime_decl" = yes; then
38632 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
38633 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
38634 if test "$ice_cv_have_mktime_decl" = yes; then
38636 cat >>confdefs.h <<_ACEOF
38637 #define HAVE_MKTIME_DECL 1
38645 for ac_header in stdlib.h unistd.h
38647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38649 echo "$as_me:$LINENO: checking for $ac_header" >&5
38650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38652 echo $ECHO_N "(cached) $ECHO_C" >&6
38654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38657 # Is the header compilable?
38658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38660 cat >conftest.$ac_ext <<_ACEOF
38663 cat confdefs.h >>conftest.$ac_ext
38664 cat >>conftest.$ac_ext <<_ACEOF
38665 /* end confdefs.h. */
38666 $ac_includes_default
38667 #include <$ac_header>
38669 rm -f conftest.$ac_objext
38670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38671 (eval $ac_compile) 2>conftest.er1
38673 grep -v '^ *+' conftest.er1 >conftest.err
38675 cat conftest.err >&5
38676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); } &&
38678 { ac_try='test -z "$ac_c_werror_flag"
38679 || test ! -s conftest.err'
38680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38681 (eval $ac_try) 2>&5
38683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684 (exit $ac_status); }; } &&
38685 { ac_try='test -s conftest.$ac_objext'
38686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687 (eval $ac_try) 2>&5
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); }; }; then
38691 ac_header_compiler=yes
38693 echo "$as_me: failed program was:" >&5
38694 sed 's/^/| /' conftest.$ac_ext >&5
38696 ac_header_compiler=no
38698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38700 echo "${ECHO_T}$ac_header_compiler" >&6
38702 # Is the header present?
38703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38705 cat >conftest.$ac_ext <<_ACEOF
38708 cat confdefs.h >>conftest.$ac_ext
38709 cat >>conftest.$ac_ext <<_ACEOF
38710 /* end confdefs.h. */
38711 #include <$ac_header>
38713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38716 grep -v '^ *+' conftest.er1 >conftest.err
38718 cat conftest.err >&5
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } >/dev/null; then
38721 if test -s conftest.err; then
38722 ac_cpp_err=$ac_c_preproc_warn_flag
38723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38730 if test -z "$ac_cpp_err"; then
38731 ac_header_preproc=yes
38733 echo "$as_me: failed program was:" >&5
38734 sed 's/^/| /' conftest.$ac_ext >&5
38736 ac_header_preproc=no
38738 rm -f conftest.err conftest.$ac_ext
38739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38740 echo "${ECHO_T}$ac_header_preproc" >&6
38742 # So? What about this header?
38743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38749 ac_header_preproc=yes
38752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38766 ## ------------------------------------------ ##
38767 ## Report this to the AC_PACKAGE_NAME lists. ##
38768 ## ------------------------------------------ ##
38771 sed "s/^/$as_me: WARNING: /" >&2
38774 echo "$as_me:$LINENO: checking for $ac_header" >&5
38775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38777 echo $ECHO_N "(cached) $ECHO_C" >&6
38779 eval "$as_ac_Header=\$ac_header_preproc"
38781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38786 cat >>confdefs.h <<_ACEOF
38787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38795 for ac_func in getpagesize
38797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38798 echo "$as_me:$LINENO: checking for $ac_func" >&5
38799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38800 if eval "test \"\${$as_ac_var+set}\" = set"; then
38801 echo $ECHO_N "(cached) $ECHO_C" >&6
38803 cat >conftest.$ac_ext <<_ACEOF
38806 cat confdefs.h >>conftest.$ac_ext
38807 cat >>conftest.$ac_ext <<_ACEOF
38808 /* end confdefs.h. */
38809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38811 #define $ac_func innocuous_$ac_func
38813 /* System header to define __stub macros and hopefully few prototypes,
38814 which can conflict with char $ac_func (); below.
38815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38816 <limits.h> exists even on freestanding compilers. */
38819 # include <limits.h>
38821 # include <assert.h>
38826 /* Override any gcc2 internal prototype to avoid an error. */
38831 /* We use char because int might match the return type of a gcc2
38832 builtin and then its argument prototype would still apply. */
38834 /* The GNU C library defines this for functions which it implements
38835 to always fail with ENOSYS. Some functions are actually named
38836 something starting with __ and the normal name is an alias. */
38837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38840 char (*f) () = $ac_func;
38849 return f != $ac_func;
38854 rm -f conftest.$ac_objext conftest$ac_exeext
38855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38856 (eval $ac_link) 2>conftest.er1
38858 grep -v '^ *+' conftest.er1 >conftest.err
38860 cat conftest.err >&5
38861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862 (exit $ac_status); } &&
38863 { ac_try='test -z "$ac_c_werror_flag"
38864 || test ! -s conftest.err'
38865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38866 (eval $ac_try) 2>&5
38868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869 (exit $ac_status); }; } &&
38870 { ac_try='test -s conftest$ac_exeext'
38871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38872 (eval $ac_try) 2>&5
38874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875 (exit $ac_status); }; }; then
38876 eval "$as_ac_var=yes"
38878 echo "$as_me: failed program was:" >&5
38879 sed 's/^/| /' conftest.$ac_ext >&5
38881 eval "$as_ac_var=no"
38883 rm -f conftest.err conftest.$ac_objext \
38884 conftest$ac_exeext conftest.$ac_ext
38886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38888 if test `eval echo '${'$as_ac_var'}'` = yes; then
38889 cat >>confdefs.h <<_ACEOF
38890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38896 echo "$as_me:$LINENO: checking for working mmap" >&5
38897 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
38898 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
38899 echo $ECHO_N "(cached) $ECHO_C" >&6
38901 if test "$cross_compiling" = yes; then
38902 ac_cv_func_mmap_fixed_mapped=no
38904 cat >conftest.$ac_ext <<_ACEOF
38907 cat confdefs.h >>conftest.$ac_ext
38908 cat >>conftest.$ac_ext <<_ACEOF
38909 /* end confdefs.h. */
38910 $ac_includes_default
38911 /* malloc might have been renamed as rpl_malloc. */
38914 /* Thanks to Mike Haertel and Jim Avera for this test.
38915 Here is a matrix of mmap possibilities:
38916 mmap private not fixed
38917 mmap private fixed at somewhere currently unmapped
38918 mmap private fixed at somewhere already mapped
38919 mmap shared not fixed
38920 mmap shared fixed at somewhere currently unmapped
38921 mmap shared fixed at somewhere already mapped
38922 For private mappings, we should verify that changes cannot be read()
38923 back from the file, nor mmap's back from the file at a different
38924 address. (There have been systems where private was not correctly
38925 implemented like the infamous i386 svr4.0, and systems where the
38926 VM page cache was not coherent with the file system buffer cache
38927 like early versions of FreeBSD and possibly contemporary NetBSD.)
38928 For shared mappings, we should conversely verify that changes get
38929 propagated back to all the places they're supposed to be.
38931 Grep wants private fixed already mapped.
38932 The main things grep needs to know about mmap are:
38933 * does it exist and is it safe to write into the mmap'd area
38934 * how to use it (BSD variants) */
38937 #include <sys/mman.h>
38939 #if !STDC_HEADERS && !HAVE_STDLIB_H
38943 /* This mess was copied from the GNU getpagesize.h. */
38944 #if !HAVE_GETPAGESIZE
38945 /* Assume that all systems that can run configure have sys/param.h. */
38946 # if !HAVE_SYS_PARAM_H
38947 # define HAVE_SYS_PARAM_H 1
38950 # ifdef _SC_PAGESIZE
38951 # define getpagesize() sysconf(_SC_PAGESIZE)
38952 # else /* no _SC_PAGESIZE */
38953 # if HAVE_SYS_PARAM_H
38954 # include <sys/param.h>
38955 # ifdef EXEC_PAGESIZE
38956 # define getpagesize() EXEC_PAGESIZE
38957 # else /* no EXEC_PAGESIZE */
38959 # define getpagesize() NBPG * CLSIZE
38962 # endif /* no CLSIZE */
38963 # else /* no NBPG */
38965 # define getpagesize() NBPC
38966 # else /* no NBPC */
38968 # define getpagesize() PAGESIZE
38969 # endif /* PAGESIZE */
38970 # endif /* no NBPC */
38971 # endif /* no NBPG */
38972 # endif /* no EXEC_PAGESIZE */
38973 # else /* no HAVE_SYS_PARAM_H */
38974 # define getpagesize() 8192 /* punt totally */
38975 # endif /* no HAVE_SYS_PARAM_H */
38976 # endif /* no _SC_PAGESIZE */
38978 #endif /* no HAVE_GETPAGESIZE */
38983 char *data, *data2, *data3;
38987 pagesize = getpagesize ();
38989 /* First, make a file with some known garbage in it. */
38990 data = (char *) malloc (pagesize);
38993 for (i = 0; i < pagesize; ++i)
38994 *(data + i) = rand ();
38996 fd = creat ("conftest.mmap", 0600);
38999 if (write (fd, data, pagesize) != pagesize)
39003 /* Next, try to mmap the file at a fixed address which already has
39004 something else allocated at it. If we can, also make sure that
39005 we see the same garbage. */
39006 fd = open ("conftest.mmap", O_RDWR);
39009 data2 = (char *) malloc (2 * pagesize);
39012 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
39013 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
39014 MAP_PRIVATE | MAP_FIXED, fd, 0L))
39016 for (i = 0; i < pagesize; ++i)
39017 if (*(data + i) != *(data2 + i))
39020 /* Finally, make sure that changes to the mapped area do not
39021 percolate back to the file as seen by read(). (This is a bug on
39022 some variants of i386 svr4.0.) */
39023 for (i = 0; i < pagesize; ++i)
39024 *(data2 + i) = *(data2 + i) + 1;
39025 data3 = (char *) malloc (pagesize);
39028 if (read (fd, data3, pagesize) != pagesize)
39030 for (i = 0; i < pagesize; ++i)
39031 if (*(data + i) != *(data3 + i))
39037 rm -f conftest$ac_exeext
39038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39039 (eval $ac_link) 2>&5
39041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39044 (eval $ac_try) 2>&5
39046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); }; }; then
39048 ac_cv_func_mmap_fixed_mapped=yes
39050 echo "$as_me: program exited with status $ac_status" >&5
39051 echo "$as_me: failed program was:" >&5
39052 sed 's/^/| /' conftest.$ac_ext >&5
39054 ( exit $ac_status )
39055 ac_cv_func_mmap_fixed_mapped=no
39057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39060 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
39061 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
39062 if test $ac_cv_func_mmap_fixed_mapped = yes; then
39064 cat >>confdefs.h <<\_ACEOF
39065 #define HAVE_MMAP 1
39069 rm -f conftest.mmap
39072 for ac_func in on_exit
39074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39075 echo "$as_me:$LINENO: checking for $ac_func" >&5
39076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39077 if eval "test \"\${$as_ac_var+set}\" = set"; then
39078 echo $ECHO_N "(cached) $ECHO_C" >&6
39080 cat >conftest.$ac_ext <<_ACEOF
39083 cat confdefs.h >>conftest.$ac_ext
39084 cat >>conftest.$ac_ext <<_ACEOF
39085 /* end confdefs.h. */
39086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39088 #define $ac_func innocuous_$ac_func
39090 /* System header to define __stub macros and hopefully few prototypes,
39091 which can conflict with char $ac_func (); below.
39092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39093 <limits.h> exists even on freestanding compilers. */
39096 # include <limits.h>
39098 # include <assert.h>
39103 /* Override any gcc2 internal prototype to avoid an error. */
39108 /* We use char because int might match the return type of a gcc2
39109 builtin and then its argument prototype would still apply. */
39111 /* The GNU C library defines this for functions which it implements
39112 to always fail with ENOSYS. Some functions are actually named
39113 something starting with __ and the normal name is an alias. */
39114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39117 char (*f) () = $ac_func;
39126 return f != $ac_func;
39131 rm -f conftest.$ac_objext conftest$ac_exeext
39132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39133 (eval $ac_link) 2>conftest.er1
39135 grep -v '^ *+' conftest.er1 >conftest.err
39137 cat conftest.err >&5
39138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139 (exit $ac_status); } &&
39140 { ac_try='test -z "$ac_c_werror_flag"
39141 || test ! -s conftest.err'
39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143 (eval $ac_try) 2>&5
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); }; } &&
39147 { ac_try='test -s conftest$ac_exeext'
39148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39149 (eval $ac_try) 2>&5
39151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152 (exit $ac_status); }; }; then
39153 eval "$as_ac_var=yes"
39155 echo "$as_me: failed program was:" >&5
39156 sed 's/^/| /' conftest.$ac_ext >&5
39158 eval "$as_ac_var=no"
39160 rm -f conftest.err conftest.$ac_objext \
39161 conftest$ac_exeext conftest.$ac_ext
39163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39165 if test `eval echo '${'$as_ac_var'}'` = yes; then
39166 cat >>confdefs.h <<_ACEOF
39167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39174 ice_have_openlog=no
39176 for ac_func in openlog
39178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39179 echo "$as_me:$LINENO: checking for $ac_func" >&5
39180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39181 if eval "test \"\${$as_ac_var+set}\" = set"; then
39182 echo $ECHO_N "(cached) $ECHO_C" >&6
39184 cat >conftest.$ac_ext <<_ACEOF
39187 cat confdefs.h >>conftest.$ac_ext
39188 cat >>conftest.$ac_ext <<_ACEOF
39189 /* end confdefs.h. */
39190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39192 #define $ac_func innocuous_$ac_func
39194 /* System header to define __stub macros and hopefully few prototypes,
39195 which can conflict with char $ac_func (); below.
39196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39197 <limits.h> exists even on freestanding compilers. */
39200 # include <limits.h>
39202 # include <assert.h>
39207 /* Override any gcc2 internal prototype to avoid an error. */
39212 /* We use char because int might match the return type of a gcc2
39213 builtin and then its argument prototype would still apply. */
39215 /* The GNU C library defines this for functions which it implements
39216 to always fail with ENOSYS. Some functions are actually named
39217 something starting with __ and the normal name is an alias. */
39218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39221 char (*f) () = $ac_func;
39230 return f != $ac_func;
39235 rm -f conftest.$ac_objext conftest$ac_exeext
39236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39237 (eval $ac_link) 2>conftest.er1
39239 grep -v '^ *+' conftest.er1 >conftest.err
39241 cat conftest.err >&5
39242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243 (exit $ac_status); } &&
39244 { ac_try='test -z "$ac_c_werror_flag"
39245 || test ! -s conftest.err'
39246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39247 (eval $ac_try) 2>&5
39249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250 (exit $ac_status); }; } &&
39251 { ac_try='test -s conftest$ac_exeext'
39252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39253 (eval $ac_try) 2>&5
39255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); }; }; then
39257 eval "$as_ac_var=yes"
39259 echo "$as_me: failed program was:" >&5
39260 sed 's/^/| /' conftest.$ac_ext >&5
39262 eval "$as_ac_var=no"
39264 rm -f conftest.err conftest.$ac_objext \
39265 conftest$ac_exeext conftest.$ac_ext
39267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39269 if test `eval echo '${'$as_ac_var'}'` = yes; then
39270 cat >>confdefs.h <<_ACEOF
39271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39273 ice_have_openlog=yes
39277 if test "${ice_have_openlog}" = yes; then
39278 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
39279 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
39280 if test "${ice_cv_have_openlog_decl+set}" = set; then
39281 echo $ECHO_N "(cached) $ECHO_C" >&6
39284 ice_cv_have_openlog_decl=no
39285 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39286 ice_re_word='(^|[^a-zA-Z0-9_])'
39287 for header in syslog.h; do
39288 # Check for ordinary declaration
39289 cat >conftest.$ac_ext <<_ACEOF
39292 cat confdefs.h >>conftest.$ac_ext
39293 cat >>conftest.$ac_ext <<_ACEOF
39294 /* end confdefs.h. */
39298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39299 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
39300 ice_cv_have_openlog_decl=yes
39304 if test "$ice_cv_have_openlog_decl" = yes; then
39307 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39308 cat >conftest.$ac_ext <<_ACEOF
39311 cat confdefs.h >>conftest.$ac_ext
39312 cat >>conftest.$ac_ext <<_ACEOF
39313 /* end confdefs.h. */
39317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39318 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39319 ice_cv_have_openlog_decl=yes
39323 if test "$ice_cv_have_openlog_decl" = yes; then
39330 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
39331 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
39332 if test "$ice_cv_have_openlog_decl" = yes; then
39334 cat >>confdefs.h <<_ACEOF
39335 #define HAVE_OPENLOG_DECL 1
39344 for ac_func in pclose
39346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39347 echo "$as_me:$LINENO: checking for $ac_func" >&5
39348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39349 if eval "test \"\${$as_ac_var+set}\" = set"; then
39350 echo $ECHO_N "(cached) $ECHO_C" >&6
39352 cat >conftest.$ac_ext <<_ACEOF
39355 cat confdefs.h >>conftest.$ac_ext
39356 cat >>conftest.$ac_ext <<_ACEOF
39357 /* end confdefs.h. */
39358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39360 #define $ac_func innocuous_$ac_func
39362 /* System header to define __stub macros and hopefully few prototypes,
39363 which can conflict with char $ac_func (); below.
39364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39365 <limits.h> exists even on freestanding compilers. */
39368 # include <limits.h>
39370 # include <assert.h>
39375 /* Override any gcc2 internal prototype to avoid an error. */
39380 /* We use char because int might match the return type of a gcc2
39381 builtin and then its argument prototype would still apply. */
39383 /* The GNU C library defines this for functions which it implements
39384 to always fail with ENOSYS. Some functions are actually named
39385 something starting with __ and the normal name is an alias. */
39386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39389 char (*f) () = $ac_func;
39398 return f != $ac_func;
39403 rm -f conftest.$ac_objext conftest$ac_exeext
39404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39405 (eval $ac_link) 2>conftest.er1
39407 grep -v '^ *+' conftest.er1 >conftest.err
39409 cat conftest.err >&5
39410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39411 (exit $ac_status); } &&
39412 { ac_try='test -z "$ac_c_werror_flag"
39413 || test ! -s conftest.err'
39414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39415 (eval $ac_try) 2>&5
39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418 (exit $ac_status); }; } &&
39419 { ac_try='test -s conftest$ac_exeext'
39420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39421 (eval $ac_try) 2>&5
39423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); }; }; then
39425 eval "$as_ac_var=yes"
39427 echo "$as_me: failed program was:" >&5
39428 sed 's/^/| /' conftest.$ac_ext >&5
39430 eval "$as_ac_var=no"
39432 rm -f conftest.err conftest.$ac_objext \
39433 conftest$ac_exeext conftest.$ac_ext
39435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39437 if test `eval echo '${'$as_ac_var'}'` = yes; then
39438 cat >>confdefs.h <<_ACEOF
39439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39441 ice_have_pclose=yes
39445 if test "${ice_have_pclose}" = yes; then
39446 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
39447 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
39448 if test "${ice_cv_have_pclose_decl+set}" = set; then
39449 echo $ECHO_N "(cached) $ECHO_C" >&6
39452 ice_cv_have_pclose_decl=no
39453 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39454 ice_re_word='(^|[^a-zA-Z0-9_])'
39455 for header in stdio.h; do
39456 # Check for ordinary declaration
39457 cat >conftest.$ac_ext <<_ACEOF
39460 cat confdefs.h >>conftest.$ac_ext
39461 cat >>conftest.$ac_ext <<_ACEOF
39462 /* end confdefs.h. */
39466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39467 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
39468 ice_cv_have_pclose_decl=yes
39472 if test "$ice_cv_have_pclose_decl" = yes; then
39475 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39476 cat >conftest.$ac_ext <<_ACEOF
39479 cat confdefs.h >>conftest.$ac_ext
39480 cat >>conftest.$ac_ext <<_ACEOF
39481 /* end confdefs.h. */
39485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39486 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39487 ice_cv_have_pclose_decl=yes
39491 if test "$ice_cv_have_pclose_decl" = yes; then
39498 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
39499 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
39500 if test "$ice_cv_have_pclose_decl" = yes; then
39502 cat >>confdefs.h <<_ACEOF
39503 #define HAVE_PCLOSE_DECL 1
39512 for ac_func in perror
39514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39515 echo "$as_me:$LINENO: checking for $ac_func" >&5
39516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39517 if eval "test \"\${$as_ac_var+set}\" = set"; then
39518 echo $ECHO_N "(cached) $ECHO_C" >&6
39520 cat >conftest.$ac_ext <<_ACEOF
39523 cat confdefs.h >>conftest.$ac_ext
39524 cat >>conftest.$ac_ext <<_ACEOF
39525 /* end confdefs.h. */
39526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39528 #define $ac_func innocuous_$ac_func
39530 /* System header to define __stub macros and hopefully few prototypes,
39531 which can conflict with char $ac_func (); below.
39532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39533 <limits.h> exists even on freestanding compilers. */
39536 # include <limits.h>
39538 # include <assert.h>
39543 /* Override any gcc2 internal prototype to avoid an error. */
39548 /* We use char because int might match the return type of a gcc2
39549 builtin and then its argument prototype would still apply. */
39551 /* The GNU C library defines this for functions which it implements
39552 to always fail with ENOSYS. Some functions are actually named
39553 something starting with __ and the normal name is an alias. */
39554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39557 char (*f) () = $ac_func;
39566 return f != $ac_func;
39571 rm -f conftest.$ac_objext conftest$ac_exeext
39572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39573 (eval $ac_link) 2>conftest.er1
39575 grep -v '^ *+' conftest.er1 >conftest.err
39577 cat conftest.err >&5
39578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579 (exit $ac_status); } &&
39580 { ac_try='test -z "$ac_c_werror_flag"
39581 || test ! -s conftest.err'
39582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583 (eval $ac_try) 2>&5
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); }; } &&
39587 { ac_try='test -s conftest$ac_exeext'
39588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589 (eval $ac_try) 2>&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); }; }; then
39593 eval "$as_ac_var=yes"
39595 echo "$as_me: failed program was:" >&5
39596 sed 's/^/| /' conftest.$ac_ext >&5
39598 eval "$as_ac_var=no"
39600 rm -f conftest.err conftest.$ac_objext \
39601 conftest$ac_exeext conftest.$ac_ext
39603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39605 if test `eval echo '${'$as_ac_var'}'` = yes; then
39606 cat >>confdefs.h <<_ACEOF
39607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39609 ice_have_perror=yes
39613 if test "${ice_have_perror}" = yes; then
39614 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
39615 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
39616 if test "${ice_cv_have_perror_decl+set}" = set; then
39617 echo $ECHO_N "(cached) $ECHO_C" >&6
39620 ice_cv_have_perror_decl=no
39621 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39622 ice_re_word='(^|[^a-zA-Z0-9_])'
39623 for header in stdio.h; do
39624 # Check for ordinary declaration
39625 cat >conftest.$ac_ext <<_ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h. */
39634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39635 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
39636 ice_cv_have_perror_decl=yes
39640 if test "$ice_cv_have_perror_decl" = yes; then
39643 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39644 cat >conftest.$ac_ext <<_ACEOF
39647 cat confdefs.h >>conftest.$ac_ext
39648 cat >>conftest.$ac_ext <<_ACEOF
39649 /* end confdefs.h. */
39653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39654 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39655 ice_cv_have_perror_decl=yes
39659 if test "$ice_cv_have_perror_decl" = yes; then
39666 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
39667 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
39668 if test "$ice_cv_have_perror_decl" = yes; then
39670 cat >>confdefs.h <<_ACEOF
39671 #define HAVE_PERROR_DECL 1
39680 for ac_func in printf
39682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39683 echo "$as_me:$LINENO: checking for $ac_func" >&5
39684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39685 if eval "test \"\${$as_ac_var+set}\" = set"; then
39686 echo $ECHO_N "(cached) $ECHO_C" >&6
39688 cat >conftest.$ac_ext <<_ACEOF
39691 cat confdefs.h >>conftest.$ac_ext
39692 cat >>conftest.$ac_ext <<_ACEOF
39693 /* end confdefs.h. */
39694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39696 #define $ac_func innocuous_$ac_func
39698 /* System header to define __stub macros and hopefully few prototypes,
39699 which can conflict with char $ac_func (); below.
39700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39701 <limits.h> exists even on freestanding compilers. */
39704 # include <limits.h>
39706 # include <assert.h>
39711 /* Override any gcc2 internal prototype to avoid an error. */
39716 /* We use char because int might match the return type of a gcc2
39717 builtin and then its argument prototype would still apply. */
39719 /* The GNU C library defines this for functions which it implements
39720 to always fail with ENOSYS. Some functions are actually named
39721 something starting with __ and the normal name is an alias. */
39722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39725 char (*f) () = $ac_func;
39734 return f != $ac_func;
39739 rm -f conftest.$ac_objext conftest$ac_exeext
39740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39741 (eval $ac_link) 2>conftest.er1
39743 grep -v '^ *+' conftest.er1 >conftest.err
39745 cat conftest.err >&5
39746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747 (exit $ac_status); } &&
39748 { ac_try='test -z "$ac_c_werror_flag"
39749 || test ! -s conftest.err'
39750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39751 (eval $ac_try) 2>&5
39753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); }; } &&
39755 { ac_try='test -s conftest$ac_exeext'
39756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39757 (eval $ac_try) 2>&5
39759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760 (exit $ac_status); }; }; then
39761 eval "$as_ac_var=yes"
39763 echo "$as_me: failed program was:" >&5
39764 sed 's/^/| /' conftest.$ac_ext >&5
39766 eval "$as_ac_var=no"
39768 rm -f conftest.err conftest.$ac_objext \
39769 conftest$ac_exeext conftest.$ac_ext
39771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39773 if test `eval echo '${'$as_ac_var'}'` = yes; then
39774 cat >>confdefs.h <<_ACEOF
39775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39777 ice_have_printf=yes
39781 if test "${ice_have_printf}" = yes; then
39782 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
39783 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
39784 if test "${ice_cv_have_printf_decl+set}" = set; then
39785 echo $ECHO_N "(cached) $ECHO_C" >&6
39788 ice_cv_have_printf_decl=no
39789 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39790 ice_re_word='(^|[^a-zA-Z0-9_])'
39791 for header in stdio.h; do
39792 # Check for ordinary declaration
39793 cat >conftest.$ac_ext <<_ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h. */
39802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39803 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
39804 ice_cv_have_printf_decl=yes
39808 if test "$ice_cv_have_printf_decl" = yes; then
39811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39812 cat >conftest.$ac_ext <<_ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h. */
39821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39822 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39823 ice_cv_have_printf_decl=yes
39827 if test "$ice_cv_have_printf_decl" = yes; then
39834 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
39835 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
39836 if test "$ice_cv_have_printf_decl" = yes; then
39838 cat >>confdefs.h <<_ACEOF
39839 #define HAVE_PRINTF_DECL 1
39846 for ac_func in putenv
39848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39849 echo "$as_me:$LINENO: checking for $ac_func" >&5
39850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39851 if eval "test \"\${$as_ac_var+set}\" = set"; then
39852 echo $ECHO_N "(cached) $ECHO_C" >&6
39854 cat >conftest.$ac_ext <<_ACEOF
39857 cat confdefs.h >>conftest.$ac_ext
39858 cat >>conftest.$ac_ext <<_ACEOF
39859 /* end confdefs.h. */
39860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39862 #define $ac_func innocuous_$ac_func
39864 /* System header to define __stub macros and hopefully few prototypes,
39865 which can conflict with char $ac_func (); below.
39866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39867 <limits.h> exists even on freestanding compilers. */
39870 # include <limits.h>
39872 # include <assert.h>
39877 /* Override any gcc2 internal prototype to avoid an error. */
39882 /* We use char because int might match the return type of a gcc2
39883 builtin and then its argument prototype would still apply. */
39885 /* The GNU C library defines this for functions which it implements
39886 to always fail with ENOSYS. Some functions are actually named
39887 something starting with __ and the normal name is an alias. */
39888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39891 char (*f) () = $ac_func;
39900 return f != $ac_func;
39905 rm -f conftest.$ac_objext conftest$ac_exeext
39906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39907 (eval $ac_link) 2>conftest.er1
39909 grep -v '^ *+' conftest.er1 >conftest.err
39911 cat conftest.err >&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); } &&
39914 { ac_try='test -z "$ac_c_werror_flag"
39915 || test ! -s conftest.err'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; } &&
39921 { ac_try='test -s conftest$ac_exeext'
39922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39923 (eval $ac_try) 2>&5
39925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926 (exit $ac_status); }; }; then
39927 eval "$as_ac_var=yes"
39929 echo "$as_me: failed program was:" >&5
39930 sed 's/^/| /' conftest.$ac_ext >&5
39932 eval "$as_ac_var=no"
39934 rm -f conftest.err conftest.$ac_objext \
39935 conftest$ac_exeext conftest.$ac_ext
39937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39939 if test `eval echo '${'$as_ac_var'}'` = yes; then
39940 cat >>confdefs.h <<_ACEOF
39941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39950 for ac_func in puts
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
40051 if test "${ice_have_puts}" = yes; then
40052 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
40053 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
40054 if test "${ice_cv_have_puts_decl+set}" = set; then
40055 echo $ECHO_N "(cached) $ECHO_C" >&6
40058 ice_cv_have_puts_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 stdio.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}puts[ ]*\(" >/dev/null 2>&1; then
40074 ice_cv_have_puts_decl=yes
40078 if test "$ice_cv_have_puts_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}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40093 ice_cv_have_puts_decl=yes
40097 if test "$ice_cv_have_puts_decl" = yes; then
40104 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
40105 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
40106 if test "$ice_cv_have_puts_decl" = yes; then
40108 cat >>confdefs.h <<_ACEOF
40109 #define HAVE_PUTS_DECL 1
40116 ice_have_realloc=no
40118 for ac_func in realloc
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
40215 ice_have_realloc=yes
40219 if test "${ice_have_realloc}" = yes; then
40220 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
40221 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
40222 if test "${ice_cv_have_realloc_decl+set}" = set; then
40223 echo $ECHO_N "(cached) $ECHO_C" >&6
40226 ice_cv_have_realloc_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 stdlib.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}realloc[ ]*\(" >/dev/null 2>&1; then
40242 ice_cv_have_realloc_decl=yes
40246 if test "$ice_cv_have_realloc_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}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40261 ice_cv_have_realloc_decl=yes
40265 if test "$ice_cv_have_realloc_decl" = yes; then
40272 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
40273 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
40274 if test "$ice_cv_have_realloc_decl" = yes; then
40276 cat >>confdefs.h <<_ACEOF
40277 #define HAVE_REALLOC_DECL 1
40284 ice_have_recvfrom=no
40286 for ac_func in recvfrom
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_recvfrom=yes
40387 if test "${ice_have_recvfrom}" = yes; then
40388 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
40389 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40390 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
40391 echo $ECHO_N "(cached) $ECHO_C" >&6
40394 ice_cv_have_recvfrom_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 sys/types.h sys/socket.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}recvfrom[ ]*\(" >/dev/null 2>&1; then
40410 ice_cv_have_recvfrom_decl=yes
40414 if test "$ice_cv_have_recvfrom_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}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40429 ice_cv_have_recvfrom_decl=yes
40433 if test "$ice_cv_have_recvfrom_decl" = yes; then
40440 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
40441 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
40442 if test "$ice_cv_have_recvfrom_decl" = yes; then
40444 cat >>confdefs.h <<_ACEOF
40445 #define HAVE_RECVFROM_DECL 1
40454 for ac_func in remove
40456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40457 echo "$as_me:$LINENO: checking for $ac_func" >&5
40458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40459 if eval "test \"\${$as_ac_var+set}\" = set"; then
40460 echo $ECHO_N "(cached) $ECHO_C" >&6
40462 cat >conftest.$ac_ext <<_ACEOF
40465 cat confdefs.h >>conftest.$ac_ext
40466 cat >>conftest.$ac_ext <<_ACEOF
40467 /* end confdefs.h. */
40468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40470 #define $ac_func innocuous_$ac_func
40472 /* System header to define __stub macros and hopefully few prototypes,
40473 which can conflict with char $ac_func (); below.
40474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40475 <limits.h> exists even on freestanding compilers. */
40478 # include <limits.h>
40480 # include <assert.h>
40485 /* Override any gcc2 internal prototype to avoid an error. */
40490 /* We use char because int might match the return type of a gcc2
40491 builtin and then its argument prototype would still apply. */
40493 /* The GNU C library defines this for functions which it implements
40494 to always fail with ENOSYS. Some functions are actually named
40495 something starting with __ and the normal name is an alias. */
40496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40499 char (*f) () = $ac_func;
40508 return f != $ac_func;
40513 rm -f conftest.$ac_objext conftest$ac_exeext
40514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40515 (eval $ac_link) 2>conftest.er1
40517 grep -v '^ *+' conftest.er1 >conftest.err
40519 cat conftest.err >&5
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); } &&
40522 { ac_try='test -z "$ac_c_werror_flag"
40523 || test ! -s conftest.err'
40524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525 (eval $ac_try) 2>&5
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); }; } &&
40529 { ac_try='test -s conftest$ac_exeext'
40530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40531 (eval $ac_try) 2>&5
40533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534 (exit $ac_status); }; }; then
40535 eval "$as_ac_var=yes"
40537 echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40540 eval "$as_ac_var=no"
40542 rm -f conftest.err conftest.$ac_objext \
40543 conftest$ac_exeext conftest.$ac_ext
40545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40547 if test `eval echo '${'$as_ac_var'}'` = yes; then
40548 cat >>confdefs.h <<_ACEOF
40549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40551 ice_have_remove=yes
40555 if test "${ice_have_remove}" = yes; then
40556 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
40557 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
40558 if test "${ice_cv_have_remove_decl+set}" = set; then
40559 echo $ECHO_N "(cached) $ECHO_C" >&6
40562 ice_cv_have_remove_decl=no
40563 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40564 ice_re_word='(^|[^a-zA-Z0-9_])'
40565 for header in stdio.h; do
40566 # Check for ordinary declaration
40567 cat >conftest.$ac_ext <<_ACEOF
40570 cat confdefs.h >>conftest.$ac_ext
40571 cat >>conftest.$ac_ext <<_ACEOF
40572 /* end confdefs.h. */
40576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40577 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
40578 ice_cv_have_remove_decl=yes
40582 if test "$ice_cv_have_remove_decl" = yes; then
40585 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40586 cat >conftest.$ac_ext <<_ACEOF
40589 cat confdefs.h >>conftest.$ac_ext
40590 cat >>conftest.$ac_ext <<_ACEOF
40591 /* end confdefs.h. */
40595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40596 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40597 ice_cv_have_remove_decl=yes
40601 if test "$ice_cv_have_remove_decl" = yes; then
40608 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
40609 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
40610 if test "$ice_cv_have_remove_decl" = yes; then
40612 cat >>confdefs.h <<_ACEOF
40613 #define HAVE_REMOVE_DECL 1
40622 for ac_func in rename
40624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40625 echo "$as_me:$LINENO: checking for $ac_func" >&5
40626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40627 if eval "test \"\${$as_ac_var+set}\" = set"; then
40628 echo $ECHO_N "(cached) $ECHO_C" >&6
40630 cat >conftest.$ac_ext <<_ACEOF
40633 cat confdefs.h >>conftest.$ac_ext
40634 cat >>conftest.$ac_ext <<_ACEOF
40635 /* end confdefs.h. */
40636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40638 #define $ac_func innocuous_$ac_func
40640 /* System header to define __stub macros and hopefully few prototypes,
40641 which can conflict with char $ac_func (); below.
40642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40643 <limits.h> exists even on freestanding compilers. */
40646 # include <limits.h>
40648 # include <assert.h>
40653 /* Override any gcc2 internal prototype to avoid an error. */
40658 /* We use char because int might match the return type of a gcc2
40659 builtin and then its argument prototype would still apply. */
40661 /* The GNU C library defines this for functions which it implements
40662 to always fail with ENOSYS. Some functions are actually named
40663 something starting with __ and the normal name is an alias. */
40664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40667 char (*f) () = $ac_func;
40676 return f != $ac_func;
40681 rm -f conftest.$ac_objext conftest$ac_exeext
40682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40683 (eval $ac_link) 2>conftest.er1
40685 grep -v '^ *+' conftest.er1 >conftest.err
40687 cat conftest.err >&5
40688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 (exit $ac_status); } &&
40690 { ac_try='test -z "$ac_c_werror_flag"
40691 || test ! -s conftest.err'
40692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693 (eval $ac_try) 2>&5
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); }; } &&
40697 { ac_try='test -s conftest$ac_exeext'
40698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699 (eval $ac_try) 2>&5
40701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702 (exit $ac_status); }; }; then
40703 eval "$as_ac_var=yes"
40705 echo "$as_me: failed program was:" >&5
40706 sed 's/^/| /' conftest.$ac_ext >&5
40708 eval "$as_ac_var=no"
40710 rm -f conftest.err conftest.$ac_objext \
40711 conftest$ac_exeext conftest.$ac_ext
40713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40715 if test `eval echo '${'$as_ac_var'}'` = yes; then
40716 cat >>confdefs.h <<_ACEOF
40717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40719 ice_have_rename=yes
40723 if test "${ice_have_rename}" = yes; then
40724 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
40725 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
40726 if test "${ice_cv_have_rename_decl+set}" = set; then
40727 echo $ECHO_N "(cached) $ECHO_C" >&6
40730 ice_cv_have_rename_decl=no
40731 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40732 ice_re_word='(^|[^a-zA-Z0-9_])'
40733 for header in stdio.h; do
40734 # Check for ordinary declaration
40735 cat >conftest.$ac_ext <<_ACEOF
40738 cat confdefs.h >>conftest.$ac_ext
40739 cat >>conftest.$ac_ext <<_ACEOF
40740 /* end confdefs.h. */
40744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40745 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
40746 ice_cv_have_rename_decl=yes
40750 if test "$ice_cv_have_rename_decl" = yes; then
40753 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40754 cat >conftest.$ac_ext <<_ACEOF
40757 cat confdefs.h >>conftest.$ac_ext
40758 cat >>conftest.$ac_ext <<_ACEOF
40759 /* end confdefs.h. */
40763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40764 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40765 ice_cv_have_rename_decl=yes
40769 if test "$ice_cv_have_rename_decl" = yes; then
40776 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
40777 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
40778 if test "$ice_cv_have_rename_decl" = yes; then
40780 cat >>confdefs.h <<_ACEOF
40781 #define HAVE_RENAME_DECL 1
40790 for ac_func in rewind
40792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40793 echo "$as_me:$LINENO: checking for $ac_func" >&5
40794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40795 if eval "test \"\${$as_ac_var+set}\" = set"; then
40796 echo $ECHO_N "(cached) $ECHO_C" >&6
40798 cat >conftest.$ac_ext <<_ACEOF
40801 cat confdefs.h >>conftest.$ac_ext
40802 cat >>conftest.$ac_ext <<_ACEOF
40803 /* end confdefs.h. */
40804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40806 #define $ac_func innocuous_$ac_func
40808 /* System header to define __stub macros and hopefully few prototypes,
40809 which can conflict with char $ac_func (); below.
40810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40811 <limits.h> exists even on freestanding compilers. */
40814 # include <limits.h>
40816 # include <assert.h>
40821 /* Override any gcc2 internal prototype to avoid an error. */
40826 /* We use char because int might match the return type of a gcc2
40827 builtin and then its argument prototype would still apply. */
40829 /* The GNU C library defines this for functions which it implements
40830 to always fail with ENOSYS. Some functions are actually named
40831 something starting with __ and the normal name is an alias. */
40832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40835 char (*f) () = $ac_func;
40844 return f != $ac_func;
40849 rm -f conftest.$ac_objext conftest$ac_exeext
40850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40851 (eval $ac_link) 2>conftest.er1
40853 grep -v '^ *+' conftest.er1 >conftest.err
40855 cat conftest.err >&5
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); } &&
40858 { ac_try='test -z "$ac_c_werror_flag"
40859 || test ! -s conftest.err'
40860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40861 (eval $ac_try) 2>&5
40863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864 (exit $ac_status); }; } &&
40865 { ac_try='test -s conftest$ac_exeext'
40866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40867 (eval $ac_try) 2>&5
40869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40870 (exit $ac_status); }; }; then
40871 eval "$as_ac_var=yes"
40873 echo "$as_me: failed program was:" >&5
40874 sed 's/^/| /' conftest.$ac_ext >&5
40876 eval "$as_ac_var=no"
40878 rm -f conftest.err conftest.$ac_objext \
40879 conftest$ac_exeext conftest.$ac_ext
40881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40883 if test `eval echo '${'$as_ac_var'}'` = yes; then
40884 cat >>confdefs.h <<_ACEOF
40885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40887 ice_have_rewind=yes
40891 if test "${ice_have_rewind}" = yes; then
40892 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
40893 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
40894 if test "${ice_cv_have_rewind_decl+set}" = set; then
40895 echo $ECHO_N "(cached) $ECHO_C" >&6
40898 ice_cv_have_rewind_decl=no
40899 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40900 ice_re_word='(^|[^a-zA-Z0-9_])'
40901 for header in stdio.h; do
40902 # Check for ordinary declaration
40903 cat >conftest.$ac_ext <<_ACEOF
40906 cat confdefs.h >>conftest.$ac_ext
40907 cat >>conftest.$ac_ext <<_ACEOF
40908 /* end confdefs.h. */
40912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40913 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
40914 ice_cv_have_rewind_decl=yes
40918 if test "$ice_cv_have_rewind_decl" = yes; then
40921 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40922 cat >conftest.$ac_ext <<_ACEOF
40925 cat confdefs.h >>conftest.$ac_ext
40926 cat >>conftest.$ac_ext <<_ACEOF
40927 /* end confdefs.h. */
40931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40932 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40933 ice_cv_have_rewind_decl=yes
40937 if test "$ice_cv_have_rewind_decl" = yes; then
40944 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
40945 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
40946 if test "$ice_cv_have_rewind_decl" = yes; then
40948 cat >>confdefs.h <<_ACEOF
40949 #define HAVE_REWIND_DECL 1
40956 for ac_func in rmdir
40958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40959 echo "$as_me:$LINENO: checking for $ac_func" >&5
40960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40961 if eval "test \"\${$as_ac_var+set}\" = set"; then
40962 echo $ECHO_N "(cached) $ECHO_C" >&6
40964 cat >conftest.$ac_ext <<_ACEOF
40967 cat confdefs.h >>conftest.$ac_ext
40968 cat >>conftest.$ac_ext <<_ACEOF
40969 /* end confdefs.h. */
40970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40972 #define $ac_func innocuous_$ac_func
40974 /* System header to define __stub macros and hopefully few prototypes,
40975 which can conflict with char $ac_func (); below.
40976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40977 <limits.h> exists even on freestanding compilers. */
40980 # include <limits.h>
40982 # include <assert.h>
40987 /* Override any gcc2 internal prototype to avoid an error. */
40992 /* We use char because int might match the return type of a gcc2
40993 builtin and then its argument prototype would still apply. */
40995 /* The GNU C library defines this for functions which it implements
40996 to always fail with ENOSYS. Some functions are actually named
40997 something starting with __ and the normal name is an alias. */
40998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41001 char (*f) () = $ac_func;
41010 return f != $ac_func;
41015 rm -f conftest.$ac_objext conftest$ac_exeext
41016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41017 (eval $ac_link) 2>conftest.er1
41019 grep -v '^ *+' conftest.er1 >conftest.err
41021 cat conftest.err >&5
41022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023 (exit $ac_status); } &&
41024 { ac_try='test -z "$ac_c_werror_flag"
41025 || test ! -s conftest.err'
41026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027 (eval $ac_try) 2>&5
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); }; } &&
41031 { ac_try='test -s conftest$ac_exeext'
41032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033 (eval $ac_try) 2>&5
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); }; }; then
41037 eval "$as_ac_var=yes"
41039 echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41042 eval "$as_ac_var=no"
41044 rm -f conftest.err conftest.$ac_objext \
41045 conftest$ac_exeext conftest.$ac_ext
41047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41049 if test `eval echo '${'$as_ac_var'}'` = yes; then
41050 cat >>confdefs.h <<_ACEOF
41051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41058 ice_have_ruserok=no
41060 for ac_func in ruserok
41062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41063 echo "$as_me:$LINENO: checking for $ac_func" >&5
41064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41065 if eval "test \"\${$as_ac_var+set}\" = set"; then
41066 echo $ECHO_N "(cached) $ECHO_C" >&6
41068 cat >conftest.$ac_ext <<_ACEOF
41071 cat confdefs.h >>conftest.$ac_ext
41072 cat >>conftest.$ac_ext <<_ACEOF
41073 /* end confdefs.h. */
41074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41076 #define $ac_func innocuous_$ac_func
41078 /* System header to define __stub macros and hopefully few prototypes,
41079 which can conflict with char $ac_func (); below.
41080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41081 <limits.h> exists even on freestanding compilers. */
41084 # include <limits.h>
41086 # include <assert.h>
41091 /* Override any gcc2 internal prototype to avoid an error. */
41096 /* We use char because int might match the return type of a gcc2
41097 builtin and then its argument prototype would still apply. */
41099 /* The GNU C library defines this for functions which it implements
41100 to always fail with ENOSYS. Some functions are actually named
41101 something starting with __ and the normal name is an alias. */
41102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41105 char (*f) () = $ac_func;
41114 return f != $ac_func;
41119 rm -f conftest.$ac_objext conftest$ac_exeext
41120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41121 (eval $ac_link) 2>conftest.er1
41123 grep -v '^ *+' conftest.er1 >conftest.err
41125 cat conftest.err >&5
41126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127 (exit $ac_status); } &&
41128 { ac_try='test -z "$ac_c_werror_flag"
41129 || test ! -s conftest.err'
41130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131 (eval $ac_try) 2>&5
41133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134 (exit $ac_status); }; } &&
41135 { ac_try='test -s conftest$ac_exeext'
41136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137 (eval $ac_try) 2>&5
41139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140 (exit $ac_status); }; }; then
41141 eval "$as_ac_var=yes"
41143 echo "$as_me: failed program was:" >&5
41144 sed 's/^/| /' conftest.$ac_ext >&5
41146 eval "$as_ac_var=no"
41148 rm -f conftest.err conftest.$ac_objext \
41149 conftest$ac_exeext conftest.$ac_ext
41151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41153 if test `eval echo '${'$as_ac_var'}'` = yes; then
41154 cat >>confdefs.h <<_ACEOF
41155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41157 ice_have_ruserok=yes
41161 if test "${ice_have_ruserok}" = yes; then
41162 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41163 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
41164 if test "${ice_cv_have_ruserok_decl+set}" = set; then
41165 echo $ECHO_N "(cached) $ECHO_C" >&6
41168 ice_cv_have_ruserok_decl=no
41169 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41170 ice_re_word='(^|[^a-zA-Z0-9_])'
41171 for header in netdb.h sys/socket.h libc.h unistd.h; do
41172 # Check for ordinary declaration
41173 cat >conftest.$ac_ext <<_ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h. */
41182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41183 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
41184 ice_cv_have_ruserok_decl=yes
41188 if test "$ice_cv_have_ruserok_decl" = yes; then
41191 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41192 cat >conftest.$ac_ext <<_ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h. */
41201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41202 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41203 ice_cv_have_ruserok_decl=yes
41207 if test "$ice_cv_have_ruserok_decl" = yes; then
41214 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
41215 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
41216 if test "$ice_cv_have_ruserok_decl" = yes; then
41218 cat >>confdefs.h <<_ACEOF
41219 #define HAVE_RUSEROK_DECL 1
41228 for ac_func in select
41230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41231 echo "$as_me:$LINENO: checking for $ac_func" >&5
41232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41233 if eval "test \"\${$as_ac_var+set}\" = set"; then
41234 echo $ECHO_N "(cached) $ECHO_C" >&6
41236 cat >conftest.$ac_ext <<_ACEOF
41239 cat confdefs.h >>conftest.$ac_ext
41240 cat >>conftest.$ac_ext <<_ACEOF
41241 /* end confdefs.h. */
41242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41244 #define $ac_func innocuous_$ac_func
41246 /* System header to define __stub macros and hopefully few prototypes,
41247 which can conflict with char $ac_func (); below.
41248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41249 <limits.h> exists even on freestanding compilers. */
41252 # include <limits.h>
41254 # include <assert.h>
41259 /* Override any gcc2 internal prototype to avoid an error. */
41264 /* We use char because int might match the return type of a gcc2
41265 builtin and then its argument prototype would still apply. */
41267 /* The GNU C library defines this for functions which it implements
41268 to always fail with ENOSYS. Some functions are actually named
41269 something starting with __ and the normal name is an alias. */
41270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41273 char (*f) () = $ac_func;
41282 return f != $ac_func;
41287 rm -f conftest.$ac_objext conftest$ac_exeext
41288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41289 (eval $ac_link) 2>conftest.er1
41291 grep -v '^ *+' conftest.er1 >conftest.err
41293 cat conftest.err >&5
41294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295 (exit $ac_status); } &&
41296 { ac_try='test -z "$ac_c_werror_flag"
41297 || test ! -s conftest.err'
41298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41299 (eval $ac_try) 2>&5
41301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302 (exit $ac_status); }; } &&
41303 { ac_try='test -s conftest$ac_exeext'
41304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41305 (eval $ac_try) 2>&5
41307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41308 (exit $ac_status); }; }; then
41309 eval "$as_ac_var=yes"
41311 echo "$as_me: failed program was:" >&5
41312 sed 's/^/| /' conftest.$ac_ext >&5
41314 eval "$as_ac_var=no"
41316 rm -f conftest.err conftest.$ac_objext \
41317 conftest$ac_exeext conftest.$ac_ext
41319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41321 if test `eval echo '${'$as_ac_var'}'` = yes; then
41322 cat >>confdefs.h <<_ACEOF
41323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41325 ice_have_select=yes
41329 if test "${ice_have_select}" = yes; then
41330 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
41331 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
41332 if test "${ice_cv_have_select_decl+set}" = set; then
41333 echo $ECHO_N "(cached) $ECHO_C" >&6
41336 ice_cv_have_select_decl=no
41337 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41338 ice_re_word='(^|[^a-zA-Z0-9_])'
41339 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41340 # Check for ordinary declaration
41341 cat >conftest.$ac_ext <<_ACEOF
41344 cat confdefs.h >>conftest.$ac_ext
41345 cat >>conftest.$ac_ext <<_ACEOF
41346 /* end confdefs.h. */
41350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41351 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
41352 ice_cv_have_select_decl=yes
41356 if test "$ice_cv_have_select_decl" = yes; then
41359 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41360 cat >conftest.$ac_ext <<_ACEOF
41363 cat confdefs.h >>conftest.$ac_ext
41364 cat >>conftest.$ac_ext <<_ACEOF
41365 /* end confdefs.h. */
41369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41370 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41371 ice_cv_have_select_decl=yes
41375 if test "$ice_cv_have_select_decl" = yes; then
41382 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
41383 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
41384 if test "$ice_cv_have_select_decl" = yes; then
41386 cat >>confdefs.h <<_ACEOF
41387 #define HAVE_SELECT_DECL 1
41394 echo "$as_me:$LINENO: checking for select() argument type" >&5
41395 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
41396 if test "${amanda_cv_select_arg_type+set}" = set; then
41397 echo $ECHO_N "(cached) $ECHO_C" >&6
41401 cat <<EOF >conftest.$ac_ext
41402 #include "confdefs.h"
41403 #ifdef HAVE_SYS_TIME_H
41404 # include <sys/time.h>
41406 #ifdef HAVE_SYS_TYPES_H
41407 # include <sys/types.h>
41409 #ifdef HAVE_SYS_SELECT_H
41410 # include <sys/select.h>
41412 #ifdef HAVE_SYS_SOCKET_H
41413 # include <sys/socket.h>
41415 #ifdef HAVE_UNISTD_H
41416 # include <unistd.h>
41421 #ifdef FD_SET_POINTER
41422 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
41424 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
41430 amanda_cv_select_arg_type=no
41431 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
41432 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
41433 if test $? -ne 0; then
41434 amanda_cv_select_arg_type=int
41436 if test "$amanda_cv_select_arg_type" = no; then
41437 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
41438 if test $? -ne 0; then
41439 amanda_cv_select_arg_type=fd_set
41442 if test "$amanda_cv_select_arg_type" = no; then
41443 wc_fdset=`wc -l <conftest.fd_set`
41444 wc_int=`wc -l <conftest.int`
41445 if test "$wc_fdset" -le "$wc_int"; then
41446 amanda_cv_select_arg_type=fd_set
41448 amanda_cv_select_arg_type=int
41455 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
41456 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
41458 cat >>confdefs.h <<_ACEOF
41459 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
41467 for ac_func in sendto
41469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41470 echo "$as_me:$LINENO: checking for $ac_func" >&5
41471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41472 if eval "test \"\${$as_ac_var+set}\" = set"; then
41473 echo $ECHO_N "(cached) $ECHO_C" >&6
41475 cat >conftest.$ac_ext <<_ACEOF
41478 cat confdefs.h >>conftest.$ac_ext
41479 cat >>conftest.$ac_ext <<_ACEOF
41480 /* end confdefs.h. */
41481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41483 #define $ac_func innocuous_$ac_func
41485 /* System header to define __stub macros and hopefully few prototypes,
41486 which can conflict with char $ac_func (); below.
41487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41488 <limits.h> exists even on freestanding compilers. */
41491 # include <limits.h>
41493 # include <assert.h>
41498 /* Override any gcc2 internal prototype to avoid an error. */
41503 /* We use char because int might match the return type of a gcc2
41504 builtin and then its argument prototype would still apply. */
41506 /* The GNU C library defines this for functions which it implements
41507 to always fail with ENOSYS. Some functions are actually named
41508 something starting with __ and the normal name is an alias. */
41509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41512 char (*f) () = $ac_func;
41521 return f != $ac_func;
41526 rm -f conftest.$ac_objext conftest$ac_exeext
41527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41528 (eval $ac_link) 2>conftest.er1
41530 grep -v '^ *+' conftest.er1 >conftest.err
41532 cat conftest.err >&5
41533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534 (exit $ac_status); } &&
41535 { ac_try='test -z "$ac_c_werror_flag"
41536 || test ! -s conftest.err'
41537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41538 (eval $ac_try) 2>&5
41540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541 (exit $ac_status); }; } &&
41542 { ac_try='test -s conftest$ac_exeext'
41543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41544 (eval $ac_try) 2>&5
41546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547 (exit $ac_status); }; }; then
41548 eval "$as_ac_var=yes"
41550 echo "$as_me: failed program was:" >&5
41551 sed 's/^/| /' conftest.$ac_ext >&5
41553 eval "$as_ac_var=no"
41555 rm -f conftest.err conftest.$ac_objext \
41556 conftest$ac_exeext conftest.$ac_ext
41558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41560 if test `eval echo '${'$as_ac_var'}'` = yes; then
41561 cat >>confdefs.h <<_ACEOF
41562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41564 ice_have_sendto=yes
41568 if test "${ice_have_sendto}" = yes; then
41569 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
41570 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41571 if test "${ice_cv_have_sendto_decl+set}" = set; then
41572 echo $ECHO_N "(cached) $ECHO_C" >&6
41575 ice_cv_have_sendto_decl=no
41576 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41577 ice_re_word='(^|[^a-zA-Z0-9_])'
41578 for header in sys/types.h sys/socket.h; do
41579 # Check for ordinary declaration
41580 cat >conftest.$ac_ext <<_ACEOF
41583 cat confdefs.h >>conftest.$ac_ext
41584 cat >>conftest.$ac_ext <<_ACEOF
41585 /* end confdefs.h. */
41589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41590 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
41591 ice_cv_have_sendto_decl=yes
41595 if test "$ice_cv_have_sendto_decl" = yes; then
41598 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41599 cat >conftest.$ac_ext <<_ACEOF
41602 cat confdefs.h >>conftest.$ac_ext
41603 cat >>conftest.$ac_ext <<_ACEOF
41604 /* end confdefs.h. */
41608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41609 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41610 ice_cv_have_sendto_decl=yes
41614 if test "$ice_cv_have_sendto_decl" = yes; then
41621 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
41622 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
41623 if test "$ice_cv_have_sendto_decl" = yes; then
41625 cat >>confdefs.h <<_ACEOF
41626 #define HAVE_SENDTO_DECL 1
41633 ice_have_setegid=no
41635 for ac_func in setegid
41637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41638 echo "$as_me:$LINENO: checking for $ac_func" >&5
41639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41640 if eval "test \"\${$as_ac_var+set}\" = set"; then
41641 echo $ECHO_N "(cached) $ECHO_C" >&6
41643 cat >conftest.$ac_ext <<_ACEOF
41646 cat confdefs.h >>conftest.$ac_ext
41647 cat >>conftest.$ac_ext <<_ACEOF
41648 /* end confdefs.h. */
41649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41651 #define $ac_func innocuous_$ac_func
41653 /* System header to define __stub macros and hopefully few prototypes,
41654 which can conflict with char $ac_func (); below.
41655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41656 <limits.h> exists even on freestanding compilers. */
41659 # include <limits.h>
41661 # include <assert.h>
41666 /* Override any gcc2 internal prototype to avoid an error. */
41671 /* We use char because int might match the return type of a gcc2
41672 builtin and then its argument prototype would still apply. */
41674 /* The GNU C library defines this for functions which it implements
41675 to always fail with ENOSYS. Some functions are actually named
41676 something starting with __ and the normal name is an alias. */
41677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41680 char (*f) () = $ac_func;
41689 return f != $ac_func;
41694 rm -f conftest.$ac_objext conftest$ac_exeext
41695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41696 (eval $ac_link) 2>conftest.er1
41698 grep -v '^ *+' conftest.er1 >conftest.err
41700 cat conftest.err >&5
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); } &&
41703 { ac_try='test -z "$ac_c_werror_flag"
41704 || test ! -s conftest.err'
41705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41706 (eval $ac_try) 2>&5
41708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41709 (exit $ac_status); }; } &&
41710 { ac_try='test -s conftest$ac_exeext'
41711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41712 (eval $ac_try) 2>&5
41714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); }; }; then
41716 eval "$as_ac_var=yes"
41718 echo "$as_me: failed program was:" >&5
41719 sed 's/^/| /' conftest.$ac_ext >&5
41721 eval "$as_ac_var=no"
41723 rm -f conftest.err conftest.$ac_objext \
41724 conftest$ac_exeext conftest.$ac_ext
41726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41728 if test `eval echo '${'$as_ac_var'}'` = yes; then
41729 cat >>confdefs.h <<_ACEOF
41730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41732 ice_have_setegid=yes
41736 if test "${ice_have_setegid}" = yes; then
41737 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
41738 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
41739 if test "${ice_cv_have_setegid_decl+set}" = set; then
41740 echo $ECHO_N "(cached) $ECHO_C" >&6
41743 ice_cv_have_setegid_decl=no
41744 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41745 ice_re_word='(^|[^a-zA-Z0-9_])'
41746 for header in unistd.h; do
41747 # Check for ordinary declaration
41748 cat >conftest.$ac_ext <<_ACEOF
41751 cat confdefs.h >>conftest.$ac_ext
41752 cat >>conftest.$ac_ext <<_ACEOF
41753 /* end confdefs.h. */
41757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41758 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
41759 ice_cv_have_setegid_decl=yes
41763 if test "$ice_cv_have_setegid_decl" = yes; then
41766 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41767 cat >conftest.$ac_ext <<_ACEOF
41770 cat confdefs.h >>conftest.$ac_ext
41771 cat >>conftest.$ac_ext <<_ACEOF
41772 /* end confdefs.h. */
41776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41777 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41778 ice_cv_have_setegid_decl=yes
41782 if test "$ice_cv_have_setegid_decl" = yes; then
41789 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
41790 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
41791 if test "$ice_cv_have_setegid_decl" = yes; then
41793 cat >>confdefs.h <<_ACEOF
41794 #define HAVE_SETEGID_DECL 1
41801 ice_have_seteuid=no
41803 for ac_func in seteuid
41805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41806 echo "$as_me:$LINENO: checking for $ac_func" >&5
41807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41808 if eval "test \"\${$as_ac_var+set}\" = set"; then
41809 echo $ECHO_N "(cached) $ECHO_C" >&6
41811 cat >conftest.$ac_ext <<_ACEOF
41814 cat confdefs.h >>conftest.$ac_ext
41815 cat >>conftest.$ac_ext <<_ACEOF
41816 /* end confdefs.h. */
41817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41819 #define $ac_func innocuous_$ac_func
41821 /* System header to define __stub macros and hopefully few prototypes,
41822 which can conflict with char $ac_func (); below.
41823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41824 <limits.h> exists even on freestanding compilers. */
41827 # include <limits.h>
41829 # include <assert.h>
41834 /* Override any gcc2 internal prototype to avoid an error. */
41839 /* We use char because int might match the return type of a gcc2
41840 builtin and then its argument prototype would still apply. */
41842 /* The GNU C library defines this for functions which it implements
41843 to always fail with ENOSYS. Some functions are actually named
41844 something starting with __ and the normal name is an alias. */
41845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41848 char (*f) () = $ac_func;
41857 return f != $ac_func;
41862 rm -f conftest.$ac_objext conftest$ac_exeext
41863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41864 (eval $ac_link) 2>conftest.er1
41866 grep -v '^ *+' conftest.er1 >conftest.err
41868 cat conftest.err >&5
41869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870 (exit $ac_status); } &&
41871 { ac_try='test -z "$ac_c_werror_flag"
41872 || test ! -s conftest.err'
41873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41874 (eval $ac_try) 2>&5
41876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877 (exit $ac_status); }; } &&
41878 { ac_try='test -s conftest$ac_exeext'
41879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41880 (eval $ac_try) 2>&5
41882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883 (exit $ac_status); }; }; then
41884 eval "$as_ac_var=yes"
41886 echo "$as_me: failed program was:" >&5
41887 sed 's/^/| /' conftest.$ac_ext >&5
41889 eval "$as_ac_var=no"
41891 rm -f conftest.err conftest.$ac_objext \
41892 conftest$ac_exeext conftest.$ac_ext
41894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41896 if test `eval echo '${'$as_ac_var'}'` = yes; then
41897 cat >>confdefs.h <<_ACEOF
41898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41900 ice_have_seteuid=yes
41904 if test "${ice_have_seteuid}" = yes; then
41905 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
41906 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
41907 if test "${ice_cv_have_seteuid_decl+set}" = set; then
41908 echo $ECHO_N "(cached) $ECHO_C" >&6
41911 ice_cv_have_seteuid_decl=no
41912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41913 ice_re_word='(^|[^a-zA-Z0-9_])'
41914 for header in unistd.h; do
41915 # Check for ordinary declaration
41916 cat >conftest.$ac_ext <<_ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h. */
41925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41926 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
41927 ice_cv_have_seteuid_decl=yes
41931 if test "$ice_cv_have_seteuid_decl" = yes; then
41934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41935 cat >conftest.$ac_ext <<_ACEOF
41938 cat confdefs.h >>conftest.$ac_ext
41939 cat >>conftest.$ac_ext <<_ACEOF
41940 /* end confdefs.h. */
41944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41945 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41946 ice_cv_have_seteuid_decl=yes
41950 if test "$ice_cv_have_seteuid_decl" = yes; then
41957 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
41958 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
41959 if test "$ice_cv_have_seteuid_decl" = yes; then
41961 cat >>confdefs.h <<_ACEOF
41962 #define HAVE_SETEUID_DECL 1
41969 for ac_func in setmntent
41971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41972 echo "$as_me:$LINENO: checking for $ac_func" >&5
41973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41974 if eval "test \"\${$as_ac_var+set}\" = set"; then
41975 echo $ECHO_N "(cached) $ECHO_C" >&6
41977 cat >conftest.$ac_ext <<_ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h. */
41983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41985 #define $ac_func innocuous_$ac_func
41987 /* System header to define __stub macros and hopefully few prototypes,
41988 which can conflict with char $ac_func (); below.
41989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41990 <limits.h> exists even on freestanding compilers. */
41993 # include <limits.h>
41995 # include <assert.h>
42000 /* Override any gcc2 internal prototype to avoid an error. */
42005 /* We use char because int might match the return type of a gcc2
42006 builtin and then its argument prototype would still apply. */
42008 /* The GNU C library defines this for functions which it implements
42009 to always fail with ENOSYS. Some functions are actually named
42010 something starting with __ and the normal name is an alias. */
42011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42014 char (*f) () = $ac_func;
42023 return f != $ac_func;
42028 rm -f conftest.$ac_objext conftest$ac_exeext
42029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42030 (eval $ac_link) 2>conftest.er1
42032 grep -v '^ *+' conftest.er1 >conftest.err
42034 cat conftest.err >&5
42035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42036 (exit $ac_status); } &&
42037 { ac_try='test -z "$ac_c_werror_flag"
42038 || test ! -s conftest.err'
42039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42040 (eval $ac_try) 2>&5
42042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42043 (exit $ac_status); }; } &&
42044 { ac_try='test -s conftest$ac_exeext'
42045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42046 (eval $ac_try) 2>&5
42048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); }; }; then
42050 eval "$as_ac_var=yes"
42052 echo "$as_me: failed program was:" >&5
42053 sed 's/^/| /' conftest.$ac_ext >&5
42055 eval "$as_ac_var=no"
42057 rm -f conftest.err conftest.$ac_objext \
42058 conftest$ac_exeext conftest.$ac_ext
42060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42062 if test `eval echo '${'$as_ac_var'}'` = yes; then
42063 cat >>confdefs.h <<_ACEOF
42064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42071 ice_have_setresgid=no
42073 for ac_func in setresgid
42075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42076 echo "$as_me:$LINENO: checking for $ac_func" >&5
42077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42078 if eval "test \"\${$as_ac_var+set}\" = set"; then
42079 echo $ECHO_N "(cached) $ECHO_C" >&6
42081 cat >conftest.$ac_ext <<_ACEOF
42084 cat confdefs.h >>conftest.$ac_ext
42085 cat >>conftest.$ac_ext <<_ACEOF
42086 /* end confdefs.h. */
42087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42089 #define $ac_func innocuous_$ac_func
42091 /* System header to define __stub macros and hopefully few prototypes,
42092 which can conflict with char $ac_func (); below.
42093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42094 <limits.h> exists even on freestanding compilers. */
42097 # include <limits.h>
42099 # include <assert.h>
42104 /* Override any gcc2 internal prototype to avoid an error. */
42109 /* We use char because int might match the return type of a gcc2
42110 builtin and then its argument prototype would still apply. */
42112 /* The GNU C library defines this for functions which it implements
42113 to always fail with ENOSYS. Some functions are actually named
42114 something starting with __ and the normal name is an alias. */
42115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42118 char (*f) () = $ac_func;
42127 return f != $ac_func;
42132 rm -f conftest.$ac_objext conftest$ac_exeext
42133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42134 (eval $ac_link) 2>conftest.er1
42136 grep -v '^ *+' conftest.er1 >conftest.err
42138 cat conftest.err >&5
42139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140 (exit $ac_status); } &&
42141 { ac_try='test -z "$ac_c_werror_flag"
42142 || test ! -s conftest.err'
42143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42144 (eval $ac_try) 2>&5
42146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147 (exit $ac_status); }; } &&
42148 { ac_try='test -s conftest$ac_exeext'
42149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42150 (eval $ac_try) 2>&5
42152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153 (exit $ac_status); }; }; then
42154 eval "$as_ac_var=yes"
42156 echo "$as_me: failed program was:" >&5
42157 sed 's/^/| /' conftest.$ac_ext >&5
42159 eval "$as_ac_var=no"
42161 rm -f conftest.err conftest.$ac_objext \
42162 conftest$ac_exeext conftest.$ac_ext
42164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42166 if test `eval echo '${'$as_ac_var'}'` = yes; then
42167 cat >>confdefs.h <<_ACEOF
42168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42170 ice_have_setresgid=yes
42174 if test "${ice_have_setresgid}" = yes; then
42175 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
42176 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
42177 if test "${ice_cv_have_setresgid_decl+set}" = set; then
42178 echo $ECHO_N "(cached) $ECHO_C" >&6
42181 ice_cv_have_setresgid_decl=no
42182 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42183 ice_re_word='(^|[^a-zA-Z0-9_])'
42184 for header in unistd.h; do
42185 # Check for ordinary declaration
42186 cat >conftest.$ac_ext <<_ACEOF
42189 cat confdefs.h >>conftest.$ac_ext
42190 cat >>conftest.$ac_ext <<_ACEOF
42191 /* end confdefs.h. */
42195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42196 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
42197 ice_cv_have_setresgid_decl=yes
42201 if test "$ice_cv_have_setresgid_decl" = yes; then
42204 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42205 cat >conftest.$ac_ext <<_ACEOF
42208 cat confdefs.h >>conftest.$ac_ext
42209 cat >>conftest.$ac_ext <<_ACEOF
42210 /* end confdefs.h. */
42214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42215 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42216 ice_cv_have_setresgid_decl=yes
42220 if test "$ice_cv_have_setresgid_decl" = yes; then
42227 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
42228 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
42229 if test "$ice_cv_have_setresgid_decl" = yes; then
42231 cat >>confdefs.h <<_ACEOF
42232 #define HAVE_SETRESGID_DECL 1
42239 ice_have_setresuid=no
42241 for ac_func in setresuid
42243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42244 echo "$as_me:$LINENO: checking for $ac_func" >&5
42245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42246 if eval "test \"\${$as_ac_var+set}\" = set"; then
42247 echo $ECHO_N "(cached) $ECHO_C" >&6
42249 cat >conftest.$ac_ext <<_ACEOF
42252 cat confdefs.h >>conftest.$ac_ext
42253 cat >>conftest.$ac_ext <<_ACEOF
42254 /* end confdefs.h. */
42255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42257 #define $ac_func innocuous_$ac_func
42259 /* System header to define __stub macros and hopefully few prototypes,
42260 which can conflict with char $ac_func (); below.
42261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42262 <limits.h> exists even on freestanding compilers. */
42265 # include <limits.h>
42267 # include <assert.h>
42272 /* Override any gcc2 internal prototype to avoid an error. */
42277 /* We use char because int might match the return type of a gcc2
42278 builtin and then its argument prototype would still apply. */
42280 /* The GNU C library defines this for functions which it implements
42281 to always fail with ENOSYS. Some functions are actually named
42282 something starting with __ and the normal name is an alias. */
42283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42286 char (*f) () = $ac_func;
42295 return f != $ac_func;
42300 rm -f conftest.$ac_objext conftest$ac_exeext
42301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42302 (eval $ac_link) 2>conftest.er1
42304 grep -v '^ *+' conftest.er1 >conftest.err
42306 cat conftest.err >&5
42307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42308 (exit $ac_status); } &&
42309 { ac_try='test -z "$ac_c_werror_flag"
42310 || test ! -s conftest.err'
42311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42312 (eval $ac_try) 2>&5
42314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315 (exit $ac_status); }; } &&
42316 { ac_try='test -s conftest$ac_exeext'
42317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42318 (eval $ac_try) 2>&5
42320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321 (exit $ac_status); }; }; then
42322 eval "$as_ac_var=yes"
42324 echo "$as_me: failed program was:" >&5
42325 sed 's/^/| /' conftest.$ac_ext >&5
42327 eval "$as_ac_var=no"
42329 rm -f conftest.err conftest.$ac_objext \
42330 conftest$ac_exeext conftest.$ac_ext
42332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42334 if test `eval echo '${'$as_ac_var'}'` = yes; then
42335 cat >>confdefs.h <<_ACEOF
42336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42338 ice_have_setresuid=yes
42342 if test "${ice_have_setresuid}" = yes; then
42343 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
42344 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
42345 if test "${ice_cv_have_setresuid_decl+set}" = set; then
42346 echo $ECHO_N "(cached) $ECHO_C" >&6
42349 ice_cv_have_setresuid_decl=no
42350 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42351 ice_re_word='(^|[^a-zA-Z0-9_])'
42352 for header in unistd.h; do
42353 # Check for ordinary declaration
42354 cat >conftest.$ac_ext <<_ACEOF
42357 cat confdefs.h >>conftest.$ac_ext
42358 cat >>conftest.$ac_ext <<_ACEOF
42359 /* end confdefs.h. */
42363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42364 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
42365 ice_cv_have_setresuid_decl=yes
42369 if test "$ice_cv_have_setresuid_decl" = yes; then
42372 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42373 cat >conftest.$ac_ext <<_ACEOF
42376 cat confdefs.h >>conftest.$ac_ext
42377 cat >>conftest.$ac_ext <<_ACEOF
42378 /* end confdefs.h. */
42382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42383 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42384 ice_cv_have_setresuid_decl=yes
42388 if test "$ice_cv_have_setresuid_decl" = yes; then
42395 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
42396 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
42397 if test "$ice_cv_have_setresuid_decl" = yes; then
42399 cat >>confdefs.h <<_ACEOF
42400 #define HAVE_SETRESUID_DECL 1
42407 echo "$as_me:$LINENO: checking for setpgid" >&5
42408 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
42409 if test "${ac_cv_func_setpgid+set}" = set; then
42410 echo $ECHO_N "(cached) $ECHO_C" >&6
42412 cat >conftest.$ac_ext <<_ACEOF
42415 cat confdefs.h >>conftest.$ac_ext
42416 cat >>conftest.$ac_ext <<_ACEOF
42417 /* end confdefs.h. */
42418 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
42419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42420 #define setpgid innocuous_setpgid
42422 /* System header to define __stub macros and hopefully few prototypes,
42423 which can conflict with char setpgid (); below.
42424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42425 <limits.h> exists even on freestanding compilers. */
42428 # include <limits.h>
42430 # include <assert.h>
42435 /* Override any gcc2 internal prototype to avoid an error. */
42440 /* We use char because int might match the return type of a gcc2
42441 builtin and then its argument prototype would still apply. */
42443 /* The GNU C library defines this for functions which it implements
42444 to always fail with ENOSYS. Some functions are actually named
42445 something starting with __ and the normal name is an alias. */
42446 #if defined (__stub_setpgid) || defined (__stub___setpgid)
42449 char (*f) () = setpgid;
42458 return f != setpgid;
42463 rm -f conftest.$ac_objext conftest$ac_exeext
42464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42465 (eval $ac_link) 2>conftest.er1
42467 grep -v '^ *+' conftest.er1 >conftest.err
42469 cat conftest.err >&5
42470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471 (exit $ac_status); } &&
42472 { ac_try='test -z "$ac_c_werror_flag"
42473 || test ! -s conftest.err'
42474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42475 (eval $ac_try) 2>&5
42477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478 (exit $ac_status); }; } &&
42479 { ac_try='test -s conftest$ac_exeext'
42480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42481 (eval $ac_try) 2>&5
42483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484 (exit $ac_status); }; }; then
42485 ac_cv_func_setpgid=yes
42487 echo "$as_me: failed program was:" >&5
42488 sed 's/^/| /' conftest.$ac_ext >&5
42490 ac_cv_func_setpgid=no
42492 rm -f conftest.err conftest.$ac_objext \
42493 conftest$ac_exeext conftest.$ac_ext
42495 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
42496 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
42497 if test $ac_cv_func_setpgid = yes; then
42500 cat >>confdefs.h <<\_ACEOF
42501 #define HAVE_SETPGID 1
42505 ice_have_setpgid=no
42507 for ac_func in setpgid
42509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42510 echo "$as_me:$LINENO: checking for $ac_func" >&5
42511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42512 if eval "test \"\${$as_ac_var+set}\" = set"; then
42513 echo $ECHO_N "(cached) $ECHO_C" >&6
42515 cat >conftest.$ac_ext <<_ACEOF
42518 cat confdefs.h >>conftest.$ac_ext
42519 cat >>conftest.$ac_ext <<_ACEOF
42520 /* end confdefs.h. */
42521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42523 #define $ac_func innocuous_$ac_func
42525 /* System header to define __stub macros and hopefully few prototypes,
42526 which can conflict with char $ac_func (); below.
42527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42528 <limits.h> exists even on freestanding compilers. */
42531 # include <limits.h>
42533 # include <assert.h>
42538 /* Override any gcc2 internal prototype to avoid an error. */
42543 /* We use char because int might match the return type of a gcc2
42544 builtin and then its argument prototype would still apply. */
42546 /* The GNU C library defines this for functions which it implements
42547 to always fail with ENOSYS. Some functions are actually named
42548 something starting with __ and the normal name is an alias. */
42549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42552 char (*f) () = $ac_func;
42561 return f != $ac_func;
42566 rm -f conftest.$ac_objext conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568 (eval $ac_link) 2>conftest.er1
42570 grep -v '^ *+' conftest.er1 >conftest.err
42572 cat conftest.err >&5
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); } &&
42575 { ac_try='test -z "$ac_c_werror_flag"
42576 || test ! -s conftest.err'
42577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578 (eval $ac_try) 2>&5
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); }; } &&
42582 { ac_try='test -s conftest$ac_exeext'
42583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584 (eval $ac_try) 2>&5
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); }; }; then
42588 eval "$as_ac_var=yes"
42590 echo "$as_me: failed program was:" >&5
42591 sed 's/^/| /' conftest.$ac_ext >&5
42593 eval "$as_ac_var=no"
42595 rm -f conftest.err conftest.$ac_objext \
42596 conftest$ac_exeext conftest.$ac_ext
42598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42600 if test `eval echo '${'$as_ac_var'}'` = yes; then
42601 cat >>confdefs.h <<_ACEOF
42602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42604 ice_have_setpgid=yes
42608 if test "${ice_have_setpgid}" = yes; then
42609 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
42610 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
42611 if test "${ice_cv_have_setpgid_decl+set}" = set; then
42612 echo $ECHO_N "(cached) $ECHO_C" >&6
42615 ice_cv_have_setpgid_decl=no
42616 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42617 ice_re_word='(^|[^a-zA-Z0-9_])'
42618 for header in sys/types.h unistd.h; do
42619 # Check for ordinary declaration
42620 cat >conftest.$ac_ext <<_ACEOF
42623 cat confdefs.h >>conftest.$ac_ext
42624 cat >>conftest.$ac_ext <<_ACEOF
42625 /* end confdefs.h. */
42629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42630 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
42631 ice_cv_have_setpgid_decl=yes
42635 if test "$ice_cv_have_setpgid_decl" = yes; then
42638 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42639 cat >conftest.$ac_ext <<_ACEOF
42642 cat confdefs.h >>conftest.$ac_ext
42643 cat >>conftest.$ac_ext <<_ACEOF
42644 /* end confdefs.h. */
42648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42649 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42650 ice_cv_have_setpgid_decl=yes
42654 if test "$ice_cv_have_setpgid_decl" = yes; then
42661 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
42662 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
42663 if test "$ice_cv_have_setpgid_decl" = yes; then
42665 cat >>confdefs.h <<_ACEOF
42666 #define HAVE_SETPGID_DECL 1
42675 echo "$as_me:$LINENO: checking for setpgrp" >&5
42676 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
42677 if test "${ac_cv_func_setpgrp+set}" = set; then
42678 echo $ECHO_N "(cached) $ECHO_C" >&6
42680 cat >conftest.$ac_ext <<_ACEOF
42683 cat confdefs.h >>conftest.$ac_ext
42684 cat >>conftest.$ac_ext <<_ACEOF
42685 /* end confdefs.h. */
42686 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
42687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42688 #define setpgrp innocuous_setpgrp
42690 /* System header to define __stub macros and hopefully few prototypes,
42691 which can conflict with char setpgrp (); below.
42692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42693 <limits.h> exists even on freestanding compilers. */
42696 # include <limits.h>
42698 # include <assert.h>
42703 /* Override any gcc2 internal prototype to avoid an error. */
42708 /* We use char because int might match the return type of a gcc2
42709 builtin and then its argument prototype would still apply. */
42711 /* The GNU C library defines this for functions which it implements
42712 to always fail with ENOSYS. Some functions are actually named
42713 something starting with __ and the normal name is an alias. */
42714 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
42717 char (*f) () = setpgrp;
42726 return f != setpgrp;
42731 rm -f conftest.$ac_objext conftest$ac_exeext
42732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42733 (eval $ac_link) 2>conftest.er1
42735 grep -v '^ *+' conftest.er1 >conftest.err
42737 cat conftest.err >&5
42738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); } &&
42740 { ac_try='test -z "$ac_c_werror_flag"
42741 || test ! -s conftest.err'
42742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42743 (eval $ac_try) 2>&5
42745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746 (exit $ac_status); }; } &&
42747 { ac_try='test -s conftest$ac_exeext'
42748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42749 (eval $ac_try) 2>&5
42751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752 (exit $ac_status); }; }; then
42753 ac_cv_func_setpgrp=yes
42755 echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42758 ac_cv_func_setpgrp=no
42760 rm -f conftest.err conftest.$ac_objext \
42761 conftest$ac_exeext conftest.$ac_ext
42763 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
42764 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
42765 if test $ac_cv_func_setpgrp = yes; then
42766 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42767 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
42768 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42769 echo $ECHO_N "(cached) $ECHO_C" >&6
42771 if test "$cross_compiling" = yes; then
42772 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42773 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42774 { (exit 1); exit 1; }; }
42776 cat >conftest.$ac_ext <<_ACEOF
42779 cat confdefs.h >>conftest.$ac_ext
42780 cat >>conftest.$ac_ext <<_ACEOF
42781 /* end confdefs.h. */
42783 # include <unistd.h>
42789 /* If this system has a BSD-style setpgrp which takes arguments,
42790 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42791 exit successfully. */
42792 exit (setpgrp (1,1) == -1 ? 0 : 1);
42797 rm -f conftest$ac_exeext
42798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42799 (eval $ac_link) 2>&5
42801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42804 (eval $ac_try) 2>&5
42806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42807 (exit $ac_status); }; }; then
42808 ac_cv_func_setpgrp_void=no
42810 echo "$as_me: program exited with status $ac_status" >&5
42811 echo "$as_me: failed program was:" >&5
42812 sed 's/^/| /' conftest.$ac_ext >&5
42814 ( exit $ac_status )
42815 ac_cv_func_setpgrp_void=yes
42817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42820 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
42821 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
42822 if test $ac_cv_func_setpgrp_void = yes; then
42824 cat >>confdefs.h <<\_ACEOF
42825 #define SETPGRP_VOID 1
42833 ice_have_setpgrp=no
42835 for ac_func in setpgrp
42837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42838 echo "$as_me:$LINENO: checking for $ac_func" >&5
42839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42840 if eval "test \"\${$as_ac_var+set}\" = set"; then
42841 echo $ECHO_N "(cached) $ECHO_C" >&6
42843 cat >conftest.$ac_ext <<_ACEOF
42846 cat confdefs.h >>conftest.$ac_ext
42847 cat >>conftest.$ac_ext <<_ACEOF
42848 /* end confdefs.h. */
42849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42851 #define $ac_func innocuous_$ac_func
42853 /* System header to define __stub macros and hopefully few prototypes,
42854 which can conflict with char $ac_func (); below.
42855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42856 <limits.h> exists even on freestanding compilers. */
42859 # include <limits.h>
42861 # include <assert.h>
42866 /* Override any gcc2 internal prototype to avoid an error. */
42871 /* We use char because int might match the return type of a gcc2
42872 builtin and then its argument prototype would still apply. */
42874 /* The GNU C library defines this for functions which it implements
42875 to always fail with ENOSYS. Some functions are actually named
42876 something starting with __ and the normal name is an alias. */
42877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42880 char (*f) () = $ac_func;
42889 return f != $ac_func;
42894 rm -f conftest.$ac_objext conftest$ac_exeext
42895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42896 (eval $ac_link) 2>conftest.er1
42898 grep -v '^ *+' conftest.er1 >conftest.err
42900 cat conftest.err >&5
42901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902 (exit $ac_status); } &&
42903 { ac_try='test -z "$ac_c_werror_flag"
42904 || test ! -s conftest.err'
42905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42906 (eval $ac_try) 2>&5
42908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42909 (exit $ac_status); }; } &&
42910 { ac_try='test -s conftest$ac_exeext'
42911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912 (eval $ac_try) 2>&5
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); }; }; then
42916 eval "$as_ac_var=yes"
42918 echo "$as_me: failed program was:" >&5
42919 sed 's/^/| /' conftest.$ac_ext >&5
42921 eval "$as_ac_var=no"
42923 rm -f conftest.err conftest.$ac_objext \
42924 conftest$ac_exeext conftest.$ac_ext
42926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42928 if test `eval echo '${'$as_ac_var'}'` = yes; then
42929 cat >>confdefs.h <<_ACEOF
42930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42932 ice_have_setpgrp=yes
42936 if test "${ice_have_setpgrp}" = yes; then
42937 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42938 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
42939 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
42940 echo $ECHO_N "(cached) $ECHO_C" >&6
42943 ice_cv_have_setpgrp_decl=no
42944 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42945 ice_re_word='(^|[^a-zA-Z0-9_])'
42946 for header in sys/types.h unistd.h libc.h; do
42947 # Check for ordinary declaration
42948 cat >conftest.$ac_ext <<_ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h. */
42957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42958 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
42959 ice_cv_have_setpgrp_decl=yes
42963 if test "$ice_cv_have_setpgrp_decl" = yes; then
42966 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42967 cat >conftest.$ac_ext <<_ACEOF
42970 cat confdefs.h >>conftest.$ac_ext
42971 cat >>conftest.$ac_ext <<_ACEOF
42972 /* end confdefs.h. */
42976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42977 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42978 ice_cv_have_setpgrp_decl=yes
42982 if test "$ice_cv_have_setpgrp_decl" = yes; then
42989 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
42990 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
42991 if test "$ice_cv_have_setpgrp_decl" = yes; then
42993 cat >>confdefs.h <<_ACEOF
42994 #define HAVE_SETPGRP_DECL 1
43002 ice_have_setsockopt=no
43004 for ac_func in setsockopt
43006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43007 echo "$as_me:$LINENO: checking for $ac_func" >&5
43008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43009 if eval "test \"\${$as_ac_var+set}\" = set"; then
43010 echo $ECHO_N "(cached) $ECHO_C" >&6
43012 cat >conftest.$ac_ext <<_ACEOF
43015 cat confdefs.h >>conftest.$ac_ext
43016 cat >>conftest.$ac_ext <<_ACEOF
43017 /* end confdefs.h. */
43018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43020 #define $ac_func innocuous_$ac_func
43022 /* System header to define __stub macros and hopefully few prototypes,
43023 which can conflict with char $ac_func (); below.
43024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43025 <limits.h> exists even on freestanding compilers. */
43028 # include <limits.h>
43030 # include <assert.h>
43035 /* Override any gcc2 internal prototype to avoid an error. */
43040 /* We use char because int might match the return type of a gcc2
43041 builtin and then its argument prototype would still apply. */
43043 /* The GNU C library defines this for functions which it implements
43044 to always fail with ENOSYS. Some functions are actually named
43045 something starting with __ and the normal name is an alias. */
43046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43049 char (*f) () = $ac_func;
43058 return f != $ac_func;
43063 rm -f conftest.$ac_objext conftest$ac_exeext
43064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43065 (eval $ac_link) 2>conftest.er1
43067 grep -v '^ *+' conftest.er1 >conftest.err
43069 cat conftest.err >&5
43070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071 (exit $ac_status); } &&
43072 { ac_try='test -z "$ac_c_werror_flag"
43073 || test ! -s conftest.err'
43074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43075 (eval $ac_try) 2>&5
43077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43078 (exit $ac_status); }; } &&
43079 { ac_try='test -s conftest$ac_exeext'
43080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43081 (eval $ac_try) 2>&5
43083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43084 (exit $ac_status); }; }; then
43085 eval "$as_ac_var=yes"
43087 echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43090 eval "$as_ac_var=no"
43092 rm -f conftest.err conftest.$ac_objext \
43093 conftest$ac_exeext conftest.$ac_ext
43095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43097 if test `eval echo '${'$as_ac_var'}'` = yes; then
43098 cat >>confdefs.h <<_ACEOF
43099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43101 ice_have_setsockopt=yes
43105 if test "${ice_have_setsockopt}" = yes; then
43106 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
43107 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43108 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
43109 echo $ECHO_N "(cached) $ECHO_C" >&6
43112 ice_cv_have_setsockopt_decl=no
43113 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43114 ice_re_word='(^|[^a-zA-Z0-9_])'
43115 for header in sys/types.h sys/socket.h; do
43116 # Check for ordinary declaration
43117 cat >conftest.$ac_ext <<_ACEOF
43120 cat confdefs.h >>conftest.$ac_ext
43121 cat >>conftest.$ac_ext <<_ACEOF
43122 /* end confdefs.h. */
43126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43127 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
43128 ice_cv_have_setsockopt_decl=yes
43132 if test "$ice_cv_have_setsockopt_decl" = yes; then
43135 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43136 cat >conftest.$ac_ext <<_ACEOF
43139 cat confdefs.h >>conftest.$ac_ext
43140 cat >>conftest.$ac_ext <<_ACEOF
43141 /* end confdefs.h. */
43145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43146 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43147 ice_cv_have_setsockopt_decl=yes
43151 if test "$ice_cv_have_setsockopt_decl" = yes; then
43158 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
43159 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
43160 if test "$ice_cv_have_setsockopt_decl" = yes; then
43162 cat >>confdefs.h <<_ACEOF
43163 #define HAVE_SETSOCKOPT_DECL 1
43171 for ac_func in shmget
43173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43174 echo "$as_me:$LINENO: checking for $ac_func" >&5
43175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43176 if eval "test \"\${$as_ac_var+set}\" = set"; then
43177 echo $ECHO_N "(cached) $ECHO_C" >&6
43179 cat >conftest.$ac_ext <<_ACEOF
43182 cat confdefs.h >>conftest.$ac_ext
43183 cat >>conftest.$ac_ext <<_ACEOF
43184 /* end confdefs.h. */
43185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43187 #define $ac_func innocuous_$ac_func
43189 /* System header to define __stub macros and hopefully few prototypes,
43190 which can conflict with char $ac_func (); below.
43191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43192 <limits.h> exists even on freestanding compilers. */
43195 # include <limits.h>
43197 # include <assert.h>
43202 /* Override any gcc2 internal prototype to avoid an error. */
43207 /* We use char because int might match the return type of a gcc2
43208 builtin and then its argument prototype would still apply. */
43210 /* The GNU C library defines this for functions which it implements
43211 to always fail with ENOSYS. Some functions are actually named
43212 something starting with __ and the normal name is an alias. */
43213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43216 char (*f) () = $ac_func;
43225 return f != $ac_func;
43230 rm -f conftest.$ac_objext conftest$ac_exeext
43231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43232 (eval $ac_link) 2>conftest.er1
43234 grep -v '^ *+' conftest.er1 >conftest.err
43236 cat conftest.err >&5
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); } &&
43239 { ac_try='test -z "$ac_c_werror_flag"
43240 || test ! -s conftest.err'
43241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43242 (eval $ac_try) 2>&5
43244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43245 (exit $ac_status); }; } &&
43246 { ac_try='test -s conftest$ac_exeext'
43247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43248 (eval $ac_try) 2>&5
43250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43251 (exit $ac_status); }; }; then
43252 eval "$as_ac_var=yes"
43254 echo "$as_me: failed program was:" >&5
43255 sed 's/^/| /' conftest.$ac_ext >&5
43257 eval "$as_ac_var=no"
43259 rm -f conftest.err conftest.$ac_objext \
43260 conftest$ac_exeext conftest.$ac_ext
43262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43264 if test `eval echo '${'$as_ac_var'}'` = yes; then
43265 cat >>confdefs.h <<_ACEOF
43266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43270 echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
43271 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
43272 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
43273 echo $ECHO_N "(cached) $ECHO_C" >&6
43276 if test "$ac_cv_func_shmget" = yes; then
43277 cat <<EOF >conftest.$ac_ext
43278 #include "confdefs.h"
43279 #ifdef HAVE_SYS_TYPES_H
43280 # include <sys/types.h>
43282 #ifdef HAVE_SYS_IPC_H
43283 # include <sys/ipc.h>
43285 #ifdef HAVE_SYS_SHM_H
43286 # include <sys/shm.h>
43290 extern "C" void *shmat(int, void *, int);
43301 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
43302 if test $? = 0; then
43303 amanda_cv_shmdt_arg_type=void
43305 amanda_cv_shmdt_arg_type=char
43309 amanda_cv_shmdt_arg_type=nothing
43314 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
43315 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
43317 cat >>confdefs.h <<_ACEOF
43318 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
43323 case "$FORCE_MMAP" in
43326 cat >>confdefs.h <<\_ACEOF
43327 #define HAVE_SYSVSHM 1
43340 for ac_func in shmat
43342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43343 echo "$as_me:$LINENO: checking for $ac_func" >&5
43344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43345 if eval "test \"\${$as_ac_var+set}\" = set"; then
43346 echo $ECHO_N "(cached) $ECHO_C" >&6
43348 cat >conftest.$ac_ext <<_ACEOF
43351 cat confdefs.h >>conftest.$ac_ext
43352 cat >>conftest.$ac_ext <<_ACEOF
43353 /* end confdefs.h. */
43354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43356 #define $ac_func innocuous_$ac_func
43358 /* System header to define __stub macros and hopefully few prototypes,
43359 which can conflict with char $ac_func (); below.
43360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43361 <limits.h> exists even on freestanding compilers. */
43364 # include <limits.h>
43366 # include <assert.h>
43371 /* Override any gcc2 internal prototype to avoid an error. */
43376 /* We use char because int might match the return type of a gcc2
43377 builtin and then its argument prototype would still apply. */
43379 /* The GNU C library defines this for functions which it implements
43380 to always fail with ENOSYS. Some functions are actually named
43381 something starting with __ and the normal name is an alias. */
43382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43385 char (*f) () = $ac_func;
43394 return f != $ac_func;
43399 rm -f conftest.$ac_objext conftest$ac_exeext
43400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43401 (eval $ac_link) 2>conftest.er1
43403 grep -v '^ *+' conftest.er1 >conftest.err
43405 cat conftest.err >&5
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); } &&
43408 { ac_try='test -z "$ac_c_werror_flag"
43409 || test ! -s conftest.err'
43410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43411 (eval $ac_try) 2>&5
43413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43414 (exit $ac_status); }; } &&
43415 { ac_try='test -s conftest$ac_exeext'
43416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43417 (eval $ac_try) 2>&5
43419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420 (exit $ac_status); }; }; then
43421 eval "$as_ac_var=yes"
43423 echo "$as_me: failed program was:" >&5
43424 sed 's/^/| /' conftest.$ac_ext >&5
43426 eval "$as_ac_var=no"
43428 rm -f conftest.err conftest.$ac_objext \
43429 conftest$ac_exeext conftest.$ac_ext
43431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43433 if test `eval echo '${'$as_ac_var'}'` = yes; then
43434 cat >>confdefs.h <<_ACEOF
43435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43441 if test "${ice_have_shmat}" = yes; then
43442 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43443 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43444 if test "${ice_cv_have_shmat_decl+set}" = set; then
43445 echo $ECHO_N "(cached) $ECHO_C" >&6
43448 ice_cv_have_shmat_decl=no
43449 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43450 ice_re_word='(^|[^a-zA-Z0-9_])'
43451 for header in sys/types.h sys/ipc.h sys/shm.h; do
43452 # Check for ordinary declaration
43453 cat >conftest.$ac_ext <<_ACEOF
43456 cat confdefs.h >>conftest.$ac_ext
43457 cat >>conftest.$ac_ext <<_ACEOF
43458 /* end confdefs.h. */
43462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43463 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
43464 ice_cv_have_shmat_decl=yes
43468 if test "$ice_cv_have_shmat_decl" = yes; then
43471 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43472 cat >conftest.$ac_ext <<_ACEOF
43475 cat confdefs.h >>conftest.$ac_ext
43476 cat >>conftest.$ac_ext <<_ACEOF
43477 /* end confdefs.h. */
43481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43482 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43483 ice_cv_have_shmat_decl=yes
43487 if test "$ice_cv_have_shmat_decl" = yes; then
43494 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
43495 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
43496 if test "$ice_cv_have_shmat_decl" = yes; then
43498 cat >>confdefs.h <<_ACEOF
43499 #define HAVE_SHMAT_DECL 1
43508 for ac_func in shmctl
43510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43511 echo "$as_me:$LINENO: checking for $ac_func" >&5
43512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43513 if eval "test \"\${$as_ac_var+set}\" = set"; then
43514 echo $ECHO_N "(cached) $ECHO_C" >&6
43516 cat >conftest.$ac_ext <<_ACEOF
43519 cat confdefs.h >>conftest.$ac_ext
43520 cat >>conftest.$ac_ext <<_ACEOF
43521 /* end confdefs.h. */
43522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43524 #define $ac_func innocuous_$ac_func
43526 /* System header to define __stub macros and hopefully few prototypes,
43527 which can conflict with char $ac_func (); below.
43528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43529 <limits.h> exists even on freestanding compilers. */
43532 # include <limits.h>
43534 # include <assert.h>
43539 /* Override any gcc2 internal prototype to avoid an error. */
43544 /* We use char because int might match the return type of a gcc2
43545 builtin and then its argument prototype would still apply. */
43547 /* The GNU C library defines this for functions which it implements
43548 to always fail with ENOSYS. Some functions are actually named
43549 something starting with __ and the normal name is an alias. */
43550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43553 char (*f) () = $ac_func;
43562 return f != $ac_func;
43567 rm -f conftest.$ac_objext conftest$ac_exeext
43568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43569 (eval $ac_link) 2>conftest.er1
43571 grep -v '^ *+' conftest.er1 >conftest.err
43573 cat conftest.err >&5
43574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43575 (exit $ac_status); } &&
43576 { ac_try='test -z "$ac_c_werror_flag"
43577 || test ! -s conftest.err'
43578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43579 (eval $ac_try) 2>&5
43581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43582 (exit $ac_status); }; } &&
43583 { ac_try='test -s conftest$ac_exeext'
43584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43585 (eval $ac_try) 2>&5
43587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); }; }; then
43589 eval "$as_ac_var=yes"
43591 echo "$as_me: failed program was:" >&5
43592 sed 's/^/| /' conftest.$ac_ext >&5
43594 eval "$as_ac_var=no"
43596 rm -f conftest.err conftest.$ac_objext \
43597 conftest$ac_exeext conftest.$ac_ext
43599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43601 if test `eval echo '${'$as_ac_var'}'` = yes; then
43602 cat >>confdefs.h <<_ACEOF
43603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43605 ice_have_shmctl=yes
43609 if test "${ice_have_shmctl}" = yes; then
43610 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43611 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43612 if test "${ice_cv_have_shmctl_decl+set}" = set; then
43613 echo $ECHO_N "(cached) $ECHO_C" >&6
43616 ice_cv_have_shmctl_decl=no
43617 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43618 ice_re_word='(^|[^a-zA-Z0-9_])'
43619 for header in sys/types.h sys/ipc.h sys/shm.h; do
43620 # Check for ordinary declaration
43621 cat >conftest.$ac_ext <<_ACEOF
43624 cat confdefs.h >>conftest.$ac_ext
43625 cat >>conftest.$ac_ext <<_ACEOF
43626 /* end confdefs.h. */
43630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43631 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
43632 ice_cv_have_shmctl_decl=yes
43636 if test "$ice_cv_have_shmctl_decl" = yes; then
43639 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43640 cat >conftest.$ac_ext <<_ACEOF
43643 cat confdefs.h >>conftest.$ac_ext
43644 cat >>conftest.$ac_ext <<_ACEOF
43645 /* end confdefs.h. */
43649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43650 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43651 ice_cv_have_shmctl_decl=yes
43655 if test "$ice_cv_have_shmctl_decl" = yes; then
43662 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
43663 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
43664 if test "$ice_cv_have_shmctl_decl" = yes; then
43666 cat >>confdefs.h <<_ACEOF
43667 #define HAVE_SHMCTL_DECL 1
43676 for ac_func in shmdt
43678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43679 echo "$as_me:$LINENO: checking for $ac_func" >&5
43680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43681 if eval "test \"\${$as_ac_var+set}\" = set"; then
43682 echo $ECHO_N "(cached) $ECHO_C" >&6
43684 cat >conftest.$ac_ext <<_ACEOF
43687 cat confdefs.h >>conftest.$ac_ext
43688 cat >>conftest.$ac_ext <<_ACEOF
43689 /* end confdefs.h. */
43690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43692 #define $ac_func innocuous_$ac_func
43694 /* System header to define __stub macros and hopefully few prototypes,
43695 which can conflict with char $ac_func (); below.
43696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43697 <limits.h> exists even on freestanding compilers. */
43700 # include <limits.h>
43702 # include <assert.h>
43707 /* Override any gcc2 internal prototype to avoid an error. */
43712 /* We use char because int might match the return type of a gcc2
43713 builtin and then its argument prototype would still apply. */
43715 /* The GNU C library defines this for functions which it implements
43716 to always fail with ENOSYS. Some functions are actually named
43717 something starting with __ and the normal name is an alias. */
43718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43721 char (*f) () = $ac_func;
43730 return f != $ac_func;
43735 rm -f conftest.$ac_objext conftest$ac_exeext
43736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43737 (eval $ac_link) 2>conftest.er1
43739 grep -v '^ *+' conftest.er1 >conftest.err
43741 cat conftest.err >&5
43742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43743 (exit $ac_status); } &&
43744 { ac_try='test -z "$ac_c_werror_flag"
43745 || test ! -s conftest.err'
43746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747 (eval $ac_try) 2>&5
43749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750 (exit $ac_status); }; } &&
43751 { ac_try='test -s conftest$ac_exeext'
43752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43753 (eval $ac_try) 2>&5
43755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43756 (exit $ac_status); }; }; then
43757 eval "$as_ac_var=yes"
43759 echo "$as_me: failed program was:" >&5
43760 sed 's/^/| /' conftest.$ac_ext >&5
43762 eval "$as_ac_var=no"
43764 rm -f conftest.err conftest.$ac_objext \
43765 conftest$ac_exeext conftest.$ac_ext
43767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43769 if test `eval echo '${'$as_ac_var'}'` = yes; then
43770 cat >>confdefs.h <<_ACEOF
43771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43777 if test "${ice_have_shmdt}" = yes; then
43778 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43779 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43780 if test "${ice_cv_have_shmdt_decl+set}" = set; then
43781 echo $ECHO_N "(cached) $ECHO_C" >&6
43784 ice_cv_have_shmdt_decl=no
43785 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43786 ice_re_word='(^|[^a-zA-Z0-9_])'
43787 for header in sys/types.h sys/ipc.h sys/shm.h; do
43788 # Check for ordinary declaration
43789 cat >conftest.$ac_ext <<_ACEOF
43792 cat confdefs.h >>conftest.$ac_ext
43793 cat >>conftest.$ac_ext <<_ACEOF
43794 /* end confdefs.h. */
43798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43799 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
43800 ice_cv_have_shmdt_decl=yes
43804 if test "$ice_cv_have_shmdt_decl" = yes; then
43807 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43808 cat >conftest.$ac_ext <<_ACEOF
43811 cat confdefs.h >>conftest.$ac_ext
43812 cat >>conftest.$ac_ext <<_ACEOF
43813 /* end confdefs.h. */
43817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43818 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43819 ice_cv_have_shmdt_decl=yes
43823 if test "$ice_cv_have_shmdt_decl" = yes; then
43830 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
43831 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
43832 if test "$ice_cv_have_shmdt_decl" = yes; then
43834 cat >>confdefs.h <<_ACEOF
43835 #define HAVE_SHMDT_DECL 1
43844 for ac_func in shmget
43846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43847 echo "$as_me:$LINENO: checking for $ac_func" >&5
43848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43849 if eval "test \"\${$as_ac_var+set}\" = set"; then
43850 echo $ECHO_N "(cached) $ECHO_C" >&6
43852 cat >conftest.$ac_ext <<_ACEOF
43855 cat confdefs.h >>conftest.$ac_ext
43856 cat >>conftest.$ac_ext <<_ACEOF
43857 /* end confdefs.h. */
43858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43860 #define $ac_func innocuous_$ac_func
43862 /* System header to define __stub macros and hopefully few prototypes,
43863 which can conflict with char $ac_func (); below.
43864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43865 <limits.h> exists even on freestanding compilers. */
43868 # include <limits.h>
43870 # include <assert.h>
43875 /* Override any gcc2 internal prototype to avoid an error. */
43880 /* We use char because int might match the return type of a gcc2
43881 builtin and then its argument prototype would still apply. */
43883 /* The GNU C library defines this for functions which it implements
43884 to always fail with ENOSYS. Some functions are actually named
43885 something starting with __ and the normal name is an alias. */
43886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43889 char (*f) () = $ac_func;
43898 return f != $ac_func;
43903 rm -f conftest.$ac_objext conftest$ac_exeext
43904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43905 (eval $ac_link) 2>conftest.er1
43907 grep -v '^ *+' conftest.er1 >conftest.err
43909 cat conftest.err >&5
43910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43911 (exit $ac_status); } &&
43912 { ac_try='test -z "$ac_c_werror_flag"
43913 || test ! -s conftest.err'
43914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43915 (eval $ac_try) 2>&5
43917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43918 (exit $ac_status); }; } &&
43919 { ac_try='test -s conftest$ac_exeext'
43920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43921 (eval $ac_try) 2>&5
43923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43924 (exit $ac_status); }; }; then
43925 eval "$as_ac_var=yes"
43927 echo "$as_me: failed program was:" >&5
43928 sed 's/^/| /' conftest.$ac_ext >&5
43930 eval "$as_ac_var=no"
43932 rm -f conftest.err conftest.$ac_objext \
43933 conftest$ac_exeext conftest.$ac_ext
43935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43937 if test `eval echo '${'$as_ac_var'}'` = yes; then
43938 cat >>confdefs.h <<_ACEOF
43939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43941 ice_have_shmget=yes
43945 if test "${ice_have_shmget}" = yes; then
43946 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43947 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43948 if test "${ice_cv_have_shmget_decl+set}" = set; then
43949 echo $ECHO_N "(cached) $ECHO_C" >&6
43952 ice_cv_have_shmget_decl=no
43953 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43954 ice_re_word='(^|[^a-zA-Z0-9_])'
43955 for header in sys/types.h sys/ipc.h sys/shm.h; do
43956 # Check for ordinary declaration
43957 cat >conftest.$ac_ext <<_ACEOF
43960 cat confdefs.h >>conftest.$ac_ext
43961 cat >>conftest.$ac_ext <<_ACEOF
43962 /* end confdefs.h. */
43966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43967 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
43968 ice_cv_have_shmget_decl=yes
43972 if test "$ice_cv_have_shmget_decl" = yes; then
43975 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43976 cat >conftest.$ac_ext <<_ACEOF
43979 cat confdefs.h >>conftest.$ac_ext
43980 cat >>conftest.$ac_ext <<_ACEOF
43981 /* end confdefs.h. */
43985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43986 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43987 ice_cv_have_shmget_decl=yes
43991 if test "$ice_cv_have_shmget_decl" = yes; then
43998 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
43999 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
44000 if test "$ice_cv_have_shmget_decl" = yes; then
44002 cat >>confdefs.h <<_ACEOF
44003 #define HAVE_SHMGET_DECL 1
44010 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
44011 case "$FORCE_MMAP" in
44013 if test "$ac_cv_func_shmget" != yes; then
44014 { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
44015 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
44016 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44017 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44018 NO_SERVER_MODE=true
44022 { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
44023 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
44024 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44025 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44026 NO_SERVER_MODE=true
44032 ice_have_shquote=no
44034 for ac_func in shquote
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_shquote=yes
44135 if test "${ice_have_shquote}" = yes; then
44136 echo "$as_me:$LINENO: checking for shquote declaration in stdlib.h" >&5
44137 echo $ECHO_N "checking for shquote declaration in stdlib.h... $ECHO_C" >&6
44138 if test "${ice_cv_have_shquote_decl+set}" = set; then
44139 echo $ECHO_N "(cached) $ECHO_C" >&6
44142 ice_cv_have_shquote_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 stdlib.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}shquote[ ]*\(" >/dev/null 2>&1; then
44158 ice_cv_have_shquote_decl=yes
44162 if test "$ice_cv_have_shquote_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}shquote[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44177 ice_cv_have_shquote_decl=yes
44181 if test "$ice_cv_have_shquote_decl" = yes; then
44188 echo "$as_me:$LINENO: result: $ice_cv_have_shquote_decl" >&5
44189 echo "${ECHO_T}$ice_cv_have_shquote_decl" >&6
44190 if test "$ice_cv_have_shquote_decl" = yes; then
44192 cat >>confdefs.h <<_ACEOF
44193 #define HAVE_SHQUOTE_DECL 1
44201 ice_have_snprintf=no
44203 for ac_func in snprintf
44205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44206 echo "$as_me:$LINENO: checking for $ac_func" >&5
44207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44208 if eval "test \"\${$as_ac_var+set}\" = set"; then
44209 echo $ECHO_N "(cached) $ECHO_C" >&6
44211 cat >conftest.$ac_ext <<_ACEOF
44214 cat confdefs.h >>conftest.$ac_ext
44215 cat >>conftest.$ac_ext <<_ACEOF
44216 /* end confdefs.h. */
44217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44219 #define $ac_func innocuous_$ac_func
44221 /* System header to define __stub macros and hopefully few prototypes,
44222 which can conflict with char $ac_func (); below.
44223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44224 <limits.h> exists even on freestanding compilers. */
44227 # include <limits.h>
44229 # include <assert.h>
44234 /* Override any gcc2 internal prototype to avoid an error. */
44239 /* We use char because int might match the return type of a gcc2
44240 builtin and then its argument prototype would still apply. */
44242 /* The GNU C library defines this for functions which it implements
44243 to always fail with ENOSYS. Some functions are actually named
44244 something starting with __ and the normal name is an alias. */
44245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44248 char (*f) () = $ac_func;
44257 return f != $ac_func;
44262 rm -f conftest.$ac_objext conftest$ac_exeext
44263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44264 (eval $ac_link) 2>conftest.er1
44266 grep -v '^ *+' conftest.er1 >conftest.err
44268 cat conftest.err >&5
44269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270 (exit $ac_status); } &&
44271 { ac_try='test -z "$ac_c_werror_flag"
44272 || test ! -s conftest.err'
44273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44274 (eval $ac_try) 2>&5
44276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44277 (exit $ac_status); }; } &&
44278 { ac_try='test -s conftest$ac_exeext'
44279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44280 (eval $ac_try) 2>&5
44282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44283 (exit $ac_status); }; }; then
44284 eval "$as_ac_var=yes"
44286 echo "$as_me: failed program was:" >&5
44287 sed 's/^/| /' conftest.$ac_ext >&5
44289 eval "$as_ac_var=no"
44291 rm -f conftest.err conftest.$ac_objext \
44292 conftest$ac_exeext conftest.$ac_ext
44294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44296 if test `eval echo '${'$as_ac_var'}'` = yes; then
44297 cat >>confdefs.h <<_ACEOF
44298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44300 ice_have_snprintf=yes
44304 if test "${ice_have_snprintf}" = yes; then
44305 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
44306 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
44307 if test "${ice_cv_have_snprintf_decl+set}" = set; then
44308 echo $ECHO_N "(cached) $ECHO_C" >&6
44311 ice_cv_have_snprintf_decl=no
44312 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44313 ice_re_word='(^|[^a-zA-Z0-9_])'
44314 for header in stdio.h; do
44315 # Check for ordinary declaration
44316 cat >conftest.$ac_ext <<_ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h. */
44325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44326 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
44327 ice_cv_have_snprintf_decl=yes
44331 if test "$ice_cv_have_snprintf_decl" = yes; then
44334 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44335 cat >conftest.$ac_ext <<_ACEOF
44338 cat confdefs.h >>conftest.$ac_ext
44339 cat >>conftest.$ac_ext <<_ACEOF
44340 /* end confdefs.h. */
44344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44345 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44346 ice_cv_have_snprintf_decl=yes
44350 if test "$ice_cv_have_snprintf_decl" = yes; then
44357 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
44358 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
44359 if test "$ice_cv_have_snprintf_decl" = yes; then
44361 cat >>confdefs.h <<_ACEOF
44362 #define HAVE_SNPRINTF_DECL 1
44369 ice_have_vsnprintf=no
44371 for ac_func in vsnprintf
44373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44374 echo "$as_me:$LINENO: checking for $ac_func" >&5
44375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44376 if eval "test \"\${$as_ac_var+set}\" = set"; then
44377 echo $ECHO_N "(cached) $ECHO_C" >&6
44379 cat >conftest.$ac_ext <<_ACEOF
44382 cat confdefs.h >>conftest.$ac_ext
44383 cat >>conftest.$ac_ext <<_ACEOF
44384 /* end confdefs.h. */
44385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44387 #define $ac_func innocuous_$ac_func
44389 /* System header to define __stub macros and hopefully few prototypes,
44390 which can conflict with char $ac_func (); below.
44391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44392 <limits.h> exists even on freestanding compilers. */
44395 # include <limits.h>
44397 # include <assert.h>
44402 /* Override any gcc2 internal prototype to avoid an error. */
44407 /* We use char because int might match the return type of a gcc2
44408 builtin and then its argument prototype would still apply. */
44410 /* The GNU C library defines this for functions which it implements
44411 to always fail with ENOSYS. Some functions are actually named
44412 something starting with __ and the normal name is an alias. */
44413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44416 char (*f) () = $ac_func;
44425 return f != $ac_func;
44430 rm -f conftest.$ac_objext conftest$ac_exeext
44431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44432 (eval $ac_link) 2>conftest.er1
44434 grep -v '^ *+' conftest.er1 >conftest.err
44436 cat conftest.err >&5
44437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44438 (exit $ac_status); } &&
44439 { ac_try='test -z "$ac_c_werror_flag"
44440 || test ! -s conftest.err'
44441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44442 (eval $ac_try) 2>&5
44444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44445 (exit $ac_status); }; } &&
44446 { ac_try='test -s conftest$ac_exeext'
44447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44448 (eval $ac_try) 2>&5
44450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44451 (exit $ac_status); }; }; then
44452 eval "$as_ac_var=yes"
44454 echo "$as_me: failed program was:" >&5
44455 sed 's/^/| /' conftest.$ac_ext >&5
44457 eval "$as_ac_var=no"
44459 rm -f conftest.err conftest.$ac_objext \
44460 conftest$ac_exeext conftest.$ac_ext
44462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44464 if test `eval echo '${'$as_ac_var'}'` = yes; then
44465 cat >>confdefs.h <<_ACEOF
44466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44468 ice_have_vsnprintf=yes
44472 if test "${ice_have_vsnprintf}" = yes; then
44473 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
44474 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
44475 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
44476 echo $ECHO_N "(cached) $ECHO_C" >&6
44479 ice_cv_have_vsnprintf_decl=no
44480 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44481 ice_re_word='(^|[^a-zA-Z0-9_])'
44482 for header in stdio.h; do
44483 # Check for ordinary declaration
44484 cat >conftest.$ac_ext <<_ACEOF
44487 cat confdefs.h >>conftest.$ac_ext
44488 cat >>conftest.$ac_ext <<_ACEOF
44489 /* end confdefs.h. */
44493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44494 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
44495 ice_cv_have_vsnprintf_decl=yes
44499 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44502 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44503 cat >conftest.$ac_ext <<_ACEOF
44506 cat confdefs.h >>conftest.$ac_ext
44507 cat >>conftest.$ac_ext <<_ACEOF
44508 /* end confdefs.h. */
44512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44513 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44514 ice_cv_have_vsnprintf_decl=yes
44518 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44525 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
44526 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
44527 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44529 cat >>confdefs.h <<_ACEOF
44530 #define HAVE_VSNPRINTF_DECL 1
44536 if test x"$ice_have_snprintf" != x"yes" ||
44537 test x"$ice_have_vsnprintf" != x"yes"; then
44539 "snprintf.$ac_objext" | \
44540 *" snprintf.$ac_objext" | \
44541 "snprintf.$ac_objext "* | \
44542 *" snprintf.$ac_objext "* ) ;;
44543 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
44548 for ac_func in snprintf
44550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44551 echo "$as_me:$LINENO: checking for $ac_func" >&5
44552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44553 if eval "test \"\${$as_ac_var+set}\" = set"; then
44554 echo $ECHO_N "(cached) $ECHO_C" >&6
44556 cat >conftest.$ac_ext <<_ACEOF
44559 cat confdefs.h >>conftest.$ac_ext
44560 cat >>conftest.$ac_ext <<_ACEOF
44561 /* end confdefs.h. */
44562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44564 #define $ac_func innocuous_$ac_func
44566 /* System header to define __stub macros and hopefully few prototypes,
44567 which can conflict with char $ac_func (); below.
44568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44569 <limits.h> exists even on freestanding compilers. */
44572 # include <limits.h>
44574 # include <assert.h>
44579 /* Override any gcc2 internal prototype to avoid an error. */
44584 /* We use char because int might match the return type of a gcc2
44585 builtin and then its argument prototype would still apply. */
44587 /* The GNU C library defines this for functions which it implements
44588 to always fail with ENOSYS. Some functions are actually named
44589 something starting with __ and the normal name is an alias. */
44590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44593 char (*f) () = $ac_func;
44602 return f != $ac_func;
44607 rm -f conftest.$ac_objext conftest$ac_exeext
44608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44609 (eval $ac_link) 2>conftest.er1
44611 grep -v '^ *+' conftest.er1 >conftest.err
44613 cat conftest.err >&5
44614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44615 (exit $ac_status); } &&
44616 { ac_try='test -z "$ac_c_werror_flag"
44617 || test ! -s conftest.err'
44618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44619 (eval $ac_try) 2>&5
44621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44622 (exit $ac_status); }; } &&
44623 { ac_try='test -s conftest$ac_exeext'
44624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44625 (eval $ac_try) 2>&5
44627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44628 (exit $ac_status); }; }; then
44629 eval "$as_ac_var=yes"
44631 echo "$as_me: failed program was:" >&5
44632 sed 's/^/| /' conftest.$ac_ext >&5
44634 eval "$as_ac_var=no"
44636 rm -f conftest.err conftest.$ac_objext \
44637 conftest$ac_exeext conftest.$ac_ext
44639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44641 if test `eval echo '${'$as_ac_var'}'` = yes; then
44642 cat >>confdefs.h <<_ACEOF
44643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44648 "$ac_func.$ac_objext" | \
44649 *" $ac_func.$ac_objext" | \
44650 "$ac_func.$ac_objext "* | \
44651 *" $ac_func.$ac_objext "* ) ;;
44652 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44665 for ac_func in sigaction sigemptyset sigvec
44667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44668 echo "$as_me:$LINENO: checking for $ac_func" >&5
44669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44670 if eval "test \"\${$as_ac_var+set}\" = set"; then
44671 echo $ECHO_N "(cached) $ECHO_C" >&6
44673 cat >conftest.$ac_ext <<_ACEOF
44676 cat confdefs.h >>conftest.$ac_ext
44677 cat >>conftest.$ac_ext <<_ACEOF
44678 /* end confdefs.h. */
44679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44681 #define $ac_func innocuous_$ac_func
44683 /* System header to define __stub macros and hopefully few prototypes,
44684 which can conflict with char $ac_func (); below.
44685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44686 <limits.h> exists even on freestanding compilers. */
44689 # include <limits.h>
44691 # include <assert.h>
44696 /* Override any gcc2 internal prototype to avoid an error. */
44701 /* We use char because int might match the return type of a gcc2
44702 builtin and then its argument prototype would still apply. */
44704 /* The GNU C library defines this for functions which it implements
44705 to always fail with ENOSYS. Some functions are actually named
44706 something starting with __ and the normal name is an alias. */
44707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44710 char (*f) () = $ac_func;
44719 return f != $ac_func;
44724 rm -f conftest.$ac_objext conftest$ac_exeext
44725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44726 (eval $ac_link) 2>conftest.er1
44728 grep -v '^ *+' conftest.er1 >conftest.err
44730 cat conftest.err >&5
44731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44732 (exit $ac_status); } &&
44733 { ac_try='test -z "$ac_c_werror_flag"
44734 || test ! -s conftest.err'
44735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44736 (eval $ac_try) 2>&5
44738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44739 (exit $ac_status); }; } &&
44740 { ac_try='test -s conftest$ac_exeext'
44741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44742 (eval $ac_try) 2>&5
44744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44745 (exit $ac_status); }; }; then
44746 eval "$as_ac_var=yes"
44748 echo "$as_me: failed program was:" >&5
44749 sed 's/^/| /' conftest.$ac_ext >&5
44751 eval "$as_ac_var=no"
44753 rm -f conftest.err conftest.$ac_objext \
44754 conftest$ac_exeext conftest.$ac_ext
44756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44758 if test `eval echo '${'$as_ac_var'}'` = yes; then
44759 cat >>confdefs.h <<_ACEOF
44760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44769 for ac_func in socket
44771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44772 echo "$as_me:$LINENO: checking for $ac_func" >&5
44773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44774 if eval "test \"\${$as_ac_var+set}\" = set"; then
44775 echo $ECHO_N "(cached) $ECHO_C" >&6
44777 cat >conftest.$ac_ext <<_ACEOF
44780 cat confdefs.h >>conftest.$ac_ext
44781 cat >>conftest.$ac_ext <<_ACEOF
44782 /* end confdefs.h. */
44783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44785 #define $ac_func innocuous_$ac_func
44787 /* System header to define __stub macros and hopefully few prototypes,
44788 which can conflict with char $ac_func (); below.
44789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44790 <limits.h> exists even on freestanding compilers. */
44793 # include <limits.h>
44795 # include <assert.h>
44800 /* Override any gcc2 internal prototype to avoid an error. */
44805 /* We use char because int might match the return type of a gcc2
44806 builtin and then its argument prototype would still apply. */
44808 /* The GNU C library defines this for functions which it implements
44809 to always fail with ENOSYS. Some functions are actually named
44810 something starting with __ and the normal name is an alias. */
44811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44814 char (*f) () = $ac_func;
44823 return f != $ac_func;
44828 rm -f conftest.$ac_objext conftest$ac_exeext
44829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44830 (eval $ac_link) 2>conftest.er1
44832 grep -v '^ *+' conftest.er1 >conftest.err
44834 cat conftest.err >&5
44835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44836 (exit $ac_status); } &&
44837 { ac_try='test -z "$ac_c_werror_flag"
44838 || test ! -s conftest.err'
44839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44840 (eval $ac_try) 2>&5
44842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44843 (exit $ac_status); }; } &&
44844 { ac_try='test -s conftest$ac_exeext'
44845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44846 (eval $ac_try) 2>&5
44848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44849 (exit $ac_status); }; }; then
44850 eval "$as_ac_var=yes"
44852 echo "$as_me: failed program was:" >&5
44853 sed 's/^/| /' conftest.$ac_ext >&5
44855 eval "$as_ac_var=no"
44857 rm -f conftest.err conftest.$ac_objext \
44858 conftest$ac_exeext conftest.$ac_ext
44860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44862 if test `eval echo '${'$as_ac_var'}'` = yes; then
44863 cat >>confdefs.h <<_ACEOF
44864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44866 ice_have_socket=yes
44870 if test "${ice_have_socket}" = yes; then
44871 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
44872 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44873 if test "${ice_cv_have_socket_decl+set}" = set; then
44874 echo $ECHO_N "(cached) $ECHO_C" >&6
44877 ice_cv_have_socket_decl=no
44878 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44879 ice_re_word='(^|[^a-zA-Z0-9_])'
44880 for header in sys/types.h sys/socket.h; do
44881 # Check for ordinary declaration
44882 cat >conftest.$ac_ext <<_ACEOF
44885 cat confdefs.h >>conftest.$ac_ext
44886 cat >>conftest.$ac_ext <<_ACEOF
44887 /* end confdefs.h. */
44891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44892 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
44893 ice_cv_have_socket_decl=yes
44897 if test "$ice_cv_have_socket_decl" = yes; then
44900 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44901 cat >conftest.$ac_ext <<_ACEOF
44904 cat confdefs.h >>conftest.$ac_ext
44905 cat >>conftest.$ac_ext <<_ACEOF
44906 /* end confdefs.h. */
44910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44911 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44912 ice_cv_have_socket_decl=yes
44916 if test "$ice_cv_have_socket_decl" = yes; then
44923 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
44924 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
44925 if test "$ice_cv_have_socket_decl" = yes; then
44927 cat >>confdefs.h <<_ACEOF
44928 #define HAVE_SOCKET_DECL 1
44935 ice_have_socketpair=no
44937 for ac_func in socketpair
44939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44940 echo "$as_me:$LINENO: checking for $ac_func" >&5
44941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44942 if eval "test \"\${$as_ac_var+set}\" = set"; then
44943 echo $ECHO_N "(cached) $ECHO_C" >&6
44945 cat >conftest.$ac_ext <<_ACEOF
44948 cat confdefs.h >>conftest.$ac_ext
44949 cat >>conftest.$ac_ext <<_ACEOF
44950 /* end confdefs.h. */
44951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44953 #define $ac_func innocuous_$ac_func
44955 /* System header to define __stub macros and hopefully few prototypes,
44956 which can conflict with char $ac_func (); below.
44957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44958 <limits.h> exists even on freestanding compilers. */
44961 # include <limits.h>
44963 # include <assert.h>
44968 /* Override any gcc2 internal prototype to avoid an error. */
44973 /* We use char because int might match the return type of a gcc2
44974 builtin and then its argument prototype would still apply. */
44976 /* The GNU C library defines this for functions which it implements
44977 to always fail with ENOSYS. Some functions are actually named
44978 something starting with __ and the normal name is an alias. */
44979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44982 char (*f) () = $ac_func;
44991 return f != $ac_func;
44996 rm -f conftest.$ac_objext conftest$ac_exeext
44997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44998 (eval $ac_link) 2>conftest.er1
45000 grep -v '^ *+' conftest.er1 >conftest.err
45002 cat conftest.err >&5
45003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45004 (exit $ac_status); } &&
45005 { ac_try='test -z "$ac_c_werror_flag"
45006 || test ! -s conftest.err'
45007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45008 (eval $ac_try) 2>&5
45010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45011 (exit $ac_status); }; } &&
45012 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
45018 eval "$as_ac_var=yes"
45020 echo "$as_me: failed program was:" >&5
45021 sed 's/^/| /' conftest.$ac_ext >&5
45023 eval "$as_ac_var=no"
45025 rm -f conftest.err conftest.$ac_objext \
45026 conftest$ac_exeext conftest.$ac_ext
45028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45030 if test `eval echo '${'$as_ac_var'}'` = yes; then
45031 cat >>confdefs.h <<_ACEOF
45032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45034 ice_have_socketpair=yes
45038 if test "${ice_have_socketpair}" = yes; then
45039 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
45040 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
45041 if test "${ice_cv_have_socketpair_decl+set}" = set; then
45042 echo $ECHO_N "(cached) $ECHO_C" >&6
45045 ice_cv_have_socketpair_decl=no
45046 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45047 ice_re_word='(^|[^a-zA-Z0-9_])'
45048 for header in sys/types.h sys/socket.h; do
45049 # Check for ordinary declaration
45050 cat >conftest.$ac_ext <<_ACEOF
45053 cat confdefs.h >>conftest.$ac_ext
45054 cat >>conftest.$ac_ext <<_ACEOF
45055 /* end confdefs.h. */
45059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45060 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
45061 ice_cv_have_socketpair_decl=yes
45065 if test "$ice_cv_have_socketpair_decl" = yes; then
45068 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45069 cat >conftest.$ac_ext <<_ACEOF
45072 cat confdefs.h >>conftest.$ac_ext
45073 cat >>conftest.$ac_ext <<_ACEOF
45074 /* end confdefs.h. */
45078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45079 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45080 ice_cv_have_socketpair_decl=yes
45084 if test "$ice_cv_have_socketpair_decl" = yes; then
45091 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
45092 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
45093 if test "$ice_cv_have_socketpair_decl" = yes; then
45095 cat >>confdefs.h <<_ACEOF
45096 #define HAVE_SOCKETPAIR_DECL 1
45105 for ac_func in sscanf
45107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45108 echo "$as_me:$LINENO: checking for $ac_func" >&5
45109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45110 if eval "test \"\${$as_ac_var+set}\" = set"; then
45111 echo $ECHO_N "(cached) $ECHO_C" >&6
45113 cat >conftest.$ac_ext <<_ACEOF
45116 cat confdefs.h >>conftest.$ac_ext
45117 cat >>conftest.$ac_ext <<_ACEOF
45118 /* end confdefs.h. */
45119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45121 #define $ac_func innocuous_$ac_func
45123 /* System header to define __stub macros and hopefully few prototypes,
45124 which can conflict with char $ac_func (); below.
45125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45126 <limits.h> exists even on freestanding compilers. */
45129 # include <limits.h>
45131 # include <assert.h>
45136 /* Override any gcc2 internal prototype to avoid an error. */
45141 /* We use char because int might match the return type of a gcc2
45142 builtin and then its argument prototype would still apply. */
45144 /* The GNU C library defines this for functions which it implements
45145 to always fail with ENOSYS. Some functions are actually named
45146 something starting with __ and the normal name is an alias. */
45147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45150 char (*f) () = $ac_func;
45159 return f != $ac_func;
45164 rm -f conftest.$ac_objext conftest$ac_exeext
45165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45166 (eval $ac_link) 2>conftest.er1
45168 grep -v '^ *+' conftest.er1 >conftest.err
45170 cat conftest.err >&5
45171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45172 (exit $ac_status); } &&
45173 { ac_try='test -z "$ac_c_werror_flag"
45174 || test ! -s conftest.err'
45175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45176 (eval $ac_try) 2>&5
45178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45179 (exit $ac_status); }; } &&
45180 { ac_try='test -s conftest$ac_exeext'
45181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45182 (eval $ac_try) 2>&5
45184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45185 (exit $ac_status); }; }; then
45186 eval "$as_ac_var=yes"
45188 echo "$as_me: failed program was:" >&5
45189 sed 's/^/| /' conftest.$ac_ext >&5
45191 eval "$as_ac_var=no"
45193 rm -f conftest.err conftest.$ac_objext \
45194 conftest$ac_exeext conftest.$ac_ext
45196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45198 if test `eval echo '${'$as_ac_var'}'` = yes; then
45199 cat >>confdefs.h <<_ACEOF
45200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45202 ice_have_sscanf=yes
45206 if test "${ice_have_sscanf}" = yes; then
45207 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
45208 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
45209 if test "${ice_cv_have_sscanf_decl+set}" = set; then
45210 echo $ECHO_N "(cached) $ECHO_C" >&6
45213 ice_cv_have_sscanf_decl=no
45214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45215 ice_re_word='(^|[^a-zA-Z0-9_])'
45216 for header in stdio.h; do
45217 # Check for ordinary declaration
45218 cat >conftest.$ac_ext <<_ACEOF
45221 cat confdefs.h >>conftest.$ac_ext
45222 cat >>conftest.$ac_ext <<_ACEOF
45223 /* end confdefs.h. */
45227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45228 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
45229 ice_cv_have_sscanf_decl=yes
45233 if test "$ice_cv_have_sscanf_decl" = yes; then
45236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45237 cat >conftest.$ac_ext <<_ACEOF
45240 cat confdefs.h >>conftest.$ac_ext
45241 cat >>conftest.$ac_ext <<_ACEOF
45242 /* end confdefs.h. */
45246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45247 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45248 ice_cv_have_sscanf_decl=yes
45252 if test "$ice_cv_have_sscanf_decl" = yes; then
45259 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
45260 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
45261 if test "$ice_cv_have_sscanf_decl" = yes; then
45263 cat >>confdefs.h <<_ACEOF
45264 #define HAVE_SSCANF_DECL 1
45272 for ac_func in statfs statvfs
45274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45275 echo "$as_me:$LINENO: checking for $ac_func" >&5
45276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45277 if eval "test \"\${$as_ac_var+set}\" = set"; then
45278 echo $ECHO_N "(cached) $ECHO_C" >&6
45280 cat >conftest.$ac_ext <<_ACEOF
45283 cat confdefs.h >>conftest.$ac_ext
45284 cat >>conftest.$ac_ext <<_ACEOF
45285 /* end confdefs.h. */
45286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45288 #define $ac_func innocuous_$ac_func
45290 /* System header to define __stub macros and hopefully few prototypes,
45291 which can conflict with char $ac_func (); below.
45292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45293 <limits.h> exists even on freestanding compilers. */
45296 # include <limits.h>
45298 # include <assert.h>
45303 /* Override any gcc2 internal prototype to avoid an error. */
45308 /* We use char because int might match the return type of a gcc2
45309 builtin and then its argument prototype would still apply. */
45311 /* The GNU C library defines this for functions which it implements
45312 to always fail with ENOSYS. Some functions are actually named
45313 something starting with __ and the normal name is an alias. */
45314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45317 char (*f) () = $ac_func;
45326 return f != $ac_func;
45331 rm -f conftest.$ac_objext conftest$ac_exeext
45332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45333 (eval $ac_link) 2>conftest.er1
45335 grep -v '^ *+' conftest.er1 >conftest.err
45337 cat conftest.err >&5
45338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45339 (exit $ac_status); } &&
45340 { ac_try='test -z "$ac_c_werror_flag"
45341 || test ! -s conftest.err'
45342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45343 (eval $ac_try) 2>&5
45345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346 (exit $ac_status); }; } &&
45347 { ac_try='test -s conftest$ac_exeext'
45348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45349 (eval $ac_try) 2>&5
45351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45352 (exit $ac_status); }; }; then
45353 eval "$as_ac_var=yes"
45355 echo "$as_me: failed program was:" >&5
45356 sed 's/^/| /' conftest.$ac_ext >&5
45358 eval "$as_ac_var=no"
45360 rm -f conftest.err conftest.$ac_objext \
45361 conftest$ac_exeext conftest.$ac_ext
45363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45365 if test `eval echo '${'$as_ac_var'}'` = yes; then
45366 cat >>confdefs.h <<_ACEOF
45367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45374 for ac_func in strerror
45376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45377 echo "$as_me:$LINENO: checking for $ac_func" >&5
45378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45379 if eval "test \"\${$as_ac_var+set}\" = set"; then
45380 echo $ECHO_N "(cached) $ECHO_C" >&6
45382 cat >conftest.$ac_ext <<_ACEOF
45385 cat confdefs.h >>conftest.$ac_ext
45386 cat >>conftest.$ac_ext <<_ACEOF
45387 /* end confdefs.h. */
45388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45390 #define $ac_func innocuous_$ac_func
45392 /* System header to define __stub macros and hopefully few prototypes,
45393 which can conflict with char $ac_func (); below.
45394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45395 <limits.h> exists even on freestanding compilers. */
45398 # include <limits.h>
45400 # include <assert.h>
45405 /* Override any gcc2 internal prototype to avoid an error. */
45410 /* We use char because int might match the return type of a gcc2
45411 builtin and then its argument prototype would still apply. */
45413 /* The GNU C library defines this for functions which it implements
45414 to always fail with ENOSYS. Some functions are actually named
45415 something starting with __ and the normal name is an alias. */
45416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45419 char (*f) () = $ac_func;
45428 return f != $ac_func;
45433 rm -f conftest.$ac_objext conftest$ac_exeext
45434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45435 (eval $ac_link) 2>conftest.er1
45437 grep -v '^ *+' conftest.er1 >conftest.err
45439 cat conftest.err >&5
45440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45441 (exit $ac_status); } &&
45442 { ac_try='test -z "$ac_c_werror_flag"
45443 || test ! -s conftest.err'
45444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45445 (eval $ac_try) 2>&5
45447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448 (exit $ac_status); }; } &&
45449 { ac_try='test -s conftest$ac_exeext'
45450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45451 (eval $ac_try) 2>&5
45453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45454 (exit $ac_status); }; }; then
45455 eval "$as_ac_var=yes"
45457 echo "$as_me: failed program was:" >&5
45458 sed 's/^/| /' conftest.$ac_ext >&5
45460 eval "$as_ac_var=no"
45462 rm -f conftest.err conftest.$ac_objext \
45463 conftest$ac_exeext conftest.$ac_ext
45465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45467 if test `eval echo '${'$as_ac_var'}'` = yes; then
45468 cat >>confdefs.h <<_ACEOF
45469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45474 "$ac_func.$ac_objext" | \
45475 *" $ac_func.$ac_objext" | \
45476 "$ac_func.$ac_objext "* | \
45477 *" $ac_func.$ac_objext "* ) ;;
45478 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45486 ice_have_strerror=no
45488 for ac_func in strerror
45490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45491 echo "$as_me:$LINENO: checking for $ac_func" >&5
45492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45493 if eval "test \"\${$as_ac_var+set}\" = set"; then
45494 echo $ECHO_N "(cached) $ECHO_C" >&6
45496 cat >conftest.$ac_ext <<_ACEOF
45499 cat confdefs.h >>conftest.$ac_ext
45500 cat >>conftest.$ac_ext <<_ACEOF
45501 /* end confdefs.h. */
45502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45504 #define $ac_func innocuous_$ac_func
45506 /* System header to define __stub macros and hopefully few prototypes,
45507 which can conflict with char $ac_func (); below.
45508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45509 <limits.h> exists even on freestanding compilers. */
45512 # include <limits.h>
45514 # include <assert.h>
45519 /* Override any gcc2 internal prototype to avoid an error. */
45524 /* We use char because int might match the return type of a gcc2
45525 builtin and then its argument prototype would still apply. */
45527 /* The GNU C library defines this for functions which it implements
45528 to always fail with ENOSYS. Some functions are actually named
45529 something starting with __ and the normal name is an alias. */
45530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45533 char (*f) () = $ac_func;
45542 return f != $ac_func;
45547 rm -f conftest.$ac_objext conftest$ac_exeext
45548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45549 (eval $ac_link) 2>conftest.er1
45551 grep -v '^ *+' conftest.er1 >conftest.err
45553 cat conftest.err >&5
45554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45555 (exit $ac_status); } &&
45556 { ac_try='test -z "$ac_c_werror_flag"
45557 || test ! -s conftest.err'
45558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45559 (eval $ac_try) 2>&5
45561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45562 (exit $ac_status); }; } &&
45563 { ac_try='test -s conftest$ac_exeext'
45564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45565 (eval $ac_try) 2>&5
45567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45568 (exit $ac_status); }; }; then
45569 eval "$as_ac_var=yes"
45571 echo "$as_me: failed program was:" >&5
45572 sed 's/^/| /' conftest.$ac_ext >&5
45574 eval "$as_ac_var=no"
45576 rm -f conftest.err conftest.$ac_objext \
45577 conftest$ac_exeext conftest.$ac_ext
45579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45581 if test `eval echo '${'$as_ac_var'}'` = yes; then
45582 cat >>confdefs.h <<_ACEOF
45583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45585 ice_have_strerror=yes
45589 if test "${ice_have_strerror}" = yes; then
45590 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
45591 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
45592 if test "${ice_cv_have_strerror_decl+set}" = set; then
45593 echo $ECHO_N "(cached) $ECHO_C" >&6
45596 ice_cv_have_strerror_decl=no
45597 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45598 ice_re_word='(^|[^a-zA-Z0-9_])'
45599 for header in string.h strings.h; do
45600 # Check for ordinary declaration
45601 cat >conftest.$ac_ext <<_ACEOF
45604 cat confdefs.h >>conftest.$ac_ext
45605 cat >>conftest.$ac_ext <<_ACEOF
45606 /* end confdefs.h. */
45610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45611 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
45612 ice_cv_have_strerror_decl=yes
45616 if test "$ice_cv_have_strerror_decl" = yes; then
45619 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45620 cat >conftest.$ac_ext <<_ACEOF
45623 cat confdefs.h >>conftest.$ac_ext
45624 cat >>conftest.$ac_ext <<_ACEOF
45625 /* end confdefs.h. */
45629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45630 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45631 ice_cv_have_strerror_decl=yes
45635 if test "$ice_cv_have_strerror_decl" = yes; then
45642 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
45643 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
45644 if test "$ice_cv_have_strerror_decl" = yes; then
45646 cat >>confdefs.h <<_ACEOF
45647 #define HAVE_STRERROR_DECL 1
45654 for ac_func in strftime
45656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45657 echo "$as_me:$LINENO: checking for $ac_func" >&5
45658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45659 if eval "test \"\${$as_ac_var+set}\" = set"; then
45660 echo $ECHO_N "(cached) $ECHO_C" >&6
45662 cat >conftest.$ac_ext <<_ACEOF
45665 cat confdefs.h >>conftest.$ac_ext
45666 cat >>conftest.$ac_ext <<_ACEOF
45667 /* end confdefs.h. */
45668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45670 #define $ac_func innocuous_$ac_func
45672 /* System header to define __stub macros and hopefully few prototypes,
45673 which can conflict with char $ac_func (); below.
45674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45675 <limits.h> exists even on freestanding compilers. */
45678 # include <limits.h>
45680 # include <assert.h>
45685 /* Override any gcc2 internal prototype to avoid an error. */
45690 /* We use char because int might match the return type of a gcc2
45691 builtin and then its argument prototype would still apply. */
45693 /* The GNU C library defines this for functions which it implements
45694 to always fail with ENOSYS. Some functions are actually named
45695 something starting with __ and the normal name is an alias. */
45696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45699 char (*f) () = $ac_func;
45708 return f != $ac_func;
45713 rm -f conftest.$ac_objext conftest$ac_exeext
45714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45715 (eval $ac_link) 2>conftest.er1
45717 grep -v '^ *+' conftest.er1 >conftest.err
45719 cat conftest.err >&5
45720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45721 (exit $ac_status); } &&
45722 { ac_try='test -z "$ac_c_werror_flag"
45723 || test ! -s conftest.err'
45724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45725 (eval $ac_try) 2>&5
45727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45728 (exit $ac_status); }; } &&
45729 { ac_try='test -s conftest$ac_exeext'
45730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45731 (eval $ac_try) 2>&5
45733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45734 (exit $ac_status); }; }; then
45735 eval "$as_ac_var=yes"
45737 echo "$as_me: failed program was:" >&5
45738 sed 's/^/| /' conftest.$ac_ext >&5
45740 eval "$as_ac_var=no"
45742 rm -f conftest.err conftest.$ac_objext \
45743 conftest$ac_exeext conftest.$ac_ext
45745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45747 if test `eval echo '${'$as_ac_var'}'` = yes; then
45748 cat >>confdefs.h <<_ACEOF
45749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45753 # strftime is in -lintl on SCO UNIX.
45754 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
45755 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
45756 if test "${ac_cv_lib_intl_strftime+set}" = set; then
45757 echo $ECHO_N "(cached) $ECHO_C" >&6
45759 ac_check_lib_save_LIBS=$LIBS
45760 LIBS="-lintl $LIBS"
45761 cat >conftest.$ac_ext <<_ACEOF
45764 cat confdefs.h >>conftest.$ac_ext
45765 cat >>conftest.$ac_ext <<_ACEOF
45766 /* end confdefs.h. */
45768 /* Override any gcc2 internal prototype to avoid an error. */
45772 /* We use char because int might match the return type of a gcc2
45773 builtin and then its argument prototype would still apply. */
45783 rm -f conftest.$ac_objext conftest$ac_exeext
45784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45785 (eval $ac_link) 2>conftest.er1
45787 grep -v '^ *+' conftest.er1 >conftest.err
45789 cat conftest.err >&5
45790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45791 (exit $ac_status); } &&
45792 { ac_try='test -z "$ac_c_werror_flag"
45793 || test ! -s conftest.err'
45794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45795 (eval $ac_try) 2>&5
45797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45798 (exit $ac_status); }; } &&
45799 { ac_try='test -s conftest$ac_exeext'
45800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45801 (eval $ac_try) 2>&5
45803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45804 (exit $ac_status); }; }; then
45805 ac_cv_lib_intl_strftime=yes
45807 echo "$as_me: failed program was:" >&5
45808 sed 's/^/| /' conftest.$ac_ext >&5
45810 ac_cv_lib_intl_strftime=no
45812 rm -f conftest.err conftest.$ac_objext \
45813 conftest$ac_exeext conftest.$ac_ext
45814 LIBS=$ac_check_lib_save_LIBS
45816 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
45817 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
45818 if test $ac_cv_lib_intl_strftime = yes; then
45819 cat >>confdefs.h <<\_ACEOF
45820 #define HAVE_STRFTIME 1
45823 LIBS="-lintl $LIBS"
45830 for ac_func in strftime
45832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45833 echo "$as_me:$LINENO: checking for $ac_func" >&5
45834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45835 if eval "test \"\${$as_ac_var+set}\" = set"; then
45836 echo $ECHO_N "(cached) $ECHO_C" >&6
45838 cat >conftest.$ac_ext <<_ACEOF
45841 cat confdefs.h >>conftest.$ac_ext
45842 cat >>conftest.$ac_ext <<_ACEOF
45843 /* end confdefs.h. */
45844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45846 #define $ac_func innocuous_$ac_func
45848 /* System header to define __stub macros and hopefully few prototypes,
45849 which can conflict with char $ac_func (); below.
45850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45851 <limits.h> exists even on freestanding compilers. */
45854 # include <limits.h>
45856 # include <assert.h>
45861 /* Override any gcc2 internal prototype to avoid an error. */
45866 /* We use char because int might match the return type of a gcc2
45867 builtin and then its argument prototype would still apply. */
45869 /* The GNU C library defines this for functions which it implements
45870 to always fail with ENOSYS. Some functions are actually named
45871 something starting with __ and the normal name is an alias. */
45872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45875 char (*f) () = $ac_func;
45884 return f != $ac_func;
45889 rm -f conftest.$ac_objext conftest$ac_exeext
45890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45891 (eval $ac_link) 2>conftest.er1
45893 grep -v '^ *+' conftest.er1 >conftest.err
45895 cat conftest.err >&5
45896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45897 (exit $ac_status); } &&
45898 { ac_try='test -z "$ac_c_werror_flag"
45899 || test ! -s conftest.err'
45900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45901 (eval $ac_try) 2>&5
45903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904 (exit $ac_status); }; } &&
45905 { ac_try='test -s conftest$ac_exeext'
45906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45907 (eval $ac_try) 2>&5
45909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45910 (exit $ac_status); }; }; then
45911 eval "$as_ac_var=yes"
45913 echo "$as_me: failed program was:" >&5
45914 sed 's/^/| /' conftest.$ac_ext >&5
45916 eval "$as_ac_var=no"
45918 rm -f conftest.err conftest.$ac_objext \
45919 conftest$ac_exeext conftest.$ac_ext
45921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45923 if test `eval echo '${'$as_ac_var'}'` = yes; then
45924 cat >>confdefs.h <<_ACEOF
45925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45930 "$ac_func.$ac_objext" | \
45931 *" $ac_func.$ac_objext" | \
45932 "$ac_func.$ac_objext "* | \
45933 *" $ac_func.$ac_objext "* ) ;;
45934 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45942 ice_have_strftime=no
45944 for ac_func in strftime
45946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45947 echo "$as_me:$LINENO: checking for $ac_func" >&5
45948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45949 if eval "test \"\${$as_ac_var+set}\" = set"; then
45950 echo $ECHO_N "(cached) $ECHO_C" >&6
45952 cat >conftest.$ac_ext <<_ACEOF
45955 cat confdefs.h >>conftest.$ac_ext
45956 cat >>conftest.$ac_ext <<_ACEOF
45957 /* end confdefs.h. */
45958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45960 #define $ac_func innocuous_$ac_func
45962 /* System header to define __stub macros and hopefully few prototypes,
45963 which can conflict with char $ac_func (); below.
45964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45965 <limits.h> exists even on freestanding compilers. */
45968 # include <limits.h>
45970 # include <assert.h>
45975 /* Override any gcc2 internal prototype to avoid an error. */
45980 /* We use char because int might match the return type of a gcc2
45981 builtin and then its argument prototype would still apply. */
45983 /* The GNU C library defines this for functions which it implements
45984 to always fail with ENOSYS. Some functions are actually named
45985 something starting with __ and the normal name is an alias. */
45986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45989 char (*f) () = $ac_func;
45998 return f != $ac_func;
46003 rm -f conftest.$ac_objext conftest$ac_exeext
46004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46005 (eval $ac_link) 2>conftest.er1
46007 grep -v '^ *+' conftest.er1 >conftest.err
46009 cat conftest.err >&5
46010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46011 (exit $ac_status); } &&
46012 { ac_try='test -z "$ac_c_werror_flag"
46013 || test ! -s conftest.err'
46014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46015 (eval $ac_try) 2>&5
46017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46018 (exit $ac_status); }; } &&
46019 { ac_try='test -s conftest$ac_exeext'
46020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46021 (eval $ac_try) 2>&5
46023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46024 (exit $ac_status); }; }; then
46025 eval "$as_ac_var=yes"
46027 echo "$as_me: failed program was:" >&5
46028 sed 's/^/| /' conftest.$ac_ext >&5
46030 eval "$as_ac_var=no"
46032 rm -f conftest.err conftest.$ac_objext \
46033 conftest$ac_exeext conftest.$ac_ext
46035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46037 if test `eval echo '${'$as_ac_var'}'` = yes; then
46038 cat >>confdefs.h <<_ACEOF
46039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46041 ice_have_strftime=yes
46045 if test "${ice_have_strftime}" = yes; then
46046 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
46047 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
46048 if test "${ice_cv_have_strftime_decl+set}" = set; then
46049 echo $ECHO_N "(cached) $ECHO_C" >&6
46052 ice_cv_have_strftime_decl=no
46053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46054 ice_re_word='(^|[^a-zA-Z0-9_])'
46055 for header in time.h sys/time.h; do
46056 # Check for ordinary declaration
46057 cat >conftest.$ac_ext <<_ACEOF
46060 cat confdefs.h >>conftest.$ac_ext
46061 cat >>conftest.$ac_ext <<_ACEOF
46062 /* end confdefs.h. */
46066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46067 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
46068 ice_cv_have_strftime_decl=yes
46072 if test "$ice_cv_have_strftime_decl" = yes; then
46075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46076 cat >conftest.$ac_ext <<_ACEOF
46079 cat confdefs.h >>conftest.$ac_ext
46080 cat >>conftest.$ac_ext <<_ACEOF
46081 /* end confdefs.h. */
46085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46086 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46087 ice_cv_have_strftime_decl=yes
46091 if test "$ice_cv_have_strftime_decl" = yes; then
46098 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
46099 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
46100 if test "$ice_cv_have_strftime_decl" = yes; then
46102 cat >>confdefs.h <<_ACEOF
46103 #define HAVE_STRFTIME_DECL 1
46110 for ac_func in strncasecmp
46112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46113 echo "$as_me:$LINENO: checking for $ac_func" >&5
46114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46115 if eval "test \"\${$as_ac_var+set}\" = set"; then
46116 echo $ECHO_N "(cached) $ECHO_C" >&6
46118 cat >conftest.$ac_ext <<_ACEOF
46121 cat confdefs.h >>conftest.$ac_ext
46122 cat >>conftest.$ac_ext <<_ACEOF
46123 /* end confdefs.h. */
46124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46126 #define $ac_func innocuous_$ac_func
46128 /* System header to define __stub macros and hopefully few prototypes,
46129 which can conflict with char $ac_func (); below.
46130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46131 <limits.h> exists even on freestanding compilers. */
46134 # include <limits.h>
46136 # include <assert.h>
46141 /* Override any gcc2 internal prototype to avoid an error. */
46146 /* We use char because int might match the return type of a gcc2
46147 builtin and then its argument prototype would still apply. */
46149 /* The GNU C library defines this for functions which it implements
46150 to always fail with ENOSYS. Some functions are actually named
46151 something starting with __ and the normal name is an alias. */
46152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46155 char (*f) () = $ac_func;
46164 return f != $ac_func;
46169 rm -f conftest.$ac_objext conftest$ac_exeext
46170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46171 (eval $ac_link) 2>conftest.er1
46173 grep -v '^ *+' conftest.er1 >conftest.err
46175 cat conftest.err >&5
46176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46177 (exit $ac_status); } &&
46178 { ac_try='test -z "$ac_c_werror_flag"
46179 || test ! -s conftest.err'
46180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46181 (eval $ac_try) 2>&5
46183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46184 (exit $ac_status); }; } &&
46185 { ac_try='test -s conftest$ac_exeext'
46186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46187 (eval $ac_try) 2>&5
46189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190 (exit $ac_status); }; }; then
46191 eval "$as_ac_var=yes"
46193 echo "$as_me: failed program was:" >&5
46194 sed 's/^/| /' conftest.$ac_ext >&5
46196 eval "$as_ac_var=no"
46198 rm -f conftest.err conftest.$ac_objext \
46199 conftest$ac_exeext conftest.$ac_ext
46201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46203 if test `eval echo '${'$as_ac_var'}'` = yes; then
46204 cat >>confdefs.h <<_ACEOF
46205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46210 "$ac_func.$ac_objext" | \
46211 *" $ac_func.$ac_objext" | \
46212 "$ac_func.$ac_objext "* | \
46213 *" $ac_func.$ac_objext "* ) ;;
46214 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46222 ice_have_strncasecmp=no
46224 for ac_func in strncasecmp
46226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46227 echo "$as_me:$LINENO: checking for $ac_func" >&5
46228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46229 if eval "test \"\${$as_ac_var+set}\" = set"; then
46230 echo $ECHO_N "(cached) $ECHO_C" >&6
46232 cat >conftest.$ac_ext <<_ACEOF
46235 cat confdefs.h >>conftest.$ac_ext
46236 cat >>conftest.$ac_ext <<_ACEOF
46237 /* end confdefs.h. */
46238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46240 #define $ac_func innocuous_$ac_func
46242 /* System header to define __stub macros and hopefully few prototypes,
46243 which can conflict with char $ac_func (); below.
46244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46245 <limits.h> exists even on freestanding compilers. */
46248 # include <limits.h>
46250 # include <assert.h>
46255 /* Override any gcc2 internal prototype to avoid an error. */
46260 /* We use char because int might match the return type of a gcc2
46261 builtin and then its argument prototype would still apply. */
46263 /* The GNU C library defines this for functions which it implements
46264 to always fail with ENOSYS. Some functions are actually named
46265 something starting with __ and the normal name is an alias. */
46266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46269 char (*f) () = $ac_func;
46278 return f != $ac_func;
46283 rm -f conftest.$ac_objext conftest$ac_exeext
46284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46285 (eval $ac_link) 2>conftest.er1
46287 grep -v '^ *+' conftest.er1 >conftest.err
46289 cat conftest.err >&5
46290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46291 (exit $ac_status); } &&
46292 { ac_try='test -z "$ac_c_werror_flag"
46293 || test ! -s conftest.err'
46294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46295 (eval $ac_try) 2>&5
46297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298 (exit $ac_status); }; } &&
46299 { ac_try='test -s conftest$ac_exeext'
46300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46301 (eval $ac_try) 2>&5
46303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304 (exit $ac_status); }; }; then
46305 eval "$as_ac_var=yes"
46307 echo "$as_me: failed program was:" >&5
46308 sed 's/^/| /' conftest.$ac_ext >&5
46310 eval "$as_ac_var=no"
46312 rm -f conftest.err conftest.$ac_objext \
46313 conftest$ac_exeext conftest.$ac_ext
46315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46317 if test `eval echo '${'$as_ac_var'}'` = yes; then
46318 cat >>confdefs.h <<_ACEOF
46319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46321 ice_have_strncasecmp=yes
46325 if test "${ice_have_strncasecmp}" = yes; then
46326 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
46327 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
46328 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
46329 echo $ECHO_N "(cached) $ECHO_C" >&6
46332 ice_cv_have_strncasecmp_decl=no
46333 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46334 ice_re_word='(^|[^a-zA-Z0-9_])'
46335 for header in string.h strings.h; do
46336 # Check for ordinary declaration
46337 cat >conftest.$ac_ext <<_ACEOF
46340 cat confdefs.h >>conftest.$ac_ext
46341 cat >>conftest.$ac_ext <<_ACEOF
46342 /* end confdefs.h. */
46346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46347 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
46348 ice_cv_have_strncasecmp_decl=yes
46352 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46355 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46356 cat >conftest.$ac_ext <<_ACEOF
46359 cat confdefs.h >>conftest.$ac_ext
46360 cat >>conftest.$ac_ext <<_ACEOF
46361 /* end confdefs.h. */
46365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46366 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46367 ice_cv_have_strncasecmp_decl=yes
46371 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46378 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
46379 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
46380 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46382 cat >>confdefs.h <<_ACEOF
46383 #define HAVE_STRNCASECMP_DECL 1
46390 for ac_func in strstr
46392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46393 echo "$as_me:$LINENO: checking for $ac_func" >&5
46394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46395 if eval "test \"\${$as_ac_var+set}\" = set"; then
46396 echo $ECHO_N "(cached) $ECHO_C" >&6
46398 cat >conftest.$ac_ext <<_ACEOF
46401 cat confdefs.h >>conftest.$ac_ext
46402 cat >>conftest.$ac_ext <<_ACEOF
46403 /* end confdefs.h. */
46404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46406 #define $ac_func innocuous_$ac_func
46408 /* System header to define __stub macros and hopefully few prototypes,
46409 which can conflict with char $ac_func (); below.
46410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46411 <limits.h> exists even on freestanding compilers. */
46414 # include <limits.h>
46416 # include <assert.h>
46421 /* Override any gcc2 internal prototype to avoid an error. */
46426 /* We use char because int might match the return type of a gcc2
46427 builtin and then its argument prototype would still apply. */
46429 /* The GNU C library defines this for functions which it implements
46430 to always fail with ENOSYS. Some functions are actually named
46431 something starting with __ and the normal name is an alias. */
46432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46435 char (*f) () = $ac_func;
46444 return f != $ac_func;
46449 rm -f conftest.$ac_objext conftest$ac_exeext
46450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46451 (eval $ac_link) 2>conftest.er1
46453 grep -v '^ *+' conftest.er1 >conftest.err
46455 cat conftest.err >&5
46456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46457 (exit $ac_status); } &&
46458 { ac_try='test -z "$ac_c_werror_flag"
46459 || test ! -s conftest.err'
46460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46461 (eval $ac_try) 2>&5
46463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46464 (exit $ac_status); }; } &&
46465 { ac_try='test -s conftest$ac_exeext'
46466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46467 (eval $ac_try) 2>&5
46469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46470 (exit $ac_status); }; }; then
46471 eval "$as_ac_var=yes"
46473 echo "$as_me: failed program was:" >&5
46474 sed 's/^/| /' conftest.$ac_ext >&5
46476 eval "$as_ac_var=no"
46478 rm -f conftest.err conftest.$ac_objext \
46479 conftest$ac_exeext conftest.$ac_ext
46481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46483 if test `eval echo '${'$as_ac_var'}'` = yes; then
46484 cat >>confdefs.h <<_ACEOF
46485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46490 "$ac_func.$ac_objext" | \
46491 *" $ac_func.$ac_objext" | \
46492 "$ac_func.$ac_objext "* | \
46493 *" $ac_func.$ac_objext "* ) ;;
46494 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46504 for ac_func in syslog
46506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46507 echo "$as_me:$LINENO: checking for $ac_func" >&5
46508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46509 if eval "test \"\${$as_ac_var+set}\" = set"; then
46510 echo $ECHO_N "(cached) $ECHO_C" >&6
46512 cat >conftest.$ac_ext <<_ACEOF
46515 cat confdefs.h >>conftest.$ac_ext
46516 cat >>conftest.$ac_ext <<_ACEOF
46517 /* end confdefs.h. */
46518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46520 #define $ac_func innocuous_$ac_func
46522 /* System header to define __stub macros and hopefully few prototypes,
46523 which can conflict with char $ac_func (); below.
46524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46525 <limits.h> exists even on freestanding compilers. */
46528 # include <limits.h>
46530 # include <assert.h>
46535 /* Override any gcc2 internal prototype to avoid an error. */
46540 /* We use char because int might match the return type of a gcc2
46541 builtin and then its argument prototype would still apply. */
46543 /* The GNU C library defines this for functions which it implements
46544 to always fail with ENOSYS. Some functions are actually named
46545 something starting with __ and the normal name is an alias. */
46546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46549 char (*f) () = $ac_func;
46558 return f != $ac_func;
46563 rm -f conftest.$ac_objext conftest$ac_exeext
46564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46565 (eval $ac_link) 2>conftest.er1
46567 grep -v '^ *+' conftest.er1 >conftest.err
46569 cat conftest.err >&5
46570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46571 (exit $ac_status); } &&
46572 { ac_try='test -z "$ac_c_werror_flag"
46573 || test ! -s conftest.err'
46574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46575 (eval $ac_try) 2>&5
46577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46578 (exit $ac_status); }; } &&
46579 { ac_try='test -s conftest$ac_exeext'
46580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46581 (eval $ac_try) 2>&5
46583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46584 (exit $ac_status); }; }; then
46585 eval "$as_ac_var=yes"
46587 echo "$as_me: failed program was:" >&5
46588 sed 's/^/| /' conftest.$ac_ext >&5
46590 eval "$as_ac_var=no"
46592 rm -f conftest.err conftest.$ac_objext \
46593 conftest$ac_exeext conftest.$ac_ext
46595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46597 if test `eval echo '${'$as_ac_var'}'` = yes; then
46598 cat >>confdefs.h <<_ACEOF
46599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46601 ice_have_syslog=yes
46605 if test "${ice_have_syslog}" = yes; then
46606 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
46607 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
46608 if test "${ice_cv_have_syslog_decl+set}" = set; then
46609 echo $ECHO_N "(cached) $ECHO_C" >&6
46612 ice_cv_have_syslog_decl=no
46613 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46614 ice_re_word='(^|[^a-zA-Z0-9_])'
46615 for header in syslog.h; do
46616 # Check for ordinary declaration
46617 cat >conftest.$ac_ext <<_ACEOF
46620 cat confdefs.h >>conftest.$ac_ext
46621 cat >>conftest.$ac_ext <<_ACEOF
46622 /* end confdefs.h. */
46626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46627 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
46628 ice_cv_have_syslog_decl=yes
46632 if test "$ice_cv_have_syslog_decl" = yes; then
46635 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46636 cat >conftest.$ac_ext <<_ACEOF
46639 cat confdefs.h >>conftest.$ac_ext
46640 cat >>conftest.$ac_ext <<_ACEOF
46641 /* end confdefs.h. */
46645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46646 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46647 ice_cv_have_syslog_decl=yes
46651 if test "$ice_cv_have_syslog_decl" = yes; then
46658 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
46659 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
46660 if test "$ice_cv_have_syslog_decl" = yes; then
46662 cat >>confdefs.h <<_ACEOF
46663 #define HAVE_SYSLOG_DECL 1
46672 for ac_func in system
46674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46675 echo "$as_me:$LINENO: checking for $ac_func" >&5
46676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46677 if eval "test \"\${$as_ac_var+set}\" = set"; then
46678 echo $ECHO_N "(cached) $ECHO_C" >&6
46680 cat >conftest.$ac_ext <<_ACEOF
46683 cat confdefs.h >>conftest.$ac_ext
46684 cat >>conftest.$ac_ext <<_ACEOF
46685 /* end confdefs.h. */
46686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46688 #define $ac_func innocuous_$ac_func
46690 /* System header to define __stub macros and hopefully few prototypes,
46691 which can conflict with char $ac_func (); below.
46692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46693 <limits.h> exists even on freestanding compilers. */
46696 # include <limits.h>
46698 # include <assert.h>
46703 /* Override any gcc2 internal prototype to avoid an error. */
46708 /* We use char because int might match the return type of a gcc2
46709 builtin and then its argument prototype would still apply. */
46711 /* The GNU C library defines this for functions which it implements
46712 to always fail with ENOSYS. Some functions are actually named
46713 something starting with __ and the normal name is an alias. */
46714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46717 char (*f) () = $ac_func;
46726 return f != $ac_func;
46731 rm -f conftest.$ac_objext conftest$ac_exeext
46732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46733 (eval $ac_link) 2>conftest.er1
46735 grep -v '^ *+' conftest.er1 >conftest.err
46737 cat conftest.err >&5
46738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46739 (exit $ac_status); } &&
46740 { ac_try='test -z "$ac_c_werror_flag"
46741 || test ! -s conftest.err'
46742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46743 (eval $ac_try) 2>&5
46745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46746 (exit $ac_status); }; } &&
46747 { ac_try='test -s conftest$ac_exeext'
46748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46749 (eval $ac_try) 2>&5
46751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46752 (exit $ac_status); }; }; then
46753 eval "$as_ac_var=yes"
46755 echo "$as_me: failed program was:" >&5
46756 sed 's/^/| /' conftest.$ac_ext >&5
46758 eval "$as_ac_var=no"
46760 rm -f conftest.err conftest.$ac_objext \
46761 conftest$ac_exeext conftest.$ac_ext
46763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46765 if test `eval echo '${'$as_ac_var'}'` = yes; then
46766 cat >>confdefs.h <<_ACEOF
46767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46769 ice_have_system=yes
46773 if test "${ice_have_system}" = yes; then
46774 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
46775 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
46776 if test "${ice_cv_have_system_decl+set}" = set; then
46777 echo $ECHO_N "(cached) $ECHO_C" >&6
46780 ice_cv_have_system_decl=no
46781 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46782 ice_re_word='(^|[^a-zA-Z0-9_])'
46783 for header in stdlib.h; do
46784 # Check for ordinary declaration
46785 cat >conftest.$ac_ext <<_ACEOF
46788 cat confdefs.h >>conftest.$ac_ext
46789 cat >>conftest.$ac_ext <<_ACEOF
46790 /* end confdefs.h. */
46794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46795 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
46796 ice_cv_have_system_decl=yes
46800 if test "$ice_cv_have_system_decl" = yes; then
46803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46804 cat >conftest.$ac_ext <<_ACEOF
46807 cat confdefs.h >>conftest.$ac_ext
46808 cat >>conftest.$ac_ext <<_ACEOF
46809 /* end confdefs.h. */
46813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46814 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46815 ice_cv_have_system_decl=yes
46819 if test "$ice_cv_have_system_decl" = yes; then
46826 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
46827 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
46828 if test "$ice_cv_have_system_decl" = yes; then
46830 cat >>confdefs.h <<_ACEOF
46831 #define HAVE_SYSTEM_DECL 1
46840 for ac_func in time
46842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46843 echo "$as_me:$LINENO: checking for $ac_func" >&5
46844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46845 if eval "test \"\${$as_ac_var+set}\" = set"; then
46846 echo $ECHO_N "(cached) $ECHO_C" >&6
46848 cat >conftest.$ac_ext <<_ACEOF
46851 cat confdefs.h >>conftest.$ac_ext
46852 cat >>conftest.$ac_ext <<_ACEOF
46853 /* end confdefs.h. */
46854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46856 #define $ac_func innocuous_$ac_func
46858 /* System header to define __stub macros and hopefully few prototypes,
46859 which can conflict with char $ac_func (); below.
46860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46861 <limits.h> exists even on freestanding compilers. */
46864 # include <limits.h>
46866 # include <assert.h>
46871 /* Override any gcc2 internal prototype to avoid an error. */
46876 /* We use char because int might match the return type of a gcc2
46877 builtin and then its argument prototype would still apply. */
46879 /* The GNU C library defines this for functions which it implements
46880 to always fail with ENOSYS. Some functions are actually named
46881 something starting with __ and the normal name is an alias. */
46882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46885 char (*f) () = $ac_func;
46894 return f != $ac_func;
46899 rm -f conftest.$ac_objext conftest$ac_exeext
46900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46901 (eval $ac_link) 2>conftest.er1
46903 grep -v '^ *+' conftest.er1 >conftest.err
46905 cat conftest.err >&5
46906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46907 (exit $ac_status); } &&
46908 { ac_try='test -z "$ac_c_werror_flag"
46909 || test ! -s conftest.err'
46910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46911 (eval $ac_try) 2>&5
46913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46914 (exit $ac_status); }; } &&
46915 { ac_try='test -s conftest$ac_exeext'
46916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46917 (eval $ac_try) 2>&5
46919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46920 (exit $ac_status); }; }; then
46921 eval "$as_ac_var=yes"
46923 echo "$as_me: failed program was:" >&5
46924 sed 's/^/| /' conftest.$ac_ext >&5
46926 eval "$as_ac_var=no"
46928 rm -f conftest.err conftest.$ac_objext \
46929 conftest$ac_exeext conftest.$ac_ext
46931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46933 if test `eval echo '${'$as_ac_var'}'` = yes; then
46934 cat >>confdefs.h <<_ACEOF
46935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46941 if test "${ice_have_time}" = yes; then
46942 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
46943 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
46944 if test "${ice_cv_have_time_decl+set}" = set; then
46945 echo $ECHO_N "(cached) $ECHO_C" >&6
46948 ice_cv_have_time_decl=no
46949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46950 ice_re_word='(^|[^a-zA-Z0-9_])'
46951 for header in time.h sys/time.h; do
46952 # Check for ordinary declaration
46953 cat >conftest.$ac_ext <<_ACEOF
46956 cat confdefs.h >>conftest.$ac_ext
46957 cat >>conftest.$ac_ext <<_ACEOF
46958 /* end confdefs.h. */
46962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46963 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
46964 ice_cv_have_time_decl=yes
46968 if test "$ice_cv_have_time_decl" = yes; then
46971 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46972 cat >conftest.$ac_ext <<_ACEOF
46975 cat confdefs.h >>conftest.$ac_ext
46976 cat >>conftest.$ac_ext <<_ACEOF
46977 /* end confdefs.h. */
46981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46982 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46983 ice_cv_have_time_decl=yes
46987 if test "$ice_cv_have_time_decl" = yes; then
46994 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
46995 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
46996 if test "$ice_cv_have_time_decl" = yes; then
46998 cat >>confdefs.h <<_ACEOF
46999 #define HAVE_TIME_DECL 1
47006 ice_have_tolower=no
47008 for ac_func in tolower
47010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47011 echo "$as_me:$LINENO: checking for $ac_func" >&5
47012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47013 if eval "test \"\${$as_ac_var+set}\" = set"; then
47014 echo $ECHO_N "(cached) $ECHO_C" >&6
47016 cat >conftest.$ac_ext <<_ACEOF
47019 cat confdefs.h >>conftest.$ac_ext
47020 cat >>conftest.$ac_ext <<_ACEOF
47021 /* end confdefs.h. */
47022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47024 #define $ac_func innocuous_$ac_func
47026 /* System header to define __stub macros and hopefully few prototypes,
47027 which can conflict with char $ac_func (); below.
47028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47029 <limits.h> exists even on freestanding compilers. */
47032 # include <limits.h>
47034 # include <assert.h>
47039 /* Override any gcc2 internal prototype to avoid an error. */
47044 /* We use char because int might match the return type of a gcc2
47045 builtin and then its argument prototype would still apply. */
47047 /* The GNU C library defines this for functions which it implements
47048 to always fail with ENOSYS. Some functions are actually named
47049 something starting with __ and the normal name is an alias. */
47050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47053 char (*f) () = $ac_func;
47062 return f != $ac_func;
47067 rm -f conftest.$ac_objext conftest$ac_exeext
47068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47069 (eval $ac_link) 2>conftest.er1
47071 grep -v '^ *+' conftest.er1 >conftest.err
47073 cat conftest.err >&5
47074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47075 (exit $ac_status); } &&
47076 { ac_try='test -z "$ac_c_werror_flag"
47077 || test ! -s conftest.err'
47078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47079 (eval $ac_try) 2>&5
47081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47082 (exit $ac_status); }; } &&
47083 { ac_try='test -s conftest$ac_exeext'
47084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47085 (eval $ac_try) 2>&5
47087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47088 (exit $ac_status); }; }; then
47089 eval "$as_ac_var=yes"
47091 echo "$as_me: failed program was:" >&5
47092 sed 's/^/| /' conftest.$ac_ext >&5
47094 eval "$as_ac_var=no"
47096 rm -f conftest.err conftest.$ac_objext \
47097 conftest$ac_exeext conftest.$ac_ext
47099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47101 if test `eval echo '${'$as_ac_var'}'` = yes; then
47102 cat >>confdefs.h <<_ACEOF
47103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47105 ice_have_tolower=yes
47109 if test "${ice_have_tolower}" = yes; then
47110 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
47111 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
47112 if test "${ice_cv_have_tolower_decl+set}" = set; then
47113 echo $ECHO_N "(cached) $ECHO_C" >&6
47116 ice_cv_have_tolower_decl=no
47117 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47118 ice_re_word='(^|[^a-zA-Z0-9_])'
47119 for header in ctype.h; do
47120 # Check for ordinary declaration
47121 cat >conftest.$ac_ext <<_ACEOF
47124 cat confdefs.h >>conftest.$ac_ext
47125 cat >>conftest.$ac_ext <<_ACEOF
47126 /* end confdefs.h. */
47130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47131 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
47132 ice_cv_have_tolower_decl=yes
47136 if test "$ice_cv_have_tolower_decl" = yes; then
47139 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47140 cat >conftest.$ac_ext <<_ACEOF
47143 cat confdefs.h >>conftest.$ac_ext
47144 cat >>conftest.$ac_ext <<_ACEOF
47145 /* end confdefs.h. */
47149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47150 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47151 ice_cv_have_tolower_decl=yes
47155 if test "$ice_cv_have_tolower_decl" = yes; then
47162 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
47163 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
47164 if test "$ice_cv_have_tolower_decl" = yes; then
47166 cat >>confdefs.h <<_ACEOF
47167 #define HAVE_TOLOWER_DECL 1
47174 ice_have_toupper=no
47176 for ac_func in toupper
47178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47179 echo "$as_me:$LINENO: checking for $ac_func" >&5
47180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47181 if eval "test \"\${$as_ac_var+set}\" = set"; then
47182 echo $ECHO_N "(cached) $ECHO_C" >&6
47184 cat >conftest.$ac_ext <<_ACEOF
47187 cat confdefs.h >>conftest.$ac_ext
47188 cat >>conftest.$ac_ext <<_ACEOF
47189 /* end confdefs.h. */
47190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47192 #define $ac_func innocuous_$ac_func
47194 /* System header to define __stub macros and hopefully few prototypes,
47195 which can conflict with char $ac_func (); below.
47196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47197 <limits.h> exists even on freestanding compilers. */
47200 # include <limits.h>
47202 # include <assert.h>
47207 /* Override any gcc2 internal prototype to avoid an error. */
47212 /* We use char because int might match the return type of a gcc2
47213 builtin and then its argument prototype would still apply. */
47215 /* The GNU C library defines this for functions which it implements
47216 to always fail with ENOSYS. Some functions are actually named
47217 something starting with __ and the normal name is an alias. */
47218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47221 char (*f) () = $ac_func;
47230 return f != $ac_func;
47235 rm -f conftest.$ac_objext conftest$ac_exeext
47236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47237 (eval $ac_link) 2>conftest.er1
47239 grep -v '^ *+' conftest.er1 >conftest.err
47241 cat conftest.err >&5
47242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47243 (exit $ac_status); } &&
47244 { ac_try='test -z "$ac_c_werror_flag"
47245 || test ! -s conftest.err'
47246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47247 (eval $ac_try) 2>&5
47249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47250 (exit $ac_status); }; } &&
47251 { ac_try='test -s conftest$ac_exeext'
47252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47253 (eval $ac_try) 2>&5
47255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47256 (exit $ac_status); }; }; then
47257 eval "$as_ac_var=yes"
47259 echo "$as_me: failed program was:" >&5
47260 sed 's/^/| /' conftest.$ac_ext >&5
47262 eval "$as_ac_var=no"
47264 rm -f conftest.err conftest.$ac_objext \
47265 conftest$ac_exeext conftest.$ac_ext
47267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47269 if test `eval echo '${'$as_ac_var'}'` = yes; then
47270 cat >>confdefs.h <<_ACEOF
47271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47273 ice_have_toupper=yes
47277 if test "${ice_have_toupper}" = yes; then
47278 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
47279 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
47280 if test "${ice_cv_have_toupper_decl+set}" = set; then
47281 echo $ECHO_N "(cached) $ECHO_C" >&6
47284 ice_cv_have_toupper_decl=no
47285 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47286 ice_re_word='(^|[^a-zA-Z0-9_])'
47287 for header in ctype.h; do
47288 # Check for ordinary declaration
47289 cat >conftest.$ac_ext <<_ACEOF
47292 cat confdefs.h >>conftest.$ac_ext
47293 cat >>conftest.$ac_ext <<_ACEOF
47294 /* end confdefs.h. */
47298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47299 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
47300 ice_cv_have_toupper_decl=yes
47304 if test "$ice_cv_have_toupper_decl" = yes; then
47307 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47308 cat >conftest.$ac_ext <<_ACEOF
47311 cat confdefs.h >>conftest.$ac_ext
47312 cat >>conftest.$ac_ext <<_ACEOF
47313 /* end confdefs.h. */
47317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47318 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47319 ice_cv_have_toupper_decl=yes
47323 if test "$ice_cv_have_toupper_decl" = yes; then
47330 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
47331 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
47332 if test "$ice_cv_have_toupper_decl" = yes; then
47334 cat >>confdefs.h <<_ACEOF
47335 #define HAVE_TOUPPER_DECL 1
47344 for ac_func in ungetc
47346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47347 echo "$as_me:$LINENO: checking for $ac_func" >&5
47348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47349 if eval "test \"\${$as_ac_var+set}\" = set"; then
47350 echo $ECHO_N "(cached) $ECHO_C" >&6
47352 cat >conftest.$ac_ext <<_ACEOF
47355 cat confdefs.h >>conftest.$ac_ext
47356 cat >>conftest.$ac_ext <<_ACEOF
47357 /* end confdefs.h. */
47358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47360 #define $ac_func innocuous_$ac_func
47362 /* System header to define __stub macros and hopefully few prototypes,
47363 which can conflict with char $ac_func (); below.
47364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47365 <limits.h> exists even on freestanding compilers. */
47368 # include <limits.h>
47370 # include <assert.h>
47375 /* Override any gcc2 internal prototype to avoid an error. */
47380 /* We use char because int might match the return type of a gcc2
47381 builtin and then its argument prototype would still apply. */
47383 /* The GNU C library defines this for functions which it implements
47384 to always fail with ENOSYS. Some functions are actually named
47385 something starting with __ and the normal name is an alias. */
47386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47389 char (*f) () = $ac_func;
47398 return f != $ac_func;
47403 rm -f conftest.$ac_objext conftest$ac_exeext
47404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47405 (eval $ac_link) 2>conftest.er1
47407 grep -v '^ *+' conftest.er1 >conftest.err
47409 cat conftest.err >&5
47410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411 (exit $ac_status); } &&
47412 { ac_try='test -z "$ac_c_werror_flag"
47413 || test ! -s conftest.err'
47414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47415 (eval $ac_try) 2>&5
47417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47418 (exit $ac_status); }; } &&
47419 { ac_try='test -s conftest$ac_exeext'
47420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47421 (eval $ac_try) 2>&5
47423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47424 (exit $ac_status); }; }; then
47425 eval "$as_ac_var=yes"
47427 echo "$as_me: failed program was:" >&5
47428 sed 's/^/| /' conftest.$ac_ext >&5
47430 eval "$as_ac_var=no"
47432 rm -f conftest.err conftest.$ac_objext \
47433 conftest$ac_exeext conftest.$ac_ext
47435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47437 if test `eval echo '${'$as_ac_var'}'` = yes; then
47438 cat >>confdefs.h <<_ACEOF
47439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47441 ice_have_ungetc=yes
47445 if test "${ice_have_ungetc}" = yes; then
47446 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
47447 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
47448 if test "${ice_cv_have_ungetc_decl+set}" = set; then
47449 echo $ECHO_N "(cached) $ECHO_C" >&6
47452 ice_cv_have_ungetc_decl=no
47453 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47454 ice_re_word='(^|[^a-zA-Z0-9_])'
47455 for header in stdio.h; do
47456 # Check for ordinary declaration
47457 cat >conftest.$ac_ext <<_ACEOF
47460 cat confdefs.h >>conftest.$ac_ext
47461 cat >>conftest.$ac_ext <<_ACEOF
47462 /* end confdefs.h. */
47466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47467 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
47468 ice_cv_have_ungetc_decl=yes
47472 if test "$ice_cv_have_ungetc_decl" = yes; then
47475 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47476 cat >conftest.$ac_ext <<_ACEOF
47479 cat confdefs.h >>conftest.$ac_ext
47480 cat >>conftest.$ac_ext <<_ACEOF
47481 /* end confdefs.h. */
47485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47486 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47487 ice_cv_have_ungetc_decl=yes
47491 if test "$ice_cv_have_ungetc_decl" = yes; then
47498 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
47499 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
47500 if test "$ice_cv_have_ungetc_decl" = yes; then
47502 cat >>confdefs.h <<_ACEOF
47503 #define HAVE_UNGETC_DECL 1
47510 for ac_func in vprintf
47512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47513 echo "$as_me:$LINENO: checking for $ac_func" >&5
47514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47515 if eval "test \"\${$as_ac_var+set}\" = set"; then
47516 echo $ECHO_N "(cached) $ECHO_C" >&6
47518 cat >conftest.$ac_ext <<_ACEOF
47521 cat confdefs.h >>conftest.$ac_ext
47522 cat >>conftest.$ac_ext <<_ACEOF
47523 /* end confdefs.h. */
47524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47526 #define $ac_func innocuous_$ac_func
47528 /* System header to define __stub macros and hopefully few prototypes,
47529 which can conflict with char $ac_func (); below.
47530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47531 <limits.h> exists even on freestanding compilers. */
47534 # include <limits.h>
47536 # include <assert.h>
47541 /* Override any gcc2 internal prototype to avoid an error. */
47546 /* We use char because int might match the return type of a gcc2
47547 builtin and then its argument prototype would still apply. */
47549 /* The GNU C library defines this for functions which it implements
47550 to always fail with ENOSYS. Some functions are actually named
47551 something starting with __ and the normal name is an alias. */
47552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47555 char (*f) () = $ac_func;
47564 return f != $ac_func;
47569 rm -f conftest.$ac_objext conftest$ac_exeext
47570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47571 (eval $ac_link) 2>conftest.er1
47573 grep -v '^ *+' conftest.er1 >conftest.err
47575 cat conftest.err >&5
47576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47577 (exit $ac_status); } &&
47578 { ac_try='test -z "$ac_c_werror_flag"
47579 || test ! -s conftest.err'
47580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47581 (eval $ac_try) 2>&5
47583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47584 (exit $ac_status); }; } &&
47585 { ac_try='test -s conftest$ac_exeext'
47586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47587 (eval $ac_try) 2>&5
47589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47590 (exit $ac_status); }; }; then
47591 eval "$as_ac_var=yes"
47593 echo "$as_me: failed program was:" >&5
47594 sed 's/^/| /' conftest.$ac_ext >&5
47596 eval "$as_ac_var=no"
47598 rm -f conftest.err conftest.$ac_objext \
47599 conftest$ac_exeext conftest.$ac_ext
47601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47603 if test `eval echo '${'$as_ac_var'}'` = yes; then
47604 cat >>confdefs.h <<_ACEOF
47605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47608 echo "$as_me:$LINENO: checking for _doprnt" >&5
47609 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
47610 if test "${ac_cv_func__doprnt+set}" = set; then
47611 echo $ECHO_N "(cached) $ECHO_C" >&6
47613 cat >conftest.$ac_ext <<_ACEOF
47616 cat confdefs.h >>conftest.$ac_ext
47617 cat >>conftest.$ac_ext <<_ACEOF
47618 /* end confdefs.h. */
47619 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
47620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47621 #define _doprnt innocuous__doprnt
47623 /* System header to define __stub macros and hopefully few prototypes,
47624 which can conflict with char _doprnt (); below.
47625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47626 <limits.h> exists even on freestanding compilers. */
47629 # include <limits.h>
47631 # include <assert.h>
47636 /* Override any gcc2 internal prototype to avoid an error. */
47641 /* We use char because int might match the return type of a gcc2
47642 builtin and then its argument prototype would still apply. */
47644 /* The GNU C library defines this for functions which it implements
47645 to always fail with ENOSYS. Some functions are actually named
47646 something starting with __ and the normal name is an alias. */
47647 #if defined (__stub__doprnt) || defined (__stub____doprnt)
47650 char (*f) () = _doprnt;
47659 return f != _doprnt;
47664 rm -f conftest.$ac_objext conftest$ac_exeext
47665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47666 (eval $ac_link) 2>conftest.er1
47668 grep -v '^ *+' conftest.er1 >conftest.err
47670 cat conftest.err >&5
47671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47672 (exit $ac_status); } &&
47673 { ac_try='test -z "$ac_c_werror_flag"
47674 || test ! -s conftest.err'
47675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47676 (eval $ac_try) 2>&5
47678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47679 (exit $ac_status); }; } &&
47680 { ac_try='test -s conftest$ac_exeext'
47681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47682 (eval $ac_try) 2>&5
47684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47685 (exit $ac_status); }; }; then
47686 ac_cv_func__doprnt=yes
47688 echo "$as_me: failed program was:" >&5
47689 sed 's/^/| /' conftest.$ac_ext >&5
47691 ac_cv_func__doprnt=no
47693 rm -f conftest.err conftest.$ac_objext \
47694 conftest$ac_exeext conftest.$ac_ext
47696 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
47697 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
47698 if test $ac_cv_func__doprnt = yes; then
47700 cat >>confdefs.h <<\_ACEOF
47701 #define HAVE_DOPRNT 1
47711 ice_have_vfprintf=no
47713 for ac_func in vfprintf
47715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47716 echo "$as_me:$LINENO: checking for $ac_func" >&5
47717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47718 if eval "test \"\${$as_ac_var+set}\" = set"; then
47719 echo $ECHO_N "(cached) $ECHO_C" >&6
47721 cat >conftest.$ac_ext <<_ACEOF
47724 cat confdefs.h >>conftest.$ac_ext
47725 cat >>conftest.$ac_ext <<_ACEOF
47726 /* end confdefs.h. */
47727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47729 #define $ac_func innocuous_$ac_func
47731 /* System header to define __stub macros and hopefully few prototypes,
47732 which can conflict with char $ac_func (); below.
47733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47734 <limits.h> exists even on freestanding compilers. */
47737 # include <limits.h>
47739 # include <assert.h>
47744 /* Override any gcc2 internal prototype to avoid an error. */
47749 /* We use char because int might match the return type of a gcc2
47750 builtin and then its argument prototype would still apply. */
47752 /* The GNU C library defines this for functions which it implements
47753 to always fail with ENOSYS. Some functions are actually named
47754 something starting with __ and the normal name is an alias. */
47755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47758 char (*f) () = $ac_func;
47767 return f != $ac_func;
47772 rm -f conftest.$ac_objext conftest$ac_exeext
47773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47774 (eval $ac_link) 2>conftest.er1
47776 grep -v '^ *+' conftest.er1 >conftest.err
47778 cat conftest.err >&5
47779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47780 (exit $ac_status); } &&
47781 { ac_try='test -z "$ac_c_werror_flag"
47782 || test ! -s conftest.err'
47783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47784 (eval $ac_try) 2>&5
47786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787 (exit $ac_status); }; } &&
47788 { ac_try='test -s conftest$ac_exeext'
47789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47790 (eval $ac_try) 2>&5
47792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47793 (exit $ac_status); }; }; then
47794 eval "$as_ac_var=yes"
47796 echo "$as_me: failed program was:" >&5
47797 sed 's/^/| /' conftest.$ac_ext >&5
47799 eval "$as_ac_var=no"
47801 rm -f conftest.err conftest.$ac_objext \
47802 conftest$ac_exeext conftest.$ac_ext
47804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47806 if test `eval echo '${'$as_ac_var'}'` = yes; then
47807 cat >>confdefs.h <<_ACEOF
47808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47810 ice_have_vfprintf=yes
47814 if test "${ice_have_vfprintf}" = yes; then
47815 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
47816 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47817 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
47818 echo $ECHO_N "(cached) $ECHO_C" >&6
47821 ice_cv_have_vfprintf_decl=no
47822 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47823 ice_re_word='(^|[^a-zA-Z0-9_])'
47824 for header in stdio.h stdlib.h; do
47825 # Check for ordinary declaration
47826 cat >conftest.$ac_ext <<_ACEOF
47829 cat confdefs.h >>conftest.$ac_ext
47830 cat >>conftest.$ac_ext <<_ACEOF
47831 /* end confdefs.h. */
47835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47836 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
47837 ice_cv_have_vfprintf_decl=yes
47841 if test "$ice_cv_have_vfprintf_decl" = yes; then
47844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47845 cat >conftest.$ac_ext <<_ACEOF
47848 cat confdefs.h >>conftest.$ac_ext
47849 cat >>conftest.$ac_ext <<_ACEOF
47850 /* end confdefs.h. */
47854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47855 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47856 ice_cv_have_vfprintf_decl=yes
47860 if test "$ice_cv_have_vfprintf_decl" = yes; then
47867 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
47868 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
47869 if test "$ice_cv_have_vfprintf_decl" = yes; then
47871 cat >>confdefs.h <<_ACEOF
47872 #define HAVE_VFPRINTF_DECL 1
47879 ice_have_vprintf=no
47881 for ac_func in vprintf
47883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47884 echo "$as_me:$LINENO: checking for $ac_func" >&5
47885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47886 if eval "test \"\${$as_ac_var+set}\" = set"; then
47887 echo $ECHO_N "(cached) $ECHO_C" >&6
47889 cat >conftest.$ac_ext <<_ACEOF
47892 cat confdefs.h >>conftest.$ac_ext
47893 cat >>conftest.$ac_ext <<_ACEOF
47894 /* end confdefs.h. */
47895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47897 #define $ac_func innocuous_$ac_func
47899 /* System header to define __stub macros and hopefully few prototypes,
47900 which can conflict with char $ac_func (); below.
47901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47902 <limits.h> exists even on freestanding compilers. */
47905 # include <limits.h>
47907 # include <assert.h>
47912 /* Override any gcc2 internal prototype to avoid an error. */
47917 /* We use char because int might match the return type of a gcc2
47918 builtin and then its argument prototype would still apply. */
47920 /* The GNU C library defines this for functions which it implements
47921 to always fail with ENOSYS. Some functions are actually named
47922 something starting with __ and the normal name is an alias. */
47923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47926 char (*f) () = $ac_func;
47935 return f != $ac_func;
47940 rm -f conftest.$ac_objext conftest$ac_exeext
47941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47942 (eval $ac_link) 2>conftest.er1
47944 grep -v '^ *+' conftest.er1 >conftest.err
47946 cat conftest.err >&5
47947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47948 (exit $ac_status); } &&
47949 { ac_try='test -z "$ac_c_werror_flag"
47950 || test ! -s conftest.err'
47951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47952 (eval $ac_try) 2>&5
47954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47955 (exit $ac_status); }; } &&
47956 { ac_try='test -s conftest$ac_exeext'
47957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47958 (eval $ac_try) 2>&5
47960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47961 (exit $ac_status); }; }; then
47962 eval "$as_ac_var=yes"
47964 echo "$as_me: failed program was:" >&5
47965 sed 's/^/| /' conftest.$ac_ext >&5
47967 eval "$as_ac_var=no"
47969 rm -f conftest.err conftest.$ac_objext \
47970 conftest$ac_exeext conftest.$ac_ext
47972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47974 if test `eval echo '${'$as_ac_var'}'` = yes; then
47975 cat >>confdefs.h <<_ACEOF
47976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47978 ice_have_vprintf=yes
47982 if test "${ice_have_vprintf}" = yes; then
47983 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
47984 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47985 if test "${ice_cv_have_vprintf_decl+set}" = set; then
47986 echo $ECHO_N "(cached) $ECHO_C" >&6
47989 ice_cv_have_vprintf_decl=no
47990 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47991 ice_re_word='(^|[^a-zA-Z0-9_])'
47992 for header in stdio.h stdlib.h; do
47993 # Check for ordinary declaration
47994 cat >conftest.$ac_ext <<_ACEOF
47997 cat confdefs.h >>conftest.$ac_ext
47998 cat >>conftest.$ac_ext <<_ACEOF
47999 /* end confdefs.h. */
48003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48004 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
48005 ice_cv_have_vprintf_decl=yes
48009 if test "$ice_cv_have_vprintf_decl" = yes; then
48012 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48013 cat >conftest.$ac_ext <<_ACEOF
48016 cat confdefs.h >>conftest.$ac_ext
48017 cat >>conftest.$ac_ext <<_ACEOF
48018 /* end confdefs.h. */
48022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48023 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48024 ice_cv_have_vprintf_decl=yes
48028 if test "$ice_cv_have_vprintf_decl" = yes; then
48035 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
48036 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
48037 if test "$ice_cv_have_vprintf_decl" = yes; then
48039 cat >>confdefs.h <<_ACEOF
48040 #define HAVE_VPRINTF_DECL 1
48047 ice_have_vsprintf=no
48049 for ac_func in vsprintf
48051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48052 echo "$as_me:$LINENO: checking for $ac_func" >&5
48053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48054 if eval "test \"\${$as_ac_var+set}\" = set"; then
48055 echo $ECHO_N "(cached) $ECHO_C" >&6
48057 cat >conftest.$ac_ext <<_ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h. */
48063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48065 #define $ac_func innocuous_$ac_func
48067 /* System header to define __stub macros and hopefully few prototypes,
48068 which can conflict with char $ac_func (); below.
48069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48070 <limits.h> exists even on freestanding compilers. */
48073 # include <limits.h>
48075 # include <assert.h>
48080 /* Override any gcc2 internal prototype to avoid an error. */
48085 /* We use char because int might match the return type of a gcc2
48086 builtin and then its argument prototype would still apply. */
48088 /* The GNU C library defines this for functions which it implements
48089 to always fail with ENOSYS. Some functions are actually named
48090 something starting with __ and the normal name is an alias. */
48091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48094 char (*f) () = $ac_func;
48103 return f != $ac_func;
48108 rm -f conftest.$ac_objext conftest$ac_exeext
48109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48110 (eval $ac_link) 2>conftest.er1
48112 grep -v '^ *+' conftest.er1 >conftest.err
48114 cat conftest.err >&5
48115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48116 (exit $ac_status); } &&
48117 { ac_try='test -z "$ac_c_werror_flag"
48118 || test ! -s conftest.err'
48119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48120 (eval $ac_try) 2>&5
48122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48123 (exit $ac_status); }; } &&
48124 { ac_try='test -s conftest$ac_exeext'
48125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48126 (eval $ac_try) 2>&5
48128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48129 (exit $ac_status); }; }; then
48130 eval "$as_ac_var=yes"
48132 echo "$as_me: failed program was:" >&5
48133 sed 's/^/| /' conftest.$ac_ext >&5
48135 eval "$as_ac_var=no"
48137 rm -f conftest.err conftest.$ac_objext \
48138 conftest$ac_exeext conftest.$ac_ext
48140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48142 if test `eval echo '${'$as_ac_var'}'` = yes; then
48143 cat >>confdefs.h <<_ACEOF
48144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48146 ice_have_vsprintf=yes
48150 if test "${ice_have_vsprintf}" = yes; then
48151 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
48152 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48153 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
48154 echo $ECHO_N "(cached) $ECHO_C" >&6
48157 ice_cv_have_vsprintf_decl=no
48158 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48159 ice_re_word='(^|[^a-zA-Z0-9_])'
48160 for header in stdio.h stdlib.h; do
48161 # Check for ordinary declaration
48162 cat >conftest.$ac_ext <<_ACEOF
48165 cat confdefs.h >>conftest.$ac_ext
48166 cat >>conftest.$ac_ext <<_ACEOF
48167 /* end confdefs.h. */
48171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48172 $EGREP "${ice_re_word}vsprintf[ ]*\(" >/dev/null 2>&1; then
48173 ice_cv_have_vsprintf_decl=yes
48177 if test "$ice_cv_have_vsprintf_decl" = yes; then
48180 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48181 cat >conftest.$ac_ext <<_ACEOF
48184 cat confdefs.h >>conftest.$ac_ext
48185 cat >>conftest.$ac_ext <<_ACEOF
48186 /* end confdefs.h. */
48190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48191 $EGREP "${ice_re_word}vsprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48192 ice_cv_have_vsprintf_decl=yes
48196 if test "$ice_cv_have_vsprintf_decl" = yes; then
48203 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
48204 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
48205 if test "$ice_cv_have_vsprintf_decl" = yes; then
48207 cat >>confdefs.h <<_ACEOF
48208 #define HAVE_VSPRINTF_DECL 1
48214 echo "$as_me:$LINENO: checking for wait4" >&5
48215 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
48216 if test "${ac_cv_func_wait4+set}" = set; then
48217 echo $ECHO_N "(cached) $ECHO_C" >&6
48219 cat >conftest.$ac_ext <<_ACEOF
48222 cat confdefs.h >>conftest.$ac_ext
48223 cat >>conftest.$ac_ext <<_ACEOF
48224 /* end confdefs.h. */
48225 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
48226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48227 #define wait4 innocuous_wait4
48229 /* System header to define __stub macros and hopefully few prototypes,
48230 which can conflict with char wait4 (); below.
48231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48232 <limits.h> exists even on freestanding compilers. */
48235 # include <limits.h>
48237 # include <assert.h>
48242 /* Override any gcc2 internal prototype to avoid an error. */
48247 /* We use char because int might match the return type of a gcc2
48248 builtin and then its argument prototype would still apply. */
48250 /* The GNU C library defines this for functions which it implements
48251 to always fail with ENOSYS. Some functions are actually named
48252 something starting with __ and the normal name is an alias. */
48253 #if defined (__stub_wait4) || defined (__stub___wait4)
48256 char (*f) () = wait4;
48270 rm -f conftest.$ac_objext conftest$ac_exeext
48271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48272 (eval $ac_link) 2>conftest.er1
48274 grep -v '^ *+' conftest.er1 >conftest.err
48276 cat conftest.err >&5
48277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278 (exit $ac_status); } &&
48279 { ac_try='test -z "$ac_c_werror_flag"
48280 || test ! -s conftest.err'
48281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48282 (eval $ac_try) 2>&5
48284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48285 (exit $ac_status); }; } &&
48286 { ac_try='test -s conftest$ac_exeext'
48287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48288 (eval $ac_try) 2>&5
48290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48291 (exit $ac_status); }; }; then
48292 ac_cv_func_wait4=yes
48294 echo "$as_me: failed program was:" >&5
48295 sed 's/^/| /' conftest.$ac_ext >&5
48297 ac_cv_func_wait4=no
48299 rm -f conftest.err conftest.$ac_objext \
48300 conftest$ac_exeext conftest.$ac_ext
48302 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
48303 echo "${ECHO_T}$ac_cv_func_wait4" >&6
48306 for ac_func in waitpid
48308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48309 echo "$as_me:$LINENO: checking for $ac_func" >&5
48310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48311 if eval "test \"\${$as_ac_var+set}\" = set"; then
48312 echo $ECHO_N "(cached) $ECHO_C" >&6
48314 cat >conftest.$ac_ext <<_ACEOF
48317 cat confdefs.h >>conftest.$ac_ext
48318 cat >>conftest.$ac_ext <<_ACEOF
48319 /* end confdefs.h. */
48320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48322 #define $ac_func innocuous_$ac_func
48324 /* System header to define __stub macros and hopefully few prototypes,
48325 which can conflict with char $ac_func (); below.
48326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48327 <limits.h> exists even on freestanding compilers. */
48330 # include <limits.h>
48332 # include <assert.h>
48337 /* Override any gcc2 internal prototype to avoid an error. */
48342 /* We use char because int might match the return type of a gcc2
48343 builtin and then its argument prototype would still apply. */
48345 /* The GNU C library defines this for functions which it implements
48346 to always fail with ENOSYS. Some functions are actually named
48347 something starting with __ and the normal name is an alias. */
48348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48351 char (*f) () = $ac_func;
48360 return f != $ac_func;
48365 rm -f conftest.$ac_objext conftest$ac_exeext
48366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48367 (eval $ac_link) 2>conftest.er1
48369 grep -v '^ *+' conftest.er1 >conftest.err
48371 cat conftest.err >&5
48372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48373 (exit $ac_status); } &&
48374 { ac_try='test -z "$ac_c_werror_flag"
48375 || test ! -s conftest.err'
48376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48377 (eval $ac_try) 2>&5
48379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380 (exit $ac_status); }; } &&
48381 { ac_try='test -s conftest$ac_exeext'
48382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48383 (eval $ac_try) 2>&5
48385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48386 (exit $ac_status); }; }; then
48387 eval "$as_ac_var=yes"
48389 echo "$as_me: failed program was:" >&5
48390 sed 's/^/| /' conftest.$ac_ext >&5
48392 eval "$as_ac_var=no"
48394 rm -f conftest.err conftest.$ac_objext \
48395 conftest$ac_exeext conftest.$ac_ext
48397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48399 if test `eval echo '${'$as_ac_var'}'` = yes; then
48400 cat >>confdefs.h <<_ACEOF
48401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48406 "$ac_func.$ac_objext" | \
48407 *" $ac_func.$ac_objext" | \
48408 "$ac_func.$ac_objext "* | \
48409 *" $ac_func.$ac_objext "* ) ;;
48410 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48418 for ac_func in strcasecmp
48420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48421 echo "$as_me:$LINENO: checking for $ac_func" >&5
48422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48423 if eval "test \"\${$as_ac_var+set}\" = set"; then
48424 echo $ECHO_N "(cached) $ECHO_C" >&6
48426 cat >conftest.$ac_ext <<_ACEOF
48429 cat confdefs.h >>conftest.$ac_ext
48430 cat >>conftest.$ac_ext <<_ACEOF
48431 /* end confdefs.h. */
48432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48434 #define $ac_func innocuous_$ac_func
48436 /* System header to define __stub macros and hopefully few prototypes,
48437 which can conflict with char $ac_func (); below.
48438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48439 <limits.h> exists even on freestanding compilers. */
48442 # include <limits.h>
48444 # include <assert.h>
48449 /* Override any gcc2 internal prototype to avoid an error. */
48454 /* We use char because int might match the return type of a gcc2
48455 builtin and then its argument prototype would still apply. */
48457 /* The GNU C library defines this for functions which it implements
48458 to always fail with ENOSYS. Some functions are actually named
48459 something starting with __ and the normal name is an alias. */
48460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48463 char (*f) () = $ac_func;
48472 return f != $ac_func;
48477 rm -f conftest.$ac_objext conftest$ac_exeext
48478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48479 (eval $ac_link) 2>conftest.er1
48481 grep -v '^ *+' conftest.er1 >conftest.err
48483 cat conftest.err >&5
48484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48485 (exit $ac_status); } &&
48486 { ac_try='test -z "$ac_c_werror_flag"
48487 || test ! -s conftest.err'
48488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48489 (eval $ac_try) 2>&5
48491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48492 (exit $ac_status); }; } &&
48493 { ac_try='test -s conftest$ac_exeext'
48494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48495 (eval $ac_try) 2>&5
48497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48498 (exit $ac_status); }; }; then
48499 eval "$as_ac_var=yes"
48501 echo "$as_me: failed program was:" >&5
48502 sed 's/^/| /' conftest.$ac_ext >&5
48504 eval "$as_ac_var=no"
48506 rm -f conftest.err conftest.$ac_objext \
48507 conftest$ac_exeext conftest.$ac_ext
48509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48511 if test `eval echo '${'$as_ac_var'}'` = yes; then
48512 cat >>confdefs.h <<_ACEOF
48513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48518 "$ac_func.$ac_objext" | \
48519 *" $ac_func.$ac_objext" | \
48520 "$ac_func.$ac_objext "* | \
48521 *" $ac_func.$ac_objext "* ) ;;
48522 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48530 ice_have_strcasecmp=no
48532 for ac_func in strcasecmp
48534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48535 echo "$as_me:$LINENO: checking for $ac_func" >&5
48536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48537 if eval "test \"\${$as_ac_var+set}\" = set"; then
48538 echo $ECHO_N "(cached) $ECHO_C" >&6
48540 cat >conftest.$ac_ext <<_ACEOF
48543 cat confdefs.h >>conftest.$ac_ext
48544 cat >>conftest.$ac_ext <<_ACEOF
48545 /* end confdefs.h. */
48546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48548 #define $ac_func innocuous_$ac_func
48550 /* System header to define __stub macros and hopefully few prototypes,
48551 which can conflict with char $ac_func (); below.
48552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48553 <limits.h> exists even on freestanding compilers. */
48556 # include <limits.h>
48558 # include <assert.h>
48563 /* Override any gcc2 internal prototype to avoid an error. */
48568 /* We use char because int might match the return type of a gcc2
48569 builtin and then its argument prototype would still apply. */
48571 /* The GNU C library defines this for functions which it implements
48572 to always fail with ENOSYS. Some functions are actually named
48573 something starting with __ and the normal name is an alias. */
48574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48577 char (*f) () = $ac_func;
48586 return f != $ac_func;
48591 rm -f conftest.$ac_objext conftest$ac_exeext
48592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48593 (eval $ac_link) 2>conftest.er1
48595 grep -v '^ *+' conftest.er1 >conftest.err
48597 cat conftest.err >&5
48598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599 (exit $ac_status); } &&
48600 { ac_try='test -z "$ac_c_werror_flag"
48601 || test ! -s conftest.err'
48602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48603 (eval $ac_try) 2>&5
48605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48606 (exit $ac_status); }; } &&
48607 { ac_try='test -s conftest$ac_exeext'
48608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48609 (eval $ac_try) 2>&5
48611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48612 (exit $ac_status); }; }; then
48613 eval "$as_ac_var=yes"
48615 echo "$as_me: failed program was:" >&5
48616 sed 's/^/| /' conftest.$ac_ext >&5
48618 eval "$as_ac_var=no"
48620 rm -f conftest.err conftest.$ac_objext \
48621 conftest$ac_exeext conftest.$ac_ext
48623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48625 if test `eval echo '${'$as_ac_var'}'` = yes; then
48626 cat >>confdefs.h <<_ACEOF
48627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48629 ice_have_strcasecmp=yes
48633 if test "${ice_have_strcasecmp}" = yes; then
48634 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
48635 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
48636 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
48637 echo $ECHO_N "(cached) $ECHO_C" >&6
48640 ice_cv_have_strcasecmp_decl=no
48641 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48642 ice_re_word='(^|[^a-zA-Z0-9_])'
48643 for header in string.h strings.h; do
48644 # Check for ordinary declaration
48645 cat >conftest.$ac_ext <<_ACEOF
48648 cat confdefs.h >>conftest.$ac_ext
48649 cat >>conftest.$ac_ext <<_ACEOF
48650 /* end confdefs.h. */
48654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48655 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
48656 ice_cv_have_strcasecmp_decl=yes
48660 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48663 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48664 cat >conftest.$ac_ext <<_ACEOF
48667 cat confdefs.h >>conftest.$ac_ext
48668 cat >>conftest.$ac_ext <<_ACEOF
48669 /* end confdefs.h. */
48673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48674 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48675 ice_cv_have_strcasecmp_decl=yes
48679 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48686 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
48687 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
48688 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48690 cat >>confdefs.h <<_ACEOF
48691 #define HAVE_STRCASECMP_DECL 1
48699 for ac_func in fnmatch
48701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48702 echo "$as_me:$LINENO: checking for $ac_func" >&5
48703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48704 if eval "test \"\${$as_ac_var+set}\" = set"; then
48705 echo $ECHO_N "(cached) $ECHO_C" >&6
48707 cat >conftest.$ac_ext <<_ACEOF
48710 cat confdefs.h >>conftest.$ac_ext
48711 cat >>conftest.$ac_ext <<_ACEOF
48712 /* end confdefs.h. */
48713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48715 #define $ac_func innocuous_$ac_func
48717 /* System header to define __stub macros and hopefully few prototypes,
48718 which can conflict with char $ac_func (); below.
48719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48720 <limits.h> exists even on freestanding compilers. */
48723 # include <limits.h>
48725 # include <assert.h>
48730 /* Override any gcc2 internal prototype to avoid an error. */
48735 /* We use char because int might match the return type of a gcc2
48736 builtin and then its argument prototype would still apply. */
48738 /* The GNU C library defines this for functions which it implements
48739 to always fail with ENOSYS. Some functions are actually named
48740 something starting with __ and the normal name is an alias. */
48741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48744 char (*f) () = $ac_func;
48753 return f != $ac_func;
48758 rm -f conftest.$ac_objext conftest$ac_exeext
48759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48760 (eval $ac_link) 2>conftest.er1
48762 grep -v '^ *+' conftest.er1 >conftest.err
48764 cat conftest.err >&5
48765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48766 (exit $ac_status); } &&
48767 { ac_try='test -z "$ac_c_werror_flag"
48768 || test ! -s conftest.err'
48769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48770 (eval $ac_try) 2>&5
48772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48773 (exit $ac_status); }; } &&
48774 { ac_try='test -s conftest$ac_exeext'
48775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48776 (eval $ac_try) 2>&5
48778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48779 (exit $ac_status); }; }; then
48780 eval "$as_ac_var=yes"
48782 echo "$as_me: failed program was:" >&5
48783 sed 's/^/| /' conftest.$ac_ext >&5
48785 eval "$as_ac_var=no"
48787 rm -f conftest.err conftest.$ac_objext \
48788 conftest$ac_exeext conftest.$ac_ext
48790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48792 if test `eval echo '${'$as_ac_var'}'` = yes; then
48793 cat >>confdefs.h <<_ACEOF
48794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48801 if test "$ac_cv_func_fnmatch" != yes -a "$USE_QUICK_AND_DIRTY_ESTIMATES" != yes ; then
48802 { echo "$as_me:$LINENO: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&5
48803 echo "$as_me: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&2;}
48806 echo "$as_me:$LINENO: checking disk device prefixes" >&5
48807 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
48809 df / | while read line; do
48811 while test $# -gt 0; do
48812 if test "$1" = "/"; then
48819 ) | sed 's/(//' | sed 's/)//' `
48823 while test $# -gt 0; do
48824 if expr "$1" : '.*dev' >/dev/null 2>&1; then
48832 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
48833 echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
48834 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
48836 if test -d /dev/dsk; then
48837 DEV_PREFIX=/dev/dsk/
48838 if test -d /dev/rdsk; then
48839 RDEV_PREFIX=/dev/rdsk/
48841 RDEV_PREFIX=/dev/dsk/
48843 elif test -d /dev; then
48846 dev_prefix=/dev/dsk/
48847 rdev_prefix=/dev/rdsk/
48848 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
48849 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
48854 # Some systems, notably Linux, do not have raw disk devices
48855 # names. Check this by trying to see if a raw disk device name
48856 # exists using the normal raw device path prepended to the
48857 # mount point of the root filesystem.
48858 if test "$mount"; then
48859 dev_name="/dev/r`basename $mount`"
48860 if test -b $dev_name -o -c $dev_name; then
48874 echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
48875 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
48879 cat >>confdefs.h <<_ACEOF
48880 #define DEV_PREFIX "${DEV_PREFIX}"
48884 cat >>confdefs.h <<_ACEOF
48885 #define RDEV_PREFIX "${RDEV_PREFIX}"
48891 { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
48892 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
48896 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
48897 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
48898 if test "${amanda_cv_posix_filelocking+set}" = set; then
48899 echo $ECHO_N "(cached) $ECHO_C" >&6
48902 if test "$cross_compiling" = yes; then
48904 amanda_cv_posix_filelocking="no (cannot run test)"
48907 cat >conftest.$ac_ext <<_ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h. */
48915 #define CONFIGURE_TEST
48916 #define USE_POSIX_FCNTL
48917 #include "${srcdir-.}/common-src/amflock.c"
48920 rm -f conftest$ac_exeext
48921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48922 (eval $ac_link) 2>&5
48924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48927 (eval $ac_try) 2>&5
48929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48930 (exit $ac_status); }; }; then
48932 amanda_cv_posix_filelocking=yes
48935 echo "$as_me: program exited with status $ac_status" >&5
48936 echo "$as_me: failed program was:" >&5
48937 sed 's/^/| /' conftest.$ac_ext >&5
48939 ( exit $ac_status )
48941 amanda_cv_posix_filelocking="no"
48944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48946 rm -f /tmp/conftest.lock
48949 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
48950 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
48951 if test "$amanda_cv_posix_filelocking" = yes; then
48953 cat >>confdefs.h <<\_ACEOF
48954 #define USE_POSIX_FCNTL 1
48957 HAS_WORKING_FILE_LOCK=1
48960 if test -z "$HAS_WORKING_FILE_LOCK"; then
48961 echo "$as_me:$LINENO: checking whether flock locking works" >&5
48962 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
48963 if test "${amanda_cv_flock_filelocking+set}" = set; then
48964 echo $ECHO_N "(cached) $ECHO_C" >&6
48967 if test "$cross_compiling" = yes; then
48969 amanda_cv_flock_filelocking="no (cannot run test)"
48972 cat >conftest.$ac_ext <<_ACEOF
48975 cat confdefs.h >>conftest.$ac_ext
48976 cat >>conftest.$ac_ext <<_ACEOF
48977 /* end confdefs.h. */
48980 #define CONFIGURE_TEST
48982 #include "${srcdir-.}/common-src/amflock.c"
48985 rm -f conftest$ac_exeext
48986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48987 (eval $ac_link) 2>&5
48989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48992 (eval $ac_try) 2>&5
48994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48995 (exit $ac_status); }; }; then
48997 amanda_cv_flock_filelocking="yes"
49000 echo "$as_me: program exited with status $ac_status" >&5
49001 echo "$as_me: failed program was:" >&5
49002 sed 's/^/| /' conftest.$ac_ext >&5
49004 ( exit $ac_status )
49006 amanda_cv_flock_filelocking="no"
49009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49011 rm -f /tmp/conftest.lock
49014 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
49015 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
49016 if test "$amanda_cv_flock_filelocking" = yes; then
49018 cat >>confdefs.h <<\_ACEOF
49019 #define USE_FLOCK 1
49022 HAS_WORKING_FILE_LOCK=1
49026 if test -z "$HAS_WORKING_FILE_LOCK"; then
49027 echo "$as_me:$LINENO: checking whether lockf locking works" >&5
49028 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
49029 if test "${amanda_cv_lockf_filelocking+set}" = set; then
49030 echo $ECHO_N "(cached) $ECHO_C" >&6
49033 if test "$cross_compiling" = yes; then
49035 amanda_cv_lockf_filelocking="no (cannot run test)"
49038 cat >conftest.$ac_ext <<_ACEOF
49041 cat confdefs.h >>conftest.$ac_ext
49042 cat >>conftest.$ac_ext <<_ACEOF
49043 /* end confdefs.h. */
49046 #define CONFIGURE_TEST
49048 #include "${srcdir-.}/common-src/amflock.c"
49051 rm -f conftest$ac_exeext
49052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49053 (eval $ac_link) 2>&5
49055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49058 (eval $ac_try) 2>&5
49060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061 (exit $ac_status); }; }; then
49063 amanda_cv_lockf_filelocking="yes"
49066 echo "$as_me: program exited with status $ac_status" >&5
49067 echo "$as_me: failed program was:" >&5
49068 sed 's/^/| /' conftest.$ac_ext >&5
49070 ( exit $ac_status )
49072 amanda_cv_lockf_filelocking="no"
49075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49077 rm -f /tmp/conftest.lock
49080 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
49081 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
49082 if test "$amanda_cv_lockf_filelocking" = yes; then
49084 cat >>confdefs.h <<\_ACEOF
49085 #define USE_LOCKF 1
49088 HAS_WORKING_FILE_LOCK=1
49092 if test -z "$HAS_WORKING_FILE_LOCK"; then
49093 echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
49094 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
49095 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
49096 echo $ECHO_N "(cached) $ECHO_C" >&6
49099 if test "$cross_compiling" = yes; then
49101 amanda_cv_lnlock_filelocking="no (cannot run test)"
49104 cat >conftest.$ac_ext <<_ACEOF
49107 cat confdefs.h >>conftest.$ac_ext
49108 cat >>conftest.$ac_ext <<_ACEOF
49109 /* end confdefs.h. */
49112 #define CONFIGURE_TEST
49114 #include "${srcdir-.}/common-src/amflock.c"
49115 #include "${srcdir-.}/common-src/alloc.c"
49116 #include "${srcdir-.}/common-src/error.c"
49117 #include "${srcdir-.}/common-src/snprintf.c"
49120 rm -f conftest$ac_exeext
49121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49122 (eval $ac_link) 2>&5
49124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49127 (eval $ac_try) 2>&5
49129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49130 (exit $ac_status); }; }; then
49132 amanda_cv_lnlock_filelocking="yes"
49135 echo "$as_me: program exited with status $ac_status" >&5
49136 echo "$as_me: failed program was:" >&5
49137 sed 's/^/| /' conftest.$ac_ext >&5
49139 ( exit $ac_status )
49141 amanda_cv_lnlock_filelocking="no"
49144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49146 rm -f /tmp/conftest.lock
49149 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
49150 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
49151 if test "$amanda_cv_lnlock_filelocking" = yes; then
49153 cat >>confdefs.h <<\_ACEOF
49154 #define USE_LNLOCK 1
49157 HAS_WORKING_FILE_LOCK=1
49161 if test -z "$HAS_WORKING_FILE_LOCK"; then
49162 { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
49163 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
49164 { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
49165 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
49176 if test x"$NO_CLIENT_MODE" != x"true"; then
49178 WANT_CLIENT_FALSE='#'
49180 WANT_CLIENT_TRUE='#'
49186 if test ! -z "$SAMBA_CLIENT"; then
49188 WANT_SAMBA_FALSE='#'
49190 WANT_SAMBA_TRUE='#'
49196 if test x"$NO_RESTORE_MODE" != x"true"; then
49198 WANT_RESTORE_FALSE='#'
49200 WANT_RESTORE_TRUE='#'
49201 WANT_RESTORE_FALSE=
49206 if test x"$NO_SERVER_MODE" != x"true"; then
49208 WANT_SERVER_FALSE='#'
49210 WANT_SERVER_TRUE='#'
49216 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
49218 WANT_RECOVER_FALSE='#'
49220 WANT_RECOVER_TRUE='#'
49221 WANT_RECOVER_FALSE=
49226 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
49228 WANT_TAPE_FALSE='#'
49236 if test x"$NO_AMPLOT_MODE" != x"true"; then
49238 WANT_AMPLOT_FALSE='#'
49240 WANT_AMPLOT_TRUE='#'
49246 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
49247 WANT_CHG_SCSI_TRUE=
49248 WANT_CHG_SCSI_FALSE='#'
49250 WANT_CHG_SCSI_TRUE='#'
49251 WANT_CHG_SCSI_FALSE=
49256 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
49257 WANT_CHIO_SCSI_TRUE=
49258 WANT_CHIO_SCSI_FALSE='#'
49260 WANT_CHIO_SCSI_TRUE='#'
49261 WANT_CHIO_SCSI_FALSE=
49266 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
49267 WANT_RUNTIME_PSEUDO_RELOC_TRUE=
49268 WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
49270 WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
49271 WANT_RUNTIME_PSEUDO_RELOC_FALSE=
49276 if test x"$NEED_SETUID_CLIENT" != x"false"; then
49277 WANT_SETUID_CLIENT_TRUE=
49278 WANT_SETUID_CLIENT_FALSE='#'
49280 WANT_SETUID_CLIENT_TRUE='#'
49281 WANT_SETUID_CLIENT_FALSE=
49285 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
49287 cat >>confdefs.h <<\_ACEOF
49288 #define USE_RUNDUMP 1
49293 # This is necessary so that .o files in LIBOBJS are also built via
49294 # the ANSI2KNR-filtering rules.
49295 LIBOBJS=`echo "$LIBOBJS" |
49296 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
49297 LTLIBOBJS=`echo "$LIBOBJS" |
49298 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
49301 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
49304 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 common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/amanda.conf.chg-scsi example/chg-scsi-linux.conf example/chg-scsi-solaris.conf example/chg-scsi-hpux.conf 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 tape-src/Makefile config/Makefile Makefile"
49306 cat >confcache <<\_ACEOF
49307 # This file is a shell script that caches the results of configure
49308 # tests run on this system so they can be shared between configure
49309 # scripts and configure runs, see configure's option --config-cache.
49310 # It is not useful on other systems. If it contains results you don't
49311 # want to keep, you may remove or edit it.
49313 # config.status only pays attention to the cache file if you give it
49314 # the --recheck option to rerun configure.
49316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49318 # following values.
49322 # The following way of writing the cache mishandles newlines in values,
49323 # but we know of no workaround that is simple, portable, and efficient.
49324 # So, don't put newlines in cache variables' values.
49325 # Ultrix sh set writes to stderr and can't be redirected directly,
49326 # and sets the high bit in the cache file unless we assign to the vars.
49329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49331 # `set' does not quote correctly, so add quotes (double-quote
49332 # substitution turns \\\\ into \\, and sed turns \\ into \).
49335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49338 # `set' quotes correctly as required by POSIX, so do not add quotes.
49340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49349 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49351 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49352 if test -w $cache_file; then
49353 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49354 cat confcache >$cache_file
49356 echo "not updating unwritable cache $cache_file"
49361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49362 # Let make expand exec_prefix.
49363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49367 # trailing colons and then remove the whole line if VPATH becomes empty
49368 # (actually we leave an empty line to preserve line numbers).
49369 if test "x$srcdir" = x.; then
49370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49371 s/:*\$(srcdir):*/:/;
49372 s/:*\${srcdir}:*/:/;
49374 s/^\([^=]*=[ ]*\):*/\1/;
49380 DEFS=-DHAVE_CONFIG_H
49384 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49385 # 1. Remove the extension, and $U if already installed.
49386 ac_i=`echo "$ac_i" |
49387 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49389 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49390 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49392 LIBOBJS=$ac_libobjs
49394 LTLIBOBJS=$ac_ltlibobjs
49397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49398 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
49399 Usually this means the macro was only invoked conditionally." >&5
49400 echo "$as_me: error: conditional \"AMDEP\" was never defined.
49401 Usually this means the macro was only invoked conditionally." >&2;}
49402 { (exit 1); exit 1; }; }
49404 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49405 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
49406 Usually this means the macro was only invoked conditionally." >&5
49407 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
49408 Usually this means the macro was only invoked conditionally." >&2;}
49409 { (exit 1); exit 1; }; }
49411 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
49412 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
49413 Usually this means the macro was only invoked conditionally." >&5
49414 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
49415 Usually this means the macro was only invoked conditionally." >&2;}
49416 { (exit 1); exit 1; }; }
49418 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
49419 { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
49420 Usually this means the macro was only invoked conditionally." >&5
49421 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
49422 Usually this means the macro was only invoked conditionally." >&2;}
49423 { (exit 1); exit 1; }; }
49425 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
49426 { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
49427 Usually this means the macro was only invoked conditionally." >&5
49428 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
49429 Usually this means the macro was only invoked conditionally." >&2;}
49430 { (exit 1); exit 1; }; }
49432 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
49433 { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
49434 Usually this means the macro was only invoked conditionally." >&5
49435 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
49436 Usually this means the macro was only invoked conditionally." >&2;}
49437 { (exit 1); exit 1; }; }
49439 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
49440 { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
49441 Usually this means the macro was only invoked conditionally." >&5
49442 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
49443 Usually this means the macro was only invoked conditionally." >&2;}
49444 { (exit 1); exit 1; }; }
49446 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
49447 { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
49448 Usually this means the macro was only invoked conditionally." >&5
49449 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
49450 Usually this means the macro was only invoked conditionally." >&2;}
49451 { (exit 1); exit 1; }; }
49453 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
49454 { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
49455 Usually this means the macro was only invoked conditionally." >&5
49456 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
49457 Usually this means the macro was only invoked conditionally." >&2;}
49458 { (exit 1); exit 1; }; }
49460 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
49461 { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
49462 Usually this means the macro was only invoked conditionally." >&5
49463 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
49464 Usually this means the macro was only invoked conditionally." >&2;}
49465 { (exit 1); exit 1; }; }
49467 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
49468 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
49469 Usually this means the macro was only invoked conditionally." >&5
49470 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
49471 Usually this means the macro was only invoked conditionally." >&2;}
49472 { (exit 1); exit 1; }; }
49474 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
49475 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49476 Usually this means the macro was only invoked conditionally." >&5
49477 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49478 Usually this means the macro was only invoked conditionally." >&2;}
49479 { (exit 1); exit 1; }; }
49481 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
49482 { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49483 Usually this means the macro was only invoked conditionally." >&5
49484 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49485 Usually this means the macro was only invoked conditionally." >&2;}
49486 { (exit 1); exit 1; }; }
49488 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
49489 { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49490 Usually this means the macro was only invoked conditionally." >&5
49491 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49492 Usually this means the macro was only invoked conditionally." >&2;}
49493 { (exit 1); exit 1; }; }
49496 : ${CONFIG_STATUS=./config.status}
49497 ac_clean_files_save=$ac_clean_files
49498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49501 cat >$CONFIG_STATUS <<_ACEOF
49503 # Generated by $as_me.
49504 # Run this file to recreate the current configuration.
49505 # Compiler output produced by configure, useful for debugging
49506 # configure, is in config.log if it exists.
49509 ac_cs_recheck=false
49511 SHELL=\${CONFIG_SHELL-$SHELL}
49514 cat >>$CONFIG_STATUS <<\_ACEOF
49515 ## --------------------- ##
49516 ## M4sh Initialization. ##
49517 ## --------------------- ##
49519 # Be Bourne compatible
49520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49523 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49524 # is contrary to our usage. Disable this feature.
49525 alias -g '${1+"$@"}'='"$@"'
49526 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49529 DUALCASE=1; export DUALCASE # for MKS sh
49531 # Support unset when possible.
49532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49539 # Work around bugs in pre-3.0 UWIN ksh.
49540 $as_unset ENV MAIL MAILPATH
49547 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49548 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49549 LC_TELEPHONE LC_TIME
49551 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49552 eval $as_var=C; export $as_var
49558 # Required to use basename.
49559 if expr a : '\(a\)' >/dev/null 2>&1; then
49565 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49566 as_basename=basename
49572 # Name of the executable.
49573 as_me=`$as_basename "$0" ||
49574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49575 X"$0" : 'X\(//\)$' \| \
49576 X"$0" : 'X\(/\)$' \| \
49577 . : '\(.\)' 2>/dev/null ||
49579 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49580 /^X\/\(\/\/\)$/{ s//\1/; q; }
49581 /^X\/\(\/\).*/{ s//\1/; q; }
49585 # PATH needs CR, and LINENO needs CR and PATH.
49586 # Avoid depending upon Character Ranges.
49587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49590 as_cr_digits='0123456789'
49591 as_cr_alnum=$as_cr_Letters$as_cr_digits
49593 # The user is always right.
49594 if test "${PATH_SEPARATOR+set}" != set; then
49595 echo "#! /bin/sh" >conf$$.sh
49596 echo "exit 0" >>conf$$.sh
49598 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49607 as_lineno_1=$LINENO
49608 as_lineno_2=$LINENO
49609 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49610 test "x$as_lineno_1" != "x$as_lineno_2" &&
49611 test "x$as_lineno_3" = "x$as_lineno_2" || {
49612 # Find who we are. Look in the path if we contain no path at all
49615 *[\\/]* ) as_myself=$0 ;;
49616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49617 for as_dir in $PATH
49620 test -z "$as_dir" && as_dir=.
49621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49626 # We did not find ourselves, most probably we were run as `sh COMMAND'
49627 # in which case we are not to be found in the path.
49628 if test "x$as_myself" = x; then
49631 if test ! -f "$as_myself"; then
49632 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49633 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49634 { (exit 1); exit 1; }; }
49636 case $CONFIG_SHELL in
49638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49639 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49642 test -z "$as_dir" && as_dir=.
49643 for as_base in sh bash ksh sh5; do
49646 if ("$as_dir/$as_base" -c '
49647 as_lineno_1=$LINENO
49648 as_lineno_2=$LINENO
49649 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49650 test "x$as_lineno_1" != "x$as_lineno_2" &&
49651 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49652 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49653 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49654 CONFIG_SHELL=$as_dir/$as_base
49655 export CONFIG_SHELL
49656 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49664 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49665 # uniformly replaced by the line number. The first 'sed' inserts a
49666 # line-number line before each line; the second 'sed' does the real
49667 # work. The second script uses 'N' to pair each line-number line
49668 # with the numbered line, and appends trailing '-' during
49669 # substitution so that $LINENO is not a special case at line end.
49670 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49671 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49672 sed '=' <$as_myself |
49677 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49680 s,^['$as_cr_digits']*\n,,
49681 ' >$as_me.lineno &&
49682 chmod +x $as_me.lineno ||
49683 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49684 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49685 { (exit 1); exit 1; }; }
49687 # Don't try to exec as it changes $[0], causing all sort of problems
49688 # (the dirname of $[0] is not the place where we might find the
49689 # original and so on. Autoconf is especially sensible to this).
49691 # Exit status is that of the last command.
49696 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49697 *c*,-n*) ECHO_N= ECHO_C='
49699 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49700 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49703 if expr a : '\(a\)' >/dev/null 2>&1; then
49709 rm -f conf$$ conf$$.exe conf$$.file
49711 if ln -s conf$$.file conf$$ 2>/dev/null; then
49712 # We could just check for DJGPP; but this test a) works b) is more generic
49713 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49714 if test -f conf$$.exe; then
49715 # Don't use ln at all; we don't have any links
49720 elif ln conf$$.file conf$$ 2>/dev/null; then
49725 rm -f conf$$ conf$$.exe conf$$.file
49727 if mkdir -p . 2>/dev/null; then
49730 test -d ./-p && rmdir ./-p
49734 as_executable_p="test -f"
49736 # Sed expression to map a string onto a valid CPP name.
49737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49739 # Sed expression to map a string onto a valid variable name.
49740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49744 # We need space, tab and new line, in precisely that order.
49754 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49755 # report actual input values of CONFIG_FILES etc. instead of their
49756 # values after options handling. Logging --version etc. is OK.
49760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49761 ## Running $as_me. ##
49766 This file was extended by $as_me, which was
49767 generated by GNU Autoconf 2.59. Invocation command line was
49769 CONFIG_FILES = $CONFIG_FILES
49770 CONFIG_HEADERS = $CONFIG_HEADERS
49771 CONFIG_LINKS = $CONFIG_LINKS
49772 CONFIG_COMMANDS = $CONFIG_COMMANDS
49776 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49780 # Files that config.status was made for.
49781 if test -n "$ac_config_files"; then
49782 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49785 if test -n "$ac_config_headers"; then
49786 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49789 if test -n "$ac_config_links"; then
49790 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49793 if test -n "$ac_config_commands"; then
49794 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49797 cat >>$CONFIG_STATUS <<\_ACEOF
49800 \`$as_me' instantiates files from templates according to the
49801 current configuration.
49803 Usage: $0 [OPTIONS] [FILE]...
49805 -h, --help print this help, then exit
49806 -V, --version print version number, then exit
49807 -q, --quiet do not print progress messages
49808 -d, --debug don't remove temporary files
49809 --recheck update $as_me by reconfiguring in the same conditions
49810 --file=FILE[:TEMPLATE]
49811 instantiate the configuration file FILE
49812 --header=FILE[:TEMPLATE]
49813 instantiate the configuration header FILE
49815 Configuration files:
49818 Configuration headers:
49821 Configuration commands:
49824 Report bugs to <bug-autoconf@gnu.org>."
49827 cat >>$CONFIG_STATUS <<_ACEOF
49830 configured by $0, generated by GNU Autoconf 2.59,
49831 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49833 Copyright (C) 2003 Free Software Foundation, Inc.
49834 This config.status script is free software; the Free Software Foundation
49835 gives unlimited permission to copy, distribute and modify it."
49840 cat >>$CONFIG_STATUS <<\_ACEOF
49841 # If no file are specified by the user, then we need to provide default
49842 # value. By we need to know if files were specified by the user.
49848 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49849 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49857 *) # This is not an option, so the user has probably given explicit
49860 ac_need_defaults=false;;
49864 # Handling of the options.
49866 cat >>$CONFIG_STATUS <<\_ACEOF
49867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49869 --version | --vers* | -V )
49870 echo "$ac_cs_version"; exit 0 ;;
49872 # Conflict between --help and --header
49873 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49874 Try \`$0 --help' for more information." >&5
49875 echo "$as_me: error: ambiguous option: $1
49876 Try \`$0 --help' for more information." >&2;}
49877 { (exit 1); exit 1; }; };;
49878 --help | --hel | -h )
49879 echo "$ac_cs_usage"; exit 0 ;;
49880 --debug | --d* | -d )
49882 --file | --fil | --fi | --f )
49884 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49885 ac_need_defaults=false;;
49886 --header | --heade | --head | --hea )
49888 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49889 ac_need_defaults=false;;
49890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49891 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49894 # This is an error.
49895 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49896 Try \`$0 --help' for more information." >&5
49897 echo "$as_me: error: unrecognized option: $1
49898 Try \`$0 --help' for more information." >&2;}
49899 { (exit 1); exit 1; }; } ;;
49901 *) ac_config_targets="$ac_config_targets $1" ;;
49907 ac_configure_extra_args=
49909 if $ac_cs_silent; then
49911 ac_configure_extra_args="$ac_configure_extra_args --silent"
49915 cat >>$CONFIG_STATUS <<_ACEOF
49916 if \$ac_cs_recheck; then
49917 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49918 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49923 cat >>$CONFIG_STATUS <<_ACEOF
49925 # INIT-COMMANDS section.
49928 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49929 # variables for create stdint.h replacement
49932 ac_stdint_h="$ac_stdint_h"
49933 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
49934 ac_cv_stdint_message="$ac_cv_stdint_message"
49935 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
49936 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
49937 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
49938 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
49939 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
49940 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
49941 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
49942 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
49943 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
49944 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
49945 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
49952 cat >>$CONFIG_STATUS <<\_ACEOF
49953 for ac_config_target in $ac_config_targets
49955 case "$ac_config_target" in
49956 # Handling of arguments.
49957 "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
49958 "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
49959 "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
49960 "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
49961 "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
49962 "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
49963 "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
49964 "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
49965 "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
49966 "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
49967 "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
49968 "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
49969 "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
49970 "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
49971 "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
49972 "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
49973 "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
49974 "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
49975 "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
49976 "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
49977 "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
49978 "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
49979 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
49980 "example/amanda.conf.chg-scsi" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf.chg-scsi" ;;
49981 "example/chg-scsi-linux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-linux.conf" ;;
49982 "example/chg-scsi-solaris.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-solaris.conf" ;;
49983 "example/chg-scsi-hpux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-hpux.conf" ;;
49984 "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
49985 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49986 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
49987 "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
49988 "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
49989 "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
49990 "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
49991 "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
49992 "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
49993 "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
49994 "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
49995 "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
49996 "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
49997 "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
49998 "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
49999 "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
50000 "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
50001 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
50002 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50003 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
50004 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
50005 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
50006 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50007 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50008 { (exit 1); exit 1; }; };;
50012 # If the user did not use the arguments to specify the items to instantiate,
50013 # then the envvar interface is used. Set only those that are not.
50014 # We use the long form for the default assignment because of an extremely
50015 # bizarre bug on SunOS 4.1.3.
50016 if $ac_need_defaults; then
50017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50019 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50022 # Have a temporary directory for convenience. Make it in the build tree
50023 # simply because there is no reason to put it here, and in addition,
50024 # creating and moving files from /tmp can sometimes cause problems.
50025 # Create a temporary directory, and hook for its removal unless debugging.
50028 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50029 trap '{ (exit 1); exit 1; }' 1 2 13 15
50032 # Create a (secure) tmp directory for tmp files.
50035 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50036 test -n "$tmp" && test -d "$tmp"
50039 tmp=./confstat$$-$RANDOM
50040 (umask 077 && mkdir $tmp)
50043 echo "$me: cannot create a temporary directory in ." >&2
50044 { (exit 1); exit 1; }
50049 cat >>$CONFIG_STATUS <<_ACEOF
50052 # CONFIG_FILES section.
50055 # No need to generate the scripts if there are no CONFIG_FILES.
50056 # This happens for instance when ./config.status config.h
50057 if test -n "\$CONFIG_FILES"; then
50058 # Protect against being on the right side of a sed subst in config.status.
50059 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50060 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50061 s,@SHELL@,$SHELL,;t t
50062 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50063 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50064 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50065 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50066 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50067 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50068 s,@exec_prefix@,$exec_prefix,;t t
50069 s,@prefix@,$prefix,;t t
50070 s,@program_transform_name@,$program_transform_name,;t t
50071 s,@bindir@,$bindir,;t t
50072 s,@sbindir@,$sbindir,;t t
50073 s,@libexecdir@,$libexecdir,;t t
50074 s,@datadir@,$datadir,;t t
50075 s,@sysconfdir@,$sysconfdir,;t t
50076 s,@sharedstatedir@,$sharedstatedir,;t t
50077 s,@localstatedir@,$localstatedir,;t t
50078 s,@libdir@,$libdir,;t t
50079 s,@includedir@,$includedir,;t t
50080 s,@oldincludedir@,$oldincludedir,;t t
50081 s,@infodir@,$infodir,;t t
50082 s,@mandir@,$mandir,;t t
50083 s,@build_alias@,$build_alias,;t t
50084 s,@host_alias@,$host_alias,;t t
50085 s,@target_alias@,$target_alias,;t t
50086 s,@DEFS@,$DEFS,;t t
50087 s,@ECHO_C@,$ECHO_C,;t t
50088 s,@ECHO_N@,$ECHO_N,;t t
50089 s,@ECHO_T@,$ECHO_T,;t t
50090 s,@LIBS@,$LIBS,;t t
50091 s,@build@,$build,;t t
50092 s,@build_cpu@,$build_cpu,;t t
50093 s,@build_vendor@,$build_vendor,;t t
50094 s,@build_os@,$build_os,;t t
50095 s,@host@,$host,;t t
50096 s,@host_cpu@,$host_cpu,;t t
50097 s,@host_vendor@,$host_vendor,;t t
50098 s,@host_os@,$host_os,;t t
50099 s,@target@,$target,;t t
50100 s,@target_cpu@,$target_cpu,;t t
50101 s,@target_vendor@,$target_vendor,;t t
50102 s,@target_os@,$target_os,;t t
50103 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
50104 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50105 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50106 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50107 s,@CYGPATH_W@,$CYGPATH_W,;t t
50108 s,@PACKAGE@,$PACKAGE,;t t
50109 s,@VERSION@,$VERSION,;t t
50110 s,@ACLOCAL@,$ACLOCAL,;t t
50111 s,@AUTOCONF@,$AUTOCONF,;t t
50112 s,@AUTOMAKE@,$AUTOMAKE,;t t
50113 s,@AUTOHEADER@,$AUTOHEADER,;t t
50114 s,@MAKEINFO@,$MAKEINFO,;t t
50115 s,@AMTAR@,$AMTAR,;t t
50116 s,@install_sh@,$install_sh,;t t
50117 s,@STRIP@,$STRIP,;t t
50118 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
50119 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
50120 s,@mkdir_p@,$mkdir_p,;t t
50122 s,@SET_MAKE@,$SET_MAKE,;t t
50123 s,@am__leading_dot@,$am__leading_dot,;t t
50124 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
50125 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
50126 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
50127 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
50128 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
50129 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
50130 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
50131 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
50132 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
50133 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
50134 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
50135 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
50136 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
50137 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
50138 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
50139 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
50140 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
50141 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
50142 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
50143 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
50144 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
50145 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
50146 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
50147 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
50149 s,@CFLAGS@,$CFLAGS,;t t
50150 s,@LDFLAGS@,$LDFLAGS,;t t
50151 s,@CPPFLAGS@,$CPPFLAGS,;t t
50152 s,@ac_ct_CC@,$ac_ct_CC,;t t
50153 s,@EXEEXT@,$EXEEXT,;t t
50154 s,@OBJEXT@,$OBJEXT,;t t
50155 s,@DEPDIR@,$DEPDIR,;t t
50156 s,@am__include@,$am__include,;t t
50157 s,@am__quote@,$am__quote,;t t
50158 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
50159 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
50160 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
50161 s,@CCDEPMODE@,$CCDEPMODE,;t t
50162 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
50163 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
50164 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
50166 s,@EGREP@,$EGREP,;t t
50168 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
50169 s,@YACC@,$YACC,;t t
50171 s,@COMPRESS@,$COMPRESS,;t t
50173 s,@GETCONF@,$GETCONF,;t t
50174 s,@GNUPLOT@,$GNUPLOT,;t t
50175 s,@GREP@,$GREP,;t t
50176 s,@GNUTAR@,$GNUTAR,;t t
50177 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
50178 s,@GZIP@,$GZIP,;t t
50179 s,@MAILER@,$MAILER,;t t
50181 s,@CHIO@,$CHIO,;t t
50184 s,@MCUTIL@,$MCUTIL,;t t
50185 s,@PRINT@,$PRINT,;t t
50186 s,@PCAT@,$PCAT,;t t
50187 s,@PERL@,$PERL,;t t
50188 s,@DUMP@,$DUMP,;t t
50189 s,@RESTORE@,$RESTORE,;t t
50190 s,@XFSDUMP@,$XFSDUMP,;t t
50191 s,@XFSRESTORE@,$XFSRESTORE,;t t
50192 s,@VXDUMP@,$VXDUMP,;t t
50193 s,@VXRESTORE@,$VXRESTORE,;t t
50194 s,@VDUMP@,$VDUMP,;t t
50195 s,@VRESTORE@,$VRESTORE,;t t
50196 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
50197 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
50198 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
50199 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
50200 s,@LN_S@,$LN_S,;t t
50201 s,@ECHO@,$ECHO,;t t
50202 s,@ac_ct_AR@,$ac_ct_AR,;t t
50203 s,@RANLIB@,$RANLIB,;t t
50204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50206 s,@CXXFLAGS@,$CXXFLAGS,;t t
50207 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50208 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
50209 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
50210 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
50211 s,@CXXCPP@,$CXXCPP,;t t
50213 s,@FFLAGS@,$FFLAGS,;t t
50214 s,@ac_ct_F77@,$ac_ct_F77,;t t
50215 s,@LIBTOOL@,$LIBTOOL,;t t
50216 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
50218 s,@LEXLIB@,$LEXLIB,;t t
50219 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
50220 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
50221 s,@DB_EXT@,$DB_EXT,;t t
50222 s,@ALLOCA@,$ALLOCA,;t t
50223 s,@LIBOBJS@,$LIBOBJS,;t t
50224 s,@ac_n@,$ac_n,;t t
50225 s,@ac_c@,$ac_c,;t t
50226 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
50227 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
50228 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
50229 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
50230 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
50231 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
50232 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
50233 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
50234 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
50235 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
50236 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
50237 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
50238 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
50239 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
50240 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
50241 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
50242 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
50243 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
50244 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
50245 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
50246 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
50247 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
50248 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50249 s,@LTALLOCA@,$LTALLOCA,;t t
50254 cat >>$CONFIG_STATUS <<\_ACEOF
50255 # Split the substitutions into bite-sized pieces for seds with
50256 # small command number limits, like on Digital OSF/1 and HP-UX.
50257 ac_max_sed_lines=48
50258 ac_sed_frag=1 # Number of current file.
50259 ac_beg=1 # First line for current file.
50260 ac_end=$ac_max_sed_lines # Line after last line for current file.
50263 while $ac_more_lines; do
50264 if test $ac_beg -gt 1; then
50265 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50267 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50269 if test ! -s $tmp/subs.frag; then
50270 ac_more_lines=false
50272 # The purpose of the label and of the branching condition is to
50273 # speed up the sed processing (if there are no `@' at all, there
50274 # is no need to browse any of the substitutions).
50275 # These are the two extra sed commands mentioned above.
50277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50278 if test -z "$ac_sed_cmds"; then
50279 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50281 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50283 ac_sed_frag=`expr $ac_sed_frag + 1`
50285 ac_end=`expr $ac_end + $ac_max_sed_lines`
50288 if test -z "$ac_sed_cmds"; then
50291 fi # test -n "$CONFIG_FILES"
50294 cat >>$CONFIG_STATUS <<\_ACEOF
50295 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50298 - | *:- | *:-:* ) # input from stdin
50300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50304 * ) ac_file_in=$ac_file.in ;;
50307 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50308 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50310 X"$ac_file" : 'X\(//\)[^/]' \| \
50311 X"$ac_file" : 'X\(//\)$' \| \
50312 X"$ac_file" : 'X\(/\)' \| \
50313 . : '\(.\)' 2>/dev/null ||
50315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50317 /^X\(\/\/\)$/{ s//\1/; q; }
50318 /^X\(\/\).*/{ s//\1/; q; }
50320 { if $as_mkdir_p; then
50325 while test ! -d "$as_dir"; do
50326 as_dirs="$as_dir $as_dirs"
50327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50329 X"$as_dir" : 'X\(//\)[^/]' \| \
50330 X"$as_dir" : 'X\(//\)$' \| \
50331 X"$as_dir" : 'X\(/\)' \| \
50332 . : '\(.\)' 2>/dev/null ||
50334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50336 /^X\(\/\/\)$/{ s//\1/; q; }
50337 /^X\(\/\).*/{ s//\1/; q; }
50340 test ! -n "$as_dirs" || mkdir $as_dirs
50341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50343 { (exit 1); exit 1; }; }; }
50347 if test "$ac_dir" != .; then
50348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50349 # A "../" for each directory in $ac_dir_suffix.
50350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50352 ac_dir_suffix= ac_top_builddir=
50356 .) # No --srcdir option. We are building in place.
50358 if test -z "$ac_top_builddir"; then
50361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50363 [\\/]* | ?:[\\/]* ) # Absolute path.
50364 ac_srcdir=$srcdir$ac_dir_suffix;
50365 ac_top_srcdir=$srcdir ;;
50366 *) # Relative path.
50367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50371 # Do not use `cd foo && pwd` to compute absolute paths, because
50372 # the directories may not exist.
50374 .) ac_abs_builddir="$ac_dir";;
50377 .) ac_abs_builddir=`pwd`;;
50378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50379 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50382 case $ac_abs_builddir in
50383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50385 case ${ac_top_builddir}. in
50386 .) ac_abs_top_builddir=$ac_abs_builddir;;
50387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50391 case $ac_abs_builddir in
50392 .) ac_abs_srcdir=$ac_srcdir;;
50395 .) ac_abs_srcdir=$ac_abs_builddir;;
50396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50400 case $ac_abs_builddir in
50401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50403 case $ac_top_srcdir in
50404 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50413 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50416 if test x"$ac_file" != x-; then
50417 { echo "$as_me:$LINENO: creating $ac_file" >&5
50418 echo "$as_me: creating $ac_file" >&6;}
50421 # Let's still pretend it is `configure' which instantiates (i.e., don't
50422 # use $as_me), people would be surprised to read:
50423 # /* config.h. Generated by config.status. */
50424 if test x"$ac_file" = x-; then
50427 configure_input="$ac_file. "
50429 configure_input=$configure_input"Generated from `echo $ac_file_in |
50430 sed 's,.*/,,'` by configure."
50432 # First look for the input files in the build tree, otherwise in the
50434 ac_file_inputs=`IFS=:
50435 for f in $ac_file_in; do
50437 -) echo $tmp/stdin ;;
50439 # Absolute (can't be DOS-style, as IFS=:)
50440 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50441 echo "$as_me: error: cannot find input file: $f" >&2;}
50442 { (exit 1); exit 1; }; }
50445 if test -f "$f"; then
50448 elif test -f "$srcdir/$f"; then
50453 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50454 echo "$as_me: error: cannot find input file: $f" >&2;}
50455 { (exit 1); exit 1; }; }
50458 done` || { (exit 1); exit 1; }
50460 cat >>$CONFIG_STATUS <<_ACEOF
50464 cat >>$CONFIG_STATUS <<\_ACEOF
50466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50467 s,@configure_input@,$configure_input,;t t
50468 s,@srcdir@,$ac_srcdir,;t t
50469 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50470 s,@top_srcdir@,$ac_top_srcdir,;t t
50471 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50472 s,@builddir@,$ac_builddir,;t t
50473 s,@abs_builddir@,$ac_abs_builddir,;t t
50474 s,@top_builddir@,$ac_top_builddir,;t t
50475 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50476 s,@INSTALL@,$ac_INSTALL,;t t
50477 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50479 if test x"$ac_file" != x-; then
50480 mv $tmp/out $ac_file
50488 cat >>$CONFIG_STATUS <<\_ACEOF
50491 # CONFIG_HEADER section.
50494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50497 # ac_d sets the value in "#define NAME VALUE" lines.
50498 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50499 ac_dB='[ ].*$,\1#\2'
50502 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50503 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
50504 ac_uB='$,\1#\2define\3'
50508 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50511 - | *:- | *:-:* ) # input from stdin
50513 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50515 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50517 * ) ac_file_in=$ac_file.in ;;
50520 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50521 echo "$as_me: creating $ac_file" >&6;}
50523 # First look for the input files in the build tree, otherwise in the
50525 ac_file_inputs=`IFS=:
50526 for f in $ac_file_in; do
50528 -) echo $tmp/stdin ;;
50530 # Absolute (can't be DOS-style, as IFS=:)
50531 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50532 echo "$as_me: error: cannot find input file: $f" >&2;}
50533 { (exit 1); exit 1; }; }
50534 # Do quote $f, to prevent DOS paths from being IFS'd.
50537 if test -f "$f"; then
50540 elif test -f "$srcdir/$f"; then
50545 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50546 echo "$as_me: error: cannot find input file: $f" >&2;}
50547 { (exit 1); exit 1; }; }
50550 done` || { (exit 1); exit 1; }
50551 # Remove the trailing spaces.
50552 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
50556 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50557 # `conftest.undefs', that substitutes the proper values into
50558 # config.h.in to produce config.h. The first handles `#define'
50559 # templates, and the second `#undef' templates.
50560 # And first: Protect against being on the right side of a sed subst in
50561 # config.status. Protect against being in an unquoted here document
50562 # in config.status.
50563 rm -f conftest.defines conftest.undefs
50564 # Using a here document instead of a string reduces the quoting nightmare.
50565 # Putting comments in sed scripts is not portable.
50567 # `end' is used to avoid that the second main sed command (meant for
50568 # 0-ary CPP macros) applies to n-ary macro definitions.
50569 # See the Autoconf documentation for `clear'.
50570 cat >confdef2sed.sed <<\_ACEOF
50575 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50577 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50580 # If some macros were called several times there might be several times
50581 # the same #defines, which is useless. Nevertheless, we may not want to
50582 # sort them, since we want the *last* AC-DEFINE to be honored.
50583 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50584 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50585 rm -f confdef2sed.sed
50587 # This sed command replaces #undef with comments. This is necessary, for
50588 # example, in the case of _POSIX_SOURCE, which is predefined and required
50589 # on some systems where configure will not decide to define it.
50590 cat >>conftest.undefs <<\_ACEOF
50591 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50594 # Break up conftest.defines because some shells have a limit on the size
50595 # of here documents, and old seds have small limits too (100 cmds).
50596 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50597 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50598 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50599 echo ' :' >>$CONFIG_STATUS
50600 rm -f conftest.tail
50601 while grep . conftest.defines >/dev/null
50603 # Write a limited-size here document to $tmp/defines.sed.
50604 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50605 # Speed up: don't consider the non `#define' lines.
50606 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
50607 # Work around the forget-to-reset-the-flag bug.
50608 echo 't clr' >>$CONFIG_STATUS
50609 echo ': clr' >>$CONFIG_STATUS
50610 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50612 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50614 mv $tmp/out $tmp/in
50616 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50617 rm -f conftest.defines
50618 mv conftest.tail conftest.defines
50620 rm -f conftest.defines
50621 echo ' fi # grep' >>$CONFIG_STATUS
50622 echo >>$CONFIG_STATUS
50624 # Break up conftest.undefs because some shells have a limit on the size
50625 # of here documents, and old seds have small limits too (100 cmds).
50626 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50627 rm -f conftest.tail
50628 while grep . conftest.undefs >/dev/null
50630 # Write a limited-size here document to $tmp/undefs.sed.
50631 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50632 # Speed up: don't consider the non `#undef'
50633 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
50634 # Work around the forget-to-reset-the-flag bug.
50635 echo 't clr' >>$CONFIG_STATUS
50636 echo ': clr' >>$CONFIG_STATUS
50637 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50639 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50641 mv $tmp/out $tmp/in
50643 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50644 rm -f conftest.undefs
50645 mv conftest.tail conftest.undefs
50647 rm -f conftest.undefs
50649 cat >>$CONFIG_STATUS <<\_ACEOF
50650 # Let's still pretend it is `configure' which instantiates (i.e., don't
50651 # use $as_me), people would be surprised to read:
50652 # /* config.h. Generated by config.status. */
50653 if test x"$ac_file" = x-; then
50654 echo "/* Generated by configure. */" >$tmp/config.h
50656 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50658 cat $tmp/in >>$tmp/config.h
50660 if test x"$ac_file" != x-; then
50661 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50663 echo "$as_me: $ac_file is unchanged" >&6;}
50665 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50667 X"$ac_file" : 'X\(//\)[^/]' \| \
50668 X"$ac_file" : 'X\(//\)$' \| \
50669 X"$ac_file" : 'X\(/\)' \| \
50670 . : '\(.\)' 2>/dev/null ||
50672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50674 /^X\(\/\/\)$/{ s//\1/; q; }
50675 /^X\(\/\).*/{ s//\1/; q; }
50677 { if $as_mkdir_p; then
50682 while test ! -d "$as_dir"; do
50683 as_dirs="$as_dir $as_dirs"
50684 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50686 X"$as_dir" : 'X\(//\)[^/]' \| \
50687 X"$as_dir" : 'X\(//\)$' \| \
50688 X"$as_dir" : 'X\(/\)' \| \
50689 . : '\(.\)' 2>/dev/null ||
50691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50693 /^X\(\/\/\)$/{ s//\1/; q; }
50694 /^X\(\/\).*/{ s//\1/; q; }
50697 test ! -n "$as_dirs" || mkdir $as_dirs
50698 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50699 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50700 { (exit 1); exit 1; }; }; }
50703 mv $tmp/config.h $ac_file
50707 rm -f $tmp/config.h
50709 # Compute $ac_file's index in $config_headers.
50711 for _am_header in $config_headers :; do
50712 case $_am_header in
50713 $ac_file | $ac_file:* )
50716 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
50719 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
50720 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50721 X$ac_file : 'X\(//\)[^/]' \| \
50722 X$ac_file : 'X\(//\)$' \| \
50723 X$ac_file : 'X\(/\)' \| \
50724 . : '\(.\)' 2>/dev/null ||
50726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50728 /^X\(\/\/\)$/{ s//\1/; q; }
50729 /^X\(\/\).*/{ s//\1/; q; }
50730 s/.*/./; q'`/stamp-h$_am_stamp_count
50733 cat >>$CONFIG_STATUS <<\_ACEOF
50736 # CONFIG_COMMANDS section.
50738 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50739 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50740 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50741 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50742 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50743 X"$ac_dest" : 'X\(//\)[^/]' \| \
50744 X"$ac_dest" : 'X\(//\)$' \| \
50745 X"$ac_dest" : 'X\(/\)' \| \
50746 . : '\(.\)' 2>/dev/null ||
50748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50750 /^X\(\/\/\)$/{ s//\1/; q; }
50751 /^X\(\/\).*/{ s//\1/; q; }
50753 { if $as_mkdir_p; then
50758 while test ! -d "$as_dir"; do
50759 as_dirs="$as_dir $as_dirs"
50760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50762 X"$as_dir" : 'X\(//\)[^/]' \| \
50763 X"$as_dir" : 'X\(//\)$' \| \
50764 X"$as_dir" : 'X\(/\)' \| \
50765 . : '\(.\)' 2>/dev/null ||
50767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50769 /^X\(\/\/\)$/{ s//\1/; q; }
50770 /^X\(\/\).*/{ s//\1/; q; }
50773 test ! -n "$as_dirs" || mkdir $as_dirs
50774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50776 { (exit 1); exit 1; }; }; }
50780 if test "$ac_dir" != .; then
50781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50782 # A "../" for each directory in $ac_dir_suffix.
50783 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50785 ac_dir_suffix= ac_top_builddir=
50789 .) # No --srcdir option. We are building in place.
50791 if test -z "$ac_top_builddir"; then
50794 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50796 [\\/]* | ?:[\\/]* ) # Absolute path.
50797 ac_srcdir=$srcdir$ac_dir_suffix;
50798 ac_top_srcdir=$srcdir ;;
50799 *) # Relative path.
50800 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50801 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50804 # Do not use `cd foo && pwd` to compute absolute paths, because
50805 # the directories may not exist.
50807 .) ac_abs_builddir="$ac_dir";;
50810 .) ac_abs_builddir=`pwd`;;
50811 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50812 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50815 case $ac_abs_builddir in
50816 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50818 case ${ac_top_builddir}. in
50819 .) ac_abs_top_builddir=$ac_abs_builddir;;
50820 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50821 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50824 case $ac_abs_builddir in
50825 .) ac_abs_srcdir=$ac_srcdir;;
50828 .) ac_abs_srcdir=$ac_abs_builddir;;
50829 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50830 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50833 case $ac_abs_builddir in
50834 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50836 case $ac_top_srcdir in
50837 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50838 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50839 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50844 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50845 echo "$as_me: executing $ac_dest commands" >&6;}
50847 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
50848 # Strip MF so we end up with the name of the file.
50849 mf=`echo "$mf" | sed -e 's/:.*$//'`
50850 # Check whether this is an Automake generated Makefile or not.
50851 # We used to match only the files named `Makefile.in', but
50852 # some people rename them; so instead we look at the file content.
50853 # Grep'ing the first line is not enough: some people post-process
50854 # each Makefile.in and add a new line on top of each file to say so.
50855 # So let's grep whole file.
50856 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
50857 dirpart=`(dirname "$mf") 2>/dev/null ||
50858 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50859 X"$mf" : 'X\(//\)[^/]' \| \
50860 X"$mf" : 'X\(//\)$' \| \
50861 X"$mf" : 'X\(/\)' \| \
50862 . : '\(.\)' 2>/dev/null ||
50864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50866 /^X\(\/\/\)$/{ s//\1/; q; }
50867 /^X\(\/\).*/{ s//\1/; q; }
50872 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
50873 # Extract the definition of DEP_FILES from the Makefile without
50875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50876 test -z "$DEPDIR" && continue
50877 # When using ansi2knr, U may be empty or an underscore; expand it
50878 U=`sed -n 's/^U = //p' < "$mf"`
50879 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
50880 # We invoke sed twice because it is the simplest approach to
50881 # changing $(DEPDIR) to its actual value in the expansion.
50882 for file in `sed -n '
50883 /^DEP_FILES = .*\\\\$/ {
50892 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
50893 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
50894 # Make sure the directory exists.
50895 test -f "$dirpart/$file" && continue
50896 fdir=`(dirname "$file") 2>/dev/null ||
50897 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50898 X"$file" : 'X\(//\)[^/]' \| \
50899 X"$file" : 'X\(//\)$' \| \
50900 X"$file" : 'X\(/\)' \| \
50901 . : '\(.\)' 2>/dev/null ||
50903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50905 /^X\(\/\/\)$/{ s//\1/; q; }
50906 /^X\(\/\).*/{ s//\1/; q; }
50908 { if $as_mkdir_p; then
50909 mkdir -p $dirpart/$fdir
50911 as_dir=$dirpart/$fdir
50913 while test ! -d "$as_dir"; do
50914 as_dirs="$as_dir $as_dirs"
50915 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50917 X"$as_dir" : 'X\(//\)[^/]' \| \
50918 X"$as_dir" : 'X\(//\)$' \| \
50919 X"$as_dir" : 'X\(/\)' \| \
50920 . : '\(.\)' 2>/dev/null ||
50922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50924 /^X\(\/\/\)$/{ s//\1/; q; }
50925 /^X\(\/\).*/{ s//\1/; q; }
50928 test ! -n "$as_dirs" || mkdir $as_dirs
50929 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
50930 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
50931 { (exit 1); exit 1; }; }; }
50933 # echo "creating $dirpart/$file"
50934 echo '# dummy' > "$dirpart/$file"
50939 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
50940 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
50941 ac_stdint=$tmp/_stdint.h
50943 echo "#ifndef" $_ac_stdint_h >$ac_stdint
50944 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
50945 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
50946 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
50947 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
50948 if test "_$ac_cv_header_stdint_t" != "_" ; then
50949 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
50952 cat >>$ac_stdint <<STDINT_EOF
50954 /* ................... shortcircuit part ........................... */
50956 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
50957 #include <stdint.h>
50959 #include <stddef.h>
50961 /* .................... configured part ............................ */
50965 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
50966 if test "_$ac_cv_header_stdint_x" != "_" ; then
50967 ac_header="$ac_cv_header_stdint_x"
50968 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
50970 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
50973 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
50974 if test "_$ac_cv_header_stdint_o" != "_" ; then
50975 ac_header="$ac_cv_header_stdint_o"
50976 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
50978 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
50981 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
50982 if test "_$ac_cv_header_stdint_u" != "_" ; then
50983 ac_header="$ac_cv_header_stdint_u"
50984 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
50986 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
50989 echo "" >>$ac_stdint
50991 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
50992 echo "#include <$ac_header>" >>$ac_stdint
50993 echo "" >>$ac_stdint
50996 echo "/* which 64bit typedef has been found */" >>$ac_stdint
50997 if test "$ac_cv_type_uint64_t" = "yes" ; then
50998 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
51000 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
51002 if test "$ac_cv_type_u_int64_t" = "yes" ; then
51003 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
51005 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
51007 echo "" >>$ac_stdint
51009 echo "/* which type model has been detected */" >>$ac_stdint
51010 if test "_$ac_cv_stdint_char_model" != "_" ; then
51011 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
51012 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
51014 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
51015 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
51017 echo "" >>$ac_stdint
51019 echo "/* whether int_least types were detected */" >>$ac_stdint
51020 if test "$ac_cv_type_int_least32_t" = "yes"; then
51021 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
51023 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
51025 echo "/* whether int_fast types were detected */" >>$ac_stdint
51026 if test "$ac_cv_type_int_fast32_t" = "yes"; then
51027 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
51029 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
51031 echo "/* whether intmax_t type was detected */" >>$ac_stdint
51032 if test "$ac_cv_type_intmax_t" = "yes"; then
51033 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
51035 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
51037 echo "" >>$ac_stdint
51039 cat >>$ac_stdint <<STDINT_EOF
51040 /* .................... detections part ............................ */
51042 /* whether we need to define bitspecific types from compiler base types */
51043 #ifndef _STDINT_HEADER_INTPTR
51044 #ifndef _STDINT_HEADER_UINT32
51045 #ifndef _STDINT_HEADER_U_INT32
51046 #define _STDINT_NEED_INT_MODEL_T
51048 #define _STDINT_HAVE_U_INT_TYPES
51053 #ifdef _STDINT_HAVE_U_INT_TYPES
51054 #undef _STDINT_NEED_INT_MODEL_T
51057 #ifdef _STDINT_CHAR_MODEL
51058 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
51059 #ifndef _STDINT_BYTE_MODEL
51060 #define _STDINT_BYTE_MODEL 12
51065 #ifndef _STDINT_HAVE_INT_LEAST32_T
51066 #define _STDINT_NEED_INT_LEAST_T
51069 #ifndef _STDINT_HAVE_INT_FAST32_T
51070 #define _STDINT_NEED_INT_FAST_T
51073 #ifndef _STDINT_HEADER_INTPTR
51074 #define _STDINT_NEED_INTPTR_T
51075 #ifndef _STDINT_HAVE_INTMAX_T
51076 #define _STDINT_NEED_INTMAX_T
51081 /* .................... definition part ............................ */
51083 /* some system headers have good uint64_t */
51084 #ifndef _HAVE_UINT64_T
51085 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
51086 #define _HAVE_UINT64_T
51087 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
51088 #define _HAVE_UINT64_T
51089 typedef u_int64_t uint64_t;
51093 #ifndef _HAVE_UINT64_T
51094 /* .. here are some common heuristics using compiler runtime specifics */
51095 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
51096 #define _HAVE_UINT64_T
51097 typedef long long int64_t;
51098 typedef unsigned long long uint64_t;
51100 #elif !defined __STRICT_ANSI__
51101 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
51102 #define _HAVE_UINT64_T
51103 typedef __int64 int64_t;
51104 typedef unsigned __int64 uint64_t;
51106 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
51107 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
51108 #if !defined _NO_LONGLONG
51109 #define _HAVE_UINT64_T
51110 typedef long long int64_t;
51111 typedef unsigned long long uint64_t;
51114 #elif defined __alpha || (defined __mips && defined _ABIN32)
51115 #if !defined _NO_LONGLONG
51116 typedef long int64_t;
51117 typedef unsigned long uint64_t;
51119 /* compiler/cpu type to define int64_t */
51124 #if defined _STDINT_HAVE_U_INT_TYPES
51125 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
51126 typedef u_int8_t uint8_t;
51127 typedef u_int16_t uint16_t;
51128 typedef u_int32_t uint32_t;
51130 /* glibc compatibility */
51131 #ifndef __int8_t_defined
51132 #define __int8_t_defined
51136 #ifdef _STDINT_NEED_INT_MODEL_T
51137 /* we must guess all the basic types. Apart from byte-adressable system, */
51138 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
51139 /* (btw, those nibble-addressable systems are way off, or so we assume) */
51142 #if defined _STDINT_BYTE_MODEL
51143 #if _STDINT_LONG_MODEL+0 == 242
51144 /* 2:4:2 = IP16 = a normal 16-bit system */
51145 typedef unsigned char uint8_t;
51146 typedef unsigned short uint16_t;
51147 typedef unsigned long uint32_t;
51148 #ifndef __int8_t_defined
51149 #define __int8_t_defined
51150 typedef char int8_t;
51151 typedef short int16_t;
51152 typedef long int32_t;
51154 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
51155 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
51156 /* 4:4:4 = ILP32 = a normal 32-bit system */
51157 typedef unsigned char uint8_t;
51158 typedef unsigned short uint16_t;
51159 typedef unsigned int uint32_t;
51160 #ifndef __int8_t_defined
51161 #define __int8_t_defined
51162 typedef char int8_t;
51163 typedef short int16_t;
51164 typedef int int32_t;
51166 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
51167 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
51168 /* 4:8:8 = LP64 = a normal 64-bit system */
51169 typedef unsigned char uint8_t;
51170 typedef unsigned short uint16_t;
51171 typedef unsigned int uint32_t;
51172 #ifndef __int8_t_defined
51173 #define __int8_t_defined
51174 typedef char int8_t;
51175 typedef short int16_t;
51176 typedef int int32_t;
51178 /* this system has a "long" of 64bit */
51179 #ifndef _HAVE_UINT64_T
51180 #define _HAVE_UINT64_T
51181 typedef unsigned long uint64_t;
51182 typedef long int64_t;
51184 #elif _STDINT_LONG_MODEL+0 == 448
51185 /* LLP64 a 64-bit system derived from a 32-bit system */
51186 typedef unsigned char uint8_t;
51187 typedef unsigned short uint16_t;
51188 typedef unsigned int uint32_t;
51189 #ifndef __int8_t_defined
51190 #define __int8_t_defined
51191 typedef char int8_t;
51192 typedef short int16_t;
51193 typedef int int32_t;
51195 /* assuming the system has a "long long" */
51196 #ifndef _HAVE_UINT64_T
51197 #define _HAVE_UINT64_T
51198 typedef unsigned long long uint64_t;
51199 typedef long long int64_t;
51202 #define _STDINT_NO_INT32_T
51205 #define _STDINT_NO_INT8_T
51206 #define _STDINT_NO_INT32_T
51211 * quote from SunOS-5.8 sys/inttypes.h:
51212 * Use at your own risk. As of February 1996, the committee is squarely
51213 * behind the fixed sized types; the "least" and "fast" types are still being
51214 * discussed. The probability that the "fast" types may be removed before
51215 * the standard is finalized is high enough that they are not currently
51219 #if defined _STDINT_NEED_INT_LEAST_T
51220 typedef int8_t int_least8_t;
51221 typedef int16_t int_least16_t;
51222 typedef int32_t int_least32_t;
51223 #ifdef _HAVE_UINT64_T
51224 typedef int64_t int_least64_t;
51227 typedef uint8_t uint_least8_t;
51228 typedef uint16_t uint_least16_t;
51229 typedef uint32_t uint_least32_t;
51230 #ifdef _HAVE_UINT64_T
51231 typedef uint64_t uint_least64_t;
51236 #if defined _STDINT_NEED_INT_FAST_T
51237 typedef int8_t int_fast8_t;
51238 typedef int int_fast16_t;
51239 typedef int32_t int_fast32_t;
51240 #ifdef _HAVE_UINT64_T
51241 typedef int64_t int_fast64_t;
51244 typedef uint8_t uint_fast8_t;
51245 typedef unsigned uint_fast16_t;
51246 typedef uint32_t uint_fast32_t;
51247 #ifdef _HAVE_UINT64_T
51248 typedef uint64_t uint_fast64_t;
51253 #ifdef _STDINT_NEED_INTMAX_T
51254 #ifdef _HAVE_UINT64_T
51255 typedef int64_t intmax_t;
51256 typedef uint64_t uintmax_t;
51258 typedef long intmax_t;
51259 typedef unsigned long uintmax_t;
51263 #ifdef _STDINT_NEED_INTPTR_T
51264 #ifndef __intptr_t_defined
51265 #define __intptr_t_defined
51266 /* we encourage using "long" to store pointer values, never use "int" ! */
51267 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
51268 typedef unsinged int uintptr_t;
51269 typedef int intptr_t;
51270 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
51271 typedef unsigned long uintptr_t;
51272 typedef long intptr_t;
51273 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
51274 typedef uint64_t uintptr_t;
51275 typedef int64_t intptr_t;
51276 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
51277 typedef unsigned long uintptr_t;
51278 typedef long intptr_t;
51289 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
51290 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
51291 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
51293 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
51294 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51295 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
51296 X"$ac_stdint_h" : 'X\(//\)$' \| \
51297 X"$ac_stdint_h" : 'X\(/\)' \| \
51298 . : '\(.\)' 2>/dev/null ||
51299 echo X"$ac_stdint_h" |
51300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51302 /^X\(\/\/\)$/{ s//\1/; q; }
51303 /^X\(\/\).*/{ s//\1/; q; }
51305 { if $as_mkdir_p; then
51310 while test ! -d "$as_dir"; do
51311 as_dirs="$as_dir $as_dirs"
51312 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51314 X"$as_dir" : 'X\(//\)[^/]' \| \
51315 X"$as_dir" : 'X\(//\)$' \| \
51316 X"$as_dir" : 'X\(/\)' \| \
51317 . : '\(.\)' 2>/dev/null ||
51319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51321 /^X\(\/\/\)$/{ s//\1/; q; }
51322 /^X\(\/\).*/{ s//\1/; q; }
51325 test ! -n "$as_dirs" || mkdir $as_dirs
51326 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51327 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51328 { (exit 1); exit 1; }; }; }
51331 mv $ac_stdint $ac_stdint_h
51338 cat >>$CONFIG_STATUS <<\_ACEOF
51340 { (exit 0); exit 0; }
51342 chmod +x $CONFIG_STATUS
51343 ac_clean_files=$ac_clean_files_save
51346 # configure is writing to config.log, and then calls config.status.
51347 # config.status does its own redirection, appending to config.log.
51348 # Unfortunately, on DOS this fails, as config.log is still kept open
51349 # by configure, so config.status won't be able to write to it; its
51350 # output is simply discarded. So we exec the FD to /dev/null,
51351 # effectively closing config.log, so it can be properly (re)opened and
51352 # appended to by config.status. When coming back to configure, we
51353 # need to make the FD available again.
51354 if test "$no_create" != yes; then
51356 ac_config_status_args=
51357 test "$silent" = yes &&
51358 ac_config_status_args="$ac_config_status_args --quiet"
51360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51363 # would make configure fail if this is the last instruction.
51364 $ac_cs_success || { (exit 1); exit 1; }