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
27421 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27422 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
27423 if test "${ac_cv_header_time+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 cat >conftest.$ac_ext <<_ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h. */
27432 #include <sys/types.h>
27433 #include <sys/time.h>
27439 if ((struct tm *) 0)
27445 rm -f conftest.$ac_objext
27446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27447 (eval $ac_compile) 2>conftest.er1
27449 grep -v '^ *+' conftest.er1 >conftest.err
27451 cat conftest.err >&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
27454 { ac_try='test -z "$ac_c_werror_flag"
27455 || test ! -s conftest.err'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; } &&
27461 { ac_try='test -s conftest.$ac_objext'
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ac_cv_header_time=yes
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ac_cv_header_time=no
27474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27476 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27477 echo "${ECHO_T}$ac_cv_header_time" >&6
27478 if test $ac_cv_header_time = yes; then
27480 cat >>confdefs.h <<\_ACEOF
27481 #define TIME_WITH_SYS_TIME 1
27547 cam/scsi/scsi_message.h \
27563 netinet/in_systm.h \
27565 readline/history.h \
27566 readline/readline.h \
27568 scsi/scsi_ioctl.h \
27586 sys/scsi/impl/uscsi.h \
27587 sys/scsi/scsi/ioctl.h \
27603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27605 echo "$as_me:$LINENO: checking for $ac_header" >&5
27606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27613 # Is the header compilable?
27614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27616 cat >conftest.$ac_ext <<_ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h. */
27622 $ac_includes_default
27623 #include <$ac_header>
27625 rm -f conftest.$ac_objext
27626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27627 (eval $ac_compile) 2>conftest.er1
27629 grep -v '^ *+' conftest.er1 >conftest.err
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } &&
27634 { ac_try='test -z "$ac_c_werror_flag"
27635 || test ! -s conftest.err'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; } &&
27641 { ac_try='test -s conftest.$ac_objext'
27642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27643 (eval $ac_try) 2>&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; }; then
27647 ac_header_compiler=yes
27649 echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27652 ac_header_compiler=no
27654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27656 echo "${ECHO_T}$ac_header_compiler" >&6
27658 # Is the header present?
27659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27661 cat >conftest.$ac_ext <<_ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h. */
27667 #include <$ac_header>
27669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27672 grep -v '^ *+' conftest.er1 >conftest.err
27674 cat conftest.err >&5
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } >/dev/null; then
27677 if test -s conftest.err; then
27678 ac_cpp_err=$ac_c_preproc_warn_flag
27679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27686 if test -z "$ac_cpp_err"; then
27687 ac_header_preproc=yes
27689 echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27692 ac_header_preproc=no
27694 rm -f conftest.err conftest.$ac_ext
27695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27696 echo "${ECHO_T}$ac_header_preproc" >&6
27698 # So? What about this header?
27699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27705 ac_header_preproc=yes
27708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27722 ## ------------------------------------------ ##
27723 ## Report this to the AC_PACKAGE_NAME lists. ##
27724 ## ------------------------------------------ ##
27727 sed "s/^/$as_me: WARNING: /" >&2
27730 echo "$as_me:$LINENO: checking for $ac_header" >&5
27731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27733 echo $ECHO_N "(cached) $ECHO_C" >&6
27735 eval "$as_ac_Header=\$ac_header_preproc"
27737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27742 cat >>confdefs.h <<_ACEOF
27743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27752 for ac_header in netinet/ip.h
27754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27755 echo "$as_me:$LINENO: checking for $ac_header" >&5
27756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27758 echo $ECHO_N "(cached) $ECHO_C" >&6
27760 cat >conftest.$ac_ext <<_ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h. */
27766 #include <sys/socket.h>
27767 #if HAVE_SYS_TYPES_H
27768 #include <sys/types.h>
27770 #ifdef HAVE_NETINET_IN_SYSTM_H
27771 #include <netinet/in_systm.h>
27773 #include <netinet/in.h>
27776 #include <$ac_header>
27778 rm -f conftest.$ac_objext
27779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27780 (eval $ac_compile) 2>conftest.er1
27782 grep -v '^ *+' conftest.er1 >conftest.err
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
27787 { ac_try='test -z "$ac_c_werror_flag"
27788 || test ! -s conftest.err'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; } &&
27794 { ac_try='test -s conftest.$ac_objext'
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
27800 eval "$as_ac_Header=yes"
27802 echo "$as_me: failed program was:" >&5
27803 sed 's/^/| /' conftest.$ac_ext >&5
27805 eval "$as_ac_Header=no"
27807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27812 cat >>confdefs.h <<_ACEOF
27813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27822 for ac_header in sys/mount.h
27824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27825 echo "$as_me:$LINENO: checking for $ac_header" >&5
27826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27830 cat >conftest.$ac_ext <<_ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h. */
27836 #ifdef HAVE_SYS_PARAM_H
27837 #include <sys/param.h>
27841 #include <$ac_header>
27843 rm -f conftest.$ac_objext
27844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27845 (eval $ac_compile) 2>conftest.er1
27847 grep -v '^ *+' conftest.er1 >conftest.err
27849 cat conftest.err >&5
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); } &&
27852 { ac_try='test -z "$ac_c_werror_flag"
27853 || test ! -s conftest.err'
27854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27855 (eval $ac_try) 2>&5
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); }; } &&
27859 { ac_try='test -s conftest.$ac_objext'
27860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861 (eval $ac_try) 2>&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
27865 eval "$as_ac_Header=yes"
27867 echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27870 eval "$as_ac_Header=no"
27872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27877 cat >>confdefs.h <<_ACEOF
27878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27886 NO_SCSI_CHANGER_MODE=true
27887 NO_CHIO_CHANGER_MODE=true
27889 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27890 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27891 if test "${ac_cv_c_bigendian+set}" = set; then
27892 echo $ECHO_N "(cached) $ECHO_C" >&6
27894 # See if sys/param.h defines the BYTE_ORDER macro.
27895 cat >conftest.$ac_ext <<_ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h. */
27901 #include <sys/types.h>
27902 #include <sys/param.h>
27907 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27908 bogus endian macros
27915 rm -f conftest.$ac_objext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27917 (eval $ac_compile) 2>conftest.er1
27919 grep -v '^ *+' conftest.er1 >conftest.err
27921 cat conftest.err >&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); } &&
27924 { ac_try='test -z "$ac_c_werror_flag"
27925 || test ! -s conftest.err'
27926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927 (eval $ac_try) 2>&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; } &&
27931 { ac_try='test -s conftest.$ac_objext'
27932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933 (eval $ac_try) 2>&5
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; }; then
27937 # It does; now see whether it defined to BIG_ENDIAN or not.
27938 cat >conftest.$ac_ext <<_ACEOF
27941 cat confdefs.h >>conftest.$ac_ext
27942 cat >>conftest.$ac_ext <<_ACEOF
27943 /* end confdefs.h. */
27944 #include <sys/types.h>
27945 #include <sys/param.h>
27950 #if BYTE_ORDER != BIG_ENDIAN
27958 rm -f conftest.$ac_objext
27959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27960 (eval $ac_compile) 2>conftest.er1
27962 grep -v '^ *+' conftest.er1 >conftest.err
27964 cat conftest.err >&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } &&
27967 { ac_try='test -z "$ac_c_werror_flag"
27968 || test ! -s conftest.err'
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; } &&
27974 { ac_try='test -s conftest.$ac_objext'
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 ac_cv_c_bigendian=yes
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27985 ac_cv_c_bigendian=no
27987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27989 echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27992 # It does not; compile a test program.
27993 if test "$cross_compiling" = yes; then
27994 # try to guess the endianness by grepping values into an object file
27995 ac_cv_c_bigendian=unknown
27996 cat >conftest.$ac_ext <<_ACEOF
27999 cat confdefs.h >>conftest.$ac_ext
28000 cat >>conftest.$ac_ext <<_ACEOF
28001 /* end confdefs.h. */
28002 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28003 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28004 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28005 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28006 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28007 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28011 _ascii (); _ebcdic ();
28016 rm -f conftest.$ac_objext
28017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28018 (eval $ac_compile) 2>conftest.er1
28020 grep -v '^ *+' conftest.er1 >conftest.err
28022 cat conftest.err >&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } &&
28025 { ac_try='test -z "$ac_c_werror_flag"
28026 || test ! -s conftest.err'
28027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028 (eval $ac_try) 2>&5
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; } &&
28032 { ac_try='test -s conftest.$ac_objext'
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; }; then
28038 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28039 ac_cv_c_bigendian=yes
28041 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28042 if test "$ac_cv_c_bigendian" = unknown; then
28043 ac_cv_c_bigendian=no
28045 # finding both strings is unlikely to happen, but who knows?
28046 ac_cv_c_bigendian=unknown
28050 echo "$as_me: failed program was:" >&5
28051 sed 's/^/| /' conftest.$ac_ext >&5
28054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28056 cat >conftest.$ac_ext <<_ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h. */
28065 /* Are we little or big endian? From Harbison&Steele. */
28069 char c[sizeof (long)];
28072 exit (u.c[sizeof (long) - 1] == 1);
28075 rm -f conftest$ac_exeext
28076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28077 (eval $ac_link) 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082 (eval $ac_try) 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_cv_c_bigendian=no
28088 echo "$as_me: program exited with status $ac_status" >&5
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28092 ( exit $ac_status )
28093 ac_cv_c_bigendian=yes
28095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28100 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28101 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28102 case $ac_cv_c_bigendian in
28105 cat >>confdefs.h <<\_ACEOF
28106 #define WORDS_BIGENDIAN 1
28112 { { echo "$as_me:$LINENO: error: unknown endianness
28113 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28114 echo "$as_me: error: unknown endianness
28115 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28116 { (exit 1); exit 1; }; } ;;
28120 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28121 echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
28122 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
28123 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 cat >conftest.$ac_ext <<_ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h. */
28133 #include <sys/scsi.h>
28139 static struct element_addresses changer_info;
28140 int i = SIOC_ELEMENT_ADDRESSES;
28141 int j = SIOC_ELEMENT_STATUS;
28142 int k = SIOC_MOVE_MEDIUM;
28148 rm -f conftest.$ac_objext
28149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28150 (eval $ac_compile) 2>conftest.er1
28152 grep -v '^ *+' conftest.er1 >conftest.err
28154 cat conftest.err >&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } &&
28157 { ac_try='test -z "$ac_c_werror_flag"
28158 || test ! -s conftest.err'
28159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160 (eval $ac_try) 2>&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest.$ac_objext'
28165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
28170 amanda_cv_hpux_scsi_chio=yes
28172 echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28175 amanda_cv_hpux_scsi_chio=no
28177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28179 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
28180 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
28181 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
28183 cat >>confdefs.h <<\_ACEOF
28184 #define HAVE_HPUX_SCSI_CHIO 1
28187 NO_SCSI_CHANGER_MODE=false
28191 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28192 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
28193 echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
28194 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
28195 if test "${amanda_cv_linux_scsi+set}" = set; then
28196 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 cat >conftest.$ac_ext <<_ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h. */
28205 #include <scsi/scsi_ioctl.h>
28206 #include <sys/mtio.h>
28214 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
28220 rm -f conftest.$ac_objext
28221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28222 (eval $ac_compile) 2>conftest.er1
28224 grep -v '^ *+' conftest.er1 >conftest.err
28226 cat conftest.err >&5
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } &&
28229 { ac_try='test -z "$ac_c_werror_flag"
28230 || test ! -s conftest.err'
28231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232 (eval $ac_try) 2>&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; } &&
28236 { ac_try='test -s conftest.$ac_objext'
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; }; then
28242 amanda_cv_linux_scsi=yes
28244 echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28247 amanda_cv_linux_scsi=no
28249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28251 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
28252 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
28255 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28256 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
28257 echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
28258 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
28259 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28262 cat >conftest.$ac_ext <<_ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28269 #include <scsi/sg.h>
28270 #include <sys/mtio.h>
28277 struct sg_header *psg_header;
28279 write(device, buffer, 1);
28285 rm -f conftest.$ac_objext
28286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28287 (eval $ac_compile) 2>conftest.er1
28289 grep -v '^ *+' conftest.er1 >conftest.err
28291 cat conftest.err >&5
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); } &&
28294 { ac_try='test -z "$ac_c_werror_flag"
28295 || test ! -s conftest.err'
28296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28297 (eval $ac_try) 2>&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); }; } &&
28301 { ac_try='test -s conftest.$ac_objext'
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; }; then
28307 amanda_cv_linux_sg_scsi=yes
28309 echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28312 amanda_cv_linux_sg_scsi=no
28314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28316 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
28317 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
28320 if test x"$amanda_cv_linux_scsi" = x"yes" ||
28321 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_LINUX_LIKE_SCSI 1
28327 NO_SCSI_CHANGER_MODE=false
28330 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28331 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28332 echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
28333 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
28334 if test "${amanda_cv_hpux_scsi+set}" = set; then
28335 echo $ECHO_N "(cached) $ECHO_C" >&6
28337 cat >conftest.$ac_ext <<_ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h. */
28345 #include <sys/ioctl.h>
28346 #include <sys/scsi.h>
28347 #include <sys/mtio.h>
28355 ioctl(device, SIOC_IO, Command);
28361 rm -f conftest.$ac_objext
28362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28363 (eval $ac_compile) 2>conftest.er1
28365 grep -v '^ *+' conftest.er1 >conftest.err
28367 cat conftest.err >&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } &&
28370 { ac_try='test -z "$ac_c_werror_flag"
28371 || test ! -s conftest.err'
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; } &&
28377 { ac_try='test -s conftest.$ac_objext'
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
28383 amanda_cv_hpux_scsi=yes
28385 echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28388 amanda_cv_hpux_scsi=no
28390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28392 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
28393 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
28394 if test x"$amanda_cv_hpux_scsi" = x"yes";then
28396 cat >>confdefs.h <<\_ACEOF
28397 #define HAVE_HPUX_LIKE_SCSI 1
28400 NO_SCSI_CHANGER_MODE=false
28401 NO_CHIO_CHANGER_MODE=false
28405 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28406 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
28407 echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
28408 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
28409 if test "${amanda_cv_irix_scsi+set}" = set; then
28410 echo $ECHO_N "(cached) $ECHO_C" >&6
28412 cat >conftest.$ac_ext <<_ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h. */
28419 #include <sys/types.h>
28420 #include <sys/dsreq.h>
28421 #include <sys/mtio.h>
28429 ioctl(device, DS_ENTER, &Command);
28435 rm -f conftest.$ac_objext
28436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28437 (eval $ac_compile) 2>conftest.er1
28439 grep -v '^ *+' conftest.er1 >conftest.err
28441 cat conftest.err >&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); } &&
28444 { ac_try='test -z "$ac_c_werror_flag"
28445 || test ! -s conftest.err'
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; } &&
28451 { ac_try='test -s conftest.$ac_objext'
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; }; then
28457 amanda_cv_irix_scsi=yes
28459 echo "$as_me: failed program was:" >&5
28460 sed 's/^/| /' conftest.$ac_ext >&5
28462 amanda_cv_irix_scsi=no
28464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28466 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
28467 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
28468 if test x"$amanda_cv_irix_scsi" = x"yes";then
28470 cat >>confdefs.h <<\_ACEOF
28471 #define HAVE_IRIX_LIKE_SCSI 1
28474 NO_SCSI_CHANGER_MODE=false
28478 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28479 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
28480 echo "$as_me:$LINENO: checking for Solaris like scsi support" >&5
28481 echo $ECHO_N "checking for Solaris like scsi support... $ECHO_C" >&6
28482 if test "${amanda_cv_solaris_scsi+set}" = set; then
28483 echo $ECHO_N "(cached) $ECHO_C" >&6
28485 cat >conftest.$ac_ext <<_ACEOF
28488 cat confdefs.h >>conftest.$ac_ext
28489 cat >>conftest.$ac_ext <<_ACEOF
28490 /* end confdefs.h. */
28492 #include <sys/types.h>
28493 #include <sys/scsi/impl/uscsi.h>
28494 #include <sys/mtio.h>
28502 ioctl(device, USCSICMD, Command);
28508 rm -f conftest.$ac_objext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28510 (eval $ac_compile) 2>conftest.er1
28512 grep -v '^ *+' conftest.er1 >conftest.err
28514 cat conftest.err >&5
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); } &&
28517 { ac_try='test -z "$ac_c_werror_flag"
28518 || test ! -s conftest.err'
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest.$ac_objext'
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28530 amanda_cv_solaris_scsi=yes
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28535 amanda_cv_solaris_scsi=no
28537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28539 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
28540 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
28541 if test x"$amanda_cv_solaris_scsi" = x"yes";then
28543 cat >>confdefs.h <<\_ACEOF
28544 #define HAVE_SOLARIS_LIKE_SCSI 1
28547 NO_SCSI_CHANGER_MODE=false
28551 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
28552 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
28553 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
28554 echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
28555 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
28556 if test "${amanda_cv_aix_scsi+set}" = set; then
28557 echo $ECHO_N "(cached) $ECHO_C" >&6
28559 cat >conftest.$ac_ext <<_ACEOF
28562 cat confdefs.h >>conftest.$ac_ext
28563 cat >>conftest.$ac_ext <<_ACEOF
28564 /* end confdefs.h. */
28566 #include <sys/types.h>
28567 #include <sys/scarray.h>
28568 #include <sys/tape.h>
28576 ioctl(device, STIOCMD, Command);
28582 rm -f conftest.$ac_objext
28583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28584 (eval $ac_compile) 2>conftest.er1
28586 grep -v '^ *+' conftest.er1 >conftest.err
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
28591 { ac_try='test -z "$ac_c_werror_flag"
28592 || test ! -s conftest.err'
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; } &&
28598 { ac_try='test -s conftest.$ac_objext'
28599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 (eval $ac_try) 2>&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; }; then
28604 amanda_cv_aix_scsi=yes
28606 echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28609 amanda_cv_aix_scsi=no
28611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28613 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
28614 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
28615 if test x"$amanda_cv_aix_scsi" = x"yes";then
28617 cat >>confdefs.h <<\_ACEOF
28618 #define HAVE_AIX_LIKE_SCSI 1
28621 NO_SCSI_CHANGER_MODE=false
28624 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
28625 echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
28626 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
28627 if test "${amanda_cv_cam_scsi+set}" = set; then
28628 echo $ECHO_N "(cached) $ECHO_C" >&6
28630 cat >conftest.$ac_ext <<_ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h. */
28638 # include <fcntl.h>
28639 # include <cam/cam.h>
28640 # include <cam/cam_ccb.h>
28641 # include <cam/scsi/scsi_message.h>
28642 # include <cam/scsi/scsi_pass.h>
28643 # include <camlib.h>
28649 struct cam_device *curdev;
28651 curdev = cam_open_pass("", O_RDWR, NULL);
28657 rm -f conftest.$ac_objext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28659 (eval $ac_compile) 2>conftest.er1
28661 grep -v '^ *+' conftest.er1 >conftest.err
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_c_werror_flag"
28667 || test ! -s conftest.err'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; }; then
28679 amanda_cv_cam_scsi=yes
28681 echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28684 amanda_cv_cam_scsi=no
28686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28688 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
28689 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
28690 if test x"$amanda_cv_cam_scsi" = x"yes";then
28692 cat >>confdefs.h <<\_ACEOF
28693 #define HAVE_CAM_LIKE_SCSI 1
28696 NO_SCSI_CHANGER_MODE=false
28698 echo "$as_me:$LINENO: checking for main in -lcam" >&5
28699 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
28700 if test "${ac_cv_lib_cam_main+set}" = set; then
28701 echo $ECHO_N "(cached) $ECHO_C" >&6
28703 ac_check_lib_save_LIBS=$LIBS
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28721 rm -f conftest.$ac_objext conftest$ac_exeext
28722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28723 (eval $ac_link) 2>conftest.er1
28725 grep -v '^ *+' conftest.er1 >conftest.err
28727 cat conftest.err >&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } &&
28730 { ac_try='test -z "$ac_c_werror_flag"
28731 || test ! -s conftest.err'
28732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733 (eval $ac_try) 2>&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; } &&
28737 { ac_try='test -s conftest$ac_exeext'
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
28743 ac_cv_lib_cam_main=yes
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28748 ac_cv_lib_cam_main=no
28750 rm -f conftest.err conftest.$ac_objext \
28751 conftest$ac_exeext conftest.$ac_ext
28752 LIBS=$ac_check_lib_save_LIBS
28754 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
28755 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
28756 if test $ac_cv_lib_cam_main = yes; then
28757 cat >>confdefs.h <<_ACEOF
28758 #define HAVE_LIBCAM 1
28768 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28769 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
28770 echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
28771 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
28772 if test "${amanda_cv_bsd_scsi+set}" = set; then
28773 echo $ECHO_N "(cached) $ECHO_C" >&6
28775 cat >conftest.$ac_ext <<_ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28782 #include <sys/types.h>
28783 #include <sys/scsiio.h>
28784 #include <sys/mtio.h>
28792 ioctl(device, SCIOCCOMMAND, &Command);
28798 rm -f conftest.$ac_objext
28799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28800 (eval $ac_compile) 2>conftest.er1
28802 grep -v '^ *+' conftest.er1 >conftest.err
28804 cat conftest.err >&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); } &&
28807 { ac_try='test -z "$ac_c_werror_flag"
28808 || test ! -s conftest.err'
28809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28810 (eval $ac_try) 2>&5
28812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813 (exit $ac_status); }; } &&
28814 { ac_try='test -s conftest.$ac_objext'
28815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28816 (eval $ac_try) 2>&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); }; }; then
28820 amanda_cv_bsd_scsi=yes
28822 echo "$as_me: failed program was:" >&5
28823 sed 's/^/| /' conftest.$ac_ext >&5
28825 amanda_cv_bsd_scsi=no
28827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28829 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
28830 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
28831 if test x"$amanda_cv_bsd_scsi" = x"yes";then
28833 cat >>confdefs.h <<\_ACEOF
28834 #define HAVE_BSD_LIKE_SCSI 1
28837 NO_SCSI_CHANGER_MODE=false
28841 if test x"$ac_cv_header_chio_h" = x"yes" ||
28842 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
28843 if test x"$ac_cv_header_camlib_h" != x"yes"; then
28844 if $NO_SCSI_CHANGER_MODE; then
28845 NO_SCSI_CHANGER_MODE=false
28847 NO_CHIO_CHANGER_MODE=false
28853 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
28854 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
28855 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28858 ac_check_lib_save_LIBS=$LIBS
28859 LIBS="-lcur_colr $LIBS"
28860 cat >conftest.$ac_ext <<_ACEOF
28863 cat confdefs.h >>conftest.$ac_ext
28864 cat >>conftest.$ac_ext <<_ACEOF
28865 /* end confdefs.h. */
28876 rm -f conftest.$ac_objext conftest$ac_exeext
28877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28878 (eval $ac_link) 2>conftest.er1
28880 grep -v '^ *+' conftest.er1 >conftest.err
28882 cat conftest.err >&5
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); } &&
28885 { ac_try='test -z "$ac_c_werror_flag"
28886 || test ! -s conftest.err'
28887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888 (eval $ac_try) 2>&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; } &&
28892 { ac_try='test -s conftest$ac_exeext'
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; }; then
28898 ac_cv_lib_cur_colr_main=yes
28900 echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28903 ac_cv_lib_cur_colr_main=no
28905 rm -f conftest.err conftest.$ac_objext \
28906 conftest$ac_exeext conftest.$ac_ext
28907 LIBS=$ac_check_lib_save_LIBS
28909 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
28910 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
28911 if test $ac_cv_lib_cur_colr_main = yes; then
28912 cat >>confdefs.h <<_ACEOF
28913 #define HAVE_LIBCUR_COLR 1
28916 LIBS="-lcur_colr $LIBS"
28922 echo "$as_me:$LINENO: checking for main in -lintl" >&5
28923 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
28924 if test "${ac_cv_lib_intl_main+set}" = set; then
28925 echo $ECHO_N "(cached) $ECHO_C" >&6
28927 ac_check_lib_save_LIBS=$LIBS
28928 LIBS="-lintl $LIBS"
28929 cat >conftest.$ac_ext <<_ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28945 rm -f conftest.$ac_objext conftest$ac_exeext
28946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28947 (eval $ac_link) 2>conftest.er1
28949 grep -v '^ *+' conftest.er1 >conftest.err
28951 cat conftest.err >&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } &&
28954 { ac_try='test -z "$ac_c_werror_flag"
28955 || test ! -s conftest.err'
28956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957 (eval $ac_try) 2>&5
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); }; } &&
28961 { ac_try='test -s conftest$ac_exeext'
28962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963 (eval $ac_try) 2>&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; }; then
28967 ac_cv_lib_intl_main=yes
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28972 ac_cv_lib_intl_main=no
28974 rm -f conftest.err conftest.$ac_objext \
28975 conftest$ac_exeext conftest.$ac_ext
28976 LIBS=$ac_check_lib_save_LIBS
28978 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
28979 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
28980 if test $ac_cv_lib_intl_main = yes; then
28981 cat >>confdefs.h <<_ACEOF
28982 #define HAVE_LIBINTL 1
28985 LIBS="-lintl $LIBS"
28993 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
28994 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
28995 if test "${ac_cv_lib_socket_main+set}" = set; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
28998 ac_check_lib_save_LIBS=$LIBS
28999 LIBS="-lsocket $LIBS"
29000 cat >conftest.$ac_ext <<_ACEOF
29003 cat confdefs.h >>conftest.$ac_ext
29004 cat >>conftest.$ac_ext <<_ACEOF
29005 /* end confdefs.h. */
29016 rm -f conftest.$ac_objext conftest$ac_exeext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29018 (eval $ac_link) 2>conftest.er1
29020 grep -v '^ *+' conftest.er1 >conftest.err
29022 cat conftest.err >&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); } &&
29025 { ac_try='test -z "$ac_c_werror_flag"
29026 || test ! -s conftest.err'
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; } &&
29032 { ac_try='test -s conftest$ac_exeext'
29033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 (eval $ac_try) 2>&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; }; then
29038 ac_cv_lib_socket_main=yes
29040 echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29043 ac_cv_lib_socket_main=no
29045 rm -f conftest.err conftest.$ac_objext \
29046 conftest$ac_exeext conftest.$ac_ext
29047 LIBS=$ac_check_lib_save_LIBS
29049 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29050 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29051 if test $ac_cv_lib_socket_main = yes; then
29052 cat >>confdefs.h <<_ACEOF
29053 #define HAVE_LIBSOCKET 1
29056 LIBS="-lsocket $LIBS"
29063 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
29064 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
29065 if test "${ac_cv_lib_nsl_main+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 ac_check_lib_save_LIBS=$LIBS
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29086 rm -f conftest.$ac_objext conftest$ac_exeext
29087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29088 (eval $ac_link) 2>conftest.er1
29090 grep -v '^ *+' conftest.er1 >conftest.err
29092 cat conftest.err >&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } &&
29095 { ac_try='test -z "$ac_c_werror_flag"
29096 || test ! -s conftest.err'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; } &&
29102 { ac_try='test -s conftest$ac_exeext'
29103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29104 (eval $ac_try) 2>&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; }; then
29108 ac_cv_lib_nsl_main=yes
29110 echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29113 ac_cv_lib_nsl_main=no
29115 rm -f conftest.err conftest.$ac_objext \
29116 conftest$ac_exeext conftest.$ac_ext
29117 LIBS=$ac_check_lib_save_LIBS
29119 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
29120 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
29121 if test $ac_cv_lib_nsl_main = yes; then
29122 cat >>confdefs.h <<_ACEOF
29123 #define HAVE_LIBNSL 1
29131 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29132 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29133 if test "${ac_cv_lib_socket_main+set}" = set; then
29134 echo $ECHO_N "(cached) $ECHO_C" >&6
29136 ac_check_lib_save_LIBS=$LIBS
29137 LIBS="-lsocket $LIBS"
29138 cat >conftest.$ac_ext <<_ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h. */
29154 rm -f conftest.$ac_objext conftest$ac_exeext
29155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29156 (eval $ac_link) 2>conftest.er1
29158 grep -v '^ *+' conftest.er1 >conftest.err
29160 cat conftest.err >&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); } &&
29163 { ac_try='test -z "$ac_c_werror_flag"
29164 || test ! -s conftest.err'
29165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166 (eval $ac_try) 2>&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; } &&
29170 { ac_try='test -s conftest$ac_exeext'
29171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172 (eval $ac_try) 2>&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); }; }; then
29176 ac_cv_lib_socket_main=yes
29178 echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29181 ac_cv_lib_socket_main=no
29183 rm -f conftest.err conftest.$ac_objext \
29184 conftest$ac_exeext conftest.$ac_ext
29185 LIBS=$ac_check_lib_save_LIBS
29187 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29188 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29189 if test $ac_cv_lib_socket_main = yes; then
29190 cat >>confdefs.h <<_ACEOF
29191 #define HAVE_LIBSOCKET 1
29194 LIBS="-lsocket $LIBS"
29199 echo "$as_me:$LINENO: checking for main in -lsun" >&5
29200 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
29201 if test "${ac_cv_lib_sun_main+set}" = set; then
29202 echo $ECHO_N "(cached) $ECHO_C" >&6
29204 ac_check_lib_save_LIBS=$LIBS
29206 cat >conftest.$ac_ext <<_ACEOF
29209 cat confdefs.h >>conftest.$ac_ext
29210 cat >>conftest.$ac_ext <<_ACEOF
29211 /* end confdefs.h. */
29222 rm -f conftest.$ac_objext conftest$ac_exeext
29223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29224 (eval $ac_link) 2>conftest.er1
29226 grep -v '^ *+' conftest.er1 >conftest.err
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); } &&
29231 { ac_try='test -z "$ac_c_werror_flag"
29232 || test ! -s conftest.err'
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; } &&
29238 { ac_try='test -s conftest$ac_exeext'
29239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240 (eval $ac_try) 2>&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; }; then
29244 ac_cv_lib_sun_main=yes
29246 echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29249 ac_cv_lib_sun_main=no
29251 rm -f conftest.err conftest.$ac_objext \
29252 conftest$ac_exeext conftest.$ac_ext
29253 LIBS=$ac_check_lib_save_LIBS
29255 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
29256 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
29257 if test $ac_cv_lib_sun_main = yes; then
29258 cat >>confdefs.h <<_ACEOF
29259 #define HAVE_LIBSUN 1
29270 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29271 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
29272 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29273 echo $ECHO_N "(cached) $ECHO_C" >&6
29275 ac_check_lib_save_LIBS=$LIBS
29276 LIBS="-ltermcap $LIBS"
29277 cat >conftest.$ac_ext <<_ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h. */
29284 /* Override any gcc2 internal prototype to avoid an error. */
29288 /* We use char because int might match the return type of a gcc2
29289 builtin and then its argument prototype would still apply. */
29299 rm -f conftest.$ac_objext conftest$ac_exeext
29300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29301 (eval $ac_link) 2>conftest.er1
29303 grep -v '^ *+' conftest.er1 >conftest.err
29305 cat conftest.err >&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); } &&
29308 { ac_try='test -z "$ac_c_werror_flag"
29309 || test ! -s conftest.err'
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; } &&
29315 { ac_try='test -s conftest$ac_exeext'
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; }; then
29321 ac_cv_lib_termcap_tgetent=yes
29323 echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29326 ac_cv_lib_termcap_tgetent=no
29328 rm -f conftest.err conftest.$ac_objext \
29329 conftest$ac_exeext conftest.$ac_ext
29330 LIBS=$ac_check_lib_save_LIBS
29332 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29333 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
29334 if test $ac_cv_lib_termcap_tgetent = yes; then
29335 cat >>confdefs.h <<_ACEOF
29336 #define HAVE_LIBTERMCAP 1
29339 LIBS="-ltermcap $LIBS"
29343 if test "$ac_cv_lib_termcap_tgetent" != yes; then
29345 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29346 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
29347 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
29348 echo $ECHO_N "(cached) $ECHO_C" >&6
29350 ac_check_lib_save_LIBS=$LIBS
29351 LIBS="-lcurses $LIBS"
29352 cat >conftest.$ac_ext <<_ACEOF
29355 cat confdefs.h >>conftest.$ac_ext
29356 cat >>conftest.$ac_ext <<_ACEOF
29357 /* end confdefs.h. */
29359 /* Override any gcc2 internal prototype to avoid an error. */
29363 /* We use char because int might match the return type of a gcc2
29364 builtin and then its argument prototype would still apply. */
29374 rm -f conftest.$ac_objext conftest$ac_exeext
29375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29376 (eval $ac_link) 2>conftest.er1
29378 grep -v '^ *+' conftest.er1 >conftest.err
29380 cat conftest.err >&5
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); } &&
29383 { ac_try='test -z "$ac_c_werror_flag"
29384 || test ! -s conftest.err'
29385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29386 (eval $ac_try) 2>&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); }; } &&
29390 { ac_try='test -s conftest$ac_exeext'
29391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392 (eval $ac_try) 2>&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); }; }; then
29396 ac_cv_lib_curses_tgetent=yes
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29401 ac_cv_lib_curses_tgetent=no
29403 rm -f conftest.err conftest.$ac_objext \
29404 conftest$ac_exeext conftest.$ac_ext
29405 LIBS=$ac_check_lib_save_LIBS
29407 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29408 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
29409 if test $ac_cv_lib_curses_tgetent = yes; then
29410 cat >>confdefs.h <<_ACEOF
29411 #define HAVE_LIBCURSES 1
29414 LIBS="-lcurses $LIBS"
29418 if test "$ac_cv_lib_curses_tgetent" != yes; then
29420 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29421 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
29422 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
29423 echo $ECHO_N "(cached) $ECHO_C" >&6
29425 ac_check_lib_save_LIBS=$LIBS
29426 LIBS="-lncurses $LIBS"
29427 cat >conftest.$ac_ext <<_ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h. */
29434 /* Override any gcc2 internal prototype to avoid an error. */
29438 /* We use char because int might match the return type of a gcc2
29439 builtin and then its argument prototype would still apply. */
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29451 (eval $ac_link) 2>conftest.er1
29453 grep -v '^ *+' conftest.er1 >conftest.err
29455 cat conftest.err >&5
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); } &&
29458 { ac_try='test -z "$ac_c_werror_flag"
29459 || test ! -s conftest.err'
29460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; } &&
29465 { ac_try='test -s conftest$ac_exeext'
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; }; then
29471 ac_cv_lib_ncurses_tgetent=yes
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 ac_cv_lib_ncurses_tgetent=no
29478 rm -f conftest.err conftest.$ac_objext \
29479 conftest$ac_exeext conftest.$ac_ext
29480 LIBS=$ac_check_lib_save_LIBS
29482 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29483 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
29484 if test $ac_cv_lib_ncurses_tgetent = yes; then
29485 cat >>confdefs.h <<_ACEOF
29486 #define HAVE_LIBNCURSES 1
29489 LIBS="-lncurses $LIBS"
29495 if test "$ac_cv_lib_termcap_tgetent" = yes ||
29496 test "$ac_cv_lib_curses_tgetent" = yes ||
29497 test "$ac_cv_lib_ncurses_tgetent" = yes; then
29499 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29500 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29501 if test "${ac_cv_lib_readline_readline+set}" = set; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29504 ac_check_lib_save_LIBS=$LIBS
29505 LIBS="-lreadline $LIBS"
29506 cat >conftest.$ac_ext <<_ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29513 /* Override any gcc2 internal prototype to avoid an error. */
29517 /* We use char because int might match the return type of a gcc2
29518 builtin and then its argument prototype would still apply. */
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29530 (eval $ac_link) 2>conftest.er1
29532 grep -v '^ *+' conftest.er1 >conftest.err
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } &&
29537 { ac_try='test -z "$ac_c_werror_flag"
29538 || test ! -s conftest.err'
29539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540 (eval $ac_try) 2>&5
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); }; } &&
29544 { ac_try='test -s conftest$ac_exeext'
29545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 (eval $ac_try) 2>&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); }; }; then
29550 ac_cv_lib_readline_readline=yes
29552 echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29555 ac_cv_lib_readline_readline=no
29557 rm -f conftest.err conftest.$ac_objext \
29558 conftest$ac_exeext conftest.$ac_ext
29559 LIBS=$ac_check_lib_save_LIBS
29561 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29562 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29563 if test $ac_cv_lib_readline_readline = yes; then
29564 cat >>confdefs.h <<_ACEOF
29565 #define HAVE_LIBREADLINE 1
29568 LIBS="-lreadline $LIBS"
29572 if test "$ac_cv_lib_readline_readline" != yes; then
29573 { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
29574 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
29578 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
29581 if test "$ac_cv_lib_readline_readline" = yes; then
29582 READLINE_LIBS=-lreadline
29583 LIBS=`echo $LIBS | sed s/-lreadline//`
29587 if test "$ac_cv_header_linux_zftape_h" = yes; then
29588 if test "$ac_cv_header_vtblc_h" = yes; then
29590 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
29591 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
29592 if test "${ac_cv_lib_vtblc_main+set}" = set; then
29593 echo $ECHO_N "(cached) $ECHO_C" >&6
29595 ac_check_lib_save_LIBS=$LIBS
29596 LIBS="-lvtblc $LIBS"
29597 cat >conftest.$ac_ext <<_ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h. */
29613 rm -f conftest.$ac_objext conftest$ac_exeext
29614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29615 (eval $ac_link) 2>conftest.er1
29617 grep -v '^ *+' conftest.er1 >conftest.err
29619 cat conftest.err >&5
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); } &&
29622 { ac_try='test -z "$ac_c_werror_flag"
29623 || test ! -s conftest.err'
29624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29625 (eval $ac_try) 2>&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); }; } &&
29629 { ac_try='test -s conftest$ac_exeext'
29630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29631 (eval $ac_try) 2>&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); }; }; then
29635 ac_cv_lib_vtblc_main=yes
29637 echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.$ac_ext >&5
29640 ac_cv_lib_vtblc_main=no
29642 rm -f conftest.err conftest.$ac_objext \
29643 conftest$ac_exeext conftest.$ac_ext
29644 LIBS=$ac_check_lib_save_LIBS
29646 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
29647 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
29648 if test $ac_cv_lib_vtblc_main = yes; then
29649 cat >>confdefs.h <<_ACEOF
29650 #define HAVE_LIBVTBLC 1
29653 LIBS="-lvtblc $LIBS"
29657 if test "$ac_cv_lib_vtblc_main" != yes; then
29658 { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
29659 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
29662 { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
29663 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
29668 echo "$as_me:$LINENO: checking for modf in -lm" >&5
29669 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
29670 if test "${ac_cv_lib_m_modf+set}" = set; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29673 ac_check_lib_save_LIBS=$LIBS
29675 cat >conftest.$ac_ext <<_ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h. */
29682 /* Override any gcc2 internal prototype to avoid an error. */
29686 /* We use char because int might match the return type of a gcc2
29687 builtin and then its argument prototype would still apply. */
29697 rm -f conftest.$ac_objext conftest$ac_exeext
29698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29699 (eval $ac_link) 2>conftest.er1
29701 grep -v '^ *+' conftest.er1 >conftest.err
29703 cat conftest.err >&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); } &&
29706 { ac_try='test -z "$ac_c_werror_flag"
29707 || test ! -s conftest.err'
29708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709 (eval $ac_try) 2>&5
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; } &&
29713 { ac_try='test -s conftest$ac_exeext'
29714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715 (eval $ac_try) 2>&5
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; }; then
29719 ac_cv_lib_m_modf=yes
29721 echo "$as_me: failed program was:" >&5
29722 sed 's/^/| /' conftest.$ac_ext >&5
29724 ac_cv_lib_m_modf=no
29726 rm -f conftest.err conftest.$ac_objext \
29727 conftest$ac_exeext conftest.$ac_ext
29728 LIBS=$ac_check_lib_save_LIBS
29730 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
29731 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
29732 if test $ac_cv_lib_m_modf = yes; then
29733 cat >>confdefs.h <<_ACEOF
29734 #define HAVE_LIBM 1
29743 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
29744 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
29745 mt_flags_result="found"
29746 cat >conftest.$ac_ext <<_ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h. */
29754 #include <sys/types.h>
29755 #include <sys/mtio.h>
29770 rm -f conftest.$ac_objext
29771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29772 (eval $ac_compile) 2>conftest.er1
29774 grep -v '^ *+' conftest.er1 >conftest.err
29776 cat conftest.err >&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } &&
29779 { ac_try='test -z "$ac_c_werror_flag"
29780 || test ! -s conftest.err'
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; } &&
29786 { ac_try='test -s conftest.$ac_objext'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; }; then
29793 cat >>confdefs.h <<\_ACEOF
29794 #define HAVE_MT_FLAGS 1
29798 echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29801 mt_flags_result="not found"
29803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29804 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
29805 echo "${ECHO_T}$mt_flags_result" >&6
29807 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
29808 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
29809 mt_fileno_result="found"
29810 cat >conftest.$ac_ext <<_ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h. */
29818 #include <sys/types.h>
29819 #include <sys/mtio.h>
29828 ds = buf.mt_fileno;
29834 rm -f conftest.$ac_objext
29835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29836 (eval $ac_compile) 2>conftest.er1
29838 grep -v '^ *+' conftest.er1 >conftest.err
29840 cat conftest.err >&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); } &&
29843 { ac_try='test -z "$ac_c_werror_flag"
29844 || test ! -s conftest.err'
29845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846 (eval $ac_try) 2>&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest.$ac_objext'
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
29857 cat >>confdefs.h <<\_ACEOF
29858 #define HAVE_MT_FILENO 1
29862 echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29865 mt_fileno_result="not found"
29867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29868 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
29869 echo "${ECHO_T}$mt_fileno_result" >&6
29871 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
29872 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
29873 mt_blkno_result="found"
29874 cat >conftest.$ac_ext <<_ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h. */
29882 #include <sys/types.h>
29883 #include <sys/mtio.h>
29898 rm -f conftest.$ac_objext
29899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29900 (eval $ac_compile) 2>conftest.er1
29902 grep -v '^ *+' conftest.er1 >conftest.err
29904 cat conftest.err >&5
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); } &&
29907 { ac_try='test -z "$ac_c_werror_flag"
29908 || test ! -s conftest.err'
29909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910 (eval $ac_try) 2>&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; } &&
29914 { ac_try='test -s conftest.$ac_objext'
29915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29916 (eval $ac_try) 2>&5
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); }; }; then
29921 cat >>confdefs.h <<\_ACEOF
29922 #define HAVE_MT_BLKNO 1
29926 echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29929 mt_blkno_result="not found"
29931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29932 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
29933 echo "${ECHO_T}$mt_blkno_result" >&6
29935 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
29936 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
29937 mt_dsreg_result="found"
29938 cat >conftest.$ac_ext <<_ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h. */
29946 #include <sys/types.h>
29947 #include <sys/mtio.h>
29962 rm -f conftest.$ac_objext
29963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29964 (eval $ac_compile) 2>conftest.er1
29966 grep -v '^ *+' conftest.er1 >conftest.err
29968 cat conftest.err >&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); } &&
29971 { ac_try='test -z "$ac_c_werror_flag"
29972 || test ! -s conftest.err'
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; } &&
29978 { ac_try='test -s conftest.$ac_objext'
29979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980 (eval $ac_try) 2>&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; }; then
29985 cat >>confdefs.h <<\_ACEOF
29986 #define HAVE_MT_DSREG 1
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29993 mt_dsreg_result="not found"
29995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29996 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
29997 echo "${ECHO_T}$mt_dsreg_result" >&6
29999 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30000 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
30001 mt_erreg_result="found"
30002 cat >conftest.$ac_ext <<_ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h. */
30010 #include <sys/types.h>
30011 #include <sys/mtio.h>
30026 rm -f conftest.$ac_objext
30027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30028 (eval $ac_compile) 2>conftest.er1
30030 grep -v '^ *+' conftest.er1 >conftest.err
30032 cat conftest.err >&5
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); } &&
30035 { ac_try='test -z "$ac_c_werror_flag"
30036 || test ! -s conftest.err'
30037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038 (eval $ac_try) 2>&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; } &&
30042 { ac_try='test -s conftest.$ac_objext'
30043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044 (eval $ac_try) 2>&5
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); }; }; then
30049 cat >>confdefs.h <<\_ACEOF
30050 #define HAVE_MT_ERREG 1
30054 echo "$as_me: failed program was:" >&5
30055 sed 's/^/| /' conftest.$ac_ext >&5
30057 mt_erreg_result="not found"
30059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30060 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
30061 echo "${ECHO_T}$mt_erreg_result" >&6
30069 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
30070 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
30071 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30074 ac_check_lib_save_LIBS=$LIBS
30076 cat >conftest.$ac_ext <<_ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h. */
30083 /* Override any gcc2 internal prototype to avoid an error. */
30087 /* We use char because int might match the return type of a gcc2
30088 builtin and then its argument prototype would still apply. */
30098 rm -f conftest.$ac_objext conftest$ac_exeext
30099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30100 (eval $ac_link) 2>conftest.er1
30102 grep -v '^ *+' conftest.er1 >conftest.err
30104 cat conftest.err >&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
30107 { ac_try='test -z "$ac_c_werror_flag"
30108 || test ! -s conftest.err'
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; } &&
30114 { ac_try='test -s conftest$ac_exeext'
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; }; then
30120 ac_cv_lib_c_dbm_open=yes
30122 echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30125 ac_cv_lib_c_dbm_open=no
30127 rm -f conftest.err conftest.$ac_objext \
30128 conftest$ac_exeext conftest.$ac_ext
30129 LIBS=$ac_check_lib_save_LIBS
30131 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
30132 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
30133 if test $ac_cv_lib_c_dbm_open = yes; then
30134 cat >>confdefs.h <<_ACEOF
30135 #define HAVE_LIBC 1
30144 case "$DB_STYLE" in
30146 if test "$ac_cv_header_db_h" = yes; then
30148 echo "$as_me:$LINENO: checking for main in -ldb" >&5
30149 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
30150 if test "${ac_cv_lib_db_main+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 ac_check_lib_save_LIBS=$LIBS
30155 cat >conftest.$ac_ext <<_ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h. */
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30173 (eval $ac_link) 2>conftest.er1
30175 grep -v '^ *+' conftest.er1 >conftest.err
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } &&
30180 { ac_try='test -z "$ac_c_werror_flag"
30181 || test ! -s conftest.err'
30182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30183 (eval $ac_try) 2>&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); }; } &&
30187 { ac_try='test -s conftest$ac_exeext'
30188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30189 (eval $ac_try) 2>&5
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; }; then
30193 ac_cv_lib_db_main=yes
30195 echo "$as_me: failed program was:" >&5
30196 sed 's/^/| /' conftest.$ac_ext >&5
30198 ac_cv_lib_db_main=no
30200 rm -f conftest.err conftest.$ac_objext \
30201 conftest$ac_exeext conftest.$ac_ext
30202 LIBS=$ac_check_lib_save_LIBS
30204 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
30205 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
30206 if test $ac_cv_lib_db_main = yes; then
30207 cat >>confdefs.h <<_ACEOF
30208 #define HAVE_LIBDB 1
30215 if test "$ac_cv_lib_db_main" = yes; then
30217 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
30218 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
30219 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
30220 echo $ECHO_N "(cached) $ECHO_C" >&6
30222 ac_check_lib_save_LIBS=$LIBS
30224 cat >conftest.$ac_ext <<_ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h. */
30231 /* Override any gcc2 internal prototype to avoid an error. */
30235 /* We use char because int might match the return type of a gcc2
30236 builtin and then its argument prototype would still apply. */
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30248 (eval $ac_link) 2>conftest.er1
30250 grep -v '^ *+' conftest.er1 >conftest.err
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } &&
30255 { ac_try='test -z "$ac_c_werror_flag"
30256 || test ! -s conftest.err'
30257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30258 (eval $ac_try) 2>&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); }; } &&
30262 { ac_try='test -s conftest$ac_exeext'
30263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264 (eval $ac_try) 2>&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
30268 ac_cv_lib_db_dbm_open=yes
30270 echo "$as_me: failed program was:" >&5
30271 sed 's/^/| /' conftest.$ac_ext >&5
30273 ac_cv_lib_db_dbm_open=no
30275 rm -f conftest.err conftest.$ac_objext \
30276 conftest$ac_exeext conftest.$ac_ext
30277 LIBS=$ac_check_lib_save_LIBS
30279 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
30280 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
30281 if test $ac_cv_lib_db_dbm_open = yes; then
30282 cat >>confdefs.h <<_ACEOF
30283 #define HAVE_LIBDB 1
30290 if test "$ac_cv_lib_db_dbm_open" = yes; then
30295 { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
30296 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
30299 if test "$ac_cv_lib_c_dbm_open" = yes; then
30304 { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
30305 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
30310 { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
30311 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
30316 if test "$ac_cv_header_dbm_h" = yes; then
30318 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
30319 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
30320 if test "${ac_cv_lib_dbm_main+set}" = set; then
30321 echo $ECHO_N "(cached) $ECHO_C" >&6
30323 ac_check_lib_save_LIBS=$LIBS
30325 cat >conftest.$ac_ext <<_ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30341 rm -f conftest.$ac_objext conftest$ac_exeext
30342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30343 (eval $ac_link) 2>conftest.er1
30345 grep -v '^ *+' conftest.er1 >conftest.err
30347 cat conftest.err >&5
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); } &&
30350 { ac_try='test -z "$ac_c_werror_flag"
30351 || test ! -s conftest.err'
30352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353 (eval $ac_try) 2>&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; } &&
30357 { ac_try='test -s conftest$ac_exeext'
30358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30359 (eval $ac_try) 2>&5
30361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362 (exit $ac_status); }; }; then
30363 ac_cv_lib_dbm_main=yes
30365 echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 ac_cv_lib_dbm_main=no
30370 rm -f conftest.err conftest.$ac_objext \
30371 conftest$ac_exeext conftest.$ac_ext
30372 LIBS=$ac_check_lib_save_LIBS
30374 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
30375 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
30376 if test $ac_cv_lib_dbm_main = yes; then
30377 cat >>confdefs.h <<_ACEOF
30378 #define HAVE_LIBDBM 1
30385 if test "$ac_cv_lib_dbm_main" = yes; then
30387 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
30388 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
30389 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
30390 echo $ECHO_N "(cached) $ECHO_C" >&6
30392 ac_check_lib_save_LIBS=$LIBS
30394 cat >conftest.$ac_ext <<_ACEOF
30397 cat confdefs.h >>conftest.$ac_ext
30398 cat >>conftest.$ac_ext <<_ACEOF
30399 /* end confdefs.h. */
30401 /* Override any gcc2 internal prototype to avoid an error. */
30405 /* We use char because int might match the return type of a gcc2
30406 builtin and then its argument prototype would still apply. */
30416 rm -f conftest.$ac_objext conftest$ac_exeext
30417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30418 (eval $ac_link) 2>conftest.er1
30420 grep -v '^ *+' conftest.er1 >conftest.err
30422 cat conftest.err >&5
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); } &&
30425 { ac_try='test -z "$ac_c_werror_flag"
30426 || test ! -s conftest.err'
30427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428 (eval $ac_try) 2>&5
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; } &&
30432 { ac_try='test -s conftest$ac_exeext'
30433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434 (eval $ac_try) 2>&5
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; }; then
30438 ac_cv_lib_dbm_dbm_open=yes
30440 echo "$as_me: failed program was:" >&5
30441 sed 's/^/| /' conftest.$ac_ext >&5
30443 ac_cv_lib_dbm_dbm_open=no
30445 rm -f conftest.err conftest.$ac_objext \
30446 conftest$ac_exeext conftest.$ac_ext
30447 LIBS=$ac_check_lib_save_LIBS
30449 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
30450 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
30451 if test $ac_cv_lib_dbm_dbm_open = yes; then
30452 cat >>confdefs.h <<_ACEOF
30453 #define HAVE_LIBDBM 1
30460 if test "$ac_cv_lib_dbm_dbm_open" = yes; then
30465 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
30466 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
30469 if test "$ac_cv_lib_c_dbm_open" = yes; then
30474 { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
30475 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
30480 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
30481 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
30486 if test "$ac_cv_header_ndbm_h" = yes; then
30488 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
30489 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
30490 if test "${ac_cv_lib_gdbm_main+set}" = set; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30493 ac_check_lib_save_LIBS=$LIBS
30494 LIBS="-lgdbm $LIBS"
30495 cat >conftest.$ac_ext <<_ACEOF
30498 cat confdefs.h >>conftest.$ac_ext
30499 cat >>conftest.$ac_ext <<_ACEOF
30500 /* end confdefs.h. */
30511 rm -f conftest.$ac_objext conftest$ac_exeext
30512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30513 (eval $ac_link) 2>conftest.er1
30515 grep -v '^ *+' conftest.er1 >conftest.err
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
30520 { ac_try='test -z "$ac_c_werror_flag"
30521 || test ! -s conftest.err'
30522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30523 (eval $ac_try) 2>&5
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; } &&
30527 { ac_try='test -s conftest$ac_exeext'
30528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529 (eval $ac_try) 2>&5
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); }; }; then
30533 ac_cv_lib_gdbm_main=yes
30535 echo "$as_me: failed program was:" >&5
30536 sed 's/^/| /' conftest.$ac_ext >&5
30538 ac_cv_lib_gdbm_main=no
30540 rm -f conftest.err conftest.$ac_objext \
30541 conftest$ac_exeext conftest.$ac_ext
30542 LIBS=$ac_check_lib_save_LIBS
30544 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
30545 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
30546 if test $ac_cv_lib_gdbm_main = yes; then
30547 cat >>confdefs.h <<_ACEOF
30548 #define HAVE_LIBGDBM 1
30551 LIBS="-lgdbm $LIBS"
30555 if test "$ac_cv_lib_gdbm_main" = yes; then
30557 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
30558 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
30559 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 ac_check_lib_save_LIBS=$LIBS
30563 LIBS="-lgdbm $LIBS"
30564 cat >conftest.$ac_ext <<_ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h. */
30571 /* Override any gcc2 internal prototype to avoid an error. */
30575 /* We use char because int might match the return type of a gcc2
30576 builtin and then its argument prototype would still apply. */
30586 rm -f conftest.$ac_objext conftest$ac_exeext
30587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30588 (eval $ac_link) 2>conftest.er1
30590 grep -v '^ *+' conftest.er1 >conftest.err
30592 cat conftest.err >&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); } &&
30595 { ac_try='test -z "$ac_c_werror_flag"
30596 || test ! -s conftest.err'
30597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30598 (eval $ac_try) 2>&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; } &&
30602 { ac_try='test -s conftest$ac_exeext'
30603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30604 (eval $ac_try) 2>&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; }; then
30608 ac_cv_lib_gdbm_dbm_open=yes
30610 echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30613 ac_cv_lib_gdbm_dbm_open=no
30615 rm -f conftest.err conftest.$ac_objext \
30616 conftest$ac_exeext conftest.$ac_ext
30617 LIBS=$ac_check_lib_save_LIBS
30619 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
30620 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
30621 if test $ac_cv_lib_gdbm_dbm_open = yes; then
30622 cat >>confdefs.h <<_ACEOF
30623 #define HAVE_LIBGDBM 1
30626 LIBS="-lgdbm $LIBS"
30630 if test "$ac_cv_lib_gdbm_dbm_open" = yes; then
30635 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
30636 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
30639 if test "$ac_cv_lib_c_dbm_open" = yes; then
30644 { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
30645 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
30650 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
30651 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
30656 if test "$ac_cv_header_ndbm_h" = yes; then
30658 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
30659 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
30660 if test "${ac_cv_lib_ndbm_main+set}" = set; then
30661 echo $ECHO_N "(cached) $ECHO_C" >&6
30663 ac_check_lib_save_LIBS=$LIBS
30664 LIBS="-lndbm $LIBS"
30665 cat >conftest.$ac_ext <<_ACEOF
30668 cat confdefs.h >>conftest.$ac_ext
30669 cat >>conftest.$ac_ext <<_ACEOF
30670 /* end confdefs.h. */
30681 rm -f conftest.$ac_objext conftest$ac_exeext
30682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30683 (eval $ac_link) 2>conftest.er1
30685 grep -v '^ *+' conftest.er1 >conftest.err
30687 cat conftest.err >&5
30688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); } &&
30690 { ac_try='test -z "$ac_c_werror_flag"
30691 || test ! -s conftest.err'
30692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693 (eval $ac_try) 2>&5
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); }; } &&
30697 { ac_try='test -s conftest$ac_exeext'
30698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30699 (eval $ac_try) 2>&5
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); }; }; then
30703 ac_cv_lib_ndbm_main=yes
30705 echo "$as_me: failed program was:" >&5
30706 sed 's/^/| /' conftest.$ac_ext >&5
30708 ac_cv_lib_ndbm_main=no
30710 rm -f conftest.err conftest.$ac_objext \
30711 conftest$ac_exeext conftest.$ac_ext
30712 LIBS=$ac_check_lib_save_LIBS
30714 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
30715 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
30716 if test $ac_cv_lib_ndbm_main = yes; then
30717 cat >>confdefs.h <<_ACEOF
30718 #define HAVE_LIBNDBM 1
30721 LIBS="-lndbm $LIBS"
30725 if test "$ac_cv_lib_ndbm_main" = yes; then
30727 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
30728 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
30729 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
30730 echo $ECHO_N "(cached) $ECHO_C" >&6
30732 ac_check_lib_save_LIBS=$LIBS
30733 LIBS="-lndbm $LIBS"
30734 cat >conftest.$ac_ext <<_ACEOF
30737 cat confdefs.h >>conftest.$ac_ext
30738 cat >>conftest.$ac_ext <<_ACEOF
30739 /* end confdefs.h. */
30741 /* Override any gcc2 internal prototype to avoid an error. */
30745 /* We use char because int might match the return type of a gcc2
30746 builtin and then its argument prototype would still apply. */
30756 rm -f conftest.$ac_objext conftest$ac_exeext
30757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30758 (eval $ac_link) 2>conftest.er1
30760 grep -v '^ *+' conftest.er1 >conftest.err
30762 cat conftest.err >&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } &&
30765 { ac_try='test -z "$ac_c_werror_flag"
30766 || test ! -s conftest.err'
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest$ac_exeext'
30773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774 (eval $ac_try) 2>&5
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; }; then
30778 ac_cv_lib_ndbm_dbm_open=yes
30780 echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30783 ac_cv_lib_ndbm_dbm_open=no
30785 rm -f conftest.err conftest.$ac_objext \
30786 conftest$ac_exeext conftest.$ac_ext
30787 LIBS=$ac_check_lib_save_LIBS
30789 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
30790 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
30791 if test $ac_cv_lib_ndbm_dbm_open = yes; then
30792 cat >>confdefs.h <<_ACEOF
30793 #define HAVE_LIBNDBM 1
30796 LIBS="-lndbm $LIBS"
30800 if test "$ac_cv_lib_ndbm_dbm_open" = yes; then
30805 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
30806 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
30809 if test "$ac_cv_lib_c_dbm_open" = yes; then
30814 { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
30815 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
30820 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
30821 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
30831 if test -z "$DB_STYLE"; then
30838 if test "$DB_STYLE" = text; then
30840 cat >>confdefs.h <<\_ACEOF
30845 echo "$as_me:$LINENO: checking for database" >&5
30846 echo $ECHO_N "checking for database... $ECHO_C" >&6
30847 echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
30848 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
30849 case "$DB_STYLE" in
30851 cat >>confdefs.h <<\_ACEOF
30856 cat >>confdefs.h <<\_ACEOF
30857 #define USE_DBM_H 1
30861 cat >>confdefs.h <<\_ACEOF
30862 #define USE_GDBM_H 1
30866 cat >>confdefs.h <<\_ACEOF
30867 #define USE_NDBM_H 1
30872 echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
30873 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
30874 if test "${amanda_cv_struct_datum+set}" = set; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30878 cat >conftest.$ac_ext <<_ACEOF
30881 cat confdefs.h >>conftest.$ac_ext
30882 cat >>conftest.$ac_ext <<_ACEOF
30883 /* end confdefs.h. */
30885 #if defined(USE_DB_H)
30888 # if defined(USE_DBM_H)
30891 # if defined(USE_NDBM_H)
30907 rm -f conftest.$ac_objext
30908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30909 (eval $ac_compile) 2>conftest.er1
30911 grep -v '^ *+' conftest.er1 >conftest.err
30913 cat conftest.err >&5
30914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915 (exit $ac_status); } &&
30916 { ac_try='test -z "$ac_c_werror_flag"
30917 || test ! -s conftest.err'
30918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30919 (eval $ac_try) 2>&5
30921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922 (exit $ac_status); }; } &&
30923 { ac_try='test -s conftest.$ac_objext'
30924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30925 (eval $ac_try) 2>&5
30927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928 (exit $ac_status); }; }; then
30929 amanda_cv_struct_datum=yes
30931 echo "$as_me: failed program was:" >&5
30932 sed 's/^/| /' conftest.$ac_ext >&5
30934 amanda_cv_struct_datum=no
30937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30940 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
30941 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
30942 if test "$amanda_cv_struct_datum" = yes; then
30944 cat >>confdefs.h <<\_ACEOF
30945 #define HAVE_STRUCT_DATUM 1
30951 case "$DB_STYLE" in
30953 gdbm) DB_EXT='""';;
30954 dbm | ndbm) DB_EXT=".dir .pag";;
30955 text) DB_EXT='""';;
30960 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
30961 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
30962 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30965 cat >conftest.$ac_ext <<_ACEOF
30968 cat confdefs.h >>conftest.$ac_ext
30969 cat >>conftest.$ac_ext <<_ACEOF
30970 /* end confdefs.h. */
30972 #include <limits.h>
30973 #ifdef _POSIX2_RE_DUP_MAX
30978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30979 $EGREP "yes" >/dev/null 2>&1; then
30980 amanda_cv_have__posix2_re_dup_max=yes
30982 amanda_cv_have__posix2_re_dup_max=no
30987 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
30988 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
30989 if test "$amanda_cv_have__posix2_re_dup_max" = yes; then
30991 cat >>confdefs.h <<\_ACEOF
30992 #define HAVE__POSIX2_RE_DUP_MAX 1
30997 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
30998 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
30999 if test "${amanda_cv_have_char_min+set}" = set; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31002 cat >conftest.$ac_ext <<_ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h. */
31009 #include <limits.h>
31015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31016 $EGREP "yes" >/dev/null 2>&1; then
31017 amanda_cv_have_char_min=yes
31019 amanda_cv_have_char_min=no
31024 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
31025 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
31026 if test "$amanda_cv_have_char_min" = yes; then
31028 cat >>confdefs.h <<\_ACEOF
31029 #define HAVE_CHAR_MIN 1
31034 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
31035 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
31036 if test "${amanda_cv_have_char_max+set}" = set; then
31037 echo $ECHO_N "(cached) $ECHO_C" >&6
31039 cat >conftest.$ac_ext <<_ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h. */
31046 #include <limits.h>
31052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31053 $EGREP "yes" >/dev/null 2>&1; then
31054 amanda_cv_have_char_max=yes
31056 amanda_cv_have_char_max=no
31061 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
31062 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
31063 if test "$amanda_cv_have_char_max" = yes; then
31065 cat >>confdefs.h <<\_ACEOF
31066 #define HAVE_CHAR_MAX 1
31071 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
31072 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
31073 if test "${amanda_cv_have_char_bit+set}" = set; then
31074 echo $ECHO_N "(cached) $ECHO_C" >&6
31076 cat >conftest.$ac_ext <<_ACEOF
31079 cat confdefs.h >>conftest.$ac_ext
31080 cat >>conftest.$ac_ext <<_ACEOF
31081 /* end confdefs.h. */
31083 #include <limits.h>
31089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31090 $EGREP "yes" >/dev/null 2>&1; then
31091 amanda_cv_have_char_bit=yes
31093 amanda_cv_have_char_bit=no
31098 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
31099 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
31100 if test "$amanda_cv_have_char_bit" = yes; then
31102 cat >>confdefs.h <<\_ACEOF
31103 #define HAVE_CHAR_BIT 1
31111 for ac_func in accept
31113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31114 echo "$as_me:$LINENO: checking for $ac_func" >&5
31115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31116 if eval "test \"\${$as_ac_var+set}\" = set"; then
31117 echo $ECHO_N "(cached) $ECHO_C" >&6
31119 cat >conftest.$ac_ext <<_ACEOF
31122 cat confdefs.h >>conftest.$ac_ext
31123 cat >>conftest.$ac_ext <<_ACEOF
31124 /* end confdefs.h. */
31125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31127 #define $ac_func innocuous_$ac_func
31129 /* System header to define __stub macros and hopefully few prototypes,
31130 which can conflict with char $ac_func (); below.
31131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31132 <limits.h> exists even on freestanding compilers. */
31135 # include <limits.h>
31137 # include <assert.h>
31142 /* Override any gcc2 internal prototype to avoid an error. */
31147 /* We use char because int might match the return type of a gcc2
31148 builtin and then its argument prototype would still apply. */
31150 /* The GNU C library defines this for functions which it implements
31151 to always fail with ENOSYS. Some functions are actually named
31152 something starting with __ and the normal name is an alias. */
31153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31156 char (*f) () = $ac_func;
31165 return f != $ac_func;
31170 rm -f conftest.$ac_objext conftest$ac_exeext
31171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31172 (eval $ac_link) 2>conftest.er1
31174 grep -v '^ *+' conftest.er1 >conftest.err
31176 cat conftest.err >&5
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); } &&
31179 { ac_try='test -z "$ac_c_werror_flag"
31180 || test ! -s conftest.err'
31181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31182 (eval $ac_try) 2>&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; } &&
31186 { ac_try='test -s conftest$ac_exeext'
31187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188 (eval $ac_try) 2>&5
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); }; }; then
31192 eval "$as_ac_var=yes"
31194 echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31197 eval "$as_ac_var=no"
31199 rm -f conftest.err conftest.$ac_objext \
31200 conftest$ac_exeext conftest.$ac_ext
31202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31204 if test `eval echo '${'$as_ac_var'}'` = yes; then
31205 cat >>confdefs.h <<_ACEOF
31206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31208 ice_have_accept=yes
31212 if test "${ice_have_accept}" = yes; then
31213 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
31214 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
31215 if test "${ice_cv_have_accept_decl+set}" = set; then
31216 echo $ECHO_N "(cached) $ECHO_C" >&6
31219 ice_cv_have_accept_decl=no
31220 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
31221 ice_re_word='(^|[^a-zA-Z0-9_])'
31222 for header in sys/types.h sys/socket.h; do
31223 # Check for ordinary declaration
31224 cat >conftest.$ac_ext <<_ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h. */
31233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31234 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
31235 ice_cv_have_accept_decl=yes
31239 if test "$ice_cv_have_accept_decl" = yes; then
31242 # Check for "fixed" declaration like "getpid _PARAMS((int))"
31243 cat >conftest.$ac_ext <<_ACEOF
31246 cat confdefs.h >>conftest.$ac_ext
31247 cat >>conftest.$ac_ext <<_ACEOF
31248 /* end confdefs.h. */
31252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31253 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
31254 ice_cv_have_accept_decl=yes
31258 if test "$ice_cv_have_accept_decl" = yes; then
31265 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
31266 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
31267 if test "$ice_cv_have_accept_decl" = yes; then
31269 cat >>confdefs.h <<_ACEOF
31270 #define HAVE_ACCEPT_DECL 1
31276 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31277 # for constant arguments. Useless!
31278 echo "$as_me:$LINENO: checking for working alloca.h" >&5
31279 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
31280 if test "${ac_cv_working_alloca_h+set}" = set; then
31281 echo $ECHO_N "(cached) $ECHO_C" >&6
31283 cat >conftest.$ac_ext <<_ACEOF
31286 cat confdefs.h >>conftest.$ac_ext
31287 cat >>conftest.$ac_ext <<_ACEOF
31288 /* end confdefs.h. */
31289 #include <alloca.h>
31293 char *p = (char *) alloca (2 * sizeof (int));
31298 rm -f conftest.$ac_objext conftest$ac_exeext
31299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31300 (eval $ac_link) 2>conftest.er1
31302 grep -v '^ *+' conftest.er1 >conftest.err
31304 cat conftest.err >&5
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); } &&
31307 { ac_try='test -z "$ac_c_werror_flag"
31308 || test ! -s conftest.err'
31309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31310 (eval $ac_try) 2>&5
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; } &&
31314 { ac_try='test -s conftest$ac_exeext'
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; }; then
31320 ac_cv_working_alloca_h=yes
31322 echo "$as_me: failed program was:" >&5
31323 sed 's/^/| /' conftest.$ac_ext >&5
31325 ac_cv_working_alloca_h=no
31327 rm -f conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
31330 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31331 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
31332 if test $ac_cv_working_alloca_h = yes; then
31334 cat >>confdefs.h <<\_ACEOF
31335 #define HAVE_ALLOCA_H 1
31340 echo "$as_me:$LINENO: checking for alloca" >&5
31341 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
31342 if test "${ac_cv_func_alloca_works+set}" = set; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31345 cat >conftest.$ac_ext <<_ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h. */
31352 # define alloca __builtin_alloca
31355 # include <malloc.h>
31356 # define alloca _alloca
31359 # include <alloca.h>
31364 # ifndef alloca /* predefined by HP cc +Olibcalls */
31375 char *p = (char *) alloca (1);
31380 rm -f conftest.$ac_objext conftest$ac_exeext
31381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31382 (eval $ac_link) 2>conftest.er1
31384 grep -v '^ *+' conftest.er1 >conftest.err
31386 cat conftest.err >&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } &&
31389 { ac_try='test -z "$ac_c_werror_flag"
31390 || test ! -s conftest.err'
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; } &&
31396 { ac_try='test -s conftest$ac_exeext'
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 ac_cv_func_alloca_works=yes
31404 echo "$as_me: failed program was:" >&5
31405 sed 's/^/| /' conftest.$ac_ext >&5
31407 ac_cv_func_alloca_works=no
31409 rm -f conftest.err conftest.$ac_objext \
31410 conftest$ac_exeext conftest.$ac_ext
31412 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31413 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
31415 if test $ac_cv_func_alloca_works = yes; then
31417 cat >>confdefs.h <<\_ACEOF
31418 #define HAVE_ALLOCA 1
31422 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31423 # that cause trouble. Some versions do not even contain alloca or
31424 # contain a buggy version. If you still want to use their alloca,
31425 # use ar to extract alloca.o from them instead of compiling alloca.c.
31427 ALLOCA=alloca.$ac_objext
31429 cat >>confdefs.h <<\_ACEOF
31434 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31435 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
31436 if test "${ac_cv_os_cray+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31439 cat >conftest.$ac_ext <<_ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31445 #if defined(CRAY) && ! defined(CRAY2)
31452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31453 $EGREP "webecray" >/dev/null 2>&1; then
31461 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31462 echo "${ECHO_T}$ac_cv_os_cray" >&6
31463 if test $ac_cv_os_cray = yes; then
31464 for ac_func in _getb67 GETB67 getb67; do
31465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31466 echo "$as_me:$LINENO: checking for $ac_func" >&5
31467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31468 if eval "test \"\${$as_ac_var+set}\" = set"; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 cat >conftest.$ac_ext <<_ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h. */
31477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31479 #define $ac_func innocuous_$ac_func
31481 /* System header to define __stub macros and hopefully few prototypes,
31482 which can conflict with char $ac_func (); below.
31483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31484 <limits.h> exists even on freestanding compilers. */
31487 # include <limits.h>
31489 # include <assert.h>
31494 /* Override any gcc2 internal prototype to avoid an error. */
31499 /* We use char because int might match the return type of a gcc2
31500 builtin and then its argument prototype would still apply. */
31502 /* The GNU C library defines this for functions which it implements
31503 to always fail with ENOSYS. Some functions are actually named
31504 something starting with __ and the normal name is an alias. */
31505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31508 char (*f) () = $ac_func;
31517 return f != $ac_func;
31522 rm -f conftest.$ac_objext conftest$ac_exeext
31523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31524 (eval $ac_link) 2>conftest.er1
31526 grep -v '^ *+' conftest.er1 >conftest.err
31528 cat conftest.err >&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } &&
31531 { ac_try='test -z "$ac_c_werror_flag"
31532 || test ! -s conftest.err'
31533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534 (eval $ac_try) 2>&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; } &&
31538 { ac_try='test -s conftest$ac_exeext'
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
31544 eval "$as_ac_var=yes"
31546 echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31549 eval "$as_ac_var=no"
31551 rm -f conftest.err conftest.$ac_objext \
31552 conftest$ac_exeext conftest.$ac_ext
31554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31556 if test `eval echo '${'$as_ac_var'}'` = yes; then
31558 cat >>confdefs.h <<_ACEOF
31559 #define CRAY_STACKSEG_END $ac_func
31568 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31569 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
31570 if test "${ac_cv_c_stack_direction+set}" = set; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31573 if test "$cross_compiling" = yes; then
31574 ac_cv_c_stack_direction=0
31576 cat >conftest.$ac_ext <<_ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31583 find_stack_direction ()
31585 static char *addr = 0;
31590 return find_stack_direction ();
31593 return (&dummy > addr) ? 1 : -1;
31599 exit (find_stack_direction () < 0);
31602 rm -f conftest$ac_exeext
31603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31604 (eval $ac_link) 2>&5
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31609 (eval $ac_try) 2>&5
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; }; then
31613 ac_cv_c_stack_direction=1
31615 echo "$as_me: program exited with status $ac_status" >&5
31616 echo "$as_me: failed program was:" >&5
31617 sed 's/^/| /' conftest.$ac_ext >&5
31619 ( exit $ac_status )
31620 ac_cv_c_stack_direction=-1
31622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31625 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31626 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
31628 cat >>confdefs.h <<_ACEOF
31629 #define STACK_DIRECTION $ac_cv_c_stack_direction
31636 for ac_func in atexit
31638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31639 echo "$as_me:$LINENO: checking for $ac_func" >&5
31640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31641 if eval "test \"\${$as_ac_var+set}\" = set"; then
31642 echo $ECHO_N "(cached) $ECHO_C" >&6
31644 cat >conftest.$ac_ext <<_ACEOF
31647 cat confdefs.h >>conftest.$ac_ext
31648 cat >>conftest.$ac_ext <<_ACEOF
31649 /* end confdefs.h. */
31650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31652 #define $ac_func innocuous_$ac_func
31654 /* System header to define __stub macros and hopefully few prototypes,
31655 which can conflict with char $ac_func (); below.
31656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31657 <limits.h> exists even on freestanding compilers. */
31660 # include <limits.h>
31662 # include <assert.h>
31667 /* Override any gcc2 internal prototype to avoid an error. */
31672 /* We use char because int might match the return type of a gcc2
31673 builtin and then its argument prototype would still apply. */
31675 /* The GNU C library defines this for functions which it implements
31676 to always fail with ENOSYS. Some functions are actually named
31677 something starting with __ and the normal name is an alias. */
31678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31681 char (*f) () = $ac_func;
31690 return f != $ac_func;
31695 rm -f conftest.$ac_objext conftest$ac_exeext
31696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31697 (eval $ac_link) 2>conftest.er1
31699 grep -v '^ *+' conftest.er1 >conftest.err
31701 cat conftest.err >&5
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); } &&
31704 { ac_try='test -z "$ac_c_werror_flag"
31705 || test ! -s conftest.err'
31706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31707 (eval $ac_try) 2>&5
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; } &&
31711 { ac_try='test -s conftest$ac_exeext'
31712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713 (eval $ac_try) 2>&5
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); }; }; then
31717 eval "$as_ac_var=yes"
31719 echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31722 eval "$as_ac_var=no"
31724 rm -f conftest.err conftest.$ac_objext \
31725 conftest$ac_exeext conftest.$ac_ext
31727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31729 if test `eval echo '${'$as_ac_var'}'` = yes; then
31730 cat >>confdefs.h <<_ACEOF
31731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31740 for ac_func in atof
31742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31743 echo "$as_me:$LINENO: checking for $ac_func" >&5
31744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31745 if eval "test \"\${$as_ac_var+set}\" = set"; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31748 cat >conftest.$ac_ext <<_ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h. */
31754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31756 #define $ac_func innocuous_$ac_func
31758 /* System header to define __stub macros and hopefully few prototypes,
31759 which can conflict with char $ac_func (); below.
31760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31761 <limits.h> exists even on freestanding compilers. */
31764 # include <limits.h>
31766 # include <assert.h>
31771 /* Override any gcc2 internal prototype to avoid an error. */
31776 /* We use char because int might match the return type of a gcc2
31777 builtin and then its argument prototype would still apply. */
31779 /* The GNU C library defines this for functions which it implements
31780 to always fail with ENOSYS. Some functions are actually named
31781 something starting with __ and the normal name is an alias. */
31782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31785 char (*f) () = $ac_func;
31794 return f != $ac_func;
31799 rm -f conftest.$ac_objext conftest$ac_exeext
31800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31801 (eval $ac_link) 2>conftest.er1
31803 grep -v '^ *+' conftest.er1 >conftest.err
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); } &&
31808 { ac_try='test -z "$ac_c_werror_flag"
31809 || test ! -s conftest.err'
31810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31811 (eval $ac_try) 2>&5
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); }; } &&
31815 { ac_try='test -s conftest$ac_exeext'
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; }; then
31821 eval "$as_ac_var=yes"
31823 echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31826 eval "$as_ac_var=no"
31828 rm -f conftest.err conftest.$ac_objext \
31829 conftest$ac_exeext conftest.$ac_ext
31831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31833 if test `eval echo '${'$as_ac_var'}'` = yes; then
31834 cat >>confdefs.h <<_ACEOF
31835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31841 if test "${ice_have_atof}" = yes; then
31842 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
31843 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
31844 if test "${ice_cv_have_atof_decl+set}" = set; then
31845 echo $ECHO_N "(cached) $ECHO_C" >&6
31848 ice_cv_have_atof_decl=no
31849 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
31850 ice_re_word='(^|[^a-zA-Z0-9_])'
31851 for header in stdlib.h; do
31852 # Check for ordinary declaration
31853 cat >conftest.$ac_ext <<_ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h. */
31862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31863 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
31864 ice_cv_have_atof_decl=yes
31868 if test "$ice_cv_have_atof_decl" = yes; then
31871 # Check for "fixed" declaration like "getpid _PARAMS((int))"
31872 cat >conftest.$ac_ext <<_ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h. */
31881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31882 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
31883 ice_cv_have_atof_decl=yes
31887 if test "$ice_cv_have_atof_decl" = yes; then
31894 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
31895 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
31896 if test "$ice_cv_have_atof_decl" = yes; then
31898 cat >>confdefs.h <<_ACEOF
31899 #define HAVE_ATOF_DECL 1
31906 for ac_func in basename
31908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31909 echo "$as_me:$LINENO: checking for $ac_func" >&5
31910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31911 if eval "test \"\${$as_ac_var+set}\" = set"; then
31912 echo $ECHO_N "(cached) $ECHO_C" >&6
31914 cat >conftest.$ac_ext <<_ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h. */
31920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31922 #define $ac_func innocuous_$ac_func
31924 /* System header to define __stub macros and hopefully few prototypes,
31925 which can conflict with char $ac_func (); below.
31926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31927 <limits.h> exists even on freestanding compilers. */
31930 # include <limits.h>
31932 # include <assert.h>
31937 /* Override any gcc2 internal prototype to avoid an error. */
31942 /* We use char because int might match the return type of a gcc2
31943 builtin and then its argument prototype would still apply. */
31945 /* The GNU C library defines this for functions which it implements
31946 to always fail with ENOSYS. Some functions are actually named
31947 something starting with __ and the normal name is an alias. */
31948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31951 char (*f) () = $ac_func;
31960 return f != $ac_func;
31965 rm -f conftest.$ac_objext conftest$ac_exeext
31966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31967 (eval $ac_link) 2>conftest.er1
31969 grep -v '^ *+' conftest.er1 >conftest.err
31971 cat conftest.err >&5
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); } &&
31974 { ac_try='test -z "$ac_c_werror_flag"
31975 || test ! -s conftest.err'
31976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31977 (eval $ac_try) 2>&5
31979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); }; } &&
31981 { ac_try='test -s conftest$ac_exeext'
31982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31983 (eval $ac_try) 2>&5
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); }; }; then
31987 eval "$as_ac_var=yes"
31989 echo "$as_me: failed program was:" >&5
31990 sed 's/^/| /' conftest.$ac_ext >&5
31992 eval "$as_ac_var=no"
31994 rm -f conftest.err conftest.$ac_objext \
31995 conftest$ac_exeext conftest.$ac_ext
31997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31999 if test `eval echo '${'$as_ac_var'}'` = yes; then
32000 cat >>confdefs.h <<_ACEOF
32001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32010 for ac_func in bind
32012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32013 echo "$as_me:$LINENO: checking for $ac_func" >&5
32014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32015 if eval "test \"\${$as_ac_var+set}\" = set"; then
32016 echo $ECHO_N "(cached) $ECHO_C" >&6
32018 cat >conftest.$ac_ext <<_ACEOF
32021 cat confdefs.h >>conftest.$ac_ext
32022 cat >>conftest.$ac_ext <<_ACEOF
32023 /* end confdefs.h. */
32024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32026 #define $ac_func innocuous_$ac_func
32028 /* System header to define __stub macros and hopefully few prototypes,
32029 which can conflict with char $ac_func (); below.
32030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32031 <limits.h> exists even on freestanding compilers. */
32034 # include <limits.h>
32036 # include <assert.h>
32041 /* Override any gcc2 internal prototype to avoid an error. */
32046 /* We use char because int might match the return type of a gcc2
32047 builtin and then its argument prototype would still apply. */
32049 /* The GNU C library defines this for functions which it implements
32050 to always fail with ENOSYS. Some functions are actually named
32051 something starting with __ and the normal name is an alias. */
32052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32055 char (*f) () = $ac_func;
32064 return f != $ac_func;
32069 rm -f conftest.$ac_objext conftest$ac_exeext
32070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32071 (eval $ac_link) 2>conftest.er1
32073 grep -v '^ *+' conftest.er1 >conftest.err
32075 cat conftest.err >&5
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
32078 { ac_try='test -z "$ac_c_werror_flag"
32079 || test ! -s conftest.err'
32080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081 (eval $ac_try) 2>&5
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; } &&
32085 { ac_try='test -s conftest$ac_exeext'
32086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087 (eval $ac_try) 2>&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); }; }; then
32091 eval "$as_ac_var=yes"
32093 echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32096 eval "$as_ac_var=no"
32098 rm -f conftest.err conftest.$ac_objext \
32099 conftest$ac_exeext conftest.$ac_ext
32101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32103 if test `eval echo '${'$as_ac_var'}'` = yes; then
32104 cat >>confdefs.h <<_ACEOF
32105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32111 if test "${ice_have_bind}" = yes; then
32112 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
32113 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32114 if test "${ice_cv_have_bind_decl+set}" = set; then
32115 echo $ECHO_N "(cached) $ECHO_C" >&6
32118 ice_cv_have_bind_decl=no
32119 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32120 ice_re_word='(^|[^a-zA-Z0-9_])'
32121 for header in sys/types.h sys/socket.h; do
32122 # Check for ordinary declaration
32123 cat >conftest.$ac_ext <<_ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h. */
32132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32133 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
32134 ice_cv_have_bind_decl=yes
32138 if test "$ice_cv_have_bind_decl" = yes; then
32141 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32142 cat >conftest.$ac_ext <<_ACEOF
32145 cat confdefs.h >>conftest.$ac_ext
32146 cat >>conftest.$ac_ext <<_ACEOF
32147 /* end confdefs.h. */
32151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32152 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32153 ice_cv_have_bind_decl=yes
32157 if test "$ice_cv_have_bind_decl" = yes; then
32164 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
32165 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
32166 if test "$ice_cv_have_bind_decl" = yes; then
32168 cat >>confdefs.h <<_ACEOF
32169 #define HAVE_BIND_DECL 1
32178 for ac_func in bcopy
32180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32181 echo "$as_me:$LINENO: checking for $ac_func" >&5
32182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32183 if eval "test \"\${$as_ac_var+set}\" = set"; then
32184 echo $ECHO_N "(cached) $ECHO_C" >&6
32186 cat >conftest.$ac_ext <<_ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h. */
32192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32194 #define $ac_func innocuous_$ac_func
32196 /* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32202 # include <limits.h>
32204 # include <assert.h>
32209 /* Override any gcc2 internal prototype to avoid an error. */
32214 /* We use char because int might match the return type of a gcc2
32215 builtin and then its argument prototype would still apply. */
32217 /* The GNU C library defines this for functions which it implements
32218 to always fail with ENOSYS. Some functions are actually named
32219 something starting with __ and the normal name is an alias. */
32220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32223 char (*f) () = $ac_func;
32232 return f != $ac_func;
32237 rm -f conftest.$ac_objext conftest$ac_exeext
32238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32239 (eval $ac_link) 2>conftest.er1
32241 grep -v '^ *+' conftest.er1 >conftest.err
32243 cat conftest.err >&5
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); } &&
32246 { ac_try='test -z "$ac_c_werror_flag"
32247 || test ! -s conftest.err'
32248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32249 (eval $ac_try) 2>&5
32251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252 (exit $ac_status); }; } &&
32253 { ac_try='test -s conftest$ac_exeext'
32254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32255 (eval $ac_try) 2>&5
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); }; }; then
32259 eval "$as_ac_var=yes"
32261 echo "$as_me: failed program was:" >&5
32262 sed 's/^/| /' conftest.$ac_ext >&5
32264 eval "$as_ac_var=no"
32266 rm -f conftest.err conftest.$ac_objext \
32267 conftest$ac_exeext conftest.$ac_ext
32269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32271 if test `eval echo '${'$as_ac_var'}'` = yes; then
32272 cat >>confdefs.h <<_ACEOF
32273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32279 if test "${ice_have_bcopy}" = yes; then
32280 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
32281 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32282 if test "${ice_cv_have_bcopy_decl+set}" = set; then
32283 echo $ECHO_N "(cached) $ECHO_C" >&6
32286 ice_cv_have_bcopy_decl=no
32287 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32288 ice_re_word='(^|[^a-zA-Z0-9_])'
32289 for header in string.h strings.h stdlib.h; do
32290 # Check for ordinary declaration
32291 cat >conftest.$ac_ext <<_ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h. */
32300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32301 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
32302 ice_cv_have_bcopy_decl=yes
32306 if test "$ice_cv_have_bcopy_decl" = yes; then
32309 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32310 cat >conftest.$ac_ext <<_ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h. */
32319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32320 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32321 ice_cv_have_bcopy_decl=yes
32325 if test "$ice_cv_have_bcopy_decl" = yes; then
32332 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
32333 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
32334 if test "$ice_cv_have_bcopy_decl" = yes; then
32336 cat >>confdefs.h <<_ACEOF
32337 #define HAVE_BCOPY_DECL 1
32346 for ac_func in bzero
32348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32349 echo "$as_me:$LINENO: checking for $ac_func" >&5
32350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32351 if eval "test \"\${$as_ac_var+set}\" = set"; then
32352 echo $ECHO_N "(cached) $ECHO_C" >&6
32354 cat >conftest.$ac_ext <<_ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h. */
32360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32362 #define $ac_func innocuous_$ac_func
32364 /* System header to define __stub macros and hopefully few prototypes,
32365 which can conflict with char $ac_func (); below.
32366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32367 <limits.h> exists even on freestanding compilers. */
32370 # include <limits.h>
32372 # include <assert.h>
32377 /* Override any gcc2 internal prototype to avoid an error. */
32382 /* We use char because int might match the return type of a gcc2
32383 builtin and then its argument prototype would still apply. */
32385 /* The GNU C library defines this for functions which it implements
32386 to always fail with ENOSYS. Some functions are actually named
32387 something starting with __ and the normal name is an alias. */
32388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32391 char (*f) () = $ac_func;
32400 return f != $ac_func;
32405 rm -f conftest.$ac_objext conftest$ac_exeext
32406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32407 (eval $ac_link) 2>conftest.er1
32409 grep -v '^ *+' conftest.er1 >conftest.err
32411 cat conftest.err >&5
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); } &&
32414 { ac_try='test -z "$ac_c_werror_flag"
32415 || test ! -s conftest.err'
32416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32417 (eval $ac_try) 2>&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; } &&
32421 { ac_try='test -s conftest$ac_exeext'
32422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423 (eval $ac_try) 2>&5
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); }; }; then
32427 eval "$as_ac_var=yes"
32429 echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32432 eval "$as_ac_var=no"
32434 rm -f conftest.err conftest.$ac_objext \
32435 conftest$ac_exeext conftest.$ac_ext
32437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32439 if test `eval echo '${'$as_ac_var'}'` = yes; then
32440 cat >>confdefs.h <<_ACEOF
32441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32447 if test "${ice_have_bzero}" = yes; then
32448 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
32449 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32450 if test "${ice_cv_have_bzero_decl+set}" = set; then
32451 echo $ECHO_N "(cached) $ECHO_C" >&6
32454 ice_cv_have_bzero_decl=no
32455 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32456 ice_re_word='(^|[^a-zA-Z0-9_])'
32457 for header in string.h strings.h stdlib.h; do
32458 # Check for ordinary declaration
32459 cat >conftest.$ac_ext <<_ACEOF
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h. */
32468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32469 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
32470 ice_cv_have_bzero_decl=yes
32474 if test "$ice_cv_have_bzero_decl" = yes; then
32477 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32478 cat >conftest.$ac_ext <<_ACEOF
32481 cat confdefs.h >>conftest.$ac_ext
32482 cat >>conftest.$ac_ext <<_ACEOF
32483 /* end confdefs.h. */
32487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32488 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32489 ice_cv_have_bzero_decl=yes
32493 if test "$ice_cv_have_bzero_decl" = yes; then
32500 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
32501 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
32502 if test "$ice_cv_have_bzero_decl" = yes; then
32504 cat >>confdefs.h <<_ACEOF
32505 #define HAVE_BZERO_DECL 1
32511 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32512 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
32513 if test "${ac_cv_func_closedir_void+set}" = set; then
32514 echo $ECHO_N "(cached) $ECHO_C" >&6
32516 if test "$cross_compiling" = yes; then
32517 ac_cv_func_closedir_void=yes
32519 cat >conftest.$ac_ext <<_ACEOF
32522 cat confdefs.h >>conftest.$ac_ext
32523 cat >>conftest.$ac_ext <<_ACEOF
32524 /* end confdefs.h. */
32525 $ac_includes_default
32526 #include <$ac_header_dirent>
32527 #ifndef __cplusplus
32534 exit (closedir (opendir (".")) != 0);
32539 rm -f conftest$ac_exeext
32540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32541 (eval $ac_link) 2>&5
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; }; then
32550 ac_cv_func_closedir_void=no
32552 echo "$as_me: program exited with status $ac_status" >&5
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 ( exit $ac_status )
32557 ac_cv_func_closedir_void=yes
32559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32562 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32563 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
32564 if test $ac_cv_func_closedir_void = yes; then
32566 cat >>confdefs.h <<\_ACEOF
32567 #define CLOSEDIR_VOID 1
32573 ice_have_closelog=no
32575 for ac_func in closelog
32577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32578 echo "$as_me:$LINENO: checking for $ac_func" >&5
32579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32580 if eval "test \"\${$as_ac_var+set}\" = set"; then
32581 echo $ECHO_N "(cached) $ECHO_C" >&6
32583 cat >conftest.$ac_ext <<_ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h. */
32589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32591 #define $ac_func innocuous_$ac_func
32593 /* System header to define __stub macros and hopefully few prototypes,
32594 which can conflict with char $ac_func (); below.
32595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32596 <limits.h> exists even on freestanding compilers. */
32599 # include <limits.h>
32601 # include <assert.h>
32606 /* Override any gcc2 internal prototype to avoid an error. */
32611 /* We use char because int might match the return type of a gcc2
32612 builtin and then its argument prototype would still apply. */
32614 /* The GNU C library defines this for functions which it implements
32615 to always fail with ENOSYS. Some functions are actually named
32616 something starting with __ and the normal name is an alias. */
32617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32620 char (*f) () = $ac_func;
32629 return f != $ac_func;
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32636 (eval $ac_link) 2>conftest.er1
32638 grep -v '^ *+' conftest.er1 >conftest.err
32640 cat conftest.err >&5
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } &&
32643 { ac_try='test -z "$ac_c_werror_flag"
32644 || test ! -s conftest.err'
32645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646 (eval $ac_try) 2>&5
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; } &&
32650 { ac_try='test -s conftest$ac_exeext'
32651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32652 (eval $ac_try) 2>&5
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; }; then
32656 eval "$as_ac_var=yes"
32658 echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32661 eval "$as_ac_var=no"
32663 rm -f conftest.err conftest.$ac_objext \
32664 conftest$ac_exeext conftest.$ac_ext
32666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32668 if test `eval echo '${'$as_ac_var'}'` = yes; then
32669 cat >>confdefs.h <<_ACEOF
32670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32672 ice_have_closelog=yes
32676 if test "${ice_have_closelog}" = yes; then
32677 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
32678 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
32679 if test "${ice_cv_have_closelog_decl+set}" = set; then
32680 echo $ECHO_N "(cached) $ECHO_C" >&6
32683 ice_cv_have_closelog_decl=no
32684 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32685 ice_re_word='(^|[^a-zA-Z0-9_])'
32686 for header in syslog.h; do
32687 # Check for ordinary declaration
32688 cat >conftest.$ac_ext <<_ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h. */
32697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32698 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
32699 ice_cv_have_closelog_decl=yes
32703 if test "$ice_cv_have_closelog_decl" = yes; then
32706 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32707 cat >conftest.$ac_ext <<_ACEOF
32710 cat confdefs.h >>conftest.$ac_ext
32711 cat >>conftest.$ac_ext <<_ACEOF
32712 /* end confdefs.h. */
32716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32717 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32718 ice_cv_have_closelog_decl=yes
32722 if test "$ice_cv_have_closelog_decl" = yes; then
32729 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
32730 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
32731 if test "$ice_cv_have_closelog_decl" = yes; then
32733 cat >>confdefs.h <<_ACEOF
32734 #define HAVE_CLOSELOG_DECL 1
32741 ice_have_connect=no
32743 for ac_func in connect
32745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32746 echo "$as_me:$LINENO: checking for $ac_func" >&5
32747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32748 if eval "test \"\${$as_ac_var+set}\" = set"; then
32749 echo $ECHO_N "(cached) $ECHO_C" >&6
32751 cat >conftest.$ac_ext <<_ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h. */
32757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32759 #define $ac_func innocuous_$ac_func
32761 /* System header to define __stub macros and hopefully few prototypes,
32762 which can conflict with char $ac_func (); below.
32763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32764 <limits.h> exists even on freestanding compilers. */
32767 # include <limits.h>
32769 # include <assert.h>
32774 /* Override any gcc2 internal prototype to avoid an error. */
32779 /* We use char because int might match the return type of a gcc2
32780 builtin and then its argument prototype would still apply. */
32782 /* The GNU C library defines this for functions which it implements
32783 to always fail with ENOSYS. Some functions are actually named
32784 something starting with __ and the normal name is an alias. */
32785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32788 char (*f) () = $ac_func;
32797 return f != $ac_func;
32802 rm -f conftest.$ac_objext conftest$ac_exeext
32803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32804 (eval $ac_link) 2>conftest.er1
32806 grep -v '^ *+' conftest.er1 >conftest.err
32808 cat conftest.err >&5
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); } &&
32811 { ac_try='test -z "$ac_c_werror_flag"
32812 || test ! -s conftest.err'
32813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814 (eval $ac_try) 2>&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; } &&
32818 { ac_try='test -s conftest$ac_exeext'
32819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820 (eval $ac_try) 2>&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; }; then
32824 eval "$as_ac_var=yes"
32826 echo "$as_me: failed program was:" >&5
32827 sed 's/^/| /' conftest.$ac_ext >&5
32829 eval "$as_ac_var=no"
32831 rm -f conftest.err conftest.$ac_objext \
32832 conftest$ac_exeext conftest.$ac_ext
32834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32836 if test `eval echo '${'$as_ac_var'}'` = yes; then
32837 cat >>confdefs.h <<_ACEOF
32838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32840 ice_have_connect=yes
32844 if test "${ice_have_connect}" = yes; then
32845 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
32846 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32847 if test "${ice_cv_have_connect_decl+set}" = set; then
32848 echo $ECHO_N "(cached) $ECHO_C" >&6
32851 ice_cv_have_connect_decl=no
32852 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32853 ice_re_word='(^|[^a-zA-Z0-9_])'
32854 for header in sys/types.h sys/socket.h; do
32855 # Check for ordinary declaration
32856 cat >conftest.$ac_ext <<_ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h. */
32865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32866 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
32867 ice_cv_have_connect_decl=yes
32871 if test "$ice_cv_have_connect_decl" = yes; then
32874 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32875 cat >conftest.$ac_ext <<_ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h. */
32884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32885 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32886 ice_cv_have_connect_decl=yes
32890 if test "$ice_cv_have_connect_decl" = yes; then
32897 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
32898 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
32899 if test "$ice_cv_have_connect_decl" = yes; then
32901 cat >>confdefs.h <<_ACEOF
32902 #define HAVE_CONNECT_DECL 1
32909 ice_have_dbm_open=no
32911 for ac_func in dbm_open
32913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32914 echo "$as_me:$LINENO: checking for $ac_func" >&5
32915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32916 if eval "test \"\${$as_ac_var+set}\" = set"; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32919 cat >conftest.$ac_ext <<_ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h. */
32925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32927 #define $ac_func innocuous_$ac_func
32929 /* System header to define __stub macros and hopefully few prototypes,
32930 which can conflict with char $ac_func (); below.
32931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32932 <limits.h> exists even on freestanding compilers. */
32935 # include <limits.h>
32937 # include <assert.h>
32942 /* Override any gcc2 internal prototype to avoid an error. */
32947 /* We use char because int might match the return type of a gcc2
32948 builtin and then its argument prototype would still apply. */
32950 /* The GNU C library defines this for functions which it implements
32951 to always fail with ENOSYS. Some functions are actually named
32952 something starting with __ and the normal name is an alias. */
32953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32956 char (*f) () = $ac_func;
32965 return f != $ac_func;
32970 rm -f conftest.$ac_objext conftest$ac_exeext
32971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32972 (eval $ac_link) 2>conftest.er1
32974 grep -v '^ *+' conftest.er1 >conftest.err
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } &&
32979 { ac_try='test -z "$ac_c_werror_flag"
32980 || test ! -s conftest.err'
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; } &&
32986 { ac_try='test -s conftest$ac_exeext'
32987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 (eval $ac_try) 2>&5
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 eval "$as_ac_var=yes"
32994 echo "$as_me: failed program was:" >&5
32995 sed 's/^/| /' conftest.$ac_ext >&5
32997 eval "$as_ac_var=no"
32999 rm -f conftest.err conftest.$ac_objext \
33000 conftest$ac_exeext conftest.$ac_ext
33002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33004 if test `eval echo '${'$as_ac_var'}'` = yes; then
33005 cat >>confdefs.h <<_ACEOF
33006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33008 ice_have_dbm_open=yes
33012 if test "${ice_have_dbm_open}" = yes; then
33013 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
33014 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
33015 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
33019 ice_cv_have_dbm_open_decl=no
33020 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33021 ice_re_word='(^|[^a-zA-Z0-9_])'
33022 for header in ${DB_HEADER-no/db/header/file}; do
33023 # Check for ordinary declaration
33024 cat >conftest.$ac_ext <<_ACEOF
33027 cat confdefs.h >>conftest.$ac_ext
33028 cat >>conftest.$ac_ext <<_ACEOF
33029 /* end confdefs.h. */
33033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33034 $EGREP "${ice_re_word}dbm_open[ ]*\(" >/dev/null 2>&1; then
33035 ice_cv_have_dbm_open_decl=yes
33039 if test "$ice_cv_have_dbm_open_decl" = yes; then
33042 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33043 cat >conftest.$ac_ext <<_ACEOF
33046 cat confdefs.h >>conftest.$ac_ext
33047 cat >>conftest.$ac_ext <<_ACEOF
33048 /* end confdefs.h. */
33052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33053 $EGREP "${ice_re_word}dbm_open[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33054 ice_cv_have_dbm_open_decl=yes
33058 if test "$ice_cv_have_dbm_open_decl" = yes; then
33065 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
33066 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
33067 if test "$ice_cv_have_dbm_open_decl" = yes; then
33069 cat >>confdefs.h <<_ACEOF
33070 #define HAVE_DBM_OPEN_DECL 1
33077 for ac_func in endmntent
33079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33080 echo "$as_me:$LINENO: checking for $ac_func" >&5
33081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33082 if eval "test \"\${$as_ac_var+set}\" = set"; then
33083 echo $ECHO_N "(cached) $ECHO_C" >&6
33085 cat >conftest.$ac_ext <<_ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h. */
33091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33093 #define $ac_func innocuous_$ac_func
33095 /* System header to define __stub macros and hopefully few prototypes,
33096 which can conflict with char $ac_func (); below.
33097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33098 <limits.h> exists even on freestanding compilers. */
33101 # include <limits.h>
33103 # include <assert.h>
33108 /* Override any gcc2 internal prototype to avoid an error. */
33113 /* We use char because int might match the return type of a gcc2
33114 builtin and then its argument prototype would still apply. */
33116 /* The GNU C library defines this for functions which it implements
33117 to always fail with ENOSYS. Some functions are actually named
33118 something starting with __ and the normal name is an alias. */
33119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33122 char (*f) () = $ac_func;
33131 return f != $ac_func;
33136 rm -f conftest.$ac_objext conftest$ac_exeext
33137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33138 (eval $ac_link) 2>conftest.er1
33140 grep -v '^ *+' conftest.er1 >conftest.err
33142 cat conftest.err >&5
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } &&
33145 { ac_try='test -z "$ac_c_werror_flag"
33146 || test ! -s conftest.err'
33147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148 (eval $ac_try) 2>&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; } &&
33152 { ac_try='test -s conftest$ac_exeext'
33153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154 (eval $ac_try) 2>&5
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); }; }; then
33158 eval "$as_ac_var=yes"
33160 echo "$as_me: failed program was:" >&5
33161 sed 's/^/| /' conftest.$ac_ext >&5
33163 eval "$as_ac_var=no"
33165 rm -f conftest.err conftest.$ac_objext \
33166 conftest$ac_exeext conftest.$ac_ext
33168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33170 if test `eval echo '${'$as_ac_var'}'` = yes; then
33171 cat >>confdefs.h <<_ACEOF
33172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33181 for ac_func in fclose
33183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33184 echo "$as_me:$LINENO: checking for $ac_func" >&5
33185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33186 if eval "test \"\${$as_ac_var+set}\" = set"; then
33187 echo $ECHO_N "(cached) $ECHO_C" >&6
33189 cat >conftest.$ac_ext <<_ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h. */
33195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33197 #define $ac_func innocuous_$ac_func
33199 /* System header to define __stub macros and hopefully few prototypes,
33200 which can conflict with char $ac_func (); below.
33201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33202 <limits.h> exists even on freestanding compilers. */
33205 # include <limits.h>
33207 # include <assert.h>
33212 /* Override any gcc2 internal prototype to avoid an error. */
33217 /* We use char because int might match the return type of a gcc2
33218 builtin and then its argument prototype would still apply. */
33220 /* The GNU C library defines this for functions which it implements
33221 to always fail with ENOSYS. Some functions are actually named
33222 something starting with __ and the normal name is an alias. */
33223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33226 char (*f) () = $ac_func;
33235 return f != $ac_func;
33240 rm -f conftest.$ac_objext conftest$ac_exeext
33241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33242 (eval $ac_link) 2>conftest.er1
33244 grep -v '^ *+' conftest.er1 >conftest.err
33246 cat conftest.err >&5
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); } &&
33249 { ac_try='test -z "$ac_c_werror_flag"
33250 || test ! -s conftest.err'
33251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252 (eval $ac_try) 2>&5
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); }; } &&
33256 { ac_try='test -s conftest$ac_exeext'
33257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33258 (eval $ac_try) 2>&5
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; }; then
33262 eval "$as_ac_var=yes"
33264 echo "$as_me: failed program was:" >&5
33265 sed 's/^/| /' conftest.$ac_ext >&5
33267 eval "$as_ac_var=no"
33269 rm -f conftest.err conftest.$ac_objext \
33270 conftest$ac_exeext conftest.$ac_ext
33272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33274 if test `eval echo '${'$as_ac_var'}'` = yes; then
33275 cat >>confdefs.h <<_ACEOF
33276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33278 ice_have_fclose=yes
33282 if test "${ice_have_fclose}" = yes; then
33283 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
33284 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
33285 if test "${ice_cv_have_fclose_decl+set}" = set; then
33286 echo $ECHO_N "(cached) $ECHO_C" >&6
33289 ice_cv_have_fclose_decl=no
33290 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33291 ice_re_word='(^|[^a-zA-Z0-9_])'
33292 for header in stdio.h; do
33293 # Check for ordinary declaration
33294 cat >conftest.$ac_ext <<_ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h. */
33303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33304 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
33305 ice_cv_have_fclose_decl=yes
33309 if test "$ice_cv_have_fclose_decl" = yes; then
33312 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33313 cat >conftest.$ac_ext <<_ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h. */
33322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33323 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33324 ice_cv_have_fclose_decl=yes
33328 if test "$ice_cv_have_fclose_decl" = yes; then
33335 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
33336 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
33337 if test "$ice_cv_have_fclose_decl" = yes; then
33339 cat >>confdefs.h <<_ACEOF
33340 #define HAVE_FCLOSE_DECL 1
33349 for ac_func in fflush
33351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33354 if eval "test \"\${$as_ac_var+set}\" = set"; then
33355 echo $ECHO_N "(cached) $ECHO_C" >&6
33357 cat >conftest.$ac_ext <<_ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h. */
33363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33365 #define $ac_func innocuous_$ac_func
33367 /* System header to define __stub macros and hopefully few prototypes,
33368 which can conflict with char $ac_func (); below.
33369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33370 <limits.h> exists even on freestanding compilers. */
33373 # include <limits.h>
33375 # include <assert.h>
33380 /* Override any gcc2 internal prototype to avoid an error. */
33385 /* We use char because int might match the return type of a gcc2
33386 builtin and then its argument prototype would still apply. */
33388 /* The GNU C library defines this for functions which it implements
33389 to always fail with ENOSYS. Some functions are actually named
33390 something starting with __ and the normal name is an alias. */
33391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33394 char (*f) () = $ac_func;
33403 return f != $ac_func;
33408 rm -f conftest.$ac_objext conftest$ac_exeext
33409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33410 (eval $ac_link) 2>conftest.er1
33412 grep -v '^ *+' conftest.er1 >conftest.err
33414 cat conftest.err >&5
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); } &&
33417 { ac_try='test -z "$ac_c_werror_flag"
33418 || test ! -s conftest.err'
33419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33420 (eval $ac_try) 2>&5
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); }; } &&
33424 { ac_try='test -s conftest$ac_exeext'
33425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426 (eval $ac_try) 2>&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); }; }; then
33430 eval "$as_ac_var=yes"
33432 echo "$as_me: failed program was:" >&5
33433 sed 's/^/| /' conftest.$ac_ext >&5
33435 eval "$as_ac_var=no"
33437 rm -f conftest.err conftest.$ac_objext \
33438 conftest$ac_exeext conftest.$ac_ext
33440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33442 if test `eval echo '${'$as_ac_var'}'` = yes; then
33443 cat >>confdefs.h <<_ACEOF
33444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33446 ice_have_fflush=yes
33450 if test "${ice_have_fflush}" = yes; then
33451 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
33452 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
33453 if test "${ice_cv_have_fflush_decl+set}" = set; then
33454 echo $ECHO_N "(cached) $ECHO_C" >&6
33457 ice_cv_have_fflush_decl=no
33458 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33459 ice_re_word='(^|[^a-zA-Z0-9_])'
33460 for header in stdio.h; do
33461 # Check for ordinary declaration
33462 cat >conftest.$ac_ext <<_ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h. */
33471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33472 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
33473 ice_cv_have_fflush_decl=yes
33477 if test "$ice_cv_have_fflush_decl" = yes; then
33480 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33481 cat >conftest.$ac_ext <<_ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h. */
33490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33491 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33492 ice_cv_have_fflush_decl=yes
33496 if test "$ice_cv_have_fflush_decl" = yes; then
33503 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
33504 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
33505 if test "$ice_cv_have_fflush_decl" = yes; then
33507 cat >>confdefs.h <<_ACEOF
33508 #define HAVE_FFLUSH_DECL 1
33517 for ac_func in flock
33519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33520 echo "$as_me:$LINENO: checking for $ac_func" >&5
33521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33522 if eval "test \"\${$as_ac_var+set}\" = set"; then
33523 echo $ECHO_N "(cached) $ECHO_C" >&6
33525 cat >conftest.$ac_ext <<_ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h. */
33531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33533 #define $ac_func innocuous_$ac_func
33535 /* System header to define __stub macros and hopefully few prototypes,
33536 which can conflict with char $ac_func (); below.
33537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33538 <limits.h> exists even on freestanding compilers. */
33541 # include <limits.h>
33543 # include <assert.h>
33548 /* Override any gcc2 internal prototype to avoid an error. */
33553 /* We use char because int might match the return type of a gcc2
33554 builtin and then its argument prototype would still apply. */
33556 /* The GNU C library defines this for functions which it implements
33557 to always fail with ENOSYS. Some functions are actually named
33558 something starting with __ and the normal name is an alias. */
33559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33562 char (*f) () = $ac_func;
33571 return f != $ac_func;
33576 rm -f conftest.$ac_objext conftest$ac_exeext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33578 (eval $ac_link) 2>conftest.er1
33580 grep -v '^ *+' conftest.er1 >conftest.err
33582 cat conftest.err >&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } &&
33585 { ac_try='test -z "$ac_c_werror_flag"
33586 || test ! -s conftest.err'
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; } &&
33592 { ac_try='test -s conftest$ac_exeext'
33593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594 (eval $ac_try) 2>&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; }; then
33598 eval "$as_ac_var=yes"
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33603 eval "$as_ac_var=no"
33605 rm -f conftest.err conftest.$ac_objext \
33606 conftest$ac_exeext conftest.$ac_ext
33608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33610 if test `eval echo '${'$as_ac_var'}'` = yes; then
33611 cat >>confdefs.h <<_ACEOF
33612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33618 if test "${ice_have_flock}" = yes; then
33619 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
33620 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
33621 if test "${ice_cv_have_flock_decl+set}" = set; then
33622 echo $ECHO_N "(cached) $ECHO_C" >&6
33625 ice_cv_have_flock_decl=no
33626 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33627 ice_re_word='(^|[^a-zA-Z0-9_])'
33628 for header in sys/file.h; do
33629 # Check for ordinary declaration
33630 cat >conftest.$ac_ext <<_ACEOF
33633 cat confdefs.h >>conftest.$ac_ext
33634 cat >>conftest.$ac_ext <<_ACEOF
33635 /* end confdefs.h. */
33639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33640 $EGREP "${ice_re_word}flock[ ]*\(" >/dev/null 2>&1; then
33641 ice_cv_have_flock_decl=yes
33645 if test "$ice_cv_have_flock_decl" = yes; then
33648 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33649 cat >conftest.$ac_ext <<_ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h. */
33658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33659 $EGREP "${ice_re_word}flock[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33660 ice_cv_have_flock_decl=yes
33664 if test "$ice_cv_have_flock_decl" = yes; then
33671 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
33672 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
33673 if test "$ice_cv_have_flock_decl" = yes; then
33675 cat >>confdefs.h <<_ACEOF
33676 #define HAVE_FLOCK_DECL 1
33683 ice_have_fprintf=no
33685 for ac_func in fprintf
33687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33688 echo "$as_me:$LINENO: checking for $ac_func" >&5
33689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33690 if eval "test \"\${$as_ac_var+set}\" = set"; then
33691 echo $ECHO_N "(cached) $ECHO_C" >&6
33693 cat >conftest.$ac_ext <<_ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h. */
33699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33701 #define $ac_func innocuous_$ac_func
33703 /* System header to define __stub macros and hopefully few prototypes,
33704 which can conflict with char $ac_func (); below.
33705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33706 <limits.h> exists even on freestanding compilers. */
33709 # include <limits.h>
33711 # include <assert.h>
33716 /* Override any gcc2 internal prototype to avoid an error. */
33721 /* We use char because int might match the return type of a gcc2
33722 builtin and then its argument prototype would still apply. */
33724 /* The GNU C library defines this for functions which it implements
33725 to always fail with ENOSYS. Some functions are actually named
33726 something starting with __ and the normal name is an alias. */
33727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33730 char (*f) () = $ac_func;
33739 return f != $ac_func;
33744 rm -f conftest.$ac_objext conftest$ac_exeext
33745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33746 (eval $ac_link) 2>conftest.er1
33748 grep -v '^ *+' conftest.er1 >conftest.err
33750 cat conftest.err >&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); } &&
33753 { ac_try='test -z "$ac_c_werror_flag"
33754 || test ! -s conftest.err'
33755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33756 (eval $ac_try) 2>&5
33758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759 (exit $ac_status); }; } &&
33760 { ac_try='test -s conftest$ac_exeext'
33761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33762 (eval $ac_try) 2>&5
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); }; }; then
33766 eval "$as_ac_var=yes"
33768 echo "$as_me: failed program was:" >&5
33769 sed 's/^/| /' conftest.$ac_ext >&5
33771 eval "$as_ac_var=no"
33773 rm -f conftest.err conftest.$ac_objext \
33774 conftest$ac_exeext conftest.$ac_ext
33776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33778 if test `eval echo '${'$as_ac_var'}'` = yes; then
33779 cat >>confdefs.h <<_ACEOF
33780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33782 ice_have_fprintf=yes
33786 if test "${ice_have_fprintf}" = yes; then
33787 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
33788 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
33789 if test "${ice_cv_have_fprintf_decl+set}" = set; then
33790 echo $ECHO_N "(cached) $ECHO_C" >&6
33793 ice_cv_have_fprintf_decl=no
33794 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33795 ice_re_word='(^|[^a-zA-Z0-9_])'
33796 for header in stdio.h; do
33797 # Check for ordinary declaration
33798 cat >conftest.$ac_ext <<_ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h. */
33807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33808 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
33809 ice_cv_have_fprintf_decl=yes
33813 if test "$ice_cv_have_fprintf_decl" = yes; then
33816 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33817 cat >conftest.$ac_ext <<_ACEOF
33820 cat confdefs.h >>conftest.$ac_ext
33821 cat >>conftest.$ac_ext <<_ACEOF
33822 /* end confdefs.h. */
33826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33827 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33828 ice_cv_have_fprintf_decl=yes
33832 if test "$ice_cv_have_fprintf_decl" = yes; then
33839 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
33840 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
33841 if test "$ice_cv_have_fprintf_decl" = yes; then
33843 cat >>confdefs.h <<_ACEOF
33844 #define HAVE_FPRINTF_DECL 1
33853 for ac_func in fputc
33855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33856 echo "$as_me:$LINENO: checking for $ac_func" >&5
33857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33858 if eval "test \"\${$as_ac_var+set}\" = set"; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33861 cat >conftest.$ac_ext <<_ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h. */
33867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33869 #define $ac_func innocuous_$ac_func
33871 /* System header to define __stub macros and hopefully few prototypes,
33872 which can conflict with char $ac_func (); below.
33873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33874 <limits.h> exists even on freestanding compilers. */
33877 # include <limits.h>
33879 # include <assert.h>
33884 /* Override any gcc2 internal prototype to avoid an error. */
33889 /* We use char because int might match the return type of a gcc2
33890 builtin and then its argument prototype would still apply. */
33892 /* The GNU C library defines this for functions which it implements
33893 to always fail with ENOSYS. Some functions are actually named
33894 something starting with __ and the normal name is an alias. */
33895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33898 char (*f) () = $ac_func;
33907 return f != $ac_func;
33912 rm -f conftest.$ac_objext conftest$ac_exeext
33913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33914 (eval $ac_link) 2>conftest.er1
33916 grep -v '^ *+' conftest.er1 >conftest.err
33918 cat conftest.err >&5
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
33921 { ac_try='test -z "$ac_c_werror_flag"
33922 || test ! -s conftest.err'
33923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924 (eval $ac_try) 2>&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); }; } &&
33928 { ac_try='test -s conftest$ac_exeext'
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; }; then
33934 eval "$as_ac_var=yes"
33936 echo "$as_me: failed program was:" >&5
33937 sed 's/^/| /' conftest.$ac_ext >&5
33939 eval "$as_ac_var=no"
33941 rm -f conftest.err conftest.$ac_objext \
33942 conftest$ac_exeext conftest.$ac_ext
33944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33946 if test `eval echo '${'$as_ac_var'}'` = yes; then
33947 cat >>confdefs.h <<_ACEOF
33948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33954 if test "${ice_have_fputc}" = yes; then
33955 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
33956 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
33957 if test "${ice_cv_have_fputc_decl+set}" = set; then
33958 echo $ECHO_N "(cached) $ECHO_C" >&6
33961 ice_cv_have_fputc_decl=no
33962 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33963 ice_re_word='(^|[^a-zA-Z0-9_])'
33964 for header in stdio.h; do
33965 # Check for ordinary declaration
33966 cat >conftest.$ac_ext <<_ACEOF
33969 cat confdefs.h >>conftest.$ac_ext
33970 cat >>conftest.$ac_ext <<_ACEOF
33971 /* end confdefs.h. */
33975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33976 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
33977 ice_cv_have_fputc_decl=yes
33981 if test "$ice_cv_have_fputc_decl" = yes; then
33984 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33985 cat >conftest.$ac_ext <<_ACEOF
33988 cat confdefs.h >>conftest.$ac_ext
33989 cat >>conftest.$ac_ext <<_ACEOF
33990 /* end confdefs.h. */
33994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33995 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33996 ice_cv_have_fputc_decl=yes
34000 if test "$ice_cv_have_fputc_decl" = yes; then
34007 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
34008 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
34009 if test "$ice_cv_have_fputc_decl" = yes; then
34011 cat >>confdefs.h <<_ACEOF
34012 #define HAVE_FPUTC_DECL 1
34021 for ac_func in fputs
34023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34024 echo "$as_me:$LINENO: checking for $ac_func" >&5
34025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34026 if eval "test \"\${$as_ac_var+set}\" = set"; then
34027 echo $ECHO_N "(cached) $ECHO_C" >&6
34029 cat >conftest.$ac_ext <<_ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h. */
34035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34037 #define $ac_func innocuous_$ac_func
34039 /* System header to define __stub macros and hopefully few prototypes,
34040 which can conflict with char $ac_func (); below.
34041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34042 <limits.h> exists even on freestanding compilers. */
34045 # include <limits.h>
34047 # include <assert.h>
34052 /* Override any gcc2 internal prototype to avoid an error. */
34057 /* We use char because int might match the return type of a gcc2
34058 builtin and then its argument prototype would still apply. */
34060 /* The GNU C library defines this for functions which it implements
34061 to always fail with ENOSYS. Some functions are actually named
34062 something starting with __ and the normal name is an alias. */
34063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34066 char (*f) () = $ac_func;
34075 return f != $ac_func;
34080 rm -f conftest.$ac_objext conftest$ac_exeext
34081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34082 (eval $ac_link) 2>conftest.er1
34084 grep -v '^ *+' conftest.er1 >conftest.err
34086 cat conftest.err >&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); } &&
34089 { ac_try='test -z "$ac_c_werror_flag"
34090 || test ! -s conftest.err'
34091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092 (eval $ac_try) 2>&5
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; } &&
34096 { ac_try='test -s conftest$ac_exeext'
34097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34098 (eval $ac_try) 2>&5
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); }; }; then
34102 eval "$as_ac_var=yes"
34104 echo "$as_me: failed program was:" >&5
34105 sed 's/^/| /' conftest.$ac_ext >&5
34107 eval "$as_ac_var=no"
34109 rm -f conftest.err conftest.$ac_objext \
34110 conftest$ac_exeext conftest.$ac_ext
34112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34114 if test `eval echo '${'$as_ac_var'}'` = yes; then
34115 cat >>confdefs.h <<_ACEOF
34116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34122 if test "${ice_have_fputs}" = yes; then
34123 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
34124 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
34125 if test "${ice_cv_have_fputs_decl+set}" = set; then
34126 echo $ECHO_N "(cached) $ECHO_C" >&6
34129 ice_cv_have_fputs_decl=no
34130 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34131 ice_re_word='(^|[^a-zA-Z0-9_])'
34132 for header in stdio.h; do
34133 # Check for ordinary declaration
34134 cat >conftest.$ac_ext <<_ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h. */
34143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34144 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
34145 ice_cv_have_fputs_decl=yes
34149 if test "$ice_cv_have_fputs_decl" = yes; then
34152 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34153 cat >conftest.$ac_ext <<_ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h. */
34162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34163 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34164 ice_cv_have_fputs_decl=yes
34168 if test "$ice_cv_have_fputs_decl" = yes; then
34175 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
34176 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
34177 if test "$ice_cv_have_fputs_decl" = yes; then
34179 cat >>confdefs.h <<_ACEOF
34180 #define HAVE_FPUTS_DECL 1
34189 for ac_func in fread
34191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34192 echo "$as_me:$LINENO: checking for $ac_func" >&5
34193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34194 if eval "test \"\${$as_ac_var+set}\" = set"; then
34195 echo $ECHO_N "(cached) $ECHO_C" >&6
34197 cat >conftest.$ac_ext <<_ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h. */
34203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34205 #define $ac_func innocuous_$ac_func
34207 /* System header to define __stub macros and hopefully few prototypes,
34208 which can conflict with char $ac_func (); below.
34209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34210 <limits.h> exists even on freestanding compilers. */
34213 # include <limits.h>
34215 # include <assert.h>
34220 /* Override any gcc2 internal prototype to avoid an error. */
34225 /* We use char because int might match the return type of a gcc2
34226 builtin and then its argument prototype would still apply. */
34228 /* The GNU C library defines this for functions which it implements
34229 to always fail with ENOSYS. Some functions are actually named
34230 something starting with __ and the normal name is an alias. */
34231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34234 char (*f) () = $ac_func;
34243 return f != $ac_func;
34248 rm -f conftest.$ac_objext conftest$ac_exeext
34249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34250 (eval $ac_link) 2>conftest.er1
34252 grep -v '^ *+' conftest.er1 >conftest.err
34254 cat conftest.err >&5
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); } &&
34257 { ac_try='test -z "$ac_c_werror_flag"
34258 || test ! -s conftest.err'
34259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260 (eval $ac_try) 2>&5
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); }; } &&
34264 { ac_try='test -s conftest$ac_exeext'
34265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34266 (eval $ac_try) 2>&5
34268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269 (exit $ac_status); }; }; then
34270 eval "$as_ac_var=yes"
34272 echo "$as_me: failed program was:" >&5
34273 sed 's/^/| /' conftest.$ac_ext >&5
34275 eval "$as_ac_var=no"
34277 rm -f conftest.err conftest.$ac_objext \
34278 conftest$ac_exeext conftest.$ac_ext
34280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34282 if test `eval echo '${'$as_ac_var'}'` = yes; then
34283 cat >>confdefs.h <<_ACEOF
34284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34290 if test "${ice_have_fread}" = yes; then
34291 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
34292 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
34293 if test "${ice_cv_have_fread_decl+set}" = set; then
34294 echo $ECHO_N "(cached) $ECHO_C" >&6
34297 ice_cv_have_fread_decl=no
34298 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34299 ice_re_word='(^|[^a-zA-Z0-9_])'
34300 for header in stdio.h stdlib.h; do
34301 # Check for ordinary declaration
34302 cat >conftest.$ac_ext <<_ACEOF
34305 cat confdefs.h >>conftest.$ac_ext
34306 cat >>conftest.$ac_ext <<_ACEOF
34307 /* end confdefs.h. */
34311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34312 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
34313 ice_cv_have_fread_decl=yes
34317 if test "$ice_cv_have_fread_decl" = yes; then
34320 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34321 cat >conftest.$ac_ext <<_ACEOF
34324 cat confdefs.h >>conftest.$ac_ext
34325 cat >>conftest.$ac_ext <<_ACEOF
34326 /* end confdefs.h. */
34330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34331 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34332 ice_cv_have_fread_decl=yes
34336 if test "$ice_cv_have_fread_decl" = yes; then
34343 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
34344 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
34345 if test "$ice_cv_have_fread_decl" = yes; then
34347 cat >>confdefs.h <<_ACEOF
34348 #define HAVE_FREAD_DECL 1
34357 for ac_func in fseek
34359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34360 echo "$as_me:$LINENO: checking for $ac_func" >&5
34361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34362 if eval "test \"\${$as_ac_var+set}\" = set"; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34365 cat >conftest.$ac_ext <<_ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h. */
34371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34373 #define $ac_func innocuous_$ac_func
34375 /* System header to define __stub macros and hopefully few prototypes,
34376 which can conflict with char $ac_func (); below.
34377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34378 <limits.h> exists even on freestanding compilers. */
34381 # include <limits.h>
34383 # include <assert.h>
34388 /* Override any gcc2 internal prototype to avoid an error. */
34393 /* We use char because int might match the return type of a gcc2
34394 builtin and then its argument prototype would still apply. */
34396 /* The GNU C library defines this for functions which it implements
34397 to always fail with ENOSYS. Some functions are actually named
34398 something starting with __ and the normal name is an alias. */
34399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34402 char (*f) () = $ac_func;
34411 return f != $ac_func;
34416 rm -f conftest.$ac_objext conftest$ac_exeext
34417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34418 (eval $ac_link) 2>conftest.er1
34420 grep -v '^ *+' conftest.er1 >conftest.err
34422 cat conftest.err >&5
34423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424 (exit $ac_status); } &&
34425 { ac_try='test -z "$ac_c_werror_flag"
34426 || test ! -s conftest.err'
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; } &&
34432 { ac_try='test -s conftest$ac_exeext'
34433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434 (eval $ac_try) 2>&5
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); }; }; then
34438 eval "$as_ac_var=yes"
34440 echo "$as_me: failed program was:" >&5
34441 sed 's/^/| /' conftest.$ac_ext >&5
34443 eval "$as_ac_var=no"
34445 rm -f conftest.err conftest.$ac_objext \
34446 conftest$ac_exeext conftest.$ac_ext
34448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34450 if test `eval echo '${'$as_ac_var'}'` = yes; then
34451 cat >>confdefs.h <<_ACEOF
34452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34458 if test "${ice_have_fseek}" = yes; then
34459 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
34460 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
34461 if test "${ice_cv_have_fseek_decl+set}" = set; then
34462 echo $ECHO_N "(cached) $ECHO_C" >&6
34465 ice_cv_have_fseek_decl=no
34466 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34467 ice_re_word='(^|[^a-zA-Z0-9_])'
34468 for header in stdio.h; do
34469 # Check for ordinary declaration
34470 cat >conftest.$ac_ext <<_ACEOF
34473 cat confdefs.h >>conftest.$ac_ext
34474 cat >>conftest.$ac_ext <<_ACEOF
34475 /* end confdefs.h. */
34479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34480 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
34481 ice_cv_have_fseek_decl=yes
34485 if test "$ice_cv_have_fseek_decl" = yes; then
34488 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34489 cat >conftest.$ac_ext <<_ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h. */
34498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34499 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34500 ice_cv_have_fseek_decl=yes
34504 if test "$ice_cv_have_fseek_decl" = yes; then
34511 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
34512 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
34513 if test "$ice_cv_have_fseek_decl" = yes; then
34515 cat >>confdefs.h <<_ACEOF
34516 #define HAVE_FSEEK_DECL 1
34525 for ac_func in fwrite
34527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34528 echo "$as_me:$LINENO: checking for $ac_func" >&5
34529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34530 if eval "test \"\${$as_ac_var+set}\" = set"; then
34531 echo $ECHO_N "(cached) $ECHO_C" >&6
34533 cat >conftest.$ac_ext <<_ACEOF
34536 cat confdefs.h >>conftest.$ac_ext
34537 cat >>conftest.$ac_ext <<_ACEOF
34538 /* end confdefs.h. */
34539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34541 #define $ac_func innocuous_$ac_func
34543 /* System header to define __stub macros and hopefully few prototypes,
34544 which can conflict with char $ac_func (); below.
34545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34546 <limits.h> exists even on freestanding compilers. */
34549 # include <limits.h>
34551 # include <assert.h>
34556 /* Override any gcc2 internal prototype to avoid an error. */
34561 /* We use char because int might match the return type of a gcc2
34562 builtin and then its argument prototype would still apply. */
34564 /* The GNU C library defines this for functions which it implements
34565 to always fail with ENOSYS. Some functions are actually named
34566 something starting with __ and the normal name is an alias. */
34567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34570 char (*f) () = $ac_func;
34579 return f != $ac_func;
34584 rm -f conftest.$ac_objext conftest$ac_exeext
34585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34586 (eval $ac_link) 2>conftest.er1
34588 grep -v '^ *+' conftest.er1 >conftest.err
34590 cat conftest.err >&5
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); } &&
34593 { ac_try='test -z "$ac_c_werror_flag"
34594 || test ! -s conftest.err'
34595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596 (eval $ac_try) 2>&5
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); }; } &&
34600 { ac_try='test -s conftest$ac_exeext'
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; }; then
34606 eval "$as_ac_var=yes"
34608 echo "$as_me: failed program was:" >&5
34609 sed 's/^/| /' conftest.$ac_ext >&5
34611 eval "$as_ac_var=no"
34613 rm -f conftest.err conftest.$ac_objext \
34614 conftest$ac_exeext conftest.$ac_ext
34616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34618 if test `eval echo '${'$as_ac_var'}'` = yes; then
34619 cat >>confdefs.h <<_ACEOF
34620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34622 ice_have_fwrite=yes
34626 if test "${ice_have_fwrite}" = yes; then
34627 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
34628 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
34629 if test "${ice_cv_have_fwrite_decl+set}" = set; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34633 ice_cv_have_fwrite_decl=no
34634 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34635 ice_re_word='(^|[^a-zA-Z0-9_])'
34636 for header in stdio.h stdlib.h; do
34637 # Check for ordinary declaration
34638 cat >conftest.$ac_ext <<_ACEOF
34641 cat confdefs.h >>conftest.$ac_ext
34642 cat >>conftest.$ac_ext <<_ACEOF
34643 /* end confdefs.h. */
34647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34648 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
34649 ice_cv_have_fwrite_decl=yes
34653 if test "$ice_cv_have_fwrite_decl" = yes; then
34656 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34657 cat >conftest.$ac_ext <<_ACEOF
34660 cat confdefs.h >>conftest.$ac_ext
34661 cat >>conftest.$ac_ext <<_ACEOF
34662 /* end confdefs.h. */
34666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34667 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34668 ice_cv_have_fwrite_decl=yes
34672 if test "$ice_cv_have_fwrite_decl" = yes; then
34679 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
34680 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
34681 if test "$ice_cv_have_fwrite_decl" = yes; then
34683 cat >>confdefs.h <<_ACEOF
34684 #define HAVE_FWRITE_DECL 1
34691 for ac_func in getcwd
34693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34694 echo "$as_me:$LINENO: checking for $ac_func" >&5
34695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34696 if eval "test \"\${$as_ac_var+set}\" = set"; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34699 cat >conftest.$ac_ext <<_ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h. */
34705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34707 #define $ac_func innocuous_$ac_func
34709 /* System header to define __stub macros and hopefully few prototypes,
34710 which can conflict with char $ac_func (); below.
34711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34712 <limits.h> exists even on freestanding compilers. */
34715 # include <limits.h>
34717 # include <assert.h>
34722 /* Override any gcc2 internal prototype to avoid an error. */
34727 /* We use char because int might match the return type of a gcc2
34728 builtin and then its argument prototype would still apply. */
34730 /* The GNU C library defines this for functions which it implements
34731 to always fail with ENOSYS. Some functions are actually named
34732 something starting with __ and the normal name is an alias. */
34733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34736 char (*f) () = $ac_func;
34745 return f != $ac_func;
34750 rm -f conftest.$ac_objext conftest$ac_exeext
34751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34752 (eval $ac_link) 2>conftest.er1
34754 grep -v '^ *+' conftest.er1 >conftest.err
34756 cat conftest.err >&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); } &&
34759 { ac_try='test -z "$ac_c_werror_flag"
34760 || test ! -s conftest.err'
34761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762 (eval $ac_try) 2>&5
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); }; } &&
34766 { ac_try='test -s conftest$ac_exeext'
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; }; then
34772 eval "$as_ac_var=yes"
34774 echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34777 eval "$as_ac_var=no"
34779 rm -f conftest.err conftest.$ac_objext \
34780 conftest$ac_exeext conftest.$ac_ext
34782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34784 if test `eval echo '${'$as_ac_var'}'` = yes; then
34785 cat >>confdefs.h <<_ACEOF
34786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34791 "$ac_func.$ac_objext" | \
34792 *" $ac_func.$ac_objext" | \
34793 "$ac_func.$ac_objext "* | \
34794 *" $ac_func.$ac_objext "* ) ;;
34795 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
34803 for ac_func in getfsent
34805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34806 echo "$as_me:$LINENO: checking for $ac_func" >&5
34807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34808 if eval "test \"\${$as_ac_var+set}\" = set"; then
34809 echo $ECHO_N "(cached) $ECHO_C" >&6
34811 cat >conftest.$ac_ext <<_ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h. */
34817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34819 #define $ac_func innocuous_$ac_func
34821 /* System header to define __stub macros and hopefully few prototypes,
34822 which can conflict with char $ac_func (); below.
34823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34824 <limits.h> exists even on freestanding compilers. */
34827 # include <limits.h>
34829 # include <assert.h>
34834 /* Override any gcc2 internal prototype to avoid an error. */
34839 /* We use char because int might match the return type of a gcc2
34840 builtin and then its argument prototype would still apply. */
34842 /* The GNU C library defines this for functions which it implements
34843 to always fail with ENOSYS. Some functions are actually named
34844 something starting with __ and the normal name is an alias. */
34845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34848 char (*f) () = $ac_func;
34857 return f != $ac_func;
34862 rm -f conftest.$ac_objext conftest$ac_exeext
34863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34864 (eval $ac_link) 2>conftest.er1
34866 grep -v '^ *+' conftest.er1 >conftest.err
34868 cat conftest.err >&5
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); } &&
34871 { ac_try='test -z "$ac_c_werror_flag"
34872 || test ! -s conftest.err'
34873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874 (eval $ac_try) 2>&5
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; } &&
34878 { ac_try='test -s conftest$ac_exeext'
34879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880 (eval $ac_try) 2>&5
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); }; }; then
34884 eval "$as_ac_var=yes"
34886 echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34889 eval "$as_ac_var=no"
34891 rm -f conftest.err conftest.$ac_objext \
34892 conftest$ac_exeext conftest.$ac_ext
34894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34896 if test `eval echo '${'$as_ac_var'}'` = yes; then
34897 cat >>confdefs.h <<_ACEOF
34898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34905 ice_have_gethostname=no
34907 for ac_func in gethostname
34909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34910 echo "$as_me:$LINENO: checking for $ac_func" >&5
34911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34912 if eval "test \"\${$as_ac_var+set}\" = set"; then
34913 echo $ECHO_N "(cached) $ECHO_C" >&6
34915 cat >conftest.$ac_ext <<_ACEOF
34918 cat confdefs.h >>conftest.$ac_ext
34919 cat >>conftest.$ac_ext <<_ACEOF
34920 /* end confdefs.h. */
34921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34923 #define $ac_func innocuous_$ac_func
34925 /* System header to define __stub macros and hopefully few prototypes,
34926 which can conflict with char $ac_func (); below.
34927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34928 <limits.h> exists even on freestanding compilers. */
34931 # include <limits.h>
34933 # include <assert.h>
34938 /* Override any gcc2 internal prototype to avoid an error. */
34943 /* We use char because int might match the return type of a gcc2
34944 builtin and then its argument prototype would still apply. */
34946 /* The GNU C library defines this for functions which it implements
34947 to always fail with ENOSYS. Some functions are actually named
34948 something starting with __ and the normal name is an alias. */
34949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34952 char (*f) () = $ac_func;
34961 return f != $ac_func;
34966 rm -f conftest.$ac_objext conftest$ac_exeext
34967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34968 (eval $ac_link) 2>conftest.er1
34970 grep -v '^ *+' conftest.er1 >conftest.err
34972 cat conftest.err >&5
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); } &&
34975 { ac_try='test -z "$ac_c_werror_flag"
34976 || test ! -s conftest.err'
34977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978 (eval $ac_try) 2>&5
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); }; } &&
34982 { ac_try='test -s conftest$ac_exeext'
34983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984 (eval $ac_try) 2>&5
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); }; }; then
34988 eval "$as_ac_var=yes"
34990 echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34993 eval "$as_ac_var=no"
34995 rm -f conftest.err conftest.$ac_objext \
34996 conftest$ac_exeext conftest.$ac_ext
34998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35000 if test `eval echo '${'$as_ac_var'}'` = yes; then
35001 cat >>confdefs.h <<_ACEOF
35002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35004 ice_have_gethostname=yes
35008 if test "${ice_have_gethostname}" = yes; then
35009 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
35010 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
35011 if test "${ice_cv_have_gethostname_decl+set}" = set; then
35012 echo $ECHO_N "(cached) $ECHO_C" >&6
35015 ice_cv_have_gethostname_decl=no
35016 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35017 ice_re_word='(^|[^a-zA-Z0-9_])'
35018 for header in unistd.h; do
35019 # Check for ordinary declaration
35020 cat >conftest.$ac_ext <<_ACEOF
35023 cat confdefs.h >>conftest.$ac_ext
35024 cat >>conftest.$ac_ext <<_ACEOF
35025 /* end confdefs.h. */
35029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35030 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
35031 ice_cv_have_gethostname_decl=yes
35035 if test "$ice_cv_have_gethostname_decl" = yes; then
35038 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35039 cat >conftest.$ac_ext <<_ACEOF
35042 cat confdefs.h >>conftest.$ac_ext
35043 cat >>conftest.$ac_ext <<_ACEOF
35044 /* end confdefs.h. */
35048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35049 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35050 ice_cv_have_gethostname_decl=yes
35054 if test "$ice_cv_have_gethostname_decl" = yes; then
35061 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
35062 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
35063 if test "$ice_cv_have_gethostname_decl" = yes; then
35065 cat >>confdefs.h <<_ACEOF
35066 #define HAVE_GETHOSTNAME_DECL 1
35072 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35073 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35074 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35075 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35076 echo $ECHO_N "(cached) $ECHO_C" >&6
35078 ac_check_lib_save_LIBS=$LIBS
35080 cat >conftest.$ac_ext <<_ACEOF
35083 cat confdefs.h >>conftest.$ac_ext
35084 cat >>conftest.$ac_ext <<_ACEOF
35085 /* end confdefs.h. */
35087 /* Override any gcc2 internal prototype to avoid an error. */
35091 /* We use char because int might match the return type of a gcc2
35092 builtin and then its argument prototype would still apply. */
35102 rm -f conftest.$ac_objext conftest$ac_exeext
35103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35104 (eval $ac_link) 2>conftest.er1
35106 grep -v '^ *+' conftest.er1 >conftest.err
35108 cat conftest.err >&5
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
35111 { ac_try='test -z "$ac_c_werror_flag"
35112 || test ! -s conftest.err'
35113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114 (eval $ac_try) 2>&5
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); }; } &&
35118 { ac_try='test -s conftest$ac_exeext'
35119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35120 (eval $ac_try) 2>&5
35122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123 (exit $ac_status); }; }; then
35124 ac_cv_lib_sun_getmntent=yes
35126 echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35129 ac_cv_lib_sun_getmntent=no
35131 rm -f conftest.err conftest.$ac_objext \
35132 conftest$ac_exeext conftest.$ac_ext
35133 LIBS=$ac_check_lib_save_LIBS
35135 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35136 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35137 if test $ac_cv_lib_sun_getmntent = yes; then
35140 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35141 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35142 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35143 echo $ECHO_N "(cached) $ECHO_C" >&6
35145 ac_check_lib_save_LIBS=$LIBS
35147 cat >conftest.$ac_ext <<_ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35154 /* Override any gcc2 internal prototype to avoid an error. */
35158 /* We use char because int might match the return type of a gcc2
35159 builtin and then its argument prototype would still apply. */
35169 rm -f conftest.$ac_objext conftest$ac_exeext
35170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35171 (eval $ac_link) 2>conftest.er1
35173 grep -v '^ *+' conftest.er1 >conftest.err
35175 cat conftest.err >&5
35176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177 (exit $ac_status); } &&
35178 { ac_try='test -z "$ac_c_werror_flag"
35179 || test ! -s conftest.err'
35180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181 (eval $ac_try) 2>&5
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; } &&
35185 { ac_try='test -s conftest$ac_exeext'
35186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187 (eval $ac_try) 2>&5
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; }; then
35191 ac_cv_lib_seq_getmntent=yes
35193 echo "$as_me: failed program was:" >&5
35194 sed 's/^/| /' conftest.$ac_ext >&5
35196 ac_cv_lib_seq_getmntent=no
35198 rm -f conftest.err conftest.$ac_objext \
35199 conftest$ac_exeext conftest.$ac_ext
35200 LIBS=$ac_check_lib_save_LIBS
35202 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35203 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35204 if test $ac_cv_lib_seq_getmntent = yes; then
35207 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35208 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35209 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35210 echo $ECHO_N "(cached) $ECHO_C" >&6
35212 ac_check_lib_save_LIBS=$LIBS
35214 cat >conftest.$ac_ext <<_ACEOF
35217 cat confdefs.h >>conftest.$ac_ext
35218 cat >>conftest.$ac_ext <<_ACEOF
35219 /* end confdefs.h. */
35221 /* Override any gcc2 internal prototype to avoid an error. */
35225 /* We use char because int might match the return type of a gcc2
35226 builtin and then its argument prototype would still apply. */
35236 rm -f conftest.$ac_objext conftest$ac_exeext
35237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35238 (eval $ac_link) 2>conftest.er1
35240 grep -v '^ *+' conftest.er1 >conftest.err
35242 cat conftest.err >&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); } &&
35245 { ac_try='test -z "$ac_c_werror_flag"
35246 || test ! -s conftest.err'
35247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35248 (eval $ac_try) 2>&5
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251 (exit $ac_status); }; } &&
35252 { ac_try='test -s conftest$ac_exeext'
35253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35254 (eval $ac_try) 2>&5
35256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35257 (exit $ac_status); }; }; then
35258 ac_cv_lib_gen_getmntent=yes
35260 echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35263 ac_cv_lib_gen_getmntent=no
35265 rm -f conftest.err conftest.$ac_objext \
35266 conftest$ac_exeext conftest.$ac_ext
35267 LIBS=$ac_check_lib_save_LIBS
35269 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35270 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35271 if test $ac_cv_lib_gen_getmntent = yes; then
35280 for ac_func in getmntent
35282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35283 echo "$as_me:$LINENO: checking for $ac_func" >&5
35284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35285 if eval "test \"\${$as_ac_var+set}\" = set"; then
35286 echo $ECHO_N "(cached) $ECHO_C" >&6
35288 cat >conftest.$ac_ext <<_ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h. */
35294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35296 #define $ac_func innocuous_$ac_func
35298 /* System header to define __stub macros and hopefully few prototypes,
35299 which can conflict with char $ac_func (); below.
35300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35301 <limits.h> exists even on freestanding compilers. */
35304 # include <limits.h>
35306 # include <assert.h>
35311 /* Override any gcc2 internal prototype to avoid an error. */
35316 /* We use char because int might match the return type of a gcc2
35317 builtin and then its argument prototype would still apply. */
35319 /* The GNU C library defines this for functions which it implements
35320 to always fail with ENOSYS. Some functions are actually named
35321 something starting with __ and the normal name is an alias. */
35322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35325 char (*f) () = $ac_func;
35334 return f != $ac_func;
35339 rm -f conftest.$ac_objext conftest$ac_exeext
35340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35341 (eval $ac_link) 2>conftest.er1
35343 grep -v '^ *+' conftest.er1 >conftest.err
35345 cat conftest.err >&5
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); } &&
35348 { ac_try='test -z "$ac_c_werror_flag"
35349 || test ! -s conftest.err'
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); }; } &&
35355 { ac_try='test -s conftest$ac_exeext'
35356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35357 (eval $ac_try) 2>&5
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; }; then
35361 eval "$as_ac_var=yes"
35363 echo "$as_me: failed program was:" >&5
35364 sed 's/^/| /' conftest.$ac_ext >&5
35366 eval "$as_ac_var=no"
35368 rm -f conftest.err conftest.$ac_objext \
35369 conftest$ac_exeext conftest.$ac_ext
35371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35373 if test `eval echo '${'$as_ac_var'}'` = yes; then
35374 cat >>confdefs.h <<_ACEOF
35375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35385 for ac_func in getopt
35387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35388 echo "$as_me:$LINENO: checking for $ac_func" >&5
35389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35390 if eval "test \"\${$as_ac_var+set}\" = set"; then
35391 echo $ECHO_N "(cached) $ECHO_C" >&6
35393 cat >conftest.$ac_ext <<_ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h. */
35399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35401 #define $ac_func innocuous_$ac_func
35403 /* System header to define __stub macros and hopefully few prototypes,
35404 which can conflict with char $ac_func (); below.
35405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35406 <limits.h> exists even on freestanding compilers. */
35409 # include <limits.h>
35411 # include <assert.h>
35416 /* Override any gcc2 internal prototype to avoid an error. */
35421 /* We use char because int might match the return type of a gcc2
35422 builtin and then its argument prototype would still apply. */
35424 /* The GNU C library defines this for functions which it implements
35425 to always fail with ENOSYS. Some functions are actually named
35426 something starting with __ and the normal name is an alias. */
35427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35430 char (*f) () = $ac_func;
35439 return f != $ac_func;
35444 rm -f conftest.$ac_objext conftest$ac_exeext
35445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35446 (eval $ac_link) 2>conftest.er1
35448 grep -v '^ *+' conftest.er1 >conftest.err
35450 cat conftest.err >&5
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); } &&
35453 { ac_try='test -z "$ac_c_werror_flag"
35454 || test ! -s conftest.err'
35455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456 (eval $ac_try) 2>&5
35458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); }; } &&
35460 { ac_try='test -s conftest$ac_exeext'
35461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462 (eval $ac_try) 2>&5
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); }; }; then
35466 eval "$as_ac_var=yes"
35468 echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35471 eval "$as_ac_var=no"
35473 rm -f conftest.err conftest.$ac_objext \
35474 conftest$ac_exeext conftest.$ac_ext
35476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35478 if test `eval echo '${'$as_ac_var'}'` = yes; then
35479 cat >>confdefs.h <<_ACEOF
35480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35482 ice_have_getopt=yes
35486 if test "${ice_have_getopt}" = yes; then
35487 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
35488 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
35489 if test "${ice_cv_have_getopt_decl+set}" = set; then
35490 echo $ECHO_N "(cached) $ECHO_C" >&6
35493 ice_cv_have_getopt_decl=no
35494 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35495 ice_re_word='(^|[^a-zA-Z0-9_])'
35496 for header in stdlib.h unistd.h libc.h; do
35497 # Check for ordinary declaration
35498 cat >conftest.$ac_ext <<_ACEOF
35501 cat confdefs.h >>conftest.$ac_ext
35502 cat >>conftest.$ac_ext <<_ACEOF
35503 /* end confdefs.h. */
35507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35508 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
35509 ice_cv_have_getopt_decl=yes
35513 if test "$ice_cv_have_getopt_decl" = yes; then
35516 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35517 cat >conftest.$ac_ext <<_ACEOF
35520 cat confdefs.h >>conftest.$ac_ext
35521 cat >>conftest.$ac_ext <<_ACEOF
35522 /* end confdefs.h. */
35526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35527 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35528 ice_cv_have_getopt_decl=yes
35532 if test "$ice_cv_have_getopt_decl" = yes; then
35539 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
35540 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
35541 if test "$ice_cv_have_getopt_decl" = yes; then
35543 cat >>confdefs.h <<_ACEOF
35544 #define HAVE_GETOPT_DECL 1
35551 ice_have_getpeername=no
35553 for ac_func in getpeername
35555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35556 echo "$as_me:$LINENO: checking for $ac_func" >&5
35557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35558 if eval "test \"\${$as_ac_var+set}\" = set"; then
35559 echo $ECHO_N "(cached) $ECHO_C" >&6
35561 cat >conftest.$ac_ext <<_ACEOF
35564 cat confdefs.h >>conftest.$ac_ext
35565 cat >>conftest.$ac_ext <<_ACEOF
35566 /* end confdefs.h. */
35567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35569 #define $ac_func innocuous_$ac_func
35571 /* System header to define __stub macros and hopefully few prototypes,
35572 which can conflict with char $ac_func (); below.
35573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35574 <limits.h> exists even on freestanding compilers. */
35577 # include <limits.h>
35579 # include <assert.h>
35584 /* Override any gcc2 internal prototype to avoid an error. */
35589 /* We use char because int might match the return type of a gcc2
35590 builtin and then its argument prototype would still apply. */
35592 /* The GNU C library defines this for functions which it implements
35593 to always fail with ENOSYS. Some functions are actually named
35594 something starting with __ and the normal name is an alias. */
35595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35598 char (*f) () = $ac_func;
35607 return f != $ac_func;
35612 rm -f conftest.$ac_objext conftest$ac_exeext
35613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35614 (eval $ac_link) 2>conftest.er1
35616 grep -v '^ *+' conftest.er1 >conftest.err
35618 cat conftest.err >&5
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); } &&
35621 { ac_try='test -z "$ac_c_werror_flag"
35622 || test ! -s conftest.err'
35623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35624 (eval $ac_try) 2>&5
35626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627 (exit $ac_status); }; } &&
35628 { ac_try='test -s conftest$ac_exeext'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; }; then
35634 eval "$as_ac_var=yes"
35636 echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35639 eval "$as_ac_var=no"
35641 rm -f conftest.err conftest.$ac_objext \
35642 conftest$ac_exeext conftest.$ac_ext
35644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35646 if test `eval echo '${'$as_ac_var'}'` = yes; then
35647 cat >>confdefs.h <<_ACEOF
35648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35650 ice_have_getpeername=yes
35654 if test "${ice_have_getpeername}" = yes; then
35655 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
35656 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35657 if test "${ice_cv_have_getpeername_decl+set}" = set; then
35658 echo $ECHO_N "(cached) $ECHO_C" >&6
35661 ice_cv_have_getpeername_decl=no
35662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35663 ice_re_word='(^|[^a-zA-Z0-9_])'
35664 for header in sys/types.h sys/socket.h; do
35665 # Check for ordinary declaration
35666 cat >conftest.$ac_ext <<_ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35676 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
35677 ice_cv_have_getpeername_decl=yes
35681 if test "$ice_cv_have_getpeername_decl" = yes; then
35684 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35685 cat >conftest.$ac_ext <<_ACEOF
35688 cat confdefs.h >>conftest.$ac_ext
35689 cat >>conftest.$ac_ext <<_ACEOF
35690 /* end confdefs.h. */
35694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35695 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35696 ice_cv_have_getpeername_decl=yes
35700 if test "$ice_cv_have_getpeername_decl" = yes; then
35707 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
35708 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
35709 if test "$ice_cv_have_getpeername_decl" = yes; then
35711 cat >>confdefs.h <<_ACEOF
35712 #define HAVE_GETPEERNAME_DECL 1
35719 for ac_func in getpgrp
35721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35722 echo "$as_me:$LINENO: checking for $ac_func" >&5
35723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35724 if eval "test \"\${$as_ac_var+set}\" = set"; then
35725 echo $ECHO_N "(cached) $ECHO_C" >&6
35727 cat >conftest.$ac_ext <<_ACEOF
35730 cat confdefs.h >>conftest.$ac_ext
35731 cat >>conftest.$ac_ext <<_ACEOF
35732 /* end confdefs.h. */
35733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35735 #define $ac_func innocuous_$ac_func
35737 /* System header to define __stub macros and hopefully few prototypes,
35738 which can conflict with char $ac_func (); below.
35739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35740 <limits.h> exists even on freestanding compilers. */
35743 # include <limits.h>
35745 # include <assert.h>
35750 /* Override any gcc2 internal prototype to avoid an error. */
35755 /* We use char because int might match the return type of a gcc2
35756 builtin and then its argument prototype would still apply. */
35758 /* The GNU C library defines this for functions which it implements
35759 to always fail with ENOSYS. Some functions are actually named
35760 something starting with __ and the normal name is an alias. */
35761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35764 char (*f) () = $ac_func;
35773 return f != $ac_func;
35778 rm -f conftest.$ac_objext conftest$ac_exeext
35779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35780 (eval $ac_link) 2>conftest.er1
35782 grep -v '^ *+' conftest.er1 >conftest.err
35784 cat conftest.err >&5
35785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); } &&
35787 { ac_try='test -z "$ac_c_werror_flag"
35788 || test ! -s conftest.err'
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; } &&
35794 { ac_try='test -s conftest$ac_exeext'
35795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796 (eval $ac_try) 2>&5
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); }; }; then
35800 eval "$as_ac_var=yes"
35802 echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35805 eval "$as_ac_var=no"
35807 rm -f conftest.err conftest.$ac_objext \
35808 conftest$ac_exeext conftest.$ac_ext
35810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35812 if test `eval echo '${'$as_ac_var'}'` = yes; then
35813 cat >>confdefs.h <<_ACEOF
35814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35820 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
35821 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
35822 if test "${ac_cv_func_getpgrp_void+set}" = set; then
35823 echo $ECHO_N "(cached) $ECHO_C" >&6
35825 # Use it with a single arg.
35826 cat >conftest.$ac_ext <<_ACEOF
35829 cat confdefs.h >>conftest.$ac_ext
35830 cat >>conftest.$ac_ext <<_ACEOF
35831 /* end confdefs.h. */
35832 $ac_includes_default
35841 rm -f conftest.$ac_objext
35842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35843 (eval $ac_compile) 2>conftest.er1
35845 grep -v '^ *+' conftest.er1 >conftest.err
35847 cat conftest.err >&5
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); } &&
35850 { ac_try='test -z "$ac_c_werror_flag"
35851 || test ! -s conftest.err'
35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853 (eval $ac_try) 2>&5
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; } &&
35857 { ac_try='test -s conftest.$ac_objext'
35858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859 (eval $ac_try) 2>&5
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); }; }; then
35863 ac_cv_func_getpgrp_void=no
35865 echo "$as_me: failed program was:" >&5
35866 sed 's/^/| /' conftest.$ac_ext >&5
35868 ac_cv_func_getpgrp_void=yes
35870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35873 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
35874 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
35875 if test $ac_cv_func_getpgrp_void = yes; then
35877 cat >>confdefs.h <<\_ACEOF
35878 #define GETPGRP_VOID 1
35884 ice_have_getsockname=no
35886 for ac_func in getsockname
35888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35889 echo "$as_me:$LINENO: checking for $ac_func" >&5
35890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35891 if eval "test \"\${$as_ac_var+set}\" = set"; then
35892 echo $ECHO_N "(cached) $ECHO_C" >&6
35894 cat >conftest.$ac_ext <<_ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h. */
35900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35902 #define $ac_func innocuous_$ac_func
35904 /* System header to define __stub macros and hopefully few prototypes,
35905 which can conflict with char $ac_func (); below.
35906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35907 <limits.h> exists even on freestanding compilers. */
35910 # include <limits.h>
35912 # include <assert.h>
35917 /* Override any gcc2 internal prototype to avoid an error. */
35922 /* We use char because int might match the return type of a gcc2
35923 builtin and then its argument prototype would still apply. */
35925 /* The GNU C library defines this for functions which it implements
35926 to always fail with ENOSYS. Some functions are actually named
35927 something starting with __ and the normal name is an alias. */
35928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35931 char (*f) () = $ac_func;
35940 return f != $ac_func;
35945 rm -f conftest.$ac_objext conftest$ac_exeext
35946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35947 (eval $ac_link) 2>conftest.er1
35949 grep -v '^ *+' conftest.er1 >conftest.err
35951 cat conftest.err >&5
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); } &&
35954 { ac_try='test -z "$ac_c_werror_flag"
35955 || test ! -s conftest.err'
35956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957 (eval $ac_try) 2>&5
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); }; } &&
35961 { ac_try='test -s conftest$ac_exeext'
35962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35963 (eval $ac_try) 2>&5
35965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35966 (exit $ac_status); }; }; then
35967 eval "$as_ac_var=yes"
35969 echo "$as_me: failed program was:" >&5
35970 sed 's/^/| /' conftest.$ac_ext >&5
35972 eval "$as_ac_var=no"
35974 rm -f conftest.err conftest.$ac_objext \
35975 conftest$ac_exeext conftest.$ac_ext
35977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35979 if test `eval echo '${'$as_ac_var'}'` = yes; then
35980 cat >>confdefs.h <<_ACEOF
35981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35983 ice_have_getsockname=yes
35987 if test "${ice_have_getsockname}" = yes; then
35988 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
35989 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35990 if test "${ice_cv_have_getsockname_decl+set}" = set; then
35991 echo $ECHO_N "(cached) $ECHO_C" >&6
35994 ice_cv_have_getsockname_decl=no
35995 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35996 ice_re_word='(^|[^a-zA-Z0-9_])'
35997 for header in sys/types.h sys/socket.h; do
35998 # Check for ordinary declaration
35999 cat >conftest.$ac_ext <<_ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h. */
36008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36009 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
36010 ice_cv_have_getsockname_decl=yes
36014 if test "$ice_cv_have_getsockname_decl" = yes; then
36017 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36018 cat >conftest.$ac_ext <<_ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h. */
36027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36028 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36029 ice_cv_have_getsockname_decl=yes
36033 if test "$ice_cv_have_getsockname_decl" = yes; then
36040 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
36041 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
36042 if test "$ice_cv_have_getsockname_decl" = yes; then
36044 cat >>confdefs.h <<_ACEOF
36045 #define HAVE_GETSOCKNAME_DECL 1
36052 ice_have_getsockopt=no
36054 for ac_func in getsockopt
36056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36057 echo "$as_me:$LINENO: checking for $ac_func" >&5
36058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36059 if eval "test \"\${$as_ac_var+set}\" = set"; then
36060 echo $ECHO_N "(cached) $ECHO_C" >&6
36062 cat >conftest.$ac_ext <<_ACEOF
36065 cat confdefs.h >>conftest.$ac_ext
36066 cat >>conftest.$ac_ext <<_ACEOF
36067 /* end confdefs.h. */
36068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36070 #define $ac_func innocuous_$ac_func
36072 /* System header to define __stub macros and hopefully few prototypes,
36073 which can conflict with char $ac_func (); below.
36074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36075 <limits.h> exists even on freestanding compilers. */
36078 # include <limits.h>
36080 # include <assert.h>
36085 /* Override any gcc2 internal prototype to avoid an error. */
36090 /* We use char because int might match the return type of a gcc2
36091 builtin and then its argument prototype would still apply. */
36093 /* The GNU C library defines this for functions which it implements
36094 to always fail with ENOSYS. Some functions are actually named
36095 something starting with __ and the normal name is an alias. */
36096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36099 char (*f) () = $ac_func;
36108 return f != $ac_func;
36113 rm -f conftest.$ac_objext conftest$ac_exeext
36114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36115 (eval $ac_link) 2>conftest.er1
36117 grep -v '^ *+' conftest.er1 >conftest.err
36119 cat conftest.err >&5
36120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121 (exit $ac_status); } &&
36122 { ac_try='test -z "$ac_c_werror_flag"
36123 || test ! -s conftest.err'
36124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36125 (eval $ac_try) 2>&5
36127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128 (exit $ac_status); }; } &&
36129 { ac_try='test -s conftest$ac_exeext'
36130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36131 (eval $ac_try) 2>&5
36133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); }; }; then
36135 eval "$as_ac_var=yes"
36137 echo "$as_me: failed program was:" >&5
36138 sed 's/^/| /' conftest.$ac_ext >&5
36140 eval "$as_ac_var=no"
36142 rm -f conftest.err conftest.$ac_objext \
36143 conftest$ac_exeext conftest.$ac_ext
36145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36147 if test `eval echo '${'$as_ac_var'}'` = yes; then
36148 cat >>confdefs.h <<_ACEOF
36149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36151 ice_have_getsockopt=yes
36155 if test "${ice_have_getsockopt}" = yes; then
36156 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
36157 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36158 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
36159 echo $ECHO_N "(cached) $ECHO_C" >&6
36162 ice_cv_have_getsockopt_decl=no
36163 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36164 ice_re_word='(^|[^a-zA-Z0-9_])'
36165 for header in sys/types.h sys/socket.h; do
36166 # Check for ordinary declaration
36167 cat >conftest.$ac_ext <<_ACEOF
36170 cat confdefs.h >>conftest.$ac_ext
36171 cat >>conftest.$ac_ext <<_ACEOF
36172 /* end confdefs.h. */
36176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36177 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
36178 ice_cv_have_getsockopt_decl=yes
36182 if test "$ice_cv_have_getsockopt_decl" = yes; then
36185 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36186 cat >conftest.$ac_ext <<_ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h. */
36195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36196 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36197 ice_cv_have_getsockopt_decl=yes
36201 if test "$ice_cv_have_getsockopt_decl" = yes; then
36208 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
36209 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
36210 if test "$ice_cv_have_getsockopt_decl" = yes; then
36212 cat >>confdefs.h <<_ACEOF
36213 #define HAVE_GETSOCKOPT_DECL 1
36220 ice_have_gettimeofday=no
36222 for ac_func in gettimeofday
36224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36225 echo "$as_me:$LINENO: checking for $ac_func" >&5
36226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36227 if eval "test \"\${$as_ac_var+set}\" = set"; then
36228 echo $ECHO_N "(cached) $ECHO_C" >&6
36230 cat >conftest.$ac_ext <<_ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h. */
36236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36238 #define $ac_func innocuous_$ac_func
36240 /* System header to define __stub macros and hopefully few prototypes,
36241 which can conflict with char $ac_func (); below.
36242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36243 <limits.h> exists even on freestanding compilers. */
36246 # include <limits.h>
36248 # include <assert.h>
36253 /* Override any gcc2 internal prototype to avoid an error. */
36258 /* We use char because int might match the return type of a gcc2
36259 builtin and then its argument prototype would still apply. */
36261 /* The GNU C library defines this for functions which it implements
36262 to always fail with ENOSYS. Some functions are actually named
36263 something starting with __ and the normal name is an alias. */
36264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36267 char (*f) () = $ac_func;
36276 return f != $ac_func;
36281 rm -f conftest.$ac_objext conftest$ac_exeext
36282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36283 (eval $ac_link) 2>conftest.er1
36285 grep -v '^ *+' conftest.er1 >conftest.err
36287 cat conftest.err >&5
36288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289 (exit $ac_status); } &&
36290 { ac_try='test -z "$ac_c_werror_flag"
36291 || test ! -s conftest.err'
36292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293 (eval $ac_try) 2>&5
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); }; } &&
36297 { ac_try='test -s conftest$ac_exeext'
36298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299 (eval $ac_try) 2>&5
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); }; }; then
36303 eval "$as_ac_var=yes"
36305 echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36308 eval "$as_ac_var=no"
36310 rm -f conftest.err conftest.$ac_objext \
36311 conftest$ac_exeext conftest.$ac_ext
36313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36315 if test `eval echo '${'$as_ac_var'}'` = yes; then
36316 cat >>confdefs.h <<_ACEOF
36317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36319 ice_have_gettimeofday=yes
36323 if test "${ice_have_gettimeofday}" = yes; then
36324 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
36325 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
36326 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
36327 echo $ECHO_N "(cached) $ECHO_C" >&6
36330 ice_cv_have_gettimeofday_decl=no
36331 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36332 ice_re_word='(^|[^a-zA-Z0-9_])'
36333 for header in time.h sys/time.h; do
36334 # Check for ordinary declaration
36335 cat >conftest.$ac_ext <<_ACEOF
36338 cat confdefs.h >>conftest.$ac_ext
36339 cat >>conftest.$ac_ext <<_ACEOF
36340 /* end confdefs.h. */
36344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36345 $EGREP "${ice_re_word}gettimeofday[ ]*\(" >/dev/null 2>&1; then
36346 ice_cv_have_gettimeofday_decl=yes
36350 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36353 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36354 cat >conftest.$ac_ext <<_ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h. */
36363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36364 $EGREP "${ice_re_word}gettimeofday[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36365 ice_cv_have_gettimeofday_decl=yes
36369 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36376 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
36377 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
36378 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36380 cat >>confdefs.h <<_ACEOF
36381 #define HAVE_GETTIMEOFDAY_DECL 1
36389 echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
36390 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
36391 if test "${amanda_cv_gettimeofday_args+set}" = set; then
36392 echo $ECHO_N "(cached) $ECHO_C" >&6
36395 cat >conftest.$ac_ext <<_ACEOF
36398 cat confdefs.h >>conftest.$ac_ext
36399 cat >>conftest.$ac_ext <<_ACEOF
36400 /* end confdefs.h. */
36402 #ifdef TIME_WITH_SYS_TIME
36403 # include <sys/time.h>
36406 # ifdef HAVE_SYS_TIME_H
36407 # include <sys/time.h>
36417 struct timeval val;
36418 struct timezone zone;
36419 gettimeofday(&val, &zone);
36425 rm -f conftest.$ac_objext
36426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36427 (eval $ac_compile) 2>conftest.er1
36429 grep -v '^ *+' conftest.er1 >conftest.err
36431 cat conftest.err >&5
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); } &&
36434 { ac_try='test -z "$ac_c_werror_flag"
36435 || test ! -s conftest.err'
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; } &&
36441 { ac_try='test -s conftest.$ac_objext'
36442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443 (eval $ac_try) 2>&5
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); }; }; then
36447 amanda_cv_gettimeofday_args=2
36449 echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36452 amanda_cv_gettimeofday_args=1
36455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36459 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
36460 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
36461 if test "$amanda_cv_gettimeofday_args" = 2; then
36463 cat >>confdefs.h <<\_ACEOF
36464 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
36473 for ac_func in getvfsent initgroups isascii
36475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36476 echo "$as_me:$LINENO: checking for $ac_func" >&5
36477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36478 if eval "test \"\${$as_ac_var+set}\" = set"; then
36479 echo $ECHO_N "(cached) $ECHO_C" >&6
36481 cat >conftest.$ac_ext <<_ACEOF
36484 cat confdefs.h >>conftest.$ac_ext
36485 cat >>conftest.$ac_ext <<_ACEOF
36486 /* end confdefs.h. */
36487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36489 #define $ac_func innocuous_$ac_func
36491 /* System header to define __stub macros and hopefully few prototypes,
36492 which can conflict with char $ac_func (); below.
36493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36494 <limits.h> exists even on freestanding compilers. */
36497 # include <limits.h>
36499 # include <assert.h>
36504 /* Override any gcc2 internal prototype to avoid an error. */
36509 /* We use char because int might match the return type of a gcc2
36510 builtin and then its argument prototype would still apply. */
36512 /* The GNU C library defines this for functions which it implements
36513 to always fail with ENOSYS. Some functions are actually named
36514 something starting with __ and the normal name is an alias. */
36515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36518 char (*f) () = $ac_func;
36527 return f != $ac_func;
36532 rm -f conftest.$ac_objext conftest$ac_exeext
36533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36534 (eval $ac_link) 2>conftest.er1
36536 grep -v '^ *+' conftest.er1 >conftest.err
36538 cat conftest.err >&5
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); } &&
36541 { ac_try='test -z "$ac_c_werror_flag"
36542 || test ! -s conftest.err'
36543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544 (eval $ac_try) 2>&5
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); }; } &&
36548 { ac_try='test -s conftest$ac_exeext'
36549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550 (eval $ac_try) 2>&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; }; then
36554 eval "$as_ac_var=yes"
36556 echo "$as_me: failed program was:" >&5
36557 sed 's/^/| /' conftest.$ac_ext >&5
36559 eval "$as_ac_var=no"
36561 rm -f conftest.err conftest.$ac_objext \
36562 conftest$ac_exeext conftest.$ac_ext
36564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36566 if test `eval echo '${'$as_ac_var'}'` = yes; then
36567 cat >>confdefs.h <<_ACEOF
36568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36575 ice_have_initgroups=no
36577 for ac_func in initgroups
36579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36580 echo "$as_me:$LINENO: checking for $ac_func" >&5
36581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36582 if eval "test \"\${$as_ac_var+set}\" = set"; then
36583 echo $ECHO_N "(cached) $ECHO_C" >&6
36585 cat >conftest.$ac_ext <<_ACEOF
36588 cat confdefs.h >>conftest.$ac_ext
36589 cat >>conftest.$ac_ext <<_ACEOF
36590 /* end confdefs.h. */
36591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36593 #define $ac_func innocuous_$ac_func
36595 /* System header to define __stub macros and hopefully few prototypes,
36596 which can conflict with char $ac_func (); below.
36597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36598 <limits.h> exists even on freestanding compilers. */
36601 # include <limits.h>
36603 # include <assert.h>
36608 /* Override any gcc2 internal prototype to avoid an error. */
36613 /* We use char because int might match the return type of a gcc2
36614 builtin and then its argument prototype would still apply. */
36616 /* The GNU C library defines this for functions which it implements
36617 to always fail with ENOSYS. Some functions are actually named
36618 something starting with __ and the normal name is an alias. */
36619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36622 char (*f) () = $ac_func;
36631 return f != $ac_func;
36636 rm -f conftest.$ac_objext conftest$ac_exeext
36637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36638 (eval $ac_link) 2>conftest.er1
36640 grep -v '^ *+' conftest.er1 >conftest.err
36642 cat conftest.err >&5
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); } &&
36645 { ac_try='test -z "$ac_c_werror_flag"
36646 || test ! -s conftest.err'
36647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648 (eval $ac_try) 2>&5
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); }; } &&
36652 { ac_try='test -s conftest$ac_exeext'
36653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654 (eval $ac_try) 2>&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); }; }; then
36658 eval "$as_ac_var=yes"
36660 echo "$as_me: failed program was:" >&5
36661 sed 's/^/| /' conftest.$ac_ext >&5
36663 eval "$as_ac_var=no"
36665 rm -f conftest.err conftest.$ac_objext \
36666 conftest$ac_exeext conftest.$ac_ext
36668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36670 if test `eval echo '${'$as_ac_var'}'` = yes; then
36671 cat >>confdefs.h <<_ACEOF
36672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36674 ice_have_initgroups=yes
36678 if test "${ice_have_initgroups}" = yes; then
36679 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
36680 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
36681 if test "${ice_cv_have_initgroups_decl+set}" = set; then
36682 echo $ECHO_N "(cached) $ECHO_C" >&6
36685 ice_cv_have_initgroups_decl=no
36686 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36687 ice_re_word='(^|[^a-zA-Z0-9_])'
36688 for header in grp.h sys/types.h unistd.h libc.h; do
36689 # Check for ordinary declaration
36690 cat >conftest.$ac_ext <<_ACEOF
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h. */
36699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36700 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
36701 ice_cv_have_initgroups_decl=yes
36705 if test "$ice_cv_have_initgroups_decl" = yes; then
36708 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36709 cat >conftest.$ac_ext <<_ACEOF
36712 cat confdefs.h >>conftest.$ac_ext
36713 cat >>conftest.$ac_ext <<_ACEOF
36714 /* end confdefs.h. */
36718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36719 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36720 ice_cv_have_initgroups_decl=yes
36724 if test "$ice_cv_have_initgroups_decl" = yes; then
36731 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
36732 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
36733 if test "$ice_cv_have_initgroups_decl" = yes; then
36735 cat >>confdefs.h <<_ACEOF
36736 #define HAVE_INITGROUPS_DECL 1
36745 for ac_func in ioctl
36747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36748 echo "$as_me:$LINENO: checking for $ac_func" >&5
36749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36750 if eval "test \"\${$as_ac_var+set}\" = set"; then
36751 echo $ECHO_N "(cached) $ECHO_C" >&6
36753 cat >conftest.$ac_ext <<_ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h. */
36759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36761 #define $ac_func innocuous_$ac_func
36763 /* System header to define __stub macros and hopefully few prototypes,
36764 which can conflict with char $ac_func (); below.
36765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36766 <limits.h> exists even on freestanding compilers. */
36769 # include <limits.h>
36771 # include <assert.h>
36776 /* Override any gcc2 internal prototype to avoid an error. */
36781 /* We use char because int might match the return type of a gcc2
36782 builtin and then its argument prototype would still apply. */
36784 /* The GNU C library defines this for functions which it implements
36785 to always fail with ENOSYS. Some functions are actually named
36786 something starting with __ and the normal name is an alias. */
36787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36790 char (*f) () = $ac_func;
36799 return f != $ac_func;
36804 rm -f conftest.$ac_objext conftest$ac_exeext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36806 (eval $ac_link) 2>conftest.er1
36808 grep -v '^ *+' conftest.er1 >conftest.err
36810 cat conftest.err >&5
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); } &&
36813 { ac_try='test -z "$ac_c_werror_flag"
36814 || test ! -s conftest.err'
36815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 (eval $ac_try) 2>&5
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); }; } &&
36820 { ac_try='test -s conftest$ac_exeext'
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; }; then
36826 eval "$as_ac_var=yes"
36828 echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36831 eval "$as_ac_var=no"
36833 rm -f conftest.err conftest.$ac_objext \
36834 conftest$ac_exeext conftest.$ac_ext
36836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36838 if test `eval echo '${'$as_ac_var'}'` = yes; then
36839 cat >>confdefs.h <<_ACEOF
36840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36846 if test "${ice_have_ioctl}" = yes; then
36847 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
36848 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
36849 if test "${ice_cv_have_ioctl_decl+set}" = set; then
36850 echo $ECHO_N "(cached) $ECHO_C" >&6
36853 ice_cv_have_ioctl_decl=no
36854 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36855 ice_re_word='(^|[^a-zA-Z0-9_])'
36856 for header in sys/ioctl.h unistd.h libc.h; do
36857 # Check for ordinary declaration
36858 cat >conftest.$ac_ext <<_ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h. */
36867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36868 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
36869 ice_cv_have_ioctl_decl=yes
36873 if test "$ice_cv_have_ioctl_decl" = yes; then
36876 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36877 cat >conftest.$ac_ext <<_ACEOF
36880 cat confdefs.h >>conftest.$ac_ext
36881 cat >>conftest.$ac_ext <<_ACEOF
36882 /* end confdefs.h. */
36886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36887 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36888 ice_cv_have_ioctl_decl=yes
36892 if test "$ice_cv_have_ioctl_decl" = yes; then
36899 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
36900 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
36901 if test "$ice_cv_have_ioctl_decl" = yes; then
36903 cat >>confdefs.h <<_ACEOF
36904 #define HAVE_IOCTL_DECL 1
36913 for ac_func in listen
36915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36916 echo "$as_me:$LINENO: checking for $ac_func" >&5
36917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36918 if eval "test \"\${$as_ac_var+set}\" = set"; then
36919 echo $ECHO_N "(cached) $ECHO_C" >&6
36921 cat >conftest.$ac_ext <<_ACEOF
36924 cat confdefs.h >>conftest.$ac_ext
36925 cat >>conftest.$ac_ext <<_ACEOF
36926 /* end confdefs.h. */
36927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36929 #define $ac_func innocuous_$ac_func
36931 /* System header to define __stub macros and hopefully few prototypes,
36932 which can conflict with char $ac_func (); below.
36933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36934 <limits.h> exists even on freestanding compilers. */
36937 # include <limits.h>
36939 # include <assert.h>
36944 /* Override any gcc2 internal prototype to avoid an error. */
36949 /* We use char because int might match the return type of a gcc2
36950 builtin and then its argument prototype would still apply. */
36952 /* The GNU C library defines this for functions which it implements
36953 to always fail with ENOSYS. Some functions are actually named
36954 something starting with __ and the normal name is an alias. */
36955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36958 char (*f) () = $ac_func;
36967 return f != $ac_func;
36972 rm -f conftest.$ac_objext conftest$ac_exeext
36973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36974 (eval $ac_link) 2>conftest.er1
36976 grep -v '^ *+' conftest.er1 >conftest.err
36978 cat conftest.err >&5
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); } &&
36981 { ac_try='test -z "$ac_c_werror_flag"
36982 || test ! -s conftest.err'
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; } &&
36988 { ac_try='test -s conftest$ac_exeext'
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; }; then
36994 eval "$as_ac_var=yes"
36996 echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36999 eval "$as_ac_var=no"
37001 rm -f conftest.err conftest.$ac_objext \
37002 conftest$ac_exeext conftest.$ac_ext
37004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37006 if test `eval echo '${'$as_ac_var'}'` = yes; then
37007 cat >>confdefs.h <<_ACEOF
37008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37010 ice_have_listen=yes
37014 if test "${ice_have_listen}" = yes; then
37015 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
37016 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37017 if test "${ice_cv_have_listen_decl+set}" = set; then
37018 echo $ECHO_N "(cached) $ECHO_C" >&6
37021 ice_cv_have_listen_decl=no
37022 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37023 ice_re_word='(^|[^a-zA-Z0-9_])'
37024 for header in sys/types.h sys/socket.h; do
37025 # Check for ordinary declaration
37026 cat >conftest.$ac_ext <<_ACEOF
37029 cat confdefs.h >>conftest.$ac_ext
37030 cat >>conftest.$ac_ext <<_ACEOF
37031 /* end confdefs.h. */
37035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37036 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
37037 ice_cv_have_listen_decl=yes
37041 if test "$ice_cv_have_listen_decl" = yes; then
37044 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37045 cat >conftest.$ac_ext <<_ACEOF
37048 cat confdefs.h >>conftest.$ac_ext
37049 cat >>conftest.$ac_ext <<_ACEOF
37050 /* end confdefs.h. */
37054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37055 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37056 ice_cv_have_listen_decl=yes
37060 if test "$ice_cv_have_listen_decl" = yes; then
37067 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
37068 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
37069 if test "$ice_cv_have_listen_decl" = yes; then
37071 cat >>confdefs.h <<_ACEOF
37072 #define HAVE_LISTEN_DECL 1
37081 for ac_func in lstat
37083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37084 echo "$as_me:$LINENO: checking for $ac_func" >&5
37085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37086 if eval "test \"\${$as_ac_var+set}\" = set"; then
37087 echo $ECHO_N "(cached) $ECHO_C" >&6
37089 cat >conftest.$ac_ext <<_ACEOF
37092 cat confdefs.h >>conftest.$ac_ext
37093 cat >>conftest.$ac_ext <<_ACEOF
37094 /* end confdefs.h. */
37095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37097 #define $ac_func innocuous_$ac_func
37099 /* System header to define __stub macros and hopefully few prototypes,
37100 which can conflict with char $ac_func (); below.
37101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37102 <limits.h> exists even on freestanding compilers. */
37105 # include <limits.h>
37107 # include <assert.h>
37112 /* Override any gcc2 internal prototype to avoid an error. */
37117 /* We use char because int might match the return type of a gcc2
37118 builtin and then its argument prototype would still apply. */
37120 /* The GNU C library defines this for functions which it implements
37121 to always fail with ENOSYS. Some functions are actually named
37122 something starting with __ and the normal name is an alias. */
37123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37126 char (*f) () = $ac_func;
37135 return f != $ac_func;
37140 rm -f conftest.$ac_objext conftest$ac_exeext
37141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37142 (eval $ac_link) 2>conftest.er1
37144 grep -v '^ *+' conftest.er1 >conftest.err
37146 cat conftest.err >&5
37147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148 (exit $ac_status); } &&
37149 { ac_try='test -z "$ac_c_werror_flag"
37150 || test ! -s conftest.err'
37151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152 (eval $ac_try) 2>&5
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); }; } &&
37156 { ac_try='test -s conftest$ac_exeext'
37157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158 (eval $ac_try) 2>&5
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); }; }; then
37162 eval "$as_ac_var=yes"
37164 echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37167 eval "$as_ac_var=no"
37169 rm -f conftest.err conftest.$ac_objext \
37170 conftest$ac_exeext conftest.$ac_ext
37172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37174 if test `eval echo '${'$as_ac_var'}'` = yes; then
37175 cat >>confdefs.h <<_ACEOF
37176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37182 if test "${ice_have_lstat}" = yes; then
37183 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
37184 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
37185 if test "${ice_cv_have_lstat_decl+set}" = set; then
37186 echo $ECHO_N "(cached) $ECHO_C" >&6
37189 ice_cv_have_lstat_decl=no
37190 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37191 ice_re_word='(^|[^a-zA-Z0-9_])'
37192 for header in sys/types.h sys/stat.h; do
37193 # Check for ordinary declaration
37194 cat >conftest.$ac_ext <<_ACEOF
37197 cat confdefs.h >>conftest.$ac_ext
37198 cat >>conftest.$ac_ext <<_ACEOF
37199 /* end confdefs.h. */
37203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37204 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
37205 ice_cv_have_lstat_decl=yes
37209 if test "$ice_cv_have_lstat_decl" = yes; then
37212 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37213 cat >conftest.$ac_ext <<_ACEOF
37216 cat confdefs.h >>conftest.$ac_ext
37217 cat >>conftest.$ac_ext <<_ACEOF
37218 /* end confdefs.h. */
37222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37223 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37224 ice_cv_have_lstat_decl=yes
37228 if test "$ice_cv_have_lstat_decl" = yes; then
37235 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
37236 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
37237 if test "$ice_cv_have_lstat_decl" = yes; then
37239 cat >>confdefs.h <<_ACEOF
37240 #define HAVE_LSTAT_DECL 1
37249 for ac_func in malloc
37251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37252 echo "$as_me:$LINENO: checking for $ac_func" >&5
37253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37254 if eval "test \"\${$as_ac_var+set}\" = set"; then
37255 echo $ECHO_N "(cached) $ECHO_C" >&6
37257 cat >conftest.$ac_ext <<_ACEOF
37260 cat confdefs.h >>conftest.$ac_ext
37261 cat >>conftest.$ac_ext <<_ACEOF
37262 /* end confdefs.h. */
37263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37265 #define $ac_func innocuous_$ac_func
37267 /* System header to define __stub macros and hopefully few prototypes,
37268 which can conflict with char $ac_func (); below.
37269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37270 <limits.h> exists even on freestanding compilers. */
37273 # include <limits.h>
37275 # include <assert.h>
37280 /* Override any gcc2 internal prototype to avoid an error. */
37285 /* We use char because int might match the return type of a gcc2
37286 builtin and then its argument prototype would still apply. */
37288 /* The GNU C library defines this for functions which it implements
37289 to always fail with ENOSYS. Some functions are actually named
37290 something starting with __ and the normal name is an alias. */
37291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37294 char (*f) () = $ac_func;
37303 return f != $ac_func;
37308 rm -f conftest.$ac_objext conftest$ac_exeext
37309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37310 (eval $ac_link) 2>conftest.er1
37312 grep -v '^ *+' conftest.er1 >conftest.err
37314 cat conftest.err >&5
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); } &&
37317 { ac_try='test -z "$ac_c_werror_flag"
37318 || test ! -s conftest.err'
37319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37320 (eval $ac_try) 2>&5
37322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); }; } &&
37324 { ac_try='test -s conftest$ac_exeext'
37325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37326 (eval $ac_try) 2>&5
37328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329 (exit $ac_status); }; }; then
37330 eval "$as_ac_var=yes"
37332 echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37335 eval "$as_ac_var=no"
37337 rm -f conftest.err conftest.$ac_objext \
37338 conftest$ac_exeext conftest.$ac_ext
37340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37342 if test `eval echo '${'$as_ac_var'}'` = yes; then
37343 cat >>confdefs.h <<_ACEOF
37344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37346 ice_have_malloc=yes
37350 if test "${ice_have_malloc}" = yes; then
37351 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
37352 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
37353 if test "${ice_cv_have_malloc_decl+set}" = set; then
37354 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 ice_cv_have_malloc_decl=no
37358 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37359 ice_re_word='(^|[^a-zA-Z0-9_])'
37360 for header in stdlib.h; do
37361 # Check for ordinary declaration
37362 cat >conftest.$ac_ext <<_ACEOF
37365 cat confdefs.h >>conftest.$ac_ext
37366 cat >>conftest.$ac_ext <<_ACEOF
37367 /* end confdefs.h. */
37371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37372 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
37373 ice_cv_have_malloc_decl=yes
37377 if test "$ice_cv_have_malloc_decl" = yes; then
37380 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37381 cat >conftest.$ac_ext <<_ACEOF
37384 cat confdefs.h >>conftest.$ac_ext
37385 cat >>conftest.$ac_ext <<_ACEOF
37386 /* end confdefs.h. */
37390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37391 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37392 ice_cv_have_malloc_decl=yes
37396 if test "$ice_cv_have_malloc_decl" = yes; then
37403 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
37404 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
37405 if test "$ice_cv_have_malloc_decl" = yes; then
37407 cat >>confdefs.h <<_ACEOF
37408 #define HAVE_MALLOC_DECL 1
37415 for ac_func in memmove
37417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37418 echo "$as_me:$LINENO: checking for $ac_func" >&5
37419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37420 if eval "test \"\${$as_ac_var+set}\" = set"; then
37421 echo $ECHO_N "(cached) $ECHO_C" >&6
37423 cat >conftest.$ac_ext <<_ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h. */
37429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37431 #define $ac_func innocuous_$ac_func
37433 /* System header to define __stub macros and hopefully few prototypes,
37434 which can conflict with char $ac_func (); below.
37435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37436 <limits.h> exists even on freestanding compilers. */
37439 # include <limits.h>
37441 # include <assert.h>
37446 /* Override any gcc2 internal prototype to avoid an error. */
37451 /* We use char because int might match the return type of a gcc2
37452 builtin and then its argument prototype would still apply. */
37454 /* The GNU C library defines this for functions which it implements
37455 to always fail with ENOSYS. Some functions are actually named
37456 something starting with __ and the normal name is an alias. */
37457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37460 char (*f) () = $ac_func;
37469 return f != $ac_func;
37474 rm -f conftest.$ac_objext conftest$ac_exeext
37475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37476 (eval $ac_link) 2>conftest.er1
37478 grep -v '^ *+' conftest.er1 >conftest.err
37480 cat conftest.err >&5
37481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 (exit $ac_status); } &&
37483 { ac_try='test -z "$ac_c_werror_flag"
37484 || test ! -s conftest.err'
37485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37486 (eval $ac_try) 2>&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); }; } &&
37490 { ac_try='test -s conftest$ac_exeext'
37491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37492 (eval $ac_try) 2>&5
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); }; }; then
37496 eval "$as_ac_var=yes"
37498 echo "$as_me: failed program was:" >&5
37499 sed 's/^/| /' conftest.$ac_ext >&5
37501 eval "$as_ac_var=no"
37503 rm -f conftest.err conftest.$ac_objext \
37504 conftest$ac_exeext conftest.$ac_ext
37506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37508 if test `eval echo '${'$as_ac_var'}'` = yes; then
37509 cat >>confdefs.h <<_ACEOF
37510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37515 "$ac_func.$ac_objext" | \
37516 *" $ac_func.$ac_objext" | \
37517 "$ac_func.$ac_objext "* | \
37518 *" $ac_func.$ac_objext "* ) ;;
37519 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37527 ice_have_memmove=no
37529 for ac_func in memmove
37531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37532 echo "$as_me:$LINENO: checking for $ac_func" >&5
37533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37534 if eval "test \"\${$as_ac_var+set}\" = set"; then
37535 echo $ECHO_N "(cached) $ECHO_C" >&6
37537 cat >conftest.$ac_ext <<_ACEOF
37540 cat confdefs.h >>conftest.$ac_ext
37541 cat >>conftest.$ac_ext <<_ACEOF
37542 /* end confdefs.h. */
37543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37545 #define $ac_func innocuous_$ac_func
37547 /* System header to define __stub macros and hopefully few prototypes,
37548 which can conflict with char $ac_func (); below.
37549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37550 <limits.h> exists even on freestanding compilers. */
37553 # include <limits.h>
37555 # include <assert.h>
37560 /* Override any gcc2 internal prototype to avoid an error. */
37565 /* We use char because int might match the return type of a gcc2
37566 builtin and then its argument prototype would still apply. */
37568 /* The GNU C library defines this for functions which it implements
37569 to always fail with ENOSYS. Some functions are actually named
37570 something starting with __ and the normal name is an alias. */
37571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37574 char (*f) () = $ac_func;
37583 return f != $ac_func;
37588 rm -f conftest.$ac_objext conftest$ac_exeext
37589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37590 (eval $ac_link) 2>conftest.er1
37592 grep -v '^ *+' conftest.er1 >conftest.err
37594 cat conftest.err >&5
37595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37596 (exit $ac_status); } &&
37597 { ac_try='test -z "$ac_c_werror_flag"
37598 || test ! -s conftest.err'
37599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37600 (eval $ac_try) 2>&5
37602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603 (exit $ac_status); }; } &&
37604 { ac_try='test -s conftest$ac_exeext'
37605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606 (eval $ac_try) 2>&5
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); }; }; then
37610 eval "$as_ac_var=yes"
37612 echo "$as_me: failed program was:" >&5
37613 sed 's/^/| /' conftest.$ac_ext >&5
37615 eval "$as_ac_var=no"
37617 rm -f conftest.err conftest.$ac_objext \
37618 conftest$ac_exeext conftest.$ac_ext
37620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37622 if test `eval echo '${'$as_ac_var'}'` = yes; then
37623 cat >>confdefs.h <<_ACEOF
37624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37626 ice_have_memmove=yes
37630 if test "${ice_have_memmove}" = yes; then
37631 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
37632 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
37633 if test "${ice_cv_have_memmove_decl+set}" = set; then
37634 echo $ECHO_N "(cached) $ECHO_C" >&6
37637 ice_cv_have_memmove_decl=no
37638 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37639 ice_re_word='(^|[^a-zA-Z0-9_])'
37640 for header in string.h strings.h; do
37641 # Check for ordinary declaration
37642 cat >conftest.$ac_ext <<_ACEOF
37645 cat confdefs.h >>conftest.$ac_ext
37646 cat >>conftest.$ac_ext <<_ACEOF
37647 /* end confdefs.h. */
37651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37652 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
37653 ice_cv_have_memmove_decl=yes
37657 if test "$ice_cv_have_memmove_decl" = yes; then
37660 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37661 cat >conftest.$ac_ext <<_ACEOF
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h. */
37670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37671 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37672 ice_cv_have_memmove_decl=yes
37676 if test "$ice_cv_have_memmove_decl" = yes; then
37683 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
37684 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
37685 if test "$ice_cv_have_memmove_decl" = yes; then
37687 cat >>confdefs.h <<_ACEOF
37688 #define HAVE_MEMMOVE_DECL 1
37697 for ac_func in memset
37699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37700 echo "$as_me:$LINENO: checking for $ac_func" >&5
37701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37702 if eval "test \"\${$as_ac_var+set}\" = set"; then
37703 echo $ECHO_N "(cached) $ECHO_C" >&6
37705 cat >conftest.$ac_ext <<_ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h. */
37711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37713 #define $ac_func innocuous_$ac_func
37715 /* System header to define __stub macros and hopefully few prototypes,
37716 which can conflict with char $ac_func (); below.
37717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37718 <limits.h> exists even on freestanding compilers. */
37721 # include <limits.h>
37723 # include <assert.h>
37728 /* Override any gcc2 internal prototype to avoid an error. */
37733 /* We use char because int might match the return type of a gcc2
37734 builtin and then its argument prototype would still apply. */
37736 /* The GNU C library defines this for functions which it implements
37737 to always fail with ENOSYS. Some functions are actually named
37738 something starting with __ and the normal name is an alias. */
37739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37742 char (*f) () = $ac_func;
37751 return f != $ac_func;
37756 rm -f conftest.$ac_objext conftest$ac_exeext
37757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37758 (eval $ac_link) 2>conftest.er1
37760 grep -v '^ *+' conftest.er1 >conftest.err
37762 cat conftest.err >&5
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); } &&
37765 { ac_try='test -z "$ac_c_werror_flag"
37766 || test ! -s conftest.err'
37767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37768 (eval $ac_try) 2>&5
37770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37771 (exit $ac_status); }; } &&
37772 { ac_try='test -s conftest$ac_exeext'
37773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37774 (eval $ac_try) 2>&5
37776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 (exit $ac_status); }; }; then
37778 eval "$as_ac_var=yes"
37780 echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37783 eval "$as_ac_var=no"
37785 rm -f conftest.err conftest.$ac_objext \
37786 conftest$ac_exeext conftest.$ac_ext
37788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37790 if test `eval echo '${'$as_ac_var'}'` = yes; then
37791 cat >>confdefs.h <<_ACEOF
37792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37794 ice_have_memset=yes
37798 if test "${ice_have_memset}" = yes; then
37799 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
37800 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
37801 if test "${ice_cv_have_memset_decl+set}" = set; then
37802 echo $ECHO_N "(cached) $ECHO_C" >&6
37805 ice_cv_have_memset_decl=no
37806 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37807 ice_re_word='(^|[^a-zA-Z0-9_])'
37808 for header in string.h strings.h; do
37809 # Check for ordinary declaration
37810 cat >conftest.$ac_ext <<_ACEOF
37813 cat confdefs.h >>conftest.$ac_ext
37814 cat >>conftest.$ac_ext <<_ACEOF
37815 /* end confdefs.h. */
37819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37820 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
37821 ice_cv_have_memset_decl=yes
37825 if test "$ice_cv_have_memset_decl" = yes; then
37828 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37829 cat >conftest.$ac_ext <<_ACEOF
37832 cat confdefs.h >>conftest.$ac_ext
37833 cat >>conftest.$ac_ext <<_ACEOF
37834 /* end confdefs.h. */
37838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37839 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37840 ice_cv_have_memset_decl=yes
37844 if test "$ice_cv_have_memset_decl" = yes; then
37851 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
37852 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
37853 if test "$ice_cv_have_memset_decl" = yes; then
37855 cat >>confdefs.h <<_ACEOF
37856 #define HAVE_MEMSET_DECL 1
37863 for ac_func in mkdir
37865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37866 echo "$as_me:$LINENO: checking for $ac_func" >&5
37867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37868 if eval "test \"\${$as_ac_var+set}\" = set"; then
37869 echo $ECHO_N "(cached) $ECHO_C" >&6
37871 cat >conftest.$ac_ext <<_ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h. */
37877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37879 #define $ac_func innocuous_$ac_func
37881 /* System header to define __stub macros and hopefully few prototypes,
37882 which can conflict with char $ac_func (); below.
37883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37884 <limits.h> exists even on freestanding compilers. */
37887 # include <limits.h>
37889 # include <assert.h>
37894 /* Override any gcc2 internal prototype to avoid an error. */
37899 /* We use char because int might match the return type of a gcc2
37900 builtin and then its argument prototype would still apply. */
37902 /* The GNU C library defines this for functions which it implements
37903 to always fail with ENOSYS. Some functions are actually named
37904 something starting with __ and the normal name is an alias. */
37905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37908 char (*f) () = $ac_func;
37917 return f != $ac_func;
37922 rm -f conftest.$ac_objext conftest$ac_exeext
37923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37924 (eval $ac_link) 2>conftest.er1
37926 grep -v '^ *+' conftest.er1 >conftest.err
37928 cat conftest.err >&5
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); } &&
37931 { ac_try='test -z "$ac_c_werror_flag"
37932 || test ! -s conftest.err'
37933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934 (eval $ac_try) 2>&5
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); }; } &&
37938 { ac_try='test -s conftest$ac_exeext'
37939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940 (eval $ac_try) 2>&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); }; }; then
37944 eval "$as_ac_var=yes"
37946 echo "$as_me: failed program was:" >&5
37947 sed 's/^/| /' conftest.$ac_ext >&5
37949 eval "$as_ac_var=no"
37951 rm -f conftest.err conftest.$ac_objext \
37952 conftest$ac_exeext conftest.$ac_ext
37954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37956 if test `eval echo '${'$as_ac_var'}'` = yes; then
37957 cat >>confdefs.h <<_ACEOF
37958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37967 for ac_func in mktemp
37969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37970 echo "$as_me:$LINENO: checking for $ac_func" >&5
37971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37972 if eval "test \"\${$as_ac_var+set}\" = set"; then
37973 echo $ECHO_N "(cached) $ECHO_C" >&6
37975 cat >conftest.$ac_ext <<_ACEOF
37978 cat confdefs.h >>conftest.$ac_ext
37979 cat >>conftest.$ac_ext <<_ACEOF
37980 /* end confdefs.h. */
37981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37983 #define $ac_func innocuous_$ac_func
37985 /* System header to define __stub macros and hopefully few prototypes,
37986 which can conflict with char $ac_func (); below.
37987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37988 <limits.h> exists even on freestanding compilers. */
37991 # include <limits.h>
37993 # include <assert.h>
37998 /* Override any gcc2 internal prototype to avoid an error. */
38003 /* We use char because int might match the return type of a gcc2
38004 builtin and then its argument prototype would still apply. */
38006 /* The GNU C library defines this for functions which it implements
38007 to always fail with ENOSYS. Some functions are actually named
38008 something starting with __ and the normal name is an alias. */
38009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38012 char (*f) () = $ac_func;
38021 return f != $ac_func;
38026 rm -f conftest.$ac_objext conftest$ac_exeext
38027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38028 (eval $ac_link) 2>conftest.er1
38030 grep -v '^ *+' conftest.er1 >conftest.err
38032 cat conftest.err >&5
38033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034 (exit $ac_status); } &&
38035 { ac_try='test -z "$ac_c_werror_flag"
38036 || test ! -s conftest.err'
38037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038 (eval $ac_try) 2>&5
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); }; } &&
38042 { ac_try='test -s conftest$ac_exeext'
38043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38044 (eval $ac_try) 2>&5
38046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047 (exit $ac_status); }; }; then
38048 eval "$as_ac_var=yes"
38050 echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38053 eval "$as_ac_var=no"
38055 rm -f conftest.err conftest.$ac_objext \
38056 conftest$ac_exeext conftest.$ac_ext
38058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38060 if test `eval echo '${'$as_ac_var'}'` = yes; then
38061 cat >>confdefs.h <<_ACEOF
38062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38064 ice_have_mktemp=yes
38068 if test "${ice_have_mktemp}" = yes; then
38069 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
38070 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
38071 if test "${ice_cv_have_mktemp_decl+set}" = set; then
38072 echo $ECHO_N "(cached) $ECHO_C" >&6
38075 ice_cv_have_mktemp_decl=no
38076 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38077 ice_re_word='(^|[^a-zA-Z0-9_])'
38078 for header in stdlib.h; do
38079 # Check for ordinary declaration
38080 cat >conftest.$ac_ext <<_ACEOF
38083 cat confdefs.h >>conftest.$ac_ext
38084 cat >>conftest.$ac_ext <<_ACEOF
38085 /* end confdefs.h. */
38089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38090 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
38091 ice_cv_have_mktemp_decl=yes
38095 if test "$ice_cv_have_mktemp_decl" = yes; then
38098 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38099 cat >conftest.$ac_ext <<_ACEOF
38102 cat confdefs.h >>conftest.$ac_ext
38103 cat >>conftest.$ac_ext <<_ACEOF
38104 /* end confdefs.h. */
38108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38109 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38110 ice_cv_have_mktemp_decl=yes
38114 if test "$ice_cv_have_mktemp_decl" = yes; then
38121 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
38122 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
38123 if test "$ice_cv_have_mktemp_decl" = yes; then
38125 cat >>confdefs.h <<_ACEOF
38126 #define HAVE_MKTEMP_DECL 1
38133 for ac_func in mktime
38135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38136 echo "$as_me:$LINENO: checking for $ac_func" >&5
38137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38138 if eval "test \"\${$as_ac_var+set}\" = set"; then
38139 echo $ECHO_N "(cached) $ECHO_C" >&6
38141 cat >conftest.$ac_ext <<_ACEOF
38144 cat confdefs.h >>conftest.$ac_ext
38145 cat >>conftest.$ac_ext <<_ACEOF
38146 /* end confdefs.h. */
38147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38149 #define $ac_func innocuous_$ac_func
38151 /* System header to define __stub macros and hopefully few prototypes,
38152 which can conflict with char $ac_func (); below.
38153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38154 <limits.h> exists even on freestanding compilers. */
38157 # include <limits.h>
38159 # include <assert.h>
38164 /* Override any gcc2 internal prototype to avoid an error. */
38169 /* We use char because int might match the return type of a gcc2
38170 builtin and then its argument prototype would still apply. */
38172 /* The GNU C library defines this for functions which it implements
38173 to always fail with ENOSYS. Some functions are actually named
38174 something starting with __ and the normal name is an alias. */
38175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38178 char (*f) () = $ac_func;
38187 return f != $ac_func;
38192 rm -f conftest.$ac_objext conftest$ac_exeext
38193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38194 (eval $ac_link) 2>conftest.er1
38196 grep -v '^ *+' conftest.er1 >conftest.err
38198 cat conftest.err >&5
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); } &&
38201 { ac_try='test -z "$ac_c_werror_flag"
38202 || test ! -s conftest.err'
38203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204 (eval $ac_try) 2>&5
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); }; } &&
38208 { ac_try='test -s conftest$ac_exeext'
38209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210 (eval $ac_try) 2>&5
38212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); }; }; then
38214 eval "$as_ac_var=yes"
38216 echo "$as_me: failed program was:" >&5
38217 sed 's/^/| /' conftest.$ac_ext >&5
38219 eval "$as_ac_var=no"
38221 rm -f conftest.err conftest.$ac_objext \
38222 conftest$ac_exeext conftest.$ac_ext
38224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38226 if test `eval echo '${'$as_ac_var'}'` = yes; then
38227 cat >>confdefs.h <<_ACEOF
38228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38233 "$ac_func.$ac_objext" | \
38234 *" $ac_func.$ac_objext" | \
38235 "$ac_func.$ac_objext "* | \
38236 *" $ac_func.$ac_objext "* ) ;;
38237 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38247 for ac_func in mktime
38249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38250 echo "$as_me:$LINENO: checking for $ac_func" >&5
38251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38252 if eval "test \"\${$as_ac_var+set}\" = set"; then
38253 echo $ECHO_N "(cached) $ECHO_C" >&6
38255 cat >conftest.$ac_ext <<_ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h. */
38261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38263 #define $ac_func innocuous_$ac_func
38265 /* System header to define __stub macros and hopefully few prototypes,
38266 which can conflict with char $ac_func (); below.
38267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38268 <limits.h> exists even on freestanding compilers. */
38271 # include <limits.h>
38273 # include <assert.h>
38278 /* Override any gcc2 internal prototype to avoid an error. */
38283 /* We use char because int might match the return type of a gcc2
38284 builtin and then its argument prototype would still apply. */
38286 /* The GNU C library defines this for functions which it implements
38287 to always fail with ENOSYS. Some functions are actually named
38288 something starting with __ and the normal name is an alias. */
38289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38292 char (*f) () = $ac_func;
38301 return f != $ac_func;
38306 rm -f conftest.$ac_objext conftest$ac_exeext
38307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38308 (eval $ac_link) 2>conftest.er1
38310 grep -v '^ *+' conftest.er1 >conftest.err
38312 cat conftest.err >&5
38313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314 (exit $ac_status); } &&
38315 { ac_try='test -z "$ac_c_werror_flag"
38316 || test ! -s conftest.err'
38317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318 (eval $ac_try) 2>&5
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); }; } &&
38322 { ac_try='test -s conftest$ac_exeext'
38323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324 (eval $ac_try) 2>&5
38326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327 (exit $ac_status); }; }; then
38328 eval "$as_ac_var=yes"
38330 echo "$as_me: failed program was:" >&5
38331 sed 's/^/| /' conftest.$ac_ext >&5
38333 eval "$as_ac_var=no"
38335 rm -f conftest.err conftest.$ac_objext \
38336 conftest$ac_exeext conftest.$ac_ext
38338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38340 if test `eval echo '${'$as_ac_var'}'` = yes; then
38341 cat >>confdefs.h <<_ACEOF
38342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38344 ice_have_mktime=yes
38348 if test "${ice_have_mktime}" = yes; then
38349 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
38350 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
38351 if test "${ice_cv_have_mktime_decl+set}" = set; then
38352 echo $ECHO_N "(cached) $ECHO_C" >&6
38355 ice_cv_have_mktime_decl=no
38356 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38357 ice_re_word='(^|[^a-zA-Z0-9_])'
38358 for header in time.h sys/time.h; do
38359 # Check for ordinary declaration
38360 cat >conftest.$ac_ext <<_ACEOF
38363 cat confdefs.h >>conftest.$ac_ext
38364 cat >>conftest.$ac_ext <<_ACEOF
38365 /* end confdefs.h. */
38369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38370 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
38371 ice_cv_have_mktime_decl=yes
38375 if test "$ice_cv_have_mktime_decl" = yes; then
38378 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38379 cat >conftest.$ac_ext <<_ACEOF
38382 cat confdefs.h >>conftest.$ac_ext
38383 cat >>conftest.$ac_ext <<_ACEOF
38384 /* end confdefs.h. */
38388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38389 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38390 ice_cv_have_mktime_decl=yes
38394 if test "$ice_cv_have_mktime_decl" = yes; then
38401 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
38402 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
38403 if test "$ice_cv_have_mktime_decl" = yes; then
38405 cat >>confdefs.h <<_ACEOF
38406 #define HAVE_MKTIME_DECL 1
38414 for ac_header in stdlib.h unistd.h
38416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38418 echo "$as_me:$LINENO: checking for $ac_header" >&5
38419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38421 echo $ECHO_N "(cached) $ECHO_C" >&6
38423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38426 # Is the header compilable?
38427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38429 cat >conftest.$ac_ext <<_ACEOF
38432 cat confdefs.h >>conftest.$ac_ext
38433 cat >>conftest.$ac_ext <<_ACEOF
38434 /* end confdefs.h. */
38435 $ac_includes_default
38436 #include <$ac_header>
38438 rm -f conftest.$ac_objext
38439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38440 (eval $ac_compile) 2>conftest.er1
38442 grep -v '^ *+' conftest.er1 >conftest.err
38444 cat conftest.err >&5
38445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446 (exit $ac_status); } &&
38447 { ac_try='test -z "$ac_c_werror_flag"
38448 || test ! -s conftest.err'
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; } &&
38454 { ac_try='test -s conftest.$ac_objext'
38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456 (eval $ac_try) 2>&5
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); }; }; then
38460 ac_header_compiler=yes
38462 echo "$as_me: failed program was:" >&5
38463 sed 's/^/| /' conftest.$ac_ext >&5
38465 ac_header_compiler=no
38467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38469 echo "${ECHO_T}$ac_header_compiler" >&6
38471 # Is the header present?
38472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38474 cat >conftest.$ac_ext <<_ACEOF
38477 cat confdefs.h >>conftest.$ac_ext
38478 cat >>conftest.$ac_ext <<_ACEOF
38479 /* end confdefs.h. */
38480 #include <$ac_header>
38482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38485 grep -v '^ *+' conftest.er1 >conftest.err
38487 cat conftest.err >&5
38488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489 (exit $ac_status); } >/dev/null; then
38490 if test -s conftest.err; then
38491 ac_cpp_err=$ac_c_preproc_warn_flag
38492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38499 if test -z "$ac_cpp_err"; then
38500 ac_header_preproc=yes
38502 echo "$as_me: failed program was:" >&5
38503 sed 's/^/| /' conftest.$ac_ext >&5
38505 ac_header_preproc=no
38507 rm -f conftest.err conftest.$ac_ext
38508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38509 echo "${ECHO_T}$ac_header_preproc" >&6
38511 # So? What about this header?
38512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38518 ac_header_preproc=yes
38521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38535 ## ------------------------------------------ ##
38536 ## Report this to the AC_PACKAGE_NAME lists. ##
38537 ## ------------------------------------------ ##
38540 sed "s/^/$as_me: WARNING: /" >&2
38543 echo "$as_me:$LINENO: checking for $ac_header" >&5
38544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38546 echo $ECHO_N "(cached) $ECHO_C" >&6
38548 eval "$as_ac_Header=\$ac_header_preproc"
38550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38555 cat >>confdefs.h <<_ACEOF
38556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38564 for ac_func in getpagesize
38566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38567 echo "$as_me:$LINENO: checking for $ac_func" >&5
38568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38569 if eval "test \"\${$as_ac_var+set}\" = set"; then
38570 echo $ECHO_N "(cached) $ECHO_C" >&6
38572 cat >conftest.$ac_ext <<_ACEOF
38575 cat confdefs.h >>conftest.$ac_ext
38576 cat >>conftest.$ac_ext <<_ACEOF
38577 /* end confdefs.h. */
38578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38580 #define $ac_func innocuous_$ac_func
38582 /* System header to define __stub macros and hopefully few prototypes,
38583 which can conflict with char $ac_func (); below.
38584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38585 <limits.h> exists even on freestanding compilers. */
38588 # include <limits.h>
38590 # include <assert.h>
38595 /* Override any gcc2 internal prototype to avoid an error. */
38600 /* We use char because int might match the return type of a gcc2
38601 builtin and then its argument prototype would still apply. */
38603 /* The GNU C library defines this for functions which it implements
38604 to always fail with ENOSYS. Some functions are actually named
38605 something starting with __ and the normal name is an alias. */
38606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38609 char (*f) () = $ac_func;
38618 return f != $ac_func;
38623 rm -f conftest.$ac_objext conftest$ac_exeext
38624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38625 (eval $ac_link) 2>conftest.er1
38627 grep -v '^ *+' conftest.er1 >conftest.err
38629 cat conftest.err >&5
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); } &&
38632 { ac_try='test -z "$ac_c_werror_flag"
38633 || test ! -s conftest.err'
38634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38635 (eval $ac_try) 2>&5
38637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638 (exit $ac_status); }; } &&
38639 { ac_try='test -s conftest$ac_exeext'
38640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38641 (eval $ac_try) 2>&5
38643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644 (exit $ac_status); }; }; then
38645 eval "$as_ac_var=yes"
38647 echo "$as_me: failed program was:" >&5
38648 sed 's/^/| /' conftest.$ac_ext >&5
38650 eval "$as_ac_var=no"
38652 rm -f conftest.err conftest.$ac_objext \
38653 conftest$ac_exeext conftest.$ac_ext
38655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38657 if test `eval echo '${'$as_ac_var'}'` = yes; then
38658 cat >>confdefs.h <<_ACEOF
38659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38665 echo "$as_me:$LINENO: checking for working mmap" >&5
38666 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
38667 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
38668 echo $ECHO_N "(cached) $ECHO_C" >&6
38670 if test "$cross_compiling" = yes; then
38671 ac_cv_func_mmap_fixed_mapped=no
38673 cat >conftest.$ac_ext <<_ACEOF
38676 cat confdefs.h >>conftest.$ac_ext
38677 cat >>conftest.$ac_ext <<_ACEOF
38678 /* end confdefs.h. */
38679 $ac_includes_default
38680 /* malloc might have been renamed as rpl_malloc. */
38683 /* Thanks to Mike Haertel and Jim Avera for this test.
38684 Here is a matrix of mmap possibilities:
38685 mmap private not fixed
38686 mmap private fixed at somewhere currently unmapped
38687 mmap private fixed at somewhere already mapped
38688 mmap shared not fixed
38689 mmap shared fixed at somewhere currently unmapped
38690 mmap shared fixed at somewhere already mapped
38691 For private mappings, we should verify that changes cannot be read()
38692 back from the file, nor mmap's back from the file at a different
38693 address. (There have been systems where private was not correctly
38694 implemented like the infamous i386 svr4.0, and systems where the
38695 VM page cache was not coherent with the file system buffer cache
38696 like early versions of FreeBSD and possibly contemporary NetBSD.)
38697 For shared mappings, we should conversely verify that changes get
38698 propagated back to all the places they're supposed to be.
38700 Grep wants private fixed already mapped.
38701 The main things grep needs to know about mmap are:
38702 * does it exist and is it safe to write into the mmap'd area
38703 * how to use it (BSD variants) */
38706 #include <sys/mman.h>
38708 #if !STDC_HEADERS && !HAVE_STDLIB_H
38712 /* This mess was copied from the GNU getpagesize.h. */
38713 #if !HAVE_GETPAGESIZE
38714 /* Assume that all systems that can run configure have sys/param.h. */
38715 # if !HAVE_SYS_PARAM_H
38716 # define HAVE_SYS_PARAM_H 1
38719 # ifdef _SC_PAGESIZE
38720 # define getpagesize() sysconf(_SC_PAGESIZE)
38721 # else /* no _SC_PAGESIZE */
38722 # if HAVE_SYS_PARAM_H
38723 # include <sys/param.h>
38724 # ifdef EXEC_PAGESIZE
38725 # define getpagesize() EXEC_PAGESIZE
38726 # else /* no EXEC_PAGESIZE */
38728 # define getpagesize() NBPG * CLSIZE
38731 # endif /* no CLSIZE */
38732 # else /* no NBPG */
38734 # define getpagesize() NBPC
38735 # else /* no NBPC */
38737 # define getpagesize() PAGESIZE
38738 # endif /* PAGESIZE */
38739 # endif /* no NBPC */
38740 # endif /* no NBPG */
38741 # endif /* no EXEC_PAGESIZE */
38742 # else /* no HAVE_SYS_PARAM_H */
38743 # define getpagesize() 8192 /* punt totally */
38744 # endif /* no HAVE_SYS_PARAM_H */
38745 # endif /* no _SC_PAGESIZE */
38747 #endif /* no HAVE_GETPAGESIZE */
38752 char *data, *data2, *data3;
38756 pagesize = getpagesize ();
38758 /* First, make a file with some known garbage in it. */
38759 data = (char *) malloc (pagesize);
38762 for (i = 0; i < pagesize; ++i)
38763 *(data + i) = rand ();
38765 fd = creat ("conftest.mmap", 0600);
38768 if (write (fd, data, pagesize) != pagesize)
38772 /* Next, try to mmap the file at a fixed address which already has
38773 something else allocated at it. If we can, also make sure that
38774 we see the same garbage. */
38775 fd = open ("conftest.mmap", O_RDWR);
38778 data2 = (char *) malloc (2 * pagesize);
38781 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
38782 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
38783 MAP_PRIVATE | MAP_FIXED, fd, 0L))
38785 for (i = 0; i < pagesize; ++i)
38786 if (*(data + i) != *(data2 + i))
38789 /* Finally, make sure that changes to the mapped area do not
38790 percolate back to the file as seen by read(). (This is a bug on
38791 some variants of i386 svr4.0.) */
38792 for (i = 0; i < pagesize; ++i)
38793 *(data2 + i) = *(data2 + i) + 1;
38794 data3 = (char *) malloc (pagesize);
38797 if (read (fd, data3, pagesize) != pagesize)
38799 for (i = 0; i < pagesize; ++i)
38800 if (*(data + i) != *(data3 + i))
38806 rm -f conftest$ac_exeext
38807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38808 (eval $ac_link) 2>&5
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38813 (eval $ac_try) 2>&5
38815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); }; }; then
38817 ac_cv_func_mmap_fixed_mapped=yes
38819 echo "$as_me: program exited with status $ac_status" >&5
38820 echo "$as_me: failed program was:" >&5
38821 sed 's/^/| /' conftest.$ac_ext >&5
38823 ( exit $ac_status )
38824 ac_cv_func_mmap_fixed_mapped=no
38826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
38830 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
38831 if test $ac_cv_func_mmap_fixed_mapped = yes; then
38833 cat >>confdefs.h <<\_ACEOF
38834 #define HAVE_MMAP 1
38838 rm -f conftest.mmap
38841 for ac_func in on_exit
38843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38844 echo "$as_me:$LINENO: checking for $ac_func" >&5
38845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38846 if eval "test \"\${$as_ac_var+set}\" = set"; then
38847 echo $ECHO_N "(cached) $ECHO_C" >&6
38849 cat >conftest.$ac_ext <<_ACEOF
38852 cat confdefs.h >>conftest.$ac_ext
38853 cat >>conftest.$ac_ext <<_ACEOF
38854 /* end confdefs.h. */
38855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38857 #define $ac_func innocuous_$ac_func
38859 /* System header to define __stub macros and hopefully few prototypes,
38860 which can conflict with char $ac_func (); below.
38861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38862 <limits.h> exists even on freestanding compilers. */
38865 # include <limits.h>
38867 # include <assert.h>
38872 /* Override any gcc2 internal prototype to avoid an error. */
38877 /* We use char because int might match the return type of a gcc2
38878 builtin and then its argument prototype would still apply. */
38880 /* The GNU C library defines this for functions which it implements
38881 to always fail with ENOSYS. Some functions are actually named
38882 something starting with __ and the normal name is an alias. */
38883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38886 char (*f) () = $ac_func;
38895 return f != $ac_func;
38900 rm -f conftest.$ac_objext conftest$ac_exeext
38901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38902 (eval $ac_link) 2>conftest.er1
38904 grep -v '^ *+' conftest.er1 >conftest.err
38906 cat conftest.err >&5
38907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908 (exit $ac_status); } &&
38909 { ac_try='test -z "$ac_c_werror_flag"
38910 || test ! -s conftest.err'
38911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912 (eval $ac_try) 2>&5
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); }; } &&
38916 { ac_try='test -s conftest$ac_exeext'
38917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38918 (eval $ac_try) 2>&5
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); }; }; then
38922 eval "$as_ac_var=yes"
38924 echo "$as_me: failed program was:" >&5
38925 sed 's/^/| /' conftest.$ac_ext >&5
38927 eval "$as_ac_var=no"
38929 rm -f conftest.err conftest.$ac_objext \
38930 conftest$ac_exeext conftest.$ac_ext
38932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38934 if test `eval echo '${'$as_ac_var'}'` = yes; then
38935 cat >>confdefs.h <<_ACEOF
38936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38943 ice_have_openlog=no
38945 for ac_func in openlog
38947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38948 echo "$as_me:$LINENO: checking for $ac_func" >&5
38949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38950 if eval "test \"\${$as_ac_var+set}\" = set"; then
38951 echo $ECHO_N "(cached) $ECHO_C" >&6
38953 cat >conftest.$ac_ext <<_ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h. */
38959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38961 #define $ac_func innocuous_$ac_func
38963 /* System header to define __stub macros and hopefully few prototypes,
38964 which can conflict with char $ac_func (); below.
38965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38966 <limits.h> exists even on freestanding compilers. */
38969 # include <limits.h>
38971 # include <assert.h>
38976 /* Override any gcc2 internal prototype to avoid an error. */
38981 /* We use char because int might match the return type of a gcc2
38982 builtin and then its argument prototype would still apply. */
38984 /* The GNU C library defines this for functions which it implements
38985 to always fail with ENOSYS. Some functions are actually named
38986 something starting with __ and the normal name is an alias. */
38987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38990 char (*f) () = $ac_func;
38999 return f != $ac_func;
39004 rm -f conftest.$ac_objext conftest$ac_exeext
39005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39006 (eval $ac_link) 2>conftest.er1
39008 grep -v '^ *+' conftest.er1 >conftest.err
39010 cat conftest.err >&5
39011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39012 (exit $ac_status); } &&
39013 { ac_try='test -z "$ac_c_werror_flag"
39014 || test ! -s conftest.err'
39015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39016 (eval $ac_try) 2>&5
39018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019 (exit $ac_status); }; } &&
39020 { ac_try='test -s conftest$ac_exeext'
39021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022 (eval $ac_try) 2>&5
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); }; }; then
39026 eval "$as_ac_var=yes"
39028 echo "$as_me: failed program was:" >&5
39029 sed 's/^/| /' conftest.$ac_ext >&5
39031 eval "$as_ac_var=no"
39033 rm -f conftest.err conftest.$ac_objext \
39034 conftest$ac_exeext conftest.$ac_ext
39036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39038 if test `eval echo '${'$as_ac_var'}'` = yes; then
39039 cat >>confdefs.h <<_ACEOF
39040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39042 ice_have_openlog=yes
39046 if test "${ice_have_openlog}" = yes; then
39047 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
39048 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
39049 if test "${ice_cv_have_openlog_decl+set}" = set; then
39050 echo $ECHO_N "(cached) $ECHO_C" >&6
39053 ice_cv_have_openlog_decl=no
39054 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39055 ice_re_word='(^|[^a-zA-Z0-9_])'
39056 for header in syslog.h; do
39057 # Check for ordinary declaration
39058 cat >conftest.$ac_ext <<_ACEOF
39061 cat confdefs.h >>conftest.$ac_ext
39062 cat >>conftest.$ac_ext <<_ACEOF
39063 /* end confdefs.h. */
39067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39068 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
39069 ice_cv_have_openlog_decl=yes
39073 if test "$ice_cv_have_openlog_decl" = yes; then
39076 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39077 cat >conftest.$ac_ext <<_ACEOF
39080 cat confdefs.h >>conftest.$ac_ext
39081 cat >>conftest.$ac_ext <<_ACEOF
39082 /* end confdefs.h. */
39086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39087 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39088 ice_cv_have_openlog_decl=yes
39092 if test "$ice_cv_have_openlog_decl" = yes; then
39099 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
39100 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
39101 if test "$ice_cv_have_openlog_decl" = yes; then
39103 cat >>confdefs.h <<_ACEOF
39104 #define HAVE_OPENLOG_DECL 1
39113 for ac_func in pclose
39115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39116 echo "$as_me:$LINENO: checking for $ac_func" >&5
39117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39118 if eval "test \"\${$as_ac_var+set}\" = set"; then
39119 echo $ECHO_N "(cached) $ECHO_C" >&6
39121 cat >conftest.$ac_ext <<_ACEOF
39124 cat confdefs.h >>conftest.$ac_ext
39125 cat >>conftest.$ac_ext <<_ACEOF
39126 /* end confdefs.h. */
39127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39129 #define $ac_func innocuous_$ac_func
39131 /* System header to define __stub macros and hopefully few prototypes,
39132 which can conflict with char $ac_func (); below.
39133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39134 <limits.h> exists even on freestanding compilers. */
39137 # include <limits.h>
39139 # include <assert.h>
39144 /* Override any gcc2 internal prototype to avoid an error. */
39149 /* We use char because int might match the return type of a gcc2
39150 builtin and then its argument prototype would still apply. */
39152 /* The GNU C library defines this for functions which it implements
39153 to always fail with ENOSYS. Some functions are actually named
39154 something starting with __ and the normal name is an alias. */
39155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39158 char (*f) () = $ac_func;
39167 return f != $ac_func;
39172 rm -f conftest.$ac_objext conftest$ac_exeext
39173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39174 (eval $ac_link) 2>conftest.er1
39176 grep -v '^ *+' conftest.er1 >conftest.err
39178 cat conftest.err >&5
39179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180 (exit $ac_status); } &&
39181 { ac_try='test -z "$ac_c_werror_flag"
39182 || test ! -s conftest.err'
39183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184 (eval $ac_try) 2>&5
39186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187 (exit $ac_status); }; } &&
39188 { ac_try='test -s conftest$ac_exeext'
39189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39190 (eval $ac_try) 2>&5
39192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193 (exit $ac_status); }; }; then
39194 eval "$as_ac_var=yes"
39196 echo "$as_me: failed program was:" >&5
39197 sed 's/^/| /' conftest.$ac_ext >&5
39199 eval "$as_ac_var=no"
39201 rm -f conftest.err conftest.$ac_objext \
39202 conftest$ac_exeext conftest.$ac_ext
39204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39206 if test `eval echo '${'$as_ac_var'}'` = yes; then
39207 cat >>confdefs.h <<_ACEOF
39208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39210 ice_have_pclose=yes
39214 if test "${ice_have_pclose}" = yes; then
39215 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
39216 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
39217 if test "${ice_cv_have_pclose_decl+set}" = set; then
39218 echo $ECHO_N "(cached) $ECHO_C" >&6
39221 ice_cv_have_pclose_decl=no
39222 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39223 ice_re_word='(^|[^a-zA-Z0-9_])'
39224 for header in stdio.h; do
39225 # Check for ordinary declaration
39226 cat >conftest.$ac_ext <<_ACEOF
39229 cat confdefs.h >>conftest.$ac_ext
39230 cat >>conftest.$ac_ext <<_ACEOF
39231 /* end confdefs.h. */
39235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39236 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
39237 ice_cv_have_pclose_decl=yes
39241 if test "$ice_cv_have_pclose_decl" = yes; then
39244 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39245 cat >conftest.$ac_ext <<_ACEOF
39248 cat confdefs.h >>conftest.$ac_ext
39249 cat >>conftest.$ac_ext <<_ACEOF
39250 /* end confdefs.h. */
39254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39255 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39256 ice_cv_have_pclose_decl=yes
39260 if test "$ice_cv_have_pclose_decl" = yes; then
39267 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
39268 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
39269 if test "$ice_cv_have_pclose_decl" = yes; then
39271 cat >>confdefs.h <<_ACEOF
39272 #define HAVE_PCLOSE_DECL 1
39281 for ac_func in perror
39283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39284 echo "$as_me:$LINENO: checking for $ac_func" >&5
39285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39286 if eval "test \"\${$as_ac_var+set}\" = set"; then
39287 echo $ECHO_N "(cached) $ECHO_C" >&6
39289 cat >conftest.$ac_ext <<_ACEOF
39292 cat confdefs.h >>conftest.$ac_ext
39293 cat >>conftest.$ac_ext <<_ACEOF
39294 /* end confdefs.h. */
39295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39297 #define $ac_func innocuous_$ac_func
39299 /* System header to define __stub macros and hopefully few prototypes,
39300 which can conflict with char $ac_func (); below.
39301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39302 <limits.h> exists even on freestanding compilers. */
39305 # include <limits.h>
39307 # include <assert.h>
39312 /* Override any gcc2 internal prototype to avoid an error. */
39317 /* We use char because int might match the return type of a gcc2
39318 builtin and then its argument prototype would still apply. */
39320 /* The GNU C library defines this for functions which it implements
39321 to always fail with ENOSYS. Some functions are actually named
39322 something starting with __ and the normal name is an alias. */
39323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39326 char (*f) () = $ac_func;
39335 return f != $ac_func;
39340 rm -f conftest.$ac_objext conftest$ac_exeext
39341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39342 (eval $ac_link) 2>conftest.er1
39344 grep -v '^ *+' conftest.er1 >conftest.err
39346 cat conftest.err >&5
39347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39348 (exit $ac_status); } &&
39349 { ac_try='test -z "$ac_c_werror_flag"
39350 || test ! -s conftest.err'
39351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39352 (eval $ac_try) 2>&5
39354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355 (exit $ac_status); }; } &&
39356 { ac_try='test -s conftest$ac_exeext'
39357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39358 (eval $ac_try) 2>&5
39360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361 (exit $ac_status); }; }; then
39362 eval "$as_ac_var=yes"
39364 echo "$as_me: failed program was:" >&5
39365 sed 's/^/| /' conftest.$ac_ext >&5
39367 eval "$as_ac_var=no"
39369 rm -f conftest.err conftest.$ac_objext \
39370 conftest$ac_exeext conftest.$ac_ext
39372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39374 if test `eval echo '${'$as_ac_var'}'` = yes; then
39375 cat >>confdefs.h <<_ACEOF
39376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39378 ice_have_perror=yes
39382 if test "${ice_have_perror}" = yes; then
39383 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
39384 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
39385 if test "${ice_cv_have_perror_decl+set}" = set; then
39386 echo $ECHO_N "(cached) $ECHO_C" >&6
39389 ice_cv_have_perror_decl=no
39390 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39391 ice_re_word='(^|[^a-zA-Z0-9_])'
39392 for header in stdio.h; do
39393 # Check for ordinary declaration
39394 cat >conftest.$ac_ext <<_ACEOF
39397 cat confdefs.h >>conftest.$ac_ext
39398 cat >>conftest.$ac_ext <<_ACEOF
39399 /* end confdefs.h. */
39403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39404 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
39405 ice_cv_have_perror_decl=yes
39409 if test "$ice_cv_have_perror_decl" = yes; then
39412 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39413 cat >conftest.$ac_ext <<_ACEOF
39416 cat confdefs.h >>conftest.$ac_ext
39417 cat >>conftest.$ac_ext <<_ACEOF
39418 /* end confdefs.h. */
39422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39423 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39424 ice_cv_have_perror_decl=yes
39428 if test "$ice_cv_have_perror_decl" = yes; then
39435 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
39436 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
39437 if test "$ice_cv_have_perror_decl" = yes; then
39439 cat >>confdefs.h <<_ACEOF
39440 #define HAVE_PERROR_DECL 1
39449 for ac_func in printf
39451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39452 echo "$as_me:$LINENO: checking for $ac_func" >&5
39453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39454 if eval "test \"\${$as_ac_var+set}\" = set"; then
39455 echo $ECHO_N "(cached) $ECHO_C" >&6
39457 cat >conftest.$ac_ext <<_ACEOF
39460 cat confdefs.h >>conftest.$ac_ext
39461 cat >>conftest.$ac_ext <<_ACEOF
39462 /* end confdefs.h. */
39463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39465 #define $ac_func innocuous_$ac_func
39467 /* System header to define __stub macros and hopefully few prototypes,
39468 which can conflict with char $ac_func (); below.
39469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39470 <limits.h> exists even on freestanding compilers. */
39473 # include <limits.h>
39475 # include <assert.h>
39480 /* Override any gcc2 internal prototype to avoid an error. */
39485 /* We use char because int might match the return type of a gcc2
39486 builtin and then its argument prototype would still apply. */
39488 /* The GNU C library defines this for functions which it implements
39489 to always fail with ENOSYS. Some functions are actually named
39490 something starting with __ and the normal name is an alias. */
39491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39494 char (*f) () = $ac_func;
39503 return f != $ac_func;
39508 rm -f conftest.$ac_objext conftest$ac_exeext
39509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39510 (eval $ac_link) 2>conftest.er1
39512 grep -v '^ *+' conftest.er1 >conftest.err
39514 cat conftest.err >&5
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); } &&
39517 { ac_try='test -z "$ac_c_werror_flag"
39518 || test ! -s conftest.err'
39519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39520 (eval $ac_try) 2>&5
39522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523 (exit $ac_status); }; } &&
39524 { ac_try='test -s conftest$ac_exeext'
39525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526 (eval $ac_try) 2>&5
39528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529 (exit $ac_status); }; }; then
39530 eval "$as_ac_var=yes"
39532 echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39535 eval "$as_ac_var=no"
39537 rm -f conftest.err conftest.$ac_objext \
39538 conftest$ac_exeext conftest.$ac_ext
39540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39542 if test `eval echo '${'$as_ac_var'}'` = yes; then
39543 cat >>confdefs.h <<_ACEOF
39544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39546 ice_have_printf=yes
39550 if test "${ice_have_printf}" = yes; then
39551 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
39552 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
39553 if test "${ice_cv_have_printf_decl+set}" = set; then
39554 echo $ECHO_N "(cached) $ECHO_C" >&6
39557 ice_cv_have_printf_decl=no
39558 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39559 ice_re_word='(^|[^a-zA-Z0-9_])'
39560 for header in stdio.h; do
39561 # Check for ordinary declaration
39562 cat >conftest.$ac_ext <<_ACEOF
39565 cat confdefs.h >>conftest.$ac_ext
39566 cat >>conftest.$ac_ext <<_ACEOF
39567 /* end confdefs.h. */
39571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39572 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
39573 ice_cv_have_printf_decl=yes
39577 if test "$ice_cv_have_printf_decl" = yes; then
39580 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39581 cat >conftest.$ac_ext <<_ACEOF
39584 cat confdefs.h >>conftest.$ac_ext
39585 cat >>conftest.$ac_ext <<_ACEOF
39586 /* end confdefs.h. */
39590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39591 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39592 ice_cv_have_printf_decl=yes
39596 if test "$ice_cv_have_printf_decl" = yes; then
39603 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
39604 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
39605 if test "$ice_cv_have_printf_decl" = yes; then
39607 cat >>confdefs.h <<_ACEOF
39608 #define HAVE_PRINTF_DECL 1
39615 for ac_func in putenv
39617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39618 echo "$as_me:$LINENO: checking for $ac_func" >&5
39619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39620 if eval "test \"\${$as_ac_var+set}\" = set"; then
39621 echo $ECHO_N "(cached) $ECHO_C" >&6
39623 cat >conftest.$ac_ext <<_ACEOF
39626 cat confdefs.h >>conftest.$ac_ext
39627 cat >>conftest.$ac_ext <<_ACEOF
39628 /* end confdefs.h. */
39629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39631 #define $ac_func innocuous_$ac_func
39633 /* System header to define __stub macros and hopefully few prototypes,
39634 which can conflict with char $ac_func (); below.
39635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39636 <limits.h> exists even on freestanding compilers. */
39639 # include <limits.h>
39641 # include <assert.h>
39646 /* Override any gcc2 internal prototype to avoid an error. */
39651 /* We use char because int might match the return type of a gcc2
39652 builtin and then its argument prototype would still apply. */
39654 /* The GNU C library defines this for functions which it implements
39655 to always fail with ENOSYS. Some functions are actually named
39656 something starting with __ and the normal name is an alias. */
39657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39660 char (*f) () = $ac_func;
39669 return f != $ac_func;
39674 rm -f conftest.$ac_objext conftest$ac_exeext
39675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39676 (eval $ac_link) 2>conftest.er1
39678 grep -v '^ *+' conftest.er1 >conftest.err
39680 cat conftest.err >&5
39681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682 (exit $ac_status); } &&
39683 { ac_try='test -z "$ac_c_werror_flag"
39684 || test ! -s conftest.err'
39685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39686 (eval $ac_try) 2>&5
39688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689 (exit $ac_status); }; } &&
39690 { ac_try='test -s conftest$ac_exeext'
39691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39692 (eval $ac_try) 2>&5
39694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695 (exit $ac_status); }; }; then
39696 eval "$as_ac_var=yes"
39698 echo "$as_me: failed program was:" >&5
39699 sed 's/^/| /' conftest.$ac_ext >&5
39701 eval "$as_ac_var=no"
39703 rm -f conftest.err conftest.$ac_objext \
39704 conftest$ac_exeext conftest.$ac_ext
39706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39708 if test `eval echo '${'$as_ac_var'}'` = yes; then
39709 cat >>confdefs.h <<_ACEOF
39710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39719 for ac_func in puts
39721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39722 echo "$as_me:$LINENO: checking for $ac_func" >&5
39723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39724 if eval "test \"\${$as_ac_var+set}\" = set"; then
39725 echo $ECHO_N "(cached) $ECHO_C" >&6
39727 cat >conftest.$ac_ext <<_ACEOF
39730 cat confdefs.h >>conftest.$ac_ext
39731 cat >>conftest.$ac_ext <<_ACEOF
39732 /* end confdefs.h. */
39733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39735 #define $ac_func innocuous_$ac_func
39737 /* System header to define __stub macros and hopefully few prototypes,
39738 which can conflict with char $ac_func (); below.
39739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39740 <limits.h> exists even on freestanding compilers. */
39743 # include <limits.h>
39745 # include <assert.h>
39750 /* Override any gcc2 internal prototype to avoid an error. */
39755 /* We use char because int might match the return type of a gcc2
39756 builtin and then its argument prototype would still apply. */
39758 /* The GNU C library defines this for functions which it implements
39759 to always fail with ENOSYS. Some functions are actually named
39760 something starting with __ and the normal name is an alias. */
39761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39764 char (*f) () = $ac_func;
39773 return f != $ac_func;
39778 rm -f conftest.$ac_objext conftest$ac_exeext
39779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39780 (eval $ac_link) 2>conftest.er1
39782 grep -v '^ *+' conftest.er1 >conftest.err
39784 cat conftest.err >&5
39785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786 (exit $ac_status); } &&
39787 { ac_try='test -z "$ac_c_werror_flag"
39788 || test ! -s conftest.err'
39789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39790 (eval $ac_try) 2>&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); }; } &&
39794 { ac_try='test -s conftest$ac_exeext'
39795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39796 (eval $ac_try) 2>&5
39798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39799 (exit $ac_status); }; }; then
39800 eval "$as_ac_var=yes"
39802 echo "$as_me: failed program was:" >&5
39803 sed 's/^/| /' conftest.$ac_ext >&5
39805 eval "$as_ac_var=no"
39807 rm -f conftest.err conftest.$ac_objext \
39808 conftest$ac_exeext conftest.$ac_ext
39810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39812 if test `eval echo '${'$as_ac_var'}'` = yes; then
39813 cat >>confdefs.h <<_ACEOF
39814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39820 if test "${ice_have_puts}" = yes; then
39821 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
39822 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
39823 if test "${ice_cv_have_puts_decl+set}" = set; then
39824 echo $ECHO_N "(cached) $ECHO_C" >&6
39827 ice_cv_have_puts_decl=no
39828 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39829 ice_re_word='(^|[^a-zA-Z0-9_])'
39830 for header in stdio.h; do
39831 # Check for ordinary declaration
39832 cat >conftest.$ac_ext <<_ACEOF
39835 cat confdefs.h >>conftest.$ac_ext
39836 cat >>conftest.$ac_ext <<_ACEOF
39837 /* end confdefs.h. */
39841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39842 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
39843 ice_cv_have_puts_decl=yes
39847 if test "$ice_cv_have_puts_decl" = yes; then
39850 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39851 cat >conftest.$ac_ext <<_ACEOF
39854 cat confdefs.h >>conftest.$ac_ext
39855 cat >>conftest.$ac_ext <<_ACEOF
39856 /* end confdefs.h. */
39860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39861 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39862 ice_cv_have_puts_decl=yes
39866 if test "$ice_cv_have_puts_decl" = yes; then
39873 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
39874 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
39875 if test "$ice_cv_have_puts_decl" = yes; then
39877 cat >>confdefs.h <<_ACEOF
39878 #define HAVE_PUTS_DECL 1
39885 ice_have_realloc=no
39887 for ac_func in realloc
39889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39890 echo "$as_me:$LINENO: checking for $ac_func" >&5
39891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39892 if eval "test \"\${$as_ac_var+set}\" = set"; then
39893 echo $ECHO_N "(cached) $ECHO_C" >&6
39895 cat >conftest.$ac_ext <<_ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h. */
39901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39903 #define $ac_func innocuous_$ac_func
39905 /* System header to define __stub macros and hopefully few prototypes,
39906 which can conflict with char $ac_func (); below.
39907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39908 <limits.h> exists even on freestanding compilers. */
39911 # include <limits.h>
39913 # include <assert.h>
39918 /* Override any gcc2 internal prototype to avoid an error. */
39923 /* We use char because int might match the return type of a gcc2
39924 builtin and then its argument prototype would still apply. */
39926 /* The GNU C library defines this for functions which it implements
39927 to always fail with ENOSYS. Some functions are actually named
39928 something starting with __ and the normal name is an alias. */
39929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39932 char (*f) () = $ac_func;
39941 return f != $ac_func;
39946 rm -f conftest.$ac_objext conftest$ac_exeext
39947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39948 (eval $ac_link) 2>conftest.er1
39950 grep -v '^ *+' conftest.er1 >conftest.err
39952 cat conftest.err >&5
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); } &&
39955 { ac_try='test -z "$ac_c_werror_flag"
39956 || test ! -s conftest.err'
39957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958 (eval $ac_try) 2>&5
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); }; } &&
39962 { ac_try='test -s conftest$ac_exeext'
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; }; then
39968 eval "$as_ac_var=yes"
39970 echo "$as_me: failed program was:" >&5
39971 sed 's/^/| /' conftest.$ac_ext >&5
39973 eval "$as_ac_var=no"
39975 rm -f conftest.err conftest.$ac_objext \
39976 conftest$ac_exeext conftest.$ac_ext
39978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39980 if test `eval echo '${'$as_ac_var'}'` = yes; then
39981 cat >>confdefs.h <<_ACEOF
39982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39984 ice_have_realloc=yes
39988 if test "${ice_have_realloc}" = yes; then
39989 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
39990 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
39991 if test "${ice_cv_have_realloc_decl+set}" = set; then
39992 echo $ECHO_N "(cached) $ECHO_C" >&6
39995 ice_cv_have_realloc_decl=no
39996 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39997 ice_re_word='(^|[^a-zA-Z0-9_])'
39998 for header in stdlib.h; do
39999 # Check for ordinary declaration
40000 cat >conftest.$ac_ext <<_ACEOF
40003 cat confdefs.h >>conftest.$ac_ext
40004 cat >>conftest.$ac_ext <<_ACEOF
40005 /* end confdefs.h. */
40009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40010 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
40011 ice_cv_have_realloc_decl=yes
40015 if test "$ice_cv_have_realloc_decl" = yes; then
40018 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40019 cat >conftest.$ac_ext <<_ACEOF
40022 cat confdefs.h >>conftest.$ac_ext
40023 cat >>conftest.$ac_ext <<_ACEOF
40024 /* end confdefs.h. */
40028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40029 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40030 ice_cv_have_realloc_decl=yes
40034 if test "$ice_cv_have_realloc_decl" = yes; then
40041 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
40042 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
40043 if test "$ice_cv_have_realloc_decl" = yes; then
40045 cat >>confdefs.h <<_ACEOF
40046 #define HAVE_REALLOC_DECL 1
40053 ice_have_recvfrom=no
40055 for ac_func in recvfrom
40057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40058 echo "$as_me:$LINENO: checking for $ac_func" >&5
40059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40060 if eval "test \"\${$as_ac_var+set}\" = set"; then
40061 echo $ECHO_N "(cached) $ECHO_C" >&6
40063 cat >conftest.$ac_ext <<_ACEOF
40066 cat confdefs.h >>conftest.$ac_ext
40067 cat >>conftest.$ac_ext <<_ACEOF
40068 /* end confdefs.h. */
40069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40071 #define $ac_func innocuous_$ac_func
40073 /* System header to define __stub macros and hopefully few prototypes,
40074 which can conflict with char $ac_func (); below.
40075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40076 <limits.h> exists even on freestanding compilers. */
40079 # include <limits.h>
40081 # include <assert.h>
40086 /* Override any gcc2 internal prototype to avoid an error. */
40091 /* We use char because int might match the return type of a gcc2
40092 builtin and then its argument prototype would still apply. */
40094 /* The GNU C library defines this for functions which it implements
40095 to always fail with ENOSYS. Some functions are actually named
40096 something starting with __ and the normal name is an alias. */
40097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40100 char (*f) () = $ac_func;
40109 return f != $ac_func;
40114 rm -f conftest.$ac_objext conftest$ac_exeext
40115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40116 (eval $ac_link) 2>conftest.er1
40118 grep -v '^ *+' conftest.er1 >conftest.err
40120 cat conftest.err >&5
40121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122 (exit $ac_status); } &&
40123 { ac_try='test -z "$ac_c_werror_flag"
40124 || test ! -s conftest.err'
40125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40126 (eval $ac_try) 2>&5
40128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129 (exit $ac_status); }; } &&
40130 { ac_try='test -s conftest$ac_exeext'
40131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132 (eval $ac_try) 2>&5
40134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135 (exit $ac_status); }; }; then
40136 eval "$as_ac_var=yes"
40138 echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40141 eval "$as_ac_var=no"
40143 rm -f conftest.err conftest.$ac_objext \
40144 conftest$ac_exeext conftest.$ac_ext
40146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40148 if test `eval echo '${'$as_ac_var'}'` = yes; then
40149 cat >>confdefs.h <<_ACEOF
40150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40152 ice_have_recvfrom=yes
40156 if test "${ice_have_recvfrom}" = yes; then
40157 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
40158 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40159 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
40160 echo $ECHO_N "(cached) $ECHO_C" >&6
40163 ice_cv_have_recvfrom_decl=no
40164 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40165 ice_re_word='(^|[^a-zA-Z0-9_])'
40166 for header in sys/types.h sys/socket.h; do
40167 # Check for ordinary declaration
40168 cat >conftest.$ac_ext <<_ACEOF
40171 cat confdefs.h >>conftest.$ac_ext
40172 cat >>conftest.$ac_ext <<_ACEOF
40173 /* end confdefs.h. */
40177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40178 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
40179 ice_cv_have_recvfrom_decl=yes
40183 if test "$ice_cv_have_recvfrom_decl" = yes; then
40186 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40187 cat >conftest.$ac_ext <<_ACEOF
40190 cat confdefs.h >>conftest.$ac_ext
40191 cat >>conftest.$ac_ext <<_ACEOF
40192 /* end confdefs.h. */
40196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40197 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40198 ice_cv_have_recvfrom_decl=yes
40202 if test "$ice_cv_have_recvfrom_decl" = yes; then
40209 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
40210 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
40211 if test "$ice_cv_have_recvfrom_decl" = yes; then
40213 cat >>confdefs.h <<_ACEOF
40214 #define HAVE_RECVFROM_DECL 1
40223 for ac_func in remove
40225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40226 echo "$as_me:$LINENO: checking for $ac_func" >&5
40227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40228 if eval "test \"\${$as_ac_var+set}\" = set"; then
40229 echo $ECHO_N "(cached) $ECHO_C" >&6
40231 cat >conftest.$ac_ext <<_ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h. */
40237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40239 #define $ac_func innocuous_$ac_func
40241 /* System header to define __stub macros and hopefully few prototypes,
40242 which can conflict with char $ac_func (); below.
40243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40244 <limits.h> exists even on freestanding compilers. */
40247 # include <limits.h>
40249 # include <assert.h>
40254 /* Override any gcc2 internal prototype to avoid an error. */
40259 /* We use char because int might match the return type of a gcc2
40260 builtin and then its argument prototype would still apply. */
40262 /* The GNU C library defines this for functions which it implements
40263 to always fail with ENOSYS. Some functions are actually named
40264 something starting with __ and the normal name is an alias. */
40265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40268 char (*f) () = $ac_func;
40277 return f != $ac_func;
40282 rm -f conftest.$ac_objext conftest$ac_exeext
40283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40284 (eval $ac_link) 2>conftest.er1
40286 grep -v '^ *+' conftest.er1 >conftest.err
40288 cat conftest.err >&5
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); } &&
40291 { ac_try='test -z "$ac_c_werror_flag"
40292 || test ! -s conftest.err'
40293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40294 (eval $ac_try) 2>&5
40296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297 (exit $ac_status); }; } &&
40298 { ac_try='test -s conftest$ac_exeext'
40299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40300 (eval $ac_try) 2>&5
40302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40303 (exit $ac_status); }; }; then
40304 eval "$as_ac_var=yes"
40306 echo "$as_me: failed program was:" >&5
40307 sed 's/^/| /' conftest.$ac_ext >&5
40309 eval "$as_ac_var=no"
40311 rm -f conftest.err conftest.$ac_objext \
40312 conftest$ac_exeext conftest.$ac_ext
40314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40316 if test `eval echo '${'$as_ac_var'}'` = yes; then
40317 cat >>confdefs.h <<_ACEOF
40318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40320 ice_have_remove=yes
40324 if test "${ice_have_remove}" = yes; then
40325 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
40326 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
40327 if test "${ice_cv_have_remove_decl+set}" = set; then
40328 echo $ECHO_N "(cached) $ECHO_C" >&6
40331 ice_cv_have_remove_decl=no
40332 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40333 ice_re_word='(^|[^a-zA-Z0-9_])'
40334 for header in stdio.h; do
40335 # Check for ordinary declaration
40336 cat >conftest.$ac_ext <<_ACEOF
40339 cat confdefs.h >>conftest.$ac_ext
40340 cat >>conftest.$ac_ext <<_ACEOF
40341 /* end confdefs.h. */
40345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40346 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
40347 ice_cv_have_remove_decl=yes
40351 if test "$ice_cv_have_remove_decl" = yes; then
40354 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40355 cat >conftest.$ac_ext <<_ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h. */
40364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40365 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40366 ice_cv_have_remove_decl=yes
40370 if test "$ice_cv_have_remove_decl" = yes; then
40377 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
40378 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
40379 if test "$ice_cv_have_remove_decl" = yes; then
40381 cat >>confdefs.h <<_ACEOF
40382 #define HAVE_REMOVE_DECL 1
40391 for ac_func in rename
40393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40394 echo "$as_me:$LINENO: checking for $ac_func" >&5
40395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40396 if eval "test \"\${$as_ac_var+set}\" = set"; then
40397 echo $ECHO_N "(cached) $ECHO_C" >&6
40399 cat >conftest.$ac_ext <<_ACEOF
40402 cat confdefs.h >>conftest.$ac_ext
40403 cat >>conftest.$ac_ext <<_ACEOF
40404 /* end confdefs.h. */
40405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40407 #define $ac_func innocuous_$ac_func
40409 /* System header to define __stub macros and hopefully few prototypes,
40410 which can conflict with char $ac_func (); below.
40411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40412 <limits.h> exists even on freestanding compilers. */
40415 # include <limits.h>
40417 # include <assert.h>
40422 /* Override any gcc2 internal prototype to avoid an error. */
40427 /* We use char because int might match the return type of a gcc2
40428 builtin and then its argument prototype would still apply. */
40430 /* The GNU C library defines this for functions which it implements
40431 to always fail with ENOSYS. Some functions are actually named
40432 something starting with __ and the normal name is an alias. */
40433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40436 char (*f) () = $ac_func;
40445 return f != $ac_func;
40450 rm -f conftest.$ac_objext conftest$ac_exeext
40451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40452 (eval $ac_link) 2>conftest.er1
40454 grep -v '^ *+' conftest.er1 >conftest.err
40456 cat conftest.err >&5
40457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458 (exit $ac_status); } &&
40459 { ac_try='test -z "$ac_c_werror_flag"
40460 || test ! -s conftest.err'
40461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40462 (eval $ac_try) 2>&5
40464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40465 (exit $ac_status); }; } &&
40466 { ac_try='test -s conftest$ac_exeext'
40467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40468 (eval $ac_try) 2>&5
40470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471 (exit $ac_status); }; }; then
40472 eval "$as_ac_var=yes"
40474 echo "$as_me: failed program was:" >&5
40475 sed 's/^/| /' conftest.$ac_ext >&5
40477 eval "$as_ac_var=no"
40479 rm -f conftest.err conftest.$ac_objext \
40480 conftest$ac_exeext conftest.$ac_ext
40482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40484 if test `eval echo '${'$as_ac_var'}'` = yes; then
40485 cat >>confdefs.h <<_ACEOF
40486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40488 ice_have_rename=yes
40492 if test "${ice_have_rename}" = yes; then
40493 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
40494 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
40495 if test "${ice_cv_have_rename_decl+set}" = set; then
40496 echo $ECHO_N "(cached) $ECHO_C" >&6
40499 ice_cv_have_rename_decl=no
40500 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40501 ice_re_word='(^|[^a-zA-Z0-9_])'
40502 for header in stdio.h; do
40503 # Check for ordinary declaration
40504 cat >conftest.$ac_ext <<_ACEOF
40507 cat confdefs.h >>conftest.$ac_ext
40508 cat >>conftest.$ac_ext <<_ACEOF
40509 /* end confdefs.h. */
40513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40514 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
40515 ice_cv_have_rename_decl=yes
40519 if test "$ice_cv_have_rename_decl" = yes; then
40522 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40523 cat >conftest.$ac_ext <<_ACEOF
40526 cat confdefs.h >>conftest.$ac_ext
40527 cat >>conftest.$ac_ext <<_ACEOF
40528 /* end confdefs.h. */
40532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40533 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40534 ice_cv_have_rename_decl=yes
40538 if test "$ice_cv_have_rename_decl" = yes; then
40545 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
40546 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
40547 if test "$ice_cv_have_rename_decl" = yes; then
40549 cat >>confdefs.h <<_ACEOF
40550 #define HAVE_RENAME_DECL 1
40559 for ac_func in rewind
40561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40562 echo "$as_me:$LINENO: checking for $ac_func" >&5
40563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40564 if eval "test \"\${$as_ac_var+set}\" = set"; then
40565 echo $ECHO_N "(cached) $ECHO_C" >&6
40567 cat >conftest.$ac_ext <<_ACEOF
40570 cat confdefs.h >>conftest.$ac_ext
40571 cat >>conftest.$ac_ext <<_ACEOF
40572 /* end confdefs.h. */
40573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40575 #define $ac_func innocuous_$ac_func
40577 /* System header to define __stub macros and hopefully few prototypes,
40578 which can conflict with char $ac_func (); below.
40579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40580 <limits.h> exists even on freestanding compilers. */
40583 # include <limits.h>
40585 # include <assert.h>
40590 /* Override any gcc2 internal prototype to avoid an error. */
40595 /* We use char because int might match the return type of a gcc2
40596 builtin and then its argument prototype would still apply. */
40598 /* The GNU C library defines this for functions which it implements
40599 to always fail with ENOSYS. Some functions are actually named
40600 something starting with __ and the normal name is an alias. */
40601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40604 char (*f) () = $ac_func;
40613 return f != $ac_func;
40618 rm -f conftest.$ac_objext conftest$ac_exeext
40619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40620 (eval $ac_link) 2>conftest.er1
40622 grep -v '^ *+' conftest.er1 >conftest.err
40624 cat conftest.err >&5
40625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40626 (exit $ac_status); } &&
40627 { ac_try='test -z "$ac_c_werror_flag"
40628 || test ! -s conftest.err'
40629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40630 (eval $ac_try) 2>&5
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); }; } &&
40634 { ac_try='test -s conftest$ac_exeext'
40635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40636 (eval $ac_try) 2>&5
40638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639 (exit $ac_status); }; }; then
40640 eval "$as_ac_var=yes"
40642 echo "$as_me: failed program was:" >&5
40643 sed 's/^/| /' conftest.$ac_ext >&5
40645 eval "$as_ac_var=no"
40647 rm -f conftest.err conftest.$ac_objext \
40648 conftest$ac_exeext conftest.$ac_ext
40650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40652 if test `eval echo '${'$as_ac_var'}'` = yes; then
40653 cat >>confdefs.h <<_ACEOF
40654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40656 ice_have_rewind=yes
40660 if test "${ice_have_rewind}" = yes; then
40661 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
40662 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
40663 if test "${ice_cv_have_rewind_decl+set}" = set; then
40664 echo $ECHO_N "(cached) $ECHO_C" >&6
40667 ice_cv_have_rewind_decl=no
40668 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40669 ice_re_word='(^|[^a-zA-Z0-9_])'
40670 for header in stdio.h; do
40671 # Check for ordinary declaration
40672 cat >conftest.$ac_ext <<_ACEOF
40675 cat confdefs.h >>conftest.$ac_ext
40676 cat >>conftest.$ac_ext <<_ACEOF
40677 /* end confdefs.h. */
40681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40682 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
40683 ice_cv_have_rewind_decl=yes
40687 if test "$ice_cv_have_rewind_decl" = yes; then
40690 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40691 cat >conftest.$ac_ext <<_ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h. */
40700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40701 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40702 ice_cv_have_rewind_decl=yes
40706 if test "$ice_cv_have_rewind_decl" = yes; then
40713 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
40714 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
40715 if test "$ice_cv_have_rewind_decl" = yes; then
40717 cat >>confdefs.h <<_ACEOF
40718 #define HAVE_REWIND_DECL 1
40725 for ac_func in rmdir
40727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40728 echo "$as_me:$LINENO: checking for $ac_func" >&5
40729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40730 if eval "test \"\${$as_ac_var+set}\" = set"; then
40731 echo $ECHO_N "(cached) $ECHO_C" >&6
40733 cat >conftest.$ac_ext <<_ACEOF
40736 cat confdefs.h >>conftest.$ac_ext
40737 cat >>conftest.$ac_ext <<_ACEOF
40738 /* end confdefs.h. */
40739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40741 #define $ac_func innocuous_$ac_func
40743 /* System header to define __stub macros and hopefully few prototypes,
40744 which can conflict with char $ac_func (); below.
40745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40746 <limits.h> exists even on freestanding compilers. */
40749 # include <limits.h>
40751 # include <assert.h>
40756 /* Override any gcc2 internal prototype to avoid an error. */
40761 /* We use char because int might match the return type of a gcc2
40762 builtin and then its argument prototype would still apply. */
40764 /* The GNU C library defines this for functions which it implements
40765 to always fail with ENOSYS. Some functions are actually named
40766 something starting with __ and the normal name is an alias. */
40767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40770 char (*f) () = $ac_func;
40779 return f != $ac_func;
40784 rm -f conftest.$ac_objext conftest$ac_exeext
40785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40786 (eval $ac_link) 2>conftest.er1
40788 grep -v '^ *+' conftest.er1 >conftest.err
40790 cat conftest.err >&5
40791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40792 (exit $ac_status); } &&
40793 { ac_try='test -z "$ac_c_werror_flag"
40794 || test ! -s conftest.err'
40795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40796 (eval $ac_try) 2>&5
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); }; } &&
40800 { ac_try='test -s conftest$ac_exeext'
40801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40802 (eval $ac_try) 2>&5
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); }; }; then
40806 eval "$as_ac_var=yes"
40808 echo "$as_me: failed program was:" >&5
40809 sed 's/^/| /' conftest.$ac_ext >&5
40811 eval "$as_ac_var=no"
40813 rm -f conftest.err conftest.$ac_objext \
40814 conftest$ac_exeext conftest.$ac_ext
40816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40818 if test `eval echo '${'$as_ac_var'}'` = yes; then
40819 cat >>confdefs.h <<_ACEOF
40820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40827 ice_have_ruserok=no
40829 for ac_func in ruserok
40831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40832 echo "$as_me:$LINENO: checking for $ac_func" >&5
40833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40834 if eval "test \"\${$as_ac_var+set}\" = set"; then
40835 echo $ECHO_N "(cached) $ECHO_C" >&6
40837 cat >conftest.$ac_ext <<_ACEOF
40840 cat confdefs.h >>conftest.$ac_ext
40841 cat >>conftest.$ac_ext <<_ACEOF
40842 /* end confdefs.h. */
40843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40845 #define $ac_func innocuous_$ac_func
40847 /* System header to define __stub macros and hopefully few prototypes,
40848 which can conflict with char $ac_func (); below.
40849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40850 <limits.h> exists even on freestanding compilers. */
40853 # include <limits.h>
40855 # include <assert.h>
40860 /* Override any gcc2 internal prototype to avoid an error. */
40865 /* We use char because int might match the return type of a gcc2
40866 builtin and then its argument prototype would still apply. */
40868 /* The GNU C library defines this for functions which it implements
40869 to always fail with ENOSYS. Some functions are actually named
40870 something starting with __ and the normal name is an alias. */
40871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40874 char (*f) () = $ac_func;
40883 return f != $ac_func;
40888 rm -f conftest.$ac_objext conftest$ac_exeext
40889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40890 (eval $ac_link) 2>conftest.er1
40892 grep -v '^ *+' conftest.er1 >conftest.err
40894 cat conftest.err >&5
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); } &&
40897 { ac_try='test -z "$ac_c_werror_flag"
40898 || test ! -s conftest.err'
40899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900 (eval $ac_try) 2>&5
40902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903 (exit $ac_status); }; } &&
40904 { ac_try='test -s conftest$ac_exeext'
40905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40906 (eval $ac_try) 2>&5
40908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909 (exit $ac_status); }; }; then
40910 eval "$as_ac_var=yes"
40912 echo "$as_me: failed program was:" >&5
40913 sed 's/^/| /' conftest.$ac_ext >&5
40915 eval "$as_ac_var=no"
40917 rm -f conftest.err conftest.$ac_objext \
40918 conftest$ac_exeext conftest.$ac_ext
40920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40922 if test `eval echo '${'$as_ac_var'}'` = yes; then
40923 cat >>confdefs.h <<_ACEOF
40924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40926 ice_have_ruserok=yes
40930 if test "${ice_have_ruserok}" = yes; then
40931 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
40932 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
40933 if test "${ice_cv_have_ruserok_decl+set}" = set; then
40934 echo $ECHO_N "(cached) $ECHO_C" >&6
40937 ice_cv_have_ruserok_decl=no
40938 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40939 ice_re_word='(^|[^a-zA-Z0-9_])'
40940 for header in netdb.h sys/socket.h libc.h unistd.h; do
40941 # Check for ordinary declaration
40942 cat >conftest.$ac_ext <<_ACEOF
40945 cat confdefs.h >>conftest.$ac_ext
40946 cat >>conftest.$ac_ext <<_ACEOF
40947 /* end confdefs.h. */
40951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40952 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
40953 ice_cv_have_ruserok_decl=yes
40957 if test "$ice_cv_have_ruserok_decl" = yes; then
40960 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40961 cat >conftest.$ac_ext <<_ACEOF
40964 cat confdefs.h >>conftest.$ac_ext
40965 cat >>conftest.$ac_ext <<_ACEOF
40966 /* end confdefs.h. */
40970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40971 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40972 ice_cv_have_ruserok_decl=yes
40976 if test "$ice_cv_have_ruserok_decl" = yes; then
40983 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
40984 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
40985 if test "$ice_cv_have_ruserok_decl" = yes; then
40987 cat >>confdefs.h <<_ACEOF
40988 #define HAVE_RUSEROK_DECL 1
40997 for ac_func in select
40999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41000 echo "$as_me:$LINENO: checking for $ac_func" >&5
41001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41002 if eval "test \"\${$as_ac_var+set}\" = set"; then
41003 echo $ECHO_N "(cached) $ECHO_C" >&6
41005 cat >conftest.$ac_ext <<_ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h. */
41011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41013 #define $ac_func innocuous_$ac_func
41015 /* System header to define __stub macros and hopefully few prototypes,
41016 which can conflict with char $ac_func (); below.
41017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41018 <limits.h> exists even on freestanding compilers. */
41021 # include <limits.h>
41023 # include <assert.h>
41028 /* Override any gcc2 internal prototype to avoid an error. */
41033 /* We use char because int might match the return type of a gcc2
41034 builtin and then its argument prototype would still apply. */
41036 /* The GNU C library defines this for functions which it implements
41037 to always fail with ENOSYS. Some functions are actually named
41038 something starting with __ and the normal name is an alias. */
41039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41042 char (*f) () = $ac_func;
41051 return f != $ac_func;
41056 rm -f conftest.$ac_objext conftest$ac_exeext
41057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41058 (eval $ac_link) 2>conftest.er1
41060 grep -v '^ *+' conftest.er1 >conftest.err
41062 cat conftest.err >&5
41063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064 (exit $ac_status); } &&
41065 { ac_try='test -z "$ac_c_werror_flag"
41066 || test ! -s conftest.err'
41067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068 (eval $ac_try) 2>&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); }; } &&
41072 { ac_try='test -s conftest$ac_exeext'
41073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074 (eval $ac_try) 2>&5
41076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); }; }; then
41078 eval "$as_ac_var=yes"
41080 echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41083 eval "$as_ac_var=no"
41085 rm -f conftest.err conftest.$ac_objext \
41086 conftest$ac_exeext conftest.$ac_ext
41088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41090 if test `eval echo '${'$as_ac_var'}'` = yes; then
41091 cat >>confdefs.h <<_ACEOF
41092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41094 ice_have_select=yes
41098 if test "${ice_have_select}" = yes; then
41099 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
41100 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
41101 if test "${ice_cv_have_select_decl+set}" = set; then
41102 echo $ECHO_N "(cached) $ECHO_C" >&6
41105 ice_cv_have_select_decl=no
41106 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41107 ice_re_word='(^|[^a-zA-Z0-9_])'
41108 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41109 # Check for ordinary declaration
41110 cat >conftest.$ac_ext <<_ACEOF
41113 cat confdefs.h >>conftest.$ac_ext
41114 cat >>conftest.$ac_ext <<_ACEOF
41115 /* end confdefs.h. */
41119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41120 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
41121 ice_cv_have_select_decl=yes
41125 if test "$ice_cv_have_select_decl" = yes; then
41128 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41129 cat >conftest.$ac_ext <<_ACEOF
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h. */
41138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41139 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41140 ice_cv_have_select_decl=yes
41144 if test "$ice_cv_have_select_decl" = yes; then
41151 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
41152 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
41153 if test "$ice_cv_have_select_decl" = yes; then
41155 cat >>confdefs.h <<_ACEOF
41156 #define HAVE_SELECT_DECL 1
41163 echo "$as_me:$LINENO: checking for select() argument type" >&5
41164 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
41165 if test "${amanda_cv_select_arg_type+set}" = set; then
41166 echo $ECHO_N "(cached) $ECHO_C" >&6
41170 cat <<EOF >conftest.$ac_ext
41171 #include "confdefs.h"
41172 #ifdef HAVE_SYS_TIME_H
41173 # include <sys/time.h>
41175 #ifdef HAVE_SYS_TYPES_H
41176 # include <sys/types.h>
41178 #ifdef HAVE_SYS_SELECT_H
41179 # include <sys/select.h>
41181 #ifdef HAVE_SYS_SOCKET_H
41182 # include <sys/socket.h>
41184 #ifdef HAVE_UNISTD_H
41185 # include <unistd.h>
41190 #ifdef FD_SET_POINTER
41191 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
41193 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
41199 amanda_cv_select_arg_type=no
41200 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
41201 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
41202 if test $? -ne 0; then
41203 amanda_cv_select_arg_type=int
41205 if test "$amanda_cv_select_arg_type" = no; then
41206 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
41207 if test $? -ne 0; then
41208 amanda_cv_select_arg_type=fd_set
41211 if test "$amanda_cv_select_arg_type" = no; then
41212 wc_fdset=`wc -l <conftest.fd_set`
41213 wc_int=`wc -l <conftest.int`
41214 if test "$wc_fdset" -le "$wc_int"; then
41215 amanda_cv_select_arg_type=fd_set
41217 amanda_cv_select_arg_type=int
41224 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
41225 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
41227 cat >>confdefs.h <<_ACEOF
41228 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
41236 for ac_func in sendto
41238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41239 echo "$as_me:$LINENO: checking for $ac_func" >&5
41240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41241 if eval "test \"\${$as_ac_var+set}\" = set"; then
41242 echo $ECHO_N "(cached) $ECHO_C" >&6
41244 cat >conftest.$ac_ext <<_ACEOF
41247 cat confdefs.h >>conftest.$ac_ext
41248 cat >>conftest.$ac_ext <<_ACEOF
41249 /* end confdefs.h. */
41250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41252 #define $ac_func innocuous_$ac_func
41254 /* System header to define __stub macros and hopefully few prototypes,
41255 which can conflict with char $ac_func (); below.
41256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41257 <limits.h> exists even on freestanding compilers. */
41260 # include <limits.h>
41262 # include <assert.h>
41267 /* Override any gcc2 internal prototype to avoid an error. */
41272 /* We use char because int might match the return type of a gcc2
41273 builtin and then its argument prototype would still apply. */
41275 /* The GNU C library defines this for functions which it implements
41276 to always fail with ENOSYS. Some functions are actually named
41277 something starting with __ and the normal name is an alias. */
41278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41281 char (*f) () = $ac_func;
41290 return f != $ac_func;
41295 rm -f conftest.$ac_objext conftest$ac_exeext
41296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41297 (eval $ac_link) 2>conftest.er1
41299 grep -v '^ *+' conftest.er1 >conftest.err
41301 cat conftest.err >&5
41302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41303 (exit $ac_status); } &&
41304 { ac_try='test -z "$ac_c_werror_flag"
41305 || test ! -s conftest.err'
41306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41307 (eval $ac_try) 2>&5
41309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310 (exit $ac_status); }; } &&
41311 { ac_try='test -s conftest$ac_exeext'
41312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41313 (eval $ac_try) 2>&5
41315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316 (exit $ac_status); }; }; then
41317 eval "$as_ac_var=yes"
41319 echo "$as_me: failed program was:" >&5
41320 sed 's/^/| /' conftest.$ac_ext >&5
41322 eval "$as_ac_var=no"
41324 rm -f conftest.err conftest.$ac_objext \
41325 conftest$ac_exeext conftest.$ac_ext
41327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41329 if test `eval echo '${'$as_ac_var'}'` = yes; then
41330 cat >>confdefs.h <<_ACEOF
41331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41333 ice_have_sendto=yes
41337 if test "${ice_have_sendto}" = yes; then
41338 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
41339 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41340 if test "${ice_cv_have_sendto_decl+set}" = set; then
41341 echo $ECHO_N "(cached) $ECHO_C" >&6
41344 ice_cv_have_sendto_decl=no
41345 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41346 ice_re_word='(^|[^a-zA-Z0-9_])'
41347 for header in sys/types.h sys/socket.h; do
41348 # Check for ordinary declaration
41349 cat >conftest.$ac_ext <<_ACEOF
41352 cat confdefs.h >>conftest.$ac_ext
41353 cat >>conftest.$ac_ext <<_ACEOF
41354 /* end confdefs.h. */
41358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41359 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
41360 ice_cv_have_sendto_decl=yes
41364 if test "$ice_cv_have_sendto_decl" = yes; then
41367 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41368 cat >conftest.$ac_ext <<_ACEOF
41371 cat confdefs.h >>conftest.$ac_ext
41372 cat >>conftest.$ac_ext <<_ACEOF
41373 /* end confdefs.h. */
41377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41378 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41379 ice_cv_have_sendto_decl=yes
41383 if test "$ice_cv_have_sendto_decl" = yes; then
41390 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
41391 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
41392 if test "$ice_cv_have_sendto_decl" = yes; then
41394 cat >>confdefs.h <<_ACEOF
41395 #define HAVE_SENDTO_DECL 1
41402 ice_have_setegid=no
41404 for ac_func in setegid
41406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41407 echo "$as_me:$LINENO: checking for $ac_func" >&5
41408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41409 if eval "test \"\${$as_ac_var+set}\" = set"; then
41410 echo $ECHO_N "(cached) $ECHO_C" >&6
41412 cat >conftest.$ac_ext <<_ACEOF
41415 cat confdefs.h >>conftest.$ac_ext
41416 cat >>conftest.$ac_ext <<_ACEOF
41417 /* end confdefs.h. */
41418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41420 #define $ac_func innocuous_$ac_func
41422 /* System header to define __stub macros and hopefully few prototypes,
41423 which can conflict with char $ac_func (); below.
41424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41425 <limits.h> exists even on freestanding compilers. */
41428 # include <limits.h>
41430 # include <assert.h>
41435 /* Override any gcc2 internal prototype to avoid an error. */
41440 /* We use char because int might match the return type of a gcc2
41441 builtin and then its argument prototype would still apply. */
41443 /* The GNU C library defines this for functions which it implements
41444 to always fail with ENOSYS. Some functions are actually named
41445 something starting with __ and the normal name is an alias. */
41446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41449 char (*f) () = $ac_func;
41458 return f != $ac_func;
41463 rm -f conftest.$ac_objext conftest$ac_exeext
41464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41465 (eval $ac_link) 2>conftest.er1
41467 grep -v '^ *+' conftest.er1 >conftest.err
41469 cat conftest.err >&5
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); } &&
41472 { ac_try='test -z "$ac_c_werror_flag"
41473 || test ! -s conftest.err'
41474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41475 (eval $ac_try) 2>&5
41477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41478 (exit $ac_status); }; } &&
41479 { ac_try='test -s conftest$ac_exeext'
41480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41481 (eval $ac_try) 2>&5
41483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484 (exit $ac_status); }; }; then
41485 eval "$as_ac_var=yes"
41487 echo "$as_me: failed program was:" >&5
41488 sed 's/^/| /' conftest.$ac_ext >&5
41490 eval "$as_ac_var=no"
41492 rm -f conftest.err conftest.$ac_objext \
41493 conftest$ac_exeext conftest.$ac_ext
41495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41497 if test `eval echo '${'$as_ac_var'}'` = yes; then
41498 cat >>confdefs.h <<_ACEOF
41499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41501 ice_have_setegid=yes
41505 if test "${ice_have_setegid}" = yes; then
41506 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
41507 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
41508 if test "${ice_cv_have_setegid_decl+set}" = set; then
41509 echo $ECHO_N "(cached) $ECHO_C" >&6
41512 ice_cv_have_setegid_decl=no
41513 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41514 ice_re_word='(^|[^a-zA-Z0-9_])'
41515 for header in unistd.h; do
41516 # Check for ordinary declaration
41517 cat >conftest.$ac_ext <<_ACEOF
41520 cat confdefs.h >>conftest.$ac_ext
41521 cat >>conftest.$ac_ext <<_ACEOF
41522 /* end confdefs.h. */
41526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41527 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
41528 ice_cv_have_setegid_decl=yes
41532 if test "$ice_cv_have_setegid_decl" = yes; then
41535 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41536 cat >conftest.$ac_ext <<_ACEOF
41539 cat confdefs.h >>conftest.$ac_ext
41540 cat >>conftest.$ac_ext <<_ACEOF
41541 /* end confdefs.h. */
41545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41546 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41547 ice_cv_have_setegid_decl=yes
41551 if test "$ice_cv_have_setegid_decl" = yes; then
41558 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
41559 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
41560 if test "$ice_cv_have_setegid_decl" = yes; then
41562 cat >>confdefs.h <<_ACEOF
41563 #define HAVE_SETEGID_DECL 1
41570 ice_have_seteuid=no
41572 for ac_func in seteuid
41574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41575 echo "$as_me:$LINENO: checking for $ac_func" >&5
41576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41577 if eval "test \"\${$as_ac_var+set}\" = set"; then
41578 echo $ECHO_N "(cached) $ECHO_C" >&6
41580 cat >conftest.$ac_ext <<_ACEOF
41583 cat confdefs.h >>conftest.$ac_ext
41584 cat >>conftest.$ac_ext <<_ACEOF
41585 /* end confdefs.h. */
41586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41588 #define $ac_func innocuous_$ac_func
41590 /* System header to define __stub macros and hopefully few prototypes,
41591 which can conflict with char $ac_func (); below.
41592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41593 <limits.h> exists even on freestanding compilers. */
41596 # include <limits.h>
41598 # include <assert.h>
41603 /* Override any gcc2 internal prototype to avoid an error. */
41608 /* We use char because int might match the return type of a gcc2
41609 builtin and then its argument prototype would still apply. */
41611 /* The GNU C library defines this for functions which it implements
41612 to always fail with ENOSYS. Some functions are actually named
41613 something starting with __ and the normal name is an alias. */
41614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41617 char (*f) () = $ac_func;
41626 return f != $ac_func;
41631 rm -f conftest.$ac_objext conftest$ac_exeext
41632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41633 (eval $ac_link) 2>conftest.er1
41635 grep -v '^ *+' conftest.er1 >conftest.err
41637 cat conftest.err >&5
41638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639 (exit $ac_status); } &&
41640 { ac_try='test -z "$ac_c_werror_flag"
41641 || test ! -s conftest.err'
41642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643 (eval $ac_try) 2>&5
41645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646 (exit $ac_status); }; } &&
41647 { ac_try='test -s conftest$ac_exeext'
41648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41649 (eval $ac_try) 2>&5
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); }; }; then
41653 eval "$as_ac_var=yes"
41655 echo "$as_me: failed program was:" >&5
41656 sed 's/^/| /' conftest.$ac_ext >&5
41658 eval "$as_ac_var=no"
41660 rm -f conftest.err conftest.$ac_objext \
41661 conftest$ac_exeext conftest.$ac_ext
41663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41665 if test `eval echo '${'$as_ac_var'}'` = yes; then
41666 cat >>confdefs.h <<_ACEOF
41667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41669 ice_have_seteuid=yes
41673 if test "${ice_have_seteuid}" = yes; then
41674 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
41675 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
41676 if test "${ice_cv_have_seteuid_decl+set}" = set; then
41677 echo $ECHO_N "(cached) $ECHO_C" >&6
41680 ice_cv_have_seteuid_decl=no
41681 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41682 ice_re_word='(^|[^a-zA-Z0-9_])'
41683 for header in unistd.h; do
41684 # Check for ordinary declaration
41685 cat >conftest.$ac_ext <<_ACEOF
41688 cat confdefs.h >>conftest.$ac_ext
41689 cat >>conftest.$ac_ext <<_ACEOF
41690 /* end confdefs.h. */
41694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41695 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
41696 ice_cv_have_seteuid_decl=yes
41700 if test "$ice_cv_have_seteuid_decl" = yes; then
41703 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41704 cat >conftest.$ac_ext <<_ACEOF
41707 cat confdefs.h >>conftest.$ac_ext
41708 cat >>conftest.$ac_ext <<_ACEOF
41709 /* end confdefs.h. */
41713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41714 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41715 ice_cv_have_seteuid_decl=yes
41719 if test "$ice_cv_have_seteuid_decl" = yes; then
41726 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
41727 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
41728 if test "$ice_cv_have_seteuid_decl" = yes; then
41730 cat >>confdefs.h <<_ACEOF
41731 #define HAVE_SETEUID_DECL 1
41738 for ac_func in setmntent
41740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41741 echo "$as_me:$LINENO: checking for $ac_func" >&5
41742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41743 if eval "test \"\${$as_ac_var+set}\" = set"; then
41744 echo $ECHO_N "(cached) $ECHO_C" >&6
41746 cat >conftest.$ac_ext <<_ACEOF
41749 cat confdefs.h >>conftest.$ac_ext
41750 cat >>conftest.$ac_ext <<_ACEOF
41751 /* end confdefs.h. */
41752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41754 #define $ac_func innocuous_$ac_func
41756 /* System header to define __stub macros and hopefully few prototypes,
41757 which can conflict with char $ac_func (); below.
41758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41759 <limits.h> exists even on freestanding compilers. */
41762 # include <limits.h>
41764 # include <assert.h>
41769 /* Override any gcc2 internal prototype to avoid an error. */
41774 /* We use char because int might match the return type of a gcc2
41775 builtin and then its argument prototype would still apply. */
41777 /* The GNU C library defines this for functions which it implements
41778 to always fail with ENOSYS. Some functions are actually named
41779 something starting with __ and the normal name is an alias. */
41780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41783 char (*f) () = $ac_func;
41792 return f != $ac_func;
41797 rm -f conftest.$ac_objext conftest$ac_exeext
41798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41799 (eval $ac_link) 2>conftest.er1
41801 grep -v '^ *+' conftest.er1 >conftest.err
41803 cat conftest.err >&5
41804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41805 (exit $ac_status); } &&
41806 { ac_try='test -z "$ac_c_werror_flag"
41807 || test ! -s conftest.err'
41808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41809 (eval $ac_try) 2>&5
41811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41812 (exit $ac_status); }; } &&
41813 { ac_try='test -s conftest$ac_exeext'
41814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41815 (eval $ac_try) 2>&5
41817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818 (exit $ac_status); }; }; then
41819 eval "$as_ac_var=yes"
41821 echo "$as_me: failed program was:" >&5
41822 sed 's/^/| /' conftest.$ac_ext >&5
41824 eval "$as_ac_var=no"
41826 rm -f conftest.err conftest.$ac_objext \
41827 conftest$ac_exeext conftest.$ac_ext
41829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41831 if test `eval echo '${'$as_ac_var'}'` = yes; then
41832 cat >>confdefs.h <<_ACEOF
41833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41840 ice_have_setresgid=no
41842 for ac_func in setresgid
41844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41845 echo "$as_me:$LINENO: checking for $ac_func" >&5
41846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41847 if eval "test \"\${$as_ac_var+set}\" = set"; then
41848 echo $ECHO_N "(cached) $ECHO_C" >&6
41850 cat >conftest.$ac_ext <<_ACEOF
41853 cat confdefs.h >>conftest.$ac_ext
41854 cat >>conftest.$ac_ext <<_ACEOF
41855 /* end confdefs.h. */
41856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41858 #define $ac_func innocuous_$ac_func
41860 /* System header to define __stub macros and hopefully few prototypes,
41861 which can conflict with char $ac_func (); below.
41862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41863 <limits.h> exists even on freestanding compilers. */
41866 # include <limits.h>
41868 # include <assert.h>
41873 /* Override any gcc2 internal prototype to avoid an error. */
41878 /* We use char because int might match the return type of a gcc2
41879 builtin and then its argument prototype would still apply. */
41881 /* The GNU C library defines this for functions which it implements
41882 to always fail with ENOSYS. Some functions are actually named
41883 something starting with __ and the normal name is an alias. */
41884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41887 char (*f) () = $ac_func;
41896 return f != $ac_func;
41901 rm -f conftest.$ac_objext conftest$ac_exeext
41902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41903 (eval $ac_link) 2>conftest.er1
41905 grep -v '^ *+' conftest.er1 >conftest.err
41907 cat conftest.err >&5
41908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41909 (exit $ac_status); } &&
41910 { ac_try='test -z "$ac_c_werror_flag"
41911 || test ! -s conftest.err'
41912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41913 (eval $ac_try) 2>&5
41915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916 (exit $ac_status); }; } &&
41917 { ac_try='test -s conftest$ac_exeext'
41918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41919 (eval $ac_try) 2>&5
41921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41922 (exit $ac_status); }; }; then
41923 eval "$as_ac_var=yes"
41925 echo "$as_me: failed program was:" >&5
41926 sed 's/^/| /' conftest.$ac_ext >&5
41928 eval "$as_ac_var=no"
41930 rm -f conftest.err conftest.$ac_objext \
41931 conftest$ac_exeext conftest.$ac_ext
41933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41935 if test `eval echo '${'$as_ac_var'}'` = yes; then
41936 cat >>confdefs.h <<_ACEOF
41937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41939 ice_have_setresgid=yes
41943 if test "${ice_have_setresgid}" = yes; then
41944 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
41945 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
41946 if test "${ice_cv_have_setresgid_decl+set}" = set; then
41947 echo $ECHO_N "(cached) $ECHO_C" >&6
41950 ice_cv_have_setresgid_decl=no
41951 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41952 ice_re_word='(^|[^a-zA-Z0-9_])'
41953 for header in unistd.h; do
41954 # Check for ordinary declaration
41955 cat >conftest.$ac_ext <<_ACEOF
41958 cat confdefs.h >>conftest.$ac_ext
41959 cat >>conftest.$ac_ext <<_ACEOF
41960 /* end confdefs.h. */
41964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41965 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
41966 ice_cv_have_setresgid_decl=yes
41970 if test "$ice_cv_have_setresgid_decl" = yes; then
41973 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41974 cat >conftest.$ac_ext <<_ACEOF
41977 cat confdefs.h >>conftest.$ac_ext
41978 cat >>conftest.$ac_ext <<_ACEOF
41979 /* end confdefs.h. */
41983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41984 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41985 ice_cv_have_setresgid_decl=yes
41989 if test "$ice_cv_have_setresgid_decl" = yes; then
41996 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
41997 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
41998 if test "$ice_cv_have_setresgid_decl" = yes; then
42000 cat >>confdefs.h <<_ACEOF
42001 #define HAVE_SETRESGID_DECL 1
42008 ice_have_setresuid=no
42010 for ac_func in setresuid
42012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42013 echo "$as_me:$LINENO: checking for $ac_func" >&5
42014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42015 if eval "test \"\${$as_ac_var+set}\" = set"; then
42016 echo $ECHO_N "(cached) $ECHO_C" >&6
42018 cat >conftest.$ac_ext <<_ACEOF
42021 cat confdefs.h >>conftest.$ac_ext
42022 cat >>conftest.$ac_ext <<_ACEOF
42023 /* end confdefs.h. */
42024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42026 #define $ac_func innocuous_$ac_func
42028 /* System header to define __stub macros and hopefully few prototypes,
42029 which can conflict with char $ac_func (); below.
42030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42031 <limits.h> exists even on freestanding compilers. */
42034 # include <limits.h>
42036 # include <assert.h>
42041 /* Override any gcc2 internal prototype to avoid an error. */
42046 /* We use char because int might match the return type of a gcc2
42047 builtin and then its argument prototype would still apply. */
42049 /* The GNU C library defines this for functions which it implements
42050 to always fail with ENOSYS. Some functions are actually named
42051 something starting with __ and the normal name is an alias. */
42052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42055 char (*f) () = $ac_func;
42064 return f != $ac_func;
42069 rm -f conftest.$ac_objext conftest$ac_exeext
42070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42071 (eval $ac_link) 2>conftest.er1
42073 grep -v '^ *+' conftest.er1 >conftest.err
42075 cat conftest.err >&5
42076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077 (exit $ac_status); } &&
42078 { ac_try='test -z "$ac_c_werror_flag"
42079 || test ! -s conftest.err'
42080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42081 (eval $ac_try) 2>&5
42083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084 (exit $ac_status); }; } &&
42085 { ac_try='test -s conftest$ac_exeext'
42086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42087 (eval $ac_try) 2>&5
42089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090 (exit $ac_status); }; }; then
42091 eval "$as_ac_var=yes"
42093 echo "$as_me: failed program was:" >&5
42094 sed 's/^/| /' conftest.$ac_ext >&5
42096 eval "$as_ac_var=no"
42098 rm -f conftest.err conftest.$ac_objext \
42099 conftest$ac_exeext conftest.$ac_ext
42101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42103 if test `eval echo '${'$as_ac_var'}'` = yes; then
42104 cat >>confdefs.h <<_ACEOF
42105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42107 ice_have_setresuid=yes
42111 if test "${ice_have_setresuid}" = yes; then
42112 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
42113 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
42114 if test "${ice_cv_have_setresuid_decl+set}" = set; then
42115 echo $ECHO_N "(cached) $ECHO_C" >&6
42118 ice_cv_have_setresuid_decl=no
42119 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42120 ice_re_word='(^|[^a-zA-Z0-9_])'
42121 for header in unistd.h; do
42122 # Check for ordinary declaration
42123 cat >conftest.$ac_ext <<_ACEOF
42126 cat confdefs.h >>conftest.$ac_ext
42127 cat >>conftest.$ac_ext <<_ACEOF
42128 /* end confdefs.h. */
42132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42133 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
42134 ice_cv_have_setresuid_decl=yes
42138 if test "$ice_cv_have_setresuid_decl" = yes; then
42141 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42142 cat >conftest.$ac_ext <<_ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h. */
42151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42152 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42153 ice_cv_have_setresuid_decl=yes
42157 if test "$ice_cv_have_setresuid_decl" = yes; then
42164 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
42165 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
42166 if test "$ice_cv_have_setresuid_decl" = yes; then
42168 cat >>confdefs.h <<_ACEOF
42169 #define HAVE_SETRESUID_DECL 1
42176 echo "$as_me:$LINENO: checking for setpgid" >&5
42177 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
42178 if test "${ac_cv_func_setpgid+set}" = set; then
42179 echo $ECHO_N "(cached) $ECHO_C" >&6
42181 cat >conftest.$ac_ext <<_ACEOF
42184 cat confdefs.h >>conftest.$ac_ext
42185 cat >>conftest.$ac_ext <<_ACEOF
42186 /* end confdefs.h. */
42187 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
42188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42189 #define setpgid innocuous_setpgid
42191 /* System header to define __stub macros and hopefully few prototypes,
42192 which can conflict with char setpgid (); below.
42193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42194 <limits.h> exists even on freestanding compilers. */
42197 # include <limits.h>
42199 # include <assert.h>
42204 /* Override any gcc2 internal prototype to avoid an error. */
42209 /* We use char because int might match the return type of a gcc2
42210 builtin and then its argument prototype would still apply. */
42212 /* The GNU C library defines this for functions which it implements
42213 to always fail with ENOSYS. Some functions are actually named
42214 something starting with __ and the normal name is an alias. */
42215 #if defined (__stub_setpgid) || defined (__stub___setpgid)
42218 char (*f) () = setpgid;
42227 return f != setpgid;
42232 rm -f conftest.$ac_objext conftest$ac_exeext
42233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42234 (eval $ac_link) 2>conftest.er1
42236 grep -v '^ *+' conftest.er1 >conftest.err
42238 cat conftest.err >&5
42239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); } &&
42241 { ac_try='test -z "$ac_c_werror_flag"
42242 || test ! -s conftest.err'
42243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42244 (eval $ac_try) 2>&5
42246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); }; } &&
42248 { ac_try='test -s conftest$ac_exeext'
42249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42250 (eval $ac_try) 2>&5
42252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253 (exit $ac_status); }; }; then
42254 ac_cv_func_setpgid=yes
42256 echo "$as_me: failed program was:" >&5
42257 sed 's/^/| /' conftest.$ac_ext >&5
42259 ac_cv_func_setpgid=no
42261 rm -f conftest.err conftest.$ac_objext \
42262 conftest$ac_exeext conftest.$ac_ext
42264 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
42265 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
42266 if test $ac_cv_func_setpgid = yes; then
42269 cat >>confdefs.h <<\_ACEOF
42270 #define HAVE_SETPGID 1
42274 ice_have_setpgid=no
42276 for ac_func in setpgid
42278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42279 echo "$as_me:$LINENO: checking for $ac_func" >&5
42280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42281 if eval "test \"\${$as_ac_var+set}\" = set"; then
42282 echo $ECHO_N "(cached) $ECHO_C" >&6
42284 cat >conftest.$ac_ext <<_ACEOF
42287 cat confdefs.h >>conftest.$ac_ext
42288 cat >>conftest.$ac_ext <<_ACEOF
42289 /* end confdefs.h. */
42290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42292 #define $ac_func innocuous_$ac_func
42294 /* System header to define __stub macros and hopefully few prototypes,
42295 which can conflict with char $ac_func (); below.
42296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42297 <limits.h> exists even on freestanding compilers. */
42300 # include <limits.h>
42302 # include <assert.h>
42307 /* Override any gcc2 internal prototype to avoid an error. */
42312 /* We use char because int might match the return type of a gcc2
42313 builtin and then its argument prototype would still apply. */
42315 /* The GNU C library defines this for functions which it implements
42316 to always fail with ENOSYS. Some functions are actually named
42317 something starting with __ and the normal name is an alias. */
42318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42321 char (*f) () = $ac_func;
42330 return f != $ac_func;
42335 rm -f conftest.$ac_objext conftest$ac_exeext
42336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42337 (eval $ac_link) 2>conftest.er1
42339 grep -v '^ *+' conftest.er1 >conftest.err
42341 cat conftest.err >&5
42342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343 (exit $ac_status); } &&
42344 { ac_try='test -z "$ac_c_werror_flag"
42345 || test ! -s conftest.err'
42346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42347 (eval $ac_try) 2>&5
42349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42350 (exit $ac_status); }; } &&
42351 { ac_try='test -s conftest$ac_exeext'
42352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42353 (eval $ac_try) 2>&5
42355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42356 (exit $ac_status); }; }; then
42357 eval "$as_ac_var=yes"
42359 echo "$as_me: failed program was:" >&5
42360 sed 's/^/| /' conftest.$ac_ext >&5
42362 eval "$as_ac_var=no"
42364 rm -f conftest.err conftest.$ac_objext \
42365 conftest$ac_exeext conftest.$ac_ext
42367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42369 if test `eval echo '${'$as_ac_var'}'` = yes; then
42370 cat >>confdefs.h <<_ACEOF
42371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42373 ice_have_setpgid=yes
42377 if test "${ice_have_setpgid}" = yes; then
42378 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
42379 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
42380 if test "${ice_cv_have_setpgid_decl+set}" = set; then
42381 echo $ECHO_N "(cached) $ECHO_C" >&6
42384 ice_cv_have_setpgid_decl=no
42385 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42386 ice_re_word='(^|[^a-zA-Z0-9_])'
42387 for header in sys/types.h unistd.h; do
42388 # Check for ordinary declaration
42389 cat >conftest.$ac_ext <<_ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h. */
42398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42399 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
42400 ice_cv_have_setpgid_decl=yes
42404 if test "$ice_cv_have_setpgid_decl" = yes; then
42407 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42408 cat >conftest.$ac_ext <<_ACEOF
42411 cat confdefs.h >>conftest.$ac_ext
42412 cat >>conftest.$ac_ext <<_ACEOF
42413 /* end confdefs.h. */
42417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42418 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42419 ice_cv_have_setpgid_decl=yes
42423 if test "$ice_cv_have_setpgid_decl" = yes; then
42430 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
42431 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
42432 if test "$ice_cv_have_setpgid_decl" = yes; then
42434 cat >>confdefs.h <<_ACEOF
42435 #define HAVE_SETPGID_DECL 1
42444 echo "$as_me:$LINENO: checking for setpgrp" >&5
42445 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
42446 if test "${ac_cv_func_setpgrp+set}" = set; then
42447 echo $ECHO_N "(cached) $ECHO_C" >&6
42449 cat >conftest.$ac_ext <<_ACEOF
42452 cat confdefs.h >>conftest.$ac_ext
42453 cat >>conftest.$ac_ext <<_ACEOF
42454 /* end confdefs.h. */
42455 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
42456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42457 #define setpgrp innocuous_setpgrp
42459 /* System header to define __stub macros and hopefully few prototypes,
42460 which can conflict with char setpgrp (); below.
42461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42462 <limits.h> exists even on freestanding compilers. */
42465 # include <limits.h>
42467 # include <assert.h>
42472 /* Override any gcc2 internal prototype to avoid an error. */
42477 /* We use char because int might match the return type of a gcc2
42478 builtin and then its argument prototype would still apply. */
42480 /* The GNU C library defines this for functions which it implements
42481 to always fail with ENOSYS. Some functions are actually named
42482 something starting with __ and the normal name is an alias. */
42483 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
42486 char (*f) () = setpgrp;
42495 return f != setpgrp;
42500 rm -f conftest.$ac_objext conftest$ac_exeext
42501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42502 (eval $ac_link) 2>conftest.er1
42504 grep -v '^ *+' conftest.er1 >conftest.err
42506 cat conftest.err >&5
42507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42508 (exit $ac_status); } &&
42509 { ac_try='test -z "$ac_c_werror_flag"
42510 || test ! -s conftest.err'
42511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42512 (eval $ac_try) 2>&5
42514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515 (exit $ac_status); }; } &&
42516 { ac_try='test -s conftest$ac_exeext'
42517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42518 (eval $ac_try) 2>&5
42520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521 (exit $ac_status); }; }; then
42522 ac_cv_func_setpgrp=yes
42524 echo "$as_me: failed program was:" >&5
42525 sed 's/^/| /' conftest.$ac_ext >&5
42527 ac_cv_func_setpgrp=no
42529 rm -f conftest.err conftest.$ac_objext \
42530 conftest$ac_exeext conftest.$ac_ext
42532 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
42533 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
42534 if test $ac_cv_func_setpgrp = yes; then
42535 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42536 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
42537 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42538 echo $ECHO_N "(cached) $ECHO_C" >&6
42540 if test "$cross_compiling" = yes; then
42541 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42542 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42543 { (exit 1); exit 1; }; }
42545 cat >conftest.$ac_ext <<_ACEOF
42548 cat confdefs.h >>conftest.$ac_ext
42549 cat >>conftest.$ac_ext <<_ACEOF
42550 /* end confdefs.h. */
42552 # include <unistd.h>
42558 /* If this system has a BSD-style setpgrp which takes arguments,
42559 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42560 exit successfully. */
42561 exit (setpgrp (1,1) == -1 ? 0 : 1);
42566 rm -f conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568 (eval $ac_link) 2>&5
42570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42573 (eval $ac_try) 2>&5
42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); }; }; then
42577 ac_cv_func_setpgrp_void=no
42579 echo "$as_me: program exited with status $ac_status" >&5
42580 echo "$as_me: failed program was:" >&5
42581 sed 's/^/| /' conftest.$ac_ext >&5
42583 ( exit $ac_status )
42584 ac_cv_func_setpgrp_void=yes
42586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42589 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
42590 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
42591 if test $ac_cv_func_setpgrp_void = yes; then
42593 cat >>confdefs.h <<\_ACEOF
42594 #define SETPGRP_VOID 1
42602 ice_have_setpgrp=no
42604 for ac_func in setpgrp
42606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42607 echo "$as_me:$LINENO: checking for $ac_func" >&5
42608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42609 if eval "test \"\${$as_ac_var+set}\" = set"; then
42610 echo $ECHO_N "(cached) $ECHO_C" >&6
42612 cat >conftest.$ac_ext <<_ACEOF
42615 cat confdefs.h >>conftest.$ac_ext
42616 cat >>conftest.$ac_ext <<_ACEOF
42617 /* end confdefs.h. */
42618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42620 #define $ac_func innocuous_$ac_func
42622 /* System header to define __stub macros and hopefully few prototypes,
42623 which can conflict with char $ac_func (); below.
42624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42625 <limits.h> exists even on freestanding compilers. */
42628 # include <limits.h>
42630 # include <assert.h>
42635 /* Override any gcc2 internal prototype to avoid an error. */
42640 /* We use char because int might match the return type of a gcc2
42641 builtin and then its argument prototype would still apply. */
42643 /* The GNU C library defines this for functions which it implements
42644 to always fail with ENOSYS. Some functions are actually named
42645 something starting with __ and the normal name is an alias. */
42646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42649 char (*f) () = $ac_func;
42658 return f != $ac_func;
42663 rm -f conftest.$ac_objext conftest$ac_exeext
42664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42665 (eval $ac_link) 2>conftest.er1
42667 grep -v '^ *+' conftest.er1 >conftest.err
42669 cat conftest.err >&5
42670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671 (exit $ac_status); } &&
42672 { ac_try='test -z "$ac_c_werror_flag"
42673 || test ! -s conftest.err'
42674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42675 (eval $ac_try) 2>&5
42677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678 (exit $ac_status); }; } &&
42679 { ac_try='test -s conftest$ac_exeext'
42680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42681 (eval $ac_try) 2>&5
42683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42684 (exit $ac_status); }; }; then
42685 eval "$as_ac_var=yes"
42687 echo "$as_me: failed program was:" >&5
42688 sed 's/^/| /' conftest.$ac_ext >&5
42690 eval "$as_ac_var=no"
42692 rm -f conftest.err conftest.$ac_objext \
42693 conftest$ac_exeext conftest.$ac_ext
42695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42697 if test `eval echo '${'$as_ac_var'}'` = yes; then
42698 cat >>confdefs.h <<_ACEOF
42699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42701 ice_have_setpgrp=yes
42705 if test "${ice_have_setpgrp}" = yes; then
42706 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42707 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
42708 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
42709 echo $ECHO_N "(cached) $ECHO_C" >&6
42712 ice_cv_have_setpgrp_decl=no
42713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42714 ice_re_word='(^|[^a-zA-Z0-9_])'
42715 for header in sys/types.h unistd.h libc.h; do
42716 # Check for ordinary declaration
42717 cat >conftest.$ac_ext <<_ACEOF
42720 cat confdefs.h >>conftest.$ac_ext
42721 cat >>conftest.$ac_ext <<_ACEOF
42722 /* end confdefs.h. */
42726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42727 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
42728 ice_cv_have_setpgrp_decl=yes
42732 if test "$ice_cv_have_setpgrp_decl" = yes; then
42735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42736 cat >conftest.$ac_ext <<_ACEOF
42739 cat confdefs.h >>conftest.$ac_ext
42740 cat >>conftest.$ac_ext <<_ACEOF
42741 /* end confdefs.h. */
42745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42746 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42747 ice_cv_have_setpgrp_decl=yes
42751 if test "$ice_cv_have_setpgrp_decl" = yes; then
42758 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
42759 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
42760 if test "$ice_cv_have_setpgrp_decl" = yes; then
42762 cat >>confdefs.h <<_ACEOF
42763 #define HAVE_SETPGRP_DECL 1
42771 ice_have_setsockopt=no
42773 for ac_func in setsockopt
42775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42776 echo "$as_me:$LINENO: checking for $ac_func" >&5
42777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42778 if eval "test \"\${$as_ac_var+set}\" = set"; then
42779 echo $ECHO_N "(cached) $ECHO_C" >&6
42781 cat >conftest.$ac_ext <<_ACEOF
42784 cat confdefs.h >>conftest.$ac_ext
42785 cat >>conftest.$ac_ext <<_ACEOF
42786 /* end confdefs.h. */
42787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42789 #define $ac_func innocuous_$ac_func
42791 /* System header to define __stub macros and hopefully few prototypes,
42792 which can conflict with char $ac_func (); below.
42793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42794 <limits.h> exists even on freestanding compilers. */
42797 # include <limits.h>
42799 # include <assert.h>
42804 /* Override any gcc2 internal prototype to avoid an error. */
42809 /* We use char because int might match the return type of a gcc2
42810 builtin and then its argument prototype would still apply. */
42812 /* The GNU C library defines this for functions which it implements
42813 to always fail with ENOSYS. Some functions are actually named
42814 something starting with __ and the normal name is an alias. */
42815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42818 char (*f) () = $ac_func;
42827 return f != $ac_func;
42832 rm -f conftest.$ac_objext conftest$ac_exeext
42833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42834 (eval $ac_link) 2>conftest.er1
42836 grep -v '^ *+' conftest.er1 >conftest.err
42838 cat conftest.err >&5
42839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42840 (exit $ac_status); } &&
42841 { ac_try='test -z "$ac_c_werror_flag"
42842 || test ! -s conftest.err'
42843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42844 (eval $ac_try) 2>&5
42846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42847 (exit $ac_status); }; } &&
42848 { ac_try='test -s conftest$ac_exeext'
42849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42850 (eval $ac_try) 2>&5
42852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42853 (exit $ac_status); }; }; then
42854 eval "$as_ac_var=yes"
42856 echo "$as_me: failed program was:" >&5
42857 sed 's/^/| /' conftest.$ac_ext >&5
42859 eval "$as_ac_var=no"
42861 rm -f conftest.err conftest.$ac_objext \
42862 conftest$ac_exeext conftest.$ac_ext
42864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42866 if test `eval echo '${'$as_ac_var'}'` = yes; then
42867 cat >>confdefs.h <<_ACEOF
42868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42870 ice_have_setsockopt=yes
42874 if test "${ice_have_setsockopt}" = yes; then
42875 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42876 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42877 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
42878 echo $ECHO_N "(cached) $ECHO_C" >&6
42881 ice_cv_have_setsockopt_decl=no
42882 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42883 ice_re_word='(^|[^a-zA-Z0-9_])'
42884 for header in sys/types.h sys/socket.h; do
42885 # Check for ordinary declaration
42886 cat >conftest.$ac_ext <<_ACEOF
42889 cat confdefs.h >>conftest.$ac_ext
42890 cat >>conftest.$ac_ext <<_ACEOF
42891 /* end confdefs.h. */
42895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42896 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
42897 ice_cv_have_setsockopt_decl=yes
42901 if test "$ice_cv_have_setsockopt_decl" = yes; then
42904 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42905 cat >conftest.$ac_ext <<_ACEOF
42908 cat confdefs.h >>conftest.$ac_ext
42909 cat >>conftest.$ac_ext <<_ACEOF
42910 /* end confdefs.h. */
42914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42915 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42916 ice_cv_have_setsockopt_decl=yes
42920 if test "$ice_cv_have_setsockopt_decl" = yes; then
42927 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
42928 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
42929 if test "$ice_cv_have_setsockopt_decl" = yes; then
42931 cat >>confdefs.h <<_ACEOF
42932 #define HAVE_SETSOCKOPT_DECL 1
42940 for ac_func in shmget
42942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42943 echo "$as_me:$LINENO: checking for $ac_func" >&5
42944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42945 if eval "test \"\${$as_ac_var+set}\" = set"; then
42946 echo $ECHO_N "(cached) $ECHO_C" >&6
42948 cat >conftest.$ac_ext <<_ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h. */
42954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42956 #define $ac_func innocuous_$ac_func
42958 /* System header to define __stub macros and hopefully few prototypes,
42959 which can conflict with char $ac_func (); below.
42960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42961 <limits.h> exists even on freestanding compilers. */
42964 # include <limits.h>
42966 # include <assert.h>
42971 /* Override any gcc2 internal prototype to avoid an error. */
42976 /* We use char because int might match the return type of a gcc2
42977 builtin and then its argument prototype would still apply. */
42979 /* The GNU C library defines this for functions which it implements
42980 to always fail with ENOSYS. Some functions are actually named
42981 something starting with __ and the normal name is an alias. */
42982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42985 char (*f) () = $ac_func;
42994 return f != $ac_func;
42999 rm -f conftest.$ac_objext conftest$ac_exeext
43000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43001 (eval $ac_link) 2>conftest.er1
43003 grep -v '^ *+' conftest.er1 >conftest.err
43005 cat conftest.err >&5
43006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007 (exit $ac_status); } &&
43008 { ac_try='test -z "$ac_c_werror_flag"
43009 || test ! -s conftest.err'
43010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43011 (eval $ac_try) 2>&5
43013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014 (exit $ac_status); }; } &&
43015 { ac_try='test -s conftest$ac_exeext'
43016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43017 (eval $ac_try) 2>&5
43019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020 (exit $ac_status); }; }; then
43021 eval "$as_ac_var=yes"
43023 echo "$as_me: failed program was:" >&5
43024 sed 's/^/| /' conftest.$ac_ext >&5
43026 eval "$as_ac_var=no"
43028 rm -f conftest.err conftest.$ac_objext \
43029 conftest$ac_exeext conftest.$ac_ext
43031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43033 if test `eval echo '${'$as_ac_var'}'` = yes; then
43034 cat >>confdefs.h <<_ACEOF
43035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43039 echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
43040 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
43041 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
43042 echo $ECHO_N "(cached) $ECHO_C" >&6
43045 if test "$ac_cv_func_shmget" = yes; then
43046 cat <<EOF >conftest.$ac_ext
43047 #include "confdefs.h"
43048 #ifdef HAVE_SYS_TYPES_H
43049 # include <sys/types.h>
43051 #ifdef HAVE_SYS_IPC_H
43052 # include <sys/ipc.h>
43054 #ifdef HAVE_SYS_SHM_H
43055 # include <sys/shm.h>
43059 extern "C" void *shmat(int, void *, int);
43070 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
43071 if test $? = 0; then
43072 amanda_cv_shmdt_arg_type=void
43074 amanda_cv_shmdt_arg_type=char
43078 amanda_cv_shmdt_arg_type=nothing
43083 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
43084 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
43086 cat >>confdefs.h <<_ACEOF
43087 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
43092 case "$FORCE_MMAP" in
43095 cat >>confdefs.h <<\_ACEOF
43096 #define HAVE_SYSVSHM 1
43109 for ac_func in shmat
43111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43112 echo "$as_me:$LINENO: checking for $ac_func" >&5
43113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43114 if eval "test \"\${$as_ac_var+set}\" = set"; then
43115 echo $ECHO_N "(cached) $ECHO_C" >&6
43117 cat >conftest.$ac_ext <<_ACEOF
43120 cat confdefs.h >>conftest.$ac_ext
43121 cat >>conftest.$ac_ext <<_ACEOF
43122 /* end confdefs.h. */
43123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43125 #define $ac_func innocuous_$ac_func
43127 /* System header to define __stub macros and hopefully few prototypes,
43128 which can conflict with char $ac_func (); below.
43129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43130 <limits.h> exists even on freestanding compilers. */
43133 # include <limits.h>
43135 # include <assert.h>
43140 /* Override any gcc2 internal prototype to avoid an error. */
43145 /* We use char because int might match the return type of a gcc2
43146 builtin and then its argument prototype would still apply. */
43148 /* The GNU C library defines this for functions which it implements
43149 to always fail with ENOSYS. Some functions are actually named
43150 something starting with __ and the normal name is an alias. */
43151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43154 char (*f) () = $ac_func;
43163 return f != $ac_func;
43168 rm -f conftest.$ac_objext conftest$ac_exeext
43169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43170 (eval $ac_link) 2>conftest.er1
43172 grep -v '^ *+' conftest.er1 >conftest.err
43174 cat conftest.err >&5
43175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43176 (exit $ac_status); } &&
43177 { ac_try='test -z "$ac_c_werror_flag"
43178 || test ! -s conftest.err'
43179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43180 (eval $ac_try) 2>&5
43182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43183 (exit $ac_status); }; } &&
43184 { ac_try='test -s conftest$ac_exeext'
43185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186 (eval $ac_try) 2>&5
43188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189 (exit $ac_status); }; }; then
43190 eval "$as_ac_var=yes"
43192 echo "$as_me: failed program was:" >&5
43193 sed 's/^/| /' conftest.$ac_ext >&5
43195 eval "$as_ac_var=no"
43197 rm -f conftest.err conftest.$ac_objext \
43198 conftest$ac_exeext conftest.$ac_ext
43200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43202 if test `eval echo '${'$as_ac_var'}'` = yes; then
43203 cat >>confdefs.h <<_ACEOF
43204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43210 if test "${ice_have_shmat}" = yes; then
43211 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43212 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43213 if test "${ice_cv_have_shmat_decl+set}" = set; then
43214 echo $ECHO_N "(cached) $ECHO_C" >&6
43217 ice_cv_have_shmat_decl=no
43218 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43219 ice_re_word='(^|[^a-zA-Z0-9_])'
43220 for header in sys/types.h sys/ipc.h sys/shm.h; do
43221 # Check for ordinary declaration
43222 cat >conftest.$ac_ext <<_ACEOF
43225 cat confdefs.h >>conftest.$ac_ext
43226 cat >>conftest.$ac_ext <<_ACEOF
43227 /* end confdefs.h. */
43231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43232 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
43233 ice_cv_have_shmat_decl=yes
43237 if test "$ice_cv_have_shmat_decl" = yes; then
43240 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43241 cat >conftest.$ac_ext <<_ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h. */
43250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43251 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43252 ice_cv_have_shmat_decl=yes
43256 if test "$ice_cv_have_shmat_decl" = yes; then
43263 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
43264 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
43265 if test "$ice_cv_have_shmat_decl" = yes; then
43267 cat >>confdefs.h <<_ACEOF
43268 #define HAVE_SHMAT_DECL 1
43277 for ac_func in shmctl
43279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43280 echo "$as_me:$LINENO: checking for $ac_func" >&5
43281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43282 if eval "test \"\${$as_ac_var+set}\" = set"; then
43283 echo $ECHO_N "(cached) $ECHO_C" >&6
43285 cat >conftest.$ac_ext <<_ACEOF
43288 cat confdefs.h >>conftest.$ac_ext
43289 cat >>conftest.$ac_ext <<_ACEOF
43290 /* end confdefs.h. */
43291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43293 #define $ac_func innocuous_$ac_func
43295 /* System header to define __stub macros and hopefully few prototypes,
43296 which can conflict with char $ac_func (); below.
43297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43298 <limits.h> exists even on freestanding compilers. */
43301 # include <limits.h>
43303 # include <assert.h>
43308 /* Override any gcc2 internal prototype to avoid an error. */
43313 /* We use char because int might match the return type of a gcc2
43314 builtin and then its argument prototype would still apply. */
43316 /* The GNU C library defines this for functions which it implements
43317 to always fail with ENOSYS. Some functions are actually named
43318 something starting with __ and the normal name is an alias. */
43319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43322 char (*f) () = $ac_func;
43331 return f != $ac_func;
43336 rm -f conftest.$ac_objext conftest$ac_exeext
43337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43338 (eval $ac_link) 2>conftest.er1
43340 grep -v '^ *+' conftest.er1 >conftest.err
43342 cat conftest.err >&5
43343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344 (exit $ac_status); } &&
43345 { ac_try='test -z "$ac_c_werror_flag"
43346 || test ! -s conftest.err'
43347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43348 (eval $ac_try) 2>&5
43350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43351 (exit $ac_status); }; } &&
43352 { ac_try='test -s conftest$ac_exeext'
43353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43354 (eval $ac_try) 2>&5
43356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43357 (exit $ac_status); }; }; then
43358 eval "$as_ac_var=yes"
43360 echo "$as_me: failed program was:" >&5
43361 sed 's/^/| /' conftest.$ac_ext >&5
43363 eval "$as_ac_var=no"
43365 rm -f conftest.err conftest.$ac_objext \
43366 conftest$ac_exeext conftest.$ac_ext
43368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43370 if test `eval echo '${'$as_ac_var'}'` = yes; then
43371 cat >>confdefs.h <<_ACEOF
43372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43374 ice_have_shmctl=yes
43378 if test "${ice_have_shmctl}" = yes; then
43379 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43380 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43381 if test "${ice_cv_have_shmctl_decl+set}" = set; then
43382 echo $ECHO_N "(cached) $ECHO_C" >&6
43385 ice_cv_have_shmctl_decl=no
43386 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43387 ice_re_word='(^|[^a-zA-Z0-9_])'
43388 for header in sys/types.h sys/ipc.h sys/shm.h; do
43389 # Check for ordinary declaration
43390 cat >conftest.$ac_ext <<_ACEOF
43393 cat confdefs.h >>conftest.$ac_ext
43394 cat >>conftest.$ac_ext <<_ACEOF
43395 /* end confdefs.h. */
43399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43400 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
43401 ice_cv_have_shmctl_decl=yes
43405 if test "$ice_cv_have_shmctl_decl" = yes; then
43408 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43409 cat >conftest.$ac_ext <<_ACEOF
43412 cat confdefs.h >>conftest.$ac_ext
43413 cat >>conftest.$ac_ext <<_ACEOF
43414 /* end confdefs.h. */
43418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43419 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43420 ice_cv_have_shmctl_decl=yes
43424 if test "$ice_cv_have_shmctl_decl" = yes; then
43431 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
43432 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
43433 if test "$ice_cv_have_shmctl_decl" = yes; then
43435 cat >>confdefs.h <<_ACEOF
43436 #define HAVE_SHMCTL_DECL 1
43445 for ac_func in shmdt
43447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43448 echo "$as_me:$LINENO: checking for $ac_func" >&5
43449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43450 if eval "test \"\${$as_ac_var+set}\" = set"; then
43451 echo $ECHO_N "(cached) $ECHO_C" >&6
43453 cat >conftest.$ac_ext <<_ACEOF
43456 cat confdefs.h >>conftest.$ac_ext
43457 cat >>conftest.$ac_ext <<_ACEOF
43458 /* end confdefs.h. */
43459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43461 #define $ac_func innocuous_$ac_func
43463 /* System header to define __stub macros and hopefully few prototypes,
43464 which can conflict with char $ac_func (); below.
43465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43466 <limits.h> exists even on freestanding compilers. */
43469 # include <limits.h>
43471 # include <assert.h>
43476 /* Override any gcc2 internal prototype to avoid an error. */
43481 /* We use char because int might match the return type of a gcc2
43482 builtin and then its argument prototype would still apply. */
43484 /* The GNU C library defines this for functions which it implements
43485 to always fail with ENOSYS. Some functions are actually named
43486 something starting with __ and the normal name is an alias. */
43487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43490 char (*f) () = $ac_func;
43499 return f != $ac_func;
43504 rm -f conftest.$ac_objext conftest$ac_exeext
43505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43506 (eval $ac_link) 2>conftest.er1
43508 grep -v '^ *+' conftest.er1 >conftest.err
43510 cat conftest.err >&5
43511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43512 (exit $ac_status); } &&
43513 { ac_try='test -z "$ac_c_werror_flag"
43514 || test ! -s conftest.err'
43515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43516 (eval $ac_try) 2>&5
43518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519 (exit $ac_status); }; } &&
43520 { ac_try='test -s conftest$ac_exeext'
43521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43522 (eval $ac_try) 2>&5
43524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43525 (exit $ac_status); }; }; then
43526 eval "$as_ac_var=yes"
43528 echo "$as_me: failed program was:" >&5
43529 sed 's/^/| /' conftest.$ac_ext >&5
43531 eval "$as_ac_var=no"
43533 rm -f conftest.err conftest.$ac_objext \
43534 conftest$ac_exeext conftest.$ac_ext
43536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43538 if test `eval echo '${'$as_ac_var'}'` = yes; then
43539 cat >>confdefs.h <<_ACEOF
43540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43546 if test "${ice_have_shmdt}" = yes; then
43547 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43548 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43549 if test "${ice_cv_have_shmdt_decl+set}" = set; then
43550 echo $ECHO_N "(cached) $ECHO_C" >&6
43553 ice_cv_have_shmdt_decl=no
43554 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43555 ice_re_word='(^|[^a-zA-Z0-9_])'
43556 for header in sys/types.h sys/ipc.h sys/shm.h; do
43557 # Check for ordinary declaration
43558 cat >conftest.$ac_ext <<_ACEOF
43561 cat confdefs.h >>conftest.$ac_ext
43562 cat >>conftest.$ac_ext <<_ACEOF
43563 /* end confdefs.h. */
43567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43568 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
43569 ice_cv_have_shmdt_decl=yes
43573 if test "$ice_cv_have_shmdt_decl" = yes; then
43576 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43577 cat >conftest.$ac_ext <<_ACEOF
43580 cat confdefs.h >>conftest.$ac_ext
43581 cat >>conftest.$ac_ext <<_ACEOF
43582 /* end confdefs.h. */
43586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43587 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43588 ice_cv_have_shmdt_decl=yes
43592 if test "$ice_cv_have_shmdt_decl" = yes; then
43599 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
43600 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
43601 if test "$ice_cv_have_shmdt_decl" = yes; then
43603 cat >>confdefs.h <<_ACEOF
43604 #define HAVE_SHMDT_DECL 1
43613 for ac_func in shmget
43615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43616 echo "$as_me:$LINENO: checking for $ac_func" >&5
43617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43618 if eval "test \"\${$as_ac_var+set}\" = set"; then
43619 echo $ECHO_N "(cached) $ECHO_C" >&6
43621 cat >conftest.$ac_ext <<_ACEOF
43624 cat confdefs.h >>conftest.$ac_ext
43625 cat >>conftest.$ac_ext <<_ACEOF
43626 /* end confdefs.h. */
43627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43629 #define $ac_func innocuous_$ac_func
43631 /* System header to define __stub macros and hopefully few prototypes,
43632 which can conflict with char $ac_func (); below.
43633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43634 <limits.h> exists even on freestanding compilers. */
43637 # include <limits.h>
43639 # include <assert.h>
43644 /* Override any gcc2 internal prototype to avoid an error. */
43649 /* We use char because int might match the return type of a gcc2
43650 builtin and then its argument prototype would still apply. */
43652 /* The GNU C library defines this for functions which it implements
43653 to always fail with ENOSYS. Some functions are actually named
43654 something starting with __ and the normal name is an alias. */
43655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43658 char (*f) () = $ac_func;
43667 return f != $ac_func;
43672 rm -f conftest.$ac_objext conftest$ac_exeext
43673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43674 (eval $ac_link) 2>conftest.er1
43676 grep -v '^ *+' conftest.er1 >conftest.err
43678 cat conftest.err >&5
43679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680 (exit $ac_status); } &&
43681 { ac_try='test -z "$ac_c_werror_flag"
43682 || test ! -s conftest.err'
43683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684 (eval $ac_try) 2>&5
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); }; } &&
43688 { ac_try='test -s conftest$ac_exeext'
43689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43690 (eval $ac_try) 2>&5
43692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43693 (exit $ac_status); }; }; then
43694 eval "$as_ac_var=yes"
43696 echo "$as_me: failed program was:" >&5
43697 sed 's/^/| /' conftest.$ac_ext >&5
43699 eval "$as_ac_var=no"
43701 rm -f conftest.err conftest.$ac_objext \
43702 conftest$ac_exeext conftest.$ac_ext
43704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43706 if test `eval echo '${'$as_ac_var'}'` = yes; then
43707 cat >>confdefs.h <<_ACEOF
43708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43710 ice_have_shmget=yes
43714 if test "${ice_have_shmget}" = yes; then
43715 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43716 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43717 if test "${ice_cv_have_shmget_decl+set}" = set; then
43718 echo $ECHO_N "(cached) $ECHO_C" >&6
43721 ice_cv_have_shmget_decl=no
43722 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43723 ice_re_word='(^|[^a-zA-Z0-9_])'
43724 for header in sys/types.h sys/ipc.h sys/shm.h; do
43725 # Check for ordinary declaration
43726 cat >conftest.$ac_ext <<_ACEOF
43729 cat confdefs.h >>conftest.$ac_ext
43730 cat >>conftest.$ac_ext <<_ACEOF
43731 /* end confdefs.h. */
43735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43736 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
43737 ice_cv_have_shmget_decl=yes
43741 if test "$ice_cv_have_shmget_decl" = yes; then
43744 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43745 cat >conftest.$ac_ext <<_ACEOF
43748 cat confdefs.h >>conftest.$ac_ext
43749 cat >>conftest.$ac_ext <<_ACEOF
43750 /* end confdefs.h. */
43754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43755 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43756 ice_cv_have_shmget_decl=yes
43760 if test "$ice_cv_have_shmget_decl" = yes; then
43767 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
43768 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
43769 if test "$ice_cv_have_shmget_decl" = yes; then
43771 cat >>confdefs.h <<_ACEOF
43772 #define HAVE_SHMGET_DECL 1
43779 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
43780 case "$FORCE_MMAP" in
43782 if test "$ac_cv_func_shmget" != yes; then
43783 { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
43784 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
43785 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
43786 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
43787 NO_SERVER_MODE=true
43791 { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
43792 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
43793 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
43794 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
43795 NO_SERVER_MODE=true
43801 ice_have_shquote=no
43803 for ac_func in shquote
43805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43806 echo "$as_me:$LINENO: checking for $ac_func" >&5
43807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43808 if eval "test \"\${$as_ac_var+set}\" = set"; then
43809 echo $ECHO_N "(cached) $ECHO_C" >&6
43811 cat >conftest.$ac_ext <<_ACEOF
43814 cat confdefs.h >>conftest.$ac_ext
43815 cat >>conftest.$ac_ext <<_ACEOF
43816 /* end confdefs.h. */
43817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43819 #define $ac_func innocuous_$ac_func
43821 /* System header to define __stub macros and hopefully few prototypes,
43822 which can conflict with char $ac_func (); below.
43823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43824 <limits.h> exists even on freestanding compilers. */
43827 # include <limits.h>
43829 # include <assert.h>
43834 /* Override any gcc2 internal prototype to avoid an error. */
43839 /* We use char because int might match the return type of a gcc2
43840 builtin and then its argument prototype would still apply. */
43842 /* The GNU C library defines this for functions which it implements
43843 to always fail with ENOSYS. Some functions are actually named
43844 something starting with __ and the normal name is an alias. */
43845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43848 char (*f) () = $ac_func;
43857 return f != $ac_func;
43862 rm -f conftest.$ac_objext conftest$ac_exeext
43863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43864 (eval $ac_link) 2>conftest.er1
43866 grep -v '^ *+' conftest.er1 >conftest.err
43868 cat conftest.err >&5
43869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870 (exit $ac_status); } &&
43871 { ac_try='test -z "$ac_c_werror_flag"
43872 || test ! -s conftest.err'
43873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43874 (eval $ac_try) 2>&5
43876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877 (exit $ac_status); }; } &&
43878 { ac_try='test -s conftest$ac_exeext'
43879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43880 (eval $ac_try) 2>&5
43882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43883 (exit $ac_status); }; }; then
43884 eval "$as_ac_var=yes"
43886 echo "$as_me: failed program was:" >&5
43887 sed 's/^/| /' conftest.$ac_ext >&5
43889 eval "$as_ac_var=no"
43891 rm -f conftest.err conftest.$ac_objext \
43892 conftest$ac_exeext conftest.$ac_ext
43894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43896 if test `eval echo '${'$as_ac_var'}'` = yes; then
43897 cat >>confdefs.h <<_ACEOF
43898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43900 ice_have_shquote=yes
43904 if test "${ice_have_shquote}" = yes; then
43905 echo "$as_me:$LINENO: checking for shquote declaration in stdlib.h" >&5
43906 echo $ECHO_N "checking for shquote declaration in stdlib.h... $ECHO_C" >&6
43907 if test "${ice_cv_have_shquote_decl+set}" = set; then
43908 echo $ECHO_N "(cached) $ECHO_C" >&6
43911 ice_cv_have_shquote_decl=no
43912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43913 ice_re_word='(^|[^a-zA-Z0-9_])'
43914 for header in stdlib.h; do
43915 # Check for ordinary declaration
43916 cat >conftest.$ac_ext <<_ACEOF
43919 cat confdefs.h >>conftest.$ac_ext
43920 cat >>conftest.$ac_ext <<_ACEOF
43921 /* end confdefs.h. */
43925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43926 $EGREP "${ice_re_word}shquote[ ]*\(" >/dev/null 2>&1; then
43927 ice_cv_have_shquote_decl=yes
43931 if test "$ice_cv_have_shquote_decl" = yes; then
43934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43935 cat >conftest.$ac_ext <<_ACEOF
43938 cat confdefs.h >>conftest.$ac_ext
43939 cat >>conftest.$ac_ext <<_ACEOF
43940 /* end confdefs.h. */
43944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43945 $EGREP "${ice_re_word}shquote[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43946 ice_cv_have_shquote_decl=yes
43950 if test "$ice_cv_have_shquote_decl" = yes; then
43957 echo "$as_me:$LINENO: result: $ice_cv_have_shquote_decl" >&5
43958 echo "${ECHO_T}$ice_cv_have_shquote_decl" >&6
43959 if test "$ice_cv_have_shquote_decl" = yes; then
43961 cat >>confdefs.h <<_ACEOF
43962 #define HAVE_SHQUOTE_DECL 1
43970 ice_have_snprintf=no
43972 for ac_func in snprintf
43974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43975 echo "$as_me:$LINENO: checking for $ac_func" >&5
43976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43977 if eval "test \"\${$as_ac_var+set}\" = set"; then
43978 echo $ECHO_N "(cached) $ECHO_C" >&6
43980 cat >conftest.$ac_ext <<_ACEOF
43983 cat confdefs.h >>conftest.$ac_ext
43984 cat >>conftest.$ac_ext <<_ACEOF
43985 /* end confdefs.h. */
43986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43988 #define $ac_func innocuous_$ac_func
43990 /* System header to define __stub macros and hopefully few prototypes,
43991 which can conflict with char $ac_func (); below.
43992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43993 <limits.h> exists even on freestanding compilers. */
43996 # include <limits.h>
43998 # include <assert.h>
44003 /* Override any gcc2 internal prototype to avoid an error. */
44008 /* We use char because int might match the return type of a gcc2
44009 builtin and then its argument prototype would still apply. */
44011 /* The GNU C library defines this for functions which it implements
44012 to always fail with ENOSYS. Some functions are actually named
44013 something starting with __ and the normal name is an alias. */
44014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44017 char (*f) () = $ac_func;
44026 return f != $ac_func;
44031 rm -f conftest.$ac_objext conftest$ac_exeext
44032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44033 (eval $ac_link) 2>conftest.er1
44035 grep -v '^ *+' conftest.er1 >conftest.err
44037 cat conftest.err >&5
44038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039 (exit $ac_status); } &&
44040 { ac_try='test -z "$ac_c_werror_flag"
44041 || test ! -s conftest.err'
44042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043 (eval $ac_try) 2>&5
44045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046 (exit $ac_status); }; } &&
44047 { ac_try='test -s conftest$ac_exeext'
44048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049 (eval $ac_try) 2>&5
44051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052 (exit $ac_status); }; }; then
44053 eval "$as_ac_var=yes"
44055 echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44058 eval "$as_ac_var=no"
44060 rm -f conftest.err conftest.$ac_objext \
44061 conftest$ac_exeext conftest.$ac_ext
44063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44065 if test `eval echo '${'$as_ac_var'}'` = yes; then
44066 cat >>confdefs.h <<_ACEOF
44067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44069 ice_have_snprintf=yes
44073 if test "${ice_have_snprintf}" = yes; then
44074 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
44075 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
44076 if test "${ice_cv_have_snprintf_decl+set}" = set; then
44077 echo $ECHO_N "(cached) $ECHO_C" >&6
44080 ice_cv_have_snprintf_decl=no
44081 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44082 ice_re_word='(^|[^a-zA-Z0-9_])'
44083 for header in stdio.h; do
44084 # Check for ordinary declaration
44085 cat >conftest.$ac_ext <<_ACEOF
44088 cat confdefs.h >>conftest.$ac_ext
44089 cat >>conftest.$ac_ext <<_ACEOF
44090 /* end confdefs.h. */
44094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44095 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
44096 ice_cv_have_snprintf_decl=yes
44100 if test "$ice_cv_have_snprintf_decl" = yes; then
44103 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44104 cat >conftest.$ac_ext <<_ACEOF
44107 cat confdefs.h >>conftest.$ac_ext
44108 cat >>conftest.$ac_ext <<_ACEOF
44109 /* end confdefs.h. */
44113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44114 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44115 ice_cv_have_snprintf_decl=yes
44119 if test "$ice_cv_have_snprintf_decl" = yes; then
44126 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
44127 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
44128 if test "$ice_cv_have_snprintf_decl" = yes; then
44130 cat >>confdefs.h <<_ACEOF
44131 #define HAVE_SNPRINTF_DECL 1
44138 ice_have_vsnprintf=no
44140 for ac_func in vsnprintf
44142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44143 echo "$as_me:$LINENO: checking for $ac_func" >&5
44144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44145 if eval "test \"\${$as_ac_var+set}\" = set"; then
44146 echo $ECHO_N "(cached) $ECHO_C" >&6
44148 cat >conftest.$ac_ext <<_ACEOF
44151 cat confdefs.h >>conftest.$ac_ext
44152 cat >>conftest.$ac_ext <<_ACEOF
44153 /* end confdefs.h. */
44154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44156 #define $ac_func innocuous_$ac_func
44158 /* System header to define __stub macros and hopefully few prototypes,
44159 which can conflict with char $ac_func (); below.
44160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44161 <limits.h> exists even on freestanding compilers. */
44164 # include <limits.h>
44166 # include <assert.h>
44171 /* Override any gcc2 internal prototype to avoid an error. */
44176 /* We use char because int might match the return type of a gcc2
44177 builtin and then its argument prototype would still apply. */
44179 /* The GNU C library defines this for functions which it implements
44180 to always fail with ENOSYS. Some functions are actually named
44181 something starting with __ and the normal name is an alias. */
44182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44185 char (*f) () = $ac_func;
44194 return f != $ac_func;
44199 rm -f conftest.$ac_objext conftest$ac_exeext
44200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44201 (eval $ac_link) 2>conftest.er1
44203 grep -v '^ *+' conftest.er1 >conftest.err
44205 cat conftest.err >&5
44206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44207 (exit $ac_status); } &&
44208 { ac_try='test -z "$ac_c_werror_flag"
44209 || test ! -s conftest.err'
44210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44211 (eval $ac_try) 2>&5
44213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44214 (exit $ac_status); }; } &&
44215 { ac_try='test -s conftest$ac_exeext'
44216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44217 (eval $ac_try) 2>&5
44219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44220 (exit $ac_status); }; }; then
44221 eval "$as_ac_var=yes"
44223 echo "$as_me: failed program was:" >&5
44224 sed 's/^/| /' conftest.$ac_ext >&5
44226 eval "$as_ac_var=no"
44228 rm -f conftest.err conftest.$ac_objext \
44229 conftest$ac_exeext conftest.$ac_ext
44231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44233 if test `eval echo '${'$as_ac_var'}'` = yes; then
44234 cat >>confdefs.h <<_ACEOF
44235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44237 ice_have_vsnprintf=yes
44241 if test "${ice_have_vsnprintf}" = yes; then
44242 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
44243 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
44244 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
44245 echo $ECHO_N "(cached) $ECHO_C" >&6
44248 ice_cv_have_vsnprintf_decl=no
44249 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44250 ice_re_word='(^|[^a-zA-Z0-9_])'
44251 for header in stdio.h; do
44252 # Check for ordinary declaration
44253 cat >conftest.$ac_ext <<_ACEOF
44256 cat confdefs.h >>conftest.$ac_ext
44257 cat >>conftest.$ac_ext <<_ACEOF
44258 /* end confdefs.h. */
44262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44263 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
44264 ice_cv_have_vsnprintf_decl=yes
44268 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44271 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44272 cat >conftest.$ac_ext <<_ACEOF
44275 cat confdefs.h >>conftest.$ac_ext
44276 cat >>conftest.$ac_ext <<_ACEOF
44277 /* end confdefs.h. */
44281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44282 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44283 ice_cv_have_vsnprintf_decl=yes
44287 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44294 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
44295 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
44296 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44298 cat >>confdefs.h <<_ACEOF
44299 #define HAVE_VSNPRINTF_DECL 1
44305 if test x"$ice_have_snprintf" != x"yes" ||
44306 test x"$ice_have_vsnprintf" != x"yes"; then
44308 "snprintf.$ac_objext" | \
44309 *" snprintf.$ac_objext" | \
44310 "snprintf.$ac_objext "* | \
44311 *" snprintf.$ac_objext "* ) ;;
44312 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
44317 for ac_func in snprintf
44319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44320 echo "$as_me:$LINENO: checking for $ac_func" >&5
44321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44322 if eval "test \"\${$as_ac_var+set}\" = set"; then
44323 echo $ECHO_N "(cached) $ECHO_C" >&6
44325 cat >conftest.$ac_ext <<_ACEOF
44328 cat confdefs.h >>conftest.$ac_ext
44329 cat >>conftest.$ac_ext <<_ACEOF
44330 /* end confdefs.h. */
44331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44333 #define $ac_func innocuous_$ac_func
44335 /* System header to define __stub macros and hopefully few prototypes,
44336 which can conflict with char $ac_func (); below.
44337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44338 <limits.h> exists even on freestanding compilers. */
44341 # include <limits.h>
44343 # include <assert.h>
44348 /* Override any gcc2 internal prototype to avoid an error. */
44353 /* We use char because int might match the return type of a gcc2
44354 builtin and then its argument prototype would still apply. */
44356 /* The GNU C library defines this for functions which it implements
44357 to always fail with ENOSYS. Some functions are actually named
44358 something starting with __ and the normal name is an alias. */
44359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44362 char (*f) () = $ac_func;
44371 return f != $ac_func;
44376 rm -f conftest.$ac_objext conftest$ac_exeext
44377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44378 (eval $ac_link) 2>conftest.er1
44380 grep -v '^ *+' conftest.er1 >conftest.err
44382 cat conftest.err >&5
44383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384 (exit $ac_status); } &&
44385 { ac_try='test -z "$ac_c_werror_flag"
44386 || test ! -s conftest.err'
44387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44388 (eval $ac_try) 2>&5
44390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391 (exit $ac_status); }; } &&
44392 { ac_try='test -s conftest$ac_exeext'
44393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44394 (eval $ac_try) 2>&5
44396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44397 (exit $ac_status); }; }; then
44398 eval "$as_ac_var=yes"
44400 echo "$as_me: failed program was:" >&5
44401 sed 's/^/| /' conftest.$ac_ext >&5
44403 eval "$as_ac_var=no"
44405 rm -f conftest.err conftest.$ac_objext \
44406 conftest$ac_exeext conftest.$ac_ext
44408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44410 if test `eval echo '${'$as_ac_var'}'` = yes; then
44411 cat >>confdefs.h <<_ACEOF
44412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44417 "$ac_func.$ac_objext" | \
44418 *" $ac_func.$ac_objext" | \
44419 "$ac_func.$ac_objext "* | \
44420 *" $ac_func.$ac_objext "* ) ;;
44421 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44434 for ac_func in sigaction sigemptyset sigvec
44436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44437 echo "$as_me:$LINENO: checking for $ac_func" >&5
44438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44439 if eval "test \"\${$as_ac_var+set}\" = set"; then
44440 echo $ECHO_N "(cached) $ECHO_C" >&6
44442 cat >conftest.$ac_ext <<_ACEOF
44445 cat confdefs.h >>conftest.$ac_ext
44446 cat >>conftest.$ac_ext <<_ACEOF
44447 /* end confdefs.h. */
44448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44450 #define $ac_func innocuous_$ac_func
44452 /* System header to define __stub macros and hopefully few prototypes,
44453 which can conflict with char $ac_func (); below.
44454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44455 <limits.h> exists even on freestanding compilers. */
44458 # include <limits.h>
44460 # include <assert.h>
44465 /* Override any gcc2 internal prototype to avoid an error. */
44470 /* We use char because int might match the return type of a gcc2
44471 builtin and then its argument prototype would still apply. */
44473 /* The GNU C library defines this for functions which it implements
44474 to always fail with ENOSYS. Some functions are actually named
44475 something starting with __ and the normal name is an alias. */
44476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44479 char (*f) () = $ac_func;
44488 return f != $ac_func;
44493 rm -f conftest.$ac_objext conftest$ac_exeext
44494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44495 (eval $ac_link) 2>conftest.er1
44497 grep -v '^ *+' conftest.er1 >conftest.err
44499 cat conftest.err >&5
44500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44501 (exit $ac_status); } &&
44502 { ac_try='test -z "$ac_c_werror_flag"
44503 || test ! -s conftest.err'
44504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44505 (eval $ac_try) 2>&5
44507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508 (exit $ac_status); }; } &&
44509 { ac_try='test -s conftest$ac_exeext'
44510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44511 (eval $ac_try) 2>&5
44513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514 (exit $ac_status); }; }; then
44515 eval "$as_ac_var=yes"
44517 echo "$as_me: failed program was:" >&5
44518 sed 's/^/| /' conftest.$ac_ext >&5
44520 eval "$as_ac_var=no"
44522 rm -f conftest.err conftest.$ac_objext \
44523 conftest$ac_exeext conftest.$ac_ext
44525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44527 if test `eval echo '${'$as_ac_var'}'` = yes; then
44528 cat >>confdefs.h <<_ACEOF
44529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44538 for ac_func in socket
44540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44541 echo "$as_me:$LINENO: checking for $ac_func" >&5
44542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44543 if eval "test \"\${$as_ac_var+set}\" = set"; then
44544 echo $ECHO_N "(cached) $ECHO_C" >&6
44546 cat >conftest.$ac_ext <<_ACEOF
44549 cat confdefs.h >>conftest.$ac_ext
44550 cat >>conftest.$ac_ext <<_ACEOF
44551 /* end confdefs.h. */
44552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44554 #define $ac_func innocuous_$ac_func
44556 /* System header to define __stub macros and hopefully few prototypes,
44557 which can conflict with char $ac_func (); below.
44558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44559 <limits.h> exists even on freestanding compilers. */
44562 # include <limits.h>
44564 # include <assert.h>
44569 /* Override any gcc2 internal prototype to avoid an error. */
44574 /* We use char because int might match the return type of a gcc2
44575 builtin and then its argument prototype would still apply. */
44577 /* The GNU C library defines this for functions which it implements
44578 to always fail with ENOSYS. Some functions are actually named
44579 something starting with __ and the normal name is an alias. */
44580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44583 char (*f) () = $ac_func;
44592 return f != $ac_func;
44597 rm -f conftest.$ac_objext conftest$ac_exeext
44598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44599 (eval $ac_link) 2>conftest.er1
44601 grep -v '^ *+' conftest.er1 >conftest.err
44603 cat conftest.err >&5
44604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605 (exit $ac_status); } &&
44606 { ac_try='test -z "$ac_c_werror_flag"
44607 || test ! -s conftest.err'
44608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44609 (eval $ac_try) 2>&5
44611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44612 (exit $ac_status); }; } &&
44613 { ac_try='test -s conftest$ac_exeext'
44614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44615 (eval $ac_try) 2>&5
44617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44618 (exit $ac_status); }; }; then
44619 eval "$as_ac_var=yes"
44621 echo "$as_me: failed program was:" >&5
44622 sed 's/^/| /' conftest.$ac_ext >&5
44624 eval "$as_ac_var=no"
44626 rm -f conftest.err conftest.$ac_objext \
44627 conftest$ac_exeext conftest.$ac_ext
44629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44631 if test `eval echo '${'$as_ac_var'}'` = yes; then
44632 cat >>confdefs.h <<_ACEOF
44633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44635 ice_have_socket=yes
44639 if test "${ice_have_socket}" = yes; then
44640 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
44641 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44642 if test "${ice_cv_have_socket_decl+set}" = set; then
44643 echo $ECHO_N "(cached) $ECHO_C" >&6
44646 ice_cv_have_socket_decl=no
44647 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44648 ice_re_word='(^|[^a-zA-Z0-9_])'
44649 for header in sys/types.h sys/socket.h; do
44650 # Check for ordinary declaration
44651 cat >conftest.$ac_ext <<_ACEOF
44654 cat confdefs.h >>conftest.$ac_ext
44655 cat >>conftest.$ac_ext <<_ACEOF
44656 /* end confdefs.h. */
44660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44661 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
44662 ice_cv_have_socket_decl=yes
44666 if test "$ice_cv_have_socket_decl" = yes; then
44669 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44670 cat >conftest.$ac_ext <<_ACEOF
44673 cat confdefs.h >>conftest.$ac_ext
44674 cat >>conftest.$ac_ext <<_ACEOF
44675 /* end confdefs.h. */
44679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44680 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44681 ice_cv_have_socket_decl=yes
44685 if test "$ice_cv_have_socket_decl" = yes; then
44692 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
44693 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
44694 if test "$ice_cv_have_socket_decl" = yes; then
44696 cat >>confdefs.h <<_ACEOF
44697 #define HAVE_SOCKET_DECL 1
44704 ice_have_socketpair=no
44706 for ac_func in socketpair
44708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44709 echo "$as_me:$LINENO: checking for $ac_func" >&5
44710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44711 if eval "test \"\${$as_ac_var+set}\" = set"; then
44712 echo $ECHO_N "(cached) $ECHO_C" >&6
44714 cat >conftest.$ac_ext <<_ACEOF
44717 cat confdefs.h >>conftest.$ac_ext
44718 cat >>conftest.$ac_ext <<_ACEOF
44719 /* end confdefs.h. */
44720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44722 #define $ac_func innocuous_$ac_func
44724 /* System header to define __stub macros and hopefully few prototypes,
44725 which can conflict with char $ac_func (); below.
44726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44727 <limits.h> exists even on freestanding compilers. */
44730 # include <limits.h>
44732 # include <assert.h>
44737 /* Override any gcc2 internal prototype to avoid an error. */
44742 /* We use char because int might match the return type of a gcc2
44743 builtin and then its argument prototype would still apply. */
44745 /* The GNU C library defines this for functions which it implements
44746 to always fail with ENOSYS. Some functions are actually named
44747 something starting with __ and the normal name is an alias. */
44748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44751 char (*f) () = $ac_func;
44760 return f != $ac_func;
44765 rm -f conftest.$ac_objext conftest$ac_exeext
44766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44767 (eval $ac_link) 2>conftest.er1
44769 grep -v '^ *+' conftest.er1 >conftest.err
44771 cat conftest.err >&5
44772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44773 (exit $ac_status); } &&
44774 { ac_try='test -z "$ac_c_werror_flag"
44775 || test ! -s conftest.err'
44776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44777 (eval $ac_try) 2>&5
44779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44780 (exit $ac_status); }; } &&
44781 { ac_try='test -s conftest$ac_exeext'
44782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44783 (eval $ac_try) 2>&5
44785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44786 (exit $ac_status); }; }; then
44787 eval "$as_ac_var=yes"
44789 echo "$as_me: failed program was:" >&5
44790 sed 's/^/| /' conftest.$ac_ext >&5
44792 eval "$as_ac_var=no"
44794 rm -f conftest.err conftest.$ac_objext \
44795 conftest$ac_exeext conftest.$ac_ext
44797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44799 if test `eval echo '${'$as_ac_var'}'` = yes; then
44800 cat >>confdefs.h <<_ACEOF
44801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44803 ice_have_socketpair=yes
44807 if test "${ice_have_socketpair}" = yes; then
44808 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
44809 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44810 if test "${ice_cv_have_socketpair_decl+set}" = set; then
44811 echo $ECHO_N "(cached) $ECHO_C" >&6
44814 ice_cv_have_socketpair_decl=no
44815 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44816 ice_re_word='(^|[^a-zA-Z0-9_])'
44817 for header in sys/types.h sys/socket.h; do
44818 # Check for ordinary declaration
44819 cat >conftest.$ac_ext <<_ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h. */
44828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44829 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
44830 ice_cv_have_socketpair_decl=yes
44834 if test "$ice_cv_have_socketpair_decl" = yes; then
44837 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44838 cat >conftest.$ac_ext <<_ACEOF
44841 cat confdefs.h >>conftest.$ac_ext
44842 cat >>conftest.$ac_ext <<_ACEOF
44843 /* end confdefs.h. */
44847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44848 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44849 ice_cv_have_socketpair_decl=yes
44853 if test "$ice_cv_have_socketpair_decl" = yes; then
44860 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
44861 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
44862 if test "$ice_cv_have_socketpair_decl" = yes; then
44864 cat >>confdefs.h <<_ACEOF
44865 #define HAVE_SOCKETPAIR_DECL 1
44874 for ac_func in sscanf
44876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44877 echo "$as_me:$LINENO: checking for $ac_func" >&5
44878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44879 if eval "test \"\${$as_ac_var+set}\" = set"; then
44880 echo $ECHO_N "(cached) $ECHO_C" >&6
44882 cat >conftest.$ac_ext <<_ACEOF
44885 cat confdefs.h >>conftest.$ac_ext
44886 cat >>conftest.$ac_ext <<_ACEOF
44887 /* end confdefs.h. */
44888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44890 #define $ac_func innocuous_$ac_func
44892 /* System header to define __stub macros and hopefully few prototypes,
44893 which can conflict with char $ac_func (); below.
44894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44895 <limits.h> exists even on freestanding compilers. */
44898 # include <limits.h>
44900 # include <assert.h>
44905 /* Override any gcc2 internal prototype to avoid an error. */
44910 /* We use char because int might match the return type of a gcc2
44911 builtin and then its argument prototype would still apply. */
44913 /* The GNU C library defines this for functions which it implements
44914 to always fail with ENOSYS. Some functions are actually named
44915 something starting with __ and the normal name is an alias. */
44916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44919 char (*f) () = $ac_func;
44928 return f != $ac_func;
44933 rm -f conftest.$ac_objext conftest$ac_exeext
44934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44935 (eval $ac_link) 2>conftest.er1
44937 grep -v '^ *+' conftest.er1 >conftest.err
44939 cat conftest.err >&5
44940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44941 (exit $ac_status); } &&
44942 { ac_try='test -z "$ac_c_werror_flag"
44943 || test ! -s conftest.err'
44944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44945 (eval $ac_try) 2>&5
44947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44948 (exit $ac_status); }; } &&
44949 { ac_try='test -s conftest$ac_exeext'
44950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44951 (eval $ac_try) 2>&5
44953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954 (exit $ac_status); }; }; then
44955 eval "$as_ac_var=yes"
44957 echo "$as_me: failed program was:" >&5
44958 sed 's/^/| /' conftest.$ac_ext >&5
44960 eval "$as_ac_var=no"
44962 rm -f conftest.err conftest.$ac_objext \
44963 conftest$ac_exeext conftest.$ac_ext
44965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44967 if test `eval echo '${'$as_ac_var'}'` = yes; then
44968 cat >>confdefs.h <<_ACEOF
44969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44971 ice_have_sscanf=yes
44975 if test "${ice_have_sscanf}" = yes; then
44976 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
44977 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
44978 if test "${ice_cv_have_sscanf_decl+set}" = set; then
44979 echo $ECHO_N "(cached) $ECHO_C" >&6
44982 ice_cv_have_sscanf_decl=no
44983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44984 ice_re_word='(^|[^a-zA-Z0-9_])'
44985 for header in stdio.h; do
44986 # Check for ordinary declaration
44987 cat >conftest.$ac_ext <<_ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h. */
44996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44997 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
44998 ice_cv_have_sscanf_decl=yes
45002 if test "$ice_cv_have_sscanf_decl" = yes; then
45005 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45006 cat >conftest.$ac_ext <<_ACEOF
45009 cat confdefs.h >>conftest.$ac_ext
45010 cat >>conftest.$ac_ext <<_ACEOF
45011 /* end confdefs.h. */
45015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45016 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45017 ice_cv_have_sscanf_decl=yes
45021 if test "$ice_cv_have_sscanf_decl" = yes; then
45028 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
45029 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
45030 if test "$ice_cv_have_sscanf_decl" = yes; then
45032 cat >>confdefs.h <<_ACEOF
45033 #define HAVE_SSCANF_DECL 1
45041 for ac_func in statfs statvfs
45043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45044 echo "$as_me:$LINENO: checking for $ac_func" >&5
45045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45046 if eval "test \"\${$as_ac_var+set}\" = set"; then
45047 echo $ECHO_N "(cached) $ECHO_C" >&6
45049 cat >conftest.$ac_ext <<_ACEOF
45052 cat confdefs.h >>conftest.$ac_ext
45053 cat >>conftest.$ac_ext <<_ACEOF
45054 /* end confdefs.h. */
45055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45057 #define $ac_func innocuous_$ac_func
45059 /* System header to define __stub macros and hopefully few prototypes,
45060 which can conflict with char $ac_func (); below.
45061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45062 <limits.h> exists even on freestanding compilers. */
45065 # include <limits.h>
45067 # include <assert.h>
45072 /* Override any gcc2 internal prototype to avoid an error. */
45077 /* We use char because int might match the return type of a gcc2
45078 builtin and then its argument prototype would still apply. */
45080 /* The GNU C library defines this for functions which it implements
45081 to always fail with ENOSYS. Some functions are actually named
45082 something starting with __ and the normal name is an alias. */
45083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45086 char (*f) () = $ac_func;
45095 return f != $ac_func;
45100 rm -f conftest.$ac_objext conftest$ac_exeext
45101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45102 (eval $ac_link) 2>conftest.er1
45104 grep -v '^ *+' conftest.er1 >conftest.err
45106 cat conftest.err >&5
45107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45108 (exit $ac_status); } &&
45109 { ac_try='test -z "$ac_c_werror_flag"
45110 || test ! -s conftest.err'
45111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45112 (eval $ac_try) 2>&5
45114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45115 (exit $ac_status); }; } &&
45116 { ac_try='test -s conftest$ac_exeext'
45117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45118 (eval $ac_try) 2>&5
45120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45121 (exit $ac_status); }; }; then
45122 eval "$as_ac_var=yes"
45124 echo "$as_me: failed program was:" >&5
45125 sed 's/^/| /' conftest.$ac_ext >&5
45127 eval "$as_ac_var=no"
45129 rm -f conftest.err conftest.$ac_objext \
45130 conftest$ac_exeext conftest.$ac_ext
45132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45134 if test `eval echo '${'$as_ac_var'}'` = yes; then
45135 cat >>confdefs.h <<_ACEOF
45136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45143 for ac_func in strerror
45145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45146 echo "$as_me:$LINENO: checking for $ac_func" >&5
45147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45148 if eval "test \"\${$as_ac_var+set}\" = set"; then
45149 echo $ECHO_N "(cached) $ECHO_C" >&6
45151 cat >conftest.$ac_ext <<_ACEOF
45154 cat confdefs.h >>conftest.$ac_ext
45155 cat >>conftest.$ac_ext <<_ACEOF
45156 /* end confdefs.h. */
45157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45159 #define $ac_func innocuous_$ac_func
45161 /* System header to define __stub macros and hopefully few prototypes,
45162 which can conflict with char $ac_func (); below.
45163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45164 <limits.h> exists even on freestanding compilers. */
45167 # include <limits.h>
45169 # include <assert.h>
45174 /* Override any gcc2 internal prototype to avoid an error. */
45179 /* We use char because int might match the return type of a gcc2
45180 builtin and then its argument prototype would still apply. */
45182 /* The GNU C library defines this for functions which it implements
45183 to always fail with ENOSYS. Some functions are actually named
45184 something starting with __ and the normal name is an alias. */
45185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45188 char (*f) () = $ac_func;
45197 return f != $ac_func;
45202 rm -f conftest.$ac_objext conftest$ac_exeext
45203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45204 (eval $ac_link) 2>conftest.er1
45206 grep -v '^ *+' conftest.er1 >conftest.err
45208 cat conftest.err >&5
45209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45210 (exit $ac_status); } &&
45211 { ac_try='test -z "$ac_c_werror_flag"
45212 || test ! -s conftest.err'
45213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45214 (eval $ac_try) 2>&5
45216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45217 (exit $ac_status); }; } &&
45218 { ac_try='test -s conftest$ac_exeext'
45219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45220 (eval $ac_try) 2>&5
45222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45223 (exit $ac_status); }; }; then
45224 eval "$as_ac_var=yes"
45226 echo "$as_me: failed program was:" >&5
45227 sed 's/^/| /' conftest.$ac_ext >&5
45229 eval "$as_ac_var=no"
45231 rm -f conftest.err conftest.$ac_objext \
45232 conftest$ac_exeext conftest.$ac_ext
45234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45236 if test `eval echo '${'$as_ac_var'}'` = yes; then
45237 cat >>confdefs.h <<_ACEOF
45238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45243 "$ac_func.$ac_objext" | \
45244 *" $ac_func.$ac_objext" | \
45245 "$ac_func.$ac_objext "* | \
45246 *" $ac_func.$ac_objext "* ) ;;
45247 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45255 ice_have_strerror=no
45257 for ac_func in strerror
45259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45260 echo "$as_me:$LINENO: checking for $ac_func" >&5
45261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45262 if eval "test \"\${$as_ac_var+set}\" = set"; then
45263 echo $ECHO_N "(cached) $ECHO_C" >&6
45265 cat >conftest.$ac_ext <<_ACEOF
45268 cat confdefs.h >>conftest.$ac_ext
45269 cat >>conftest.$ac_ext <<_ACEOF
45270 /* end confdefs.h. */
45271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45273 #define $ac_func innocuous_$ac_func
45275 /* System header to define __stub macros and hopefully few prototypes,
45276 which can conflict with char $ac_func (); below.
45277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45278 <limits.h> exists even on freestanding compilers. */
45281 # include <limits.h>
45283 # include <assert.h>
45288 /* Override any gcc2 internal prototype to avoid an error. */
45293 /* We use char because int might match the return type of a gcc2
45294 builtin and then its argument prototype would still apply. */
45296 /* The GNU C library defines this for functions which it implements
45297 to always fail with ENOSYS. Some functions are actually named
45298 something starting with __ and the normal name is an alias. */
45299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45302 char (*f) () = $ac_func;
45311 return f != $ac_func;
45316 rm -f conftest.$ac_objext conftest$ac_exeext
45317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45318 (eval $ac_link) 2>conftest.er1
45320 grep -v '^ *+' conftest.er1 >conftest.err
45322 cat conftest.err >&5
45323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45324 (exit $ac_status); } &&
45325 { ac_try='test -z "$ac_c_werror_flag"
45326 || test ! -s conftest.err'
45327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45328 (eval $ac_try) 2>&5
45330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45331 (exit $ac_status); }; } &&
45332 { ac_try='test -s conftest$ac_exeext'
45333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45334 (eval $ac_try) 2>&5
45336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45337 (exit $ac_status); }; }; then
45338 eval "$as_ac_var=yes"
45340 echo "$as_me: failed program was:" >&5
45341 sed 's/^/| /' conftest.$ac_ext >&5
45343 eval "$as_ac_var=no"
45345 rm -f conftest.err conftest.$ac_objext \
45346 conftest$ac_exeext conftest.$ac_ext
45348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45350 if test `eval echo '${'$as_ac_var'}'` = yes; then
45351 cat >>confdefs.h <<_ACEOF
45352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45354 ice_have_strerror=yes
45358 if test "${ice_have_strerror}" = yes; then
45359 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
45360 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
45361 if test "${ice_cv_have_strerror_decl+set}" = set; then
45362 echo $ECHO_N "(cached) $ECHO_C" >&6
45365 ice_cv_have_strerror_decl=no
45366 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45367 ice_re_word='(^|[^a-zA-Z0-9_])'
45368 for header in string.h strings.h; do
45369 # Check for ordinary declaration
45370 cat >conftest.$ac_ext <<_ACEOF
45373 cat confdefs.h >>conftest.$ac_ext
45374 cat >>conftest.$ac_ext <<_ACEOF
45375 /* end confdefs.h. */
45379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45380 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
45381 ice_cv_have_strerror_decl=yes
45385 if test "$ice_cv_have_strerror_decl" = yes; then
45388 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45389 cat >conftest.$ac_ext <<_ACEOF
45392 cat confdefs.h >>conftest.$ac_ext
45393 cat >>conftest.$ac_ext <<_ACEOF
45394 /* end confdefs.h. */
45398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45399 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45400 ice_cv_have_strerror_decl=yes
45404 if test "$ice_cv_have_strerror_decl" = yes; then
45411 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
45412 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
45413 if test "$ice_cv_have_strerror_decl" = yes; then
45415 cat >>confdefs.h <<_ACEOF
45416 #define HAVE_STRERROR_DECL 1
45423 for ac_func in strftime
45425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45426 echo "$as_me:$LINENO: checking for $ac_func" >&5
45427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45428 if eval "test \"\${$as_ac_var+set}\" = set"; then
45429 echo $ECHO_N "(cached) $ECHO_C" >&6
45431 cat >conftest.$ac_ext <<_ACEOF
45434 cat confdefs.h >>conftest.$ac_ext
45435 cat >>conftest.$ac_ext <<_ACEOF
45436 /* end confdefs.h. */
45437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45439 #define $ac_func innocuous_$ac_func
45441 /* System header to define __stub macros and hopefully few prototypes,
45442 which can conflict with char $ac_func (); below.
45443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45444 <limits.h> exists even on freestanding compilers. */
45447 # include <limits.h>
45449 # include <assert.h>
45454 /* Override any gcc2 internal prototype to avoid an error. */
45459 /* We use char because int might match the return type of a gcc2
45460 builtin and then its argument prototype would still apply. */
45462 /* The GNU C library defines this for functions which it implements
45463 to always fail with ENOSYS. Some functions are actually named
45464 something starting with __ and the normal name is an alias. */
45465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45468 char (*f) () = $ac_func;
45477 return f != $ac_func;
45482 rm -f conftest.$ac_objext conftest$ac_exeext
45483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45484 (eval $ac_link) 2>conftest.er1
45486 grep -v '^ *+' conftest.er1 >conftest.err
45488 cat conftest.err >&5
45489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45490 (exit $ac_status); } &&
45491 { ac_try='test -z "$ac_c_werror_flag"
45492 || test ! -s conftest.err'
45493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45494 (eval $ac_try) 2>&5
45496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45497 (exit $ac_status); }; } &&
45498 { ac_try='test -s conftest$ac_exeext'
45499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45500 (eval $ac_try) 2>&5
45502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45503 (exit $ac_status); }; }; then
45504 eval "$as_ac_var=yes"
45506 echo "$as_me: failed program was:" >&5
45507 sed 's/^/| /' conftest.$ac_ext >&5
45509 eval "$as_ac_var=no"
45511 rm -f conftest.err conftest.$ac_objext \
45512 conftest$ac_exeext conftest.$ac_ext
45514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45516 if test `eval echo '${'$as_ac_var'}'` = yes; then
45517 cat >>confdefs.h <<_ACEOF
45518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45522 # strftime is in -lintl on SCO UNIX.
45523 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
45524 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
45525 if test "${ac_cv_lib_intl_strftime+set}" = set; then
45526 echo $ECHO_N "(cached) $ECHO_C" >&6
45528 ac_check_lib_save_LIBS=$LIBS
45529 LIBS="-lintl $LIBS"
45530 cat >conftest.$ac_ext <<_ACEOF
45533 cat confdefs.h >>conftest.$ac_ext
45534 cat >>conftest.$ac_ext <<_ACEOF
45535 /* end confdefs.h. */
45537 /* Override any gcc2 internal prototype to avoid an error. */
45541 /* We use char because int might match the return type of a gcc2
45542 builtin and then its argument prototype would still apply. */
45552 rm -f conftest.$ac_objext conftest$ac_exeext
45553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45554 (eval $ac_link) 2>conftest.er1
45556 grep -v '^ *+' conftest.er1 >conftest.err
45558 cat conftest.err >&5
45559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45560 (exit $ac_status); } &&
45561 { ac_try='test -z "$ac_c_werror_flag"
45562 || test ! -s conftest.err'
45563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45564 (eval $ac_try) 2>&5
45566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45567 (exit $ac_status); }; } &&
45568 { ac_try='test -s conftest$ac_exeext'
45569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45570 (eval $ac_try) 2>&5
45572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45573 (exit $ac_status); }; }; then
45574 ac_cv_lib_intl_strftime=yes
45576 echo "$as_me: failed program was:" >&5
45577 sed 's/^/| /' conftest.$ac_ext >&5
45579 ac_cv_lib_intl_strftime=no
45581 rm -f conftest.err conftest.$ac_objext \
45582 conftest$ac_exeext conftest.$ac_ext
45583 LIBS=$ac_check_lib_save_LIBS
45585 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
45586 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
45587 if test $ac_cv_lib_intl_strftime = yes; then
45588 cat >>confdefs.h <<\_ACEOF
45589 #define HAVE_STRFTIME 1
45592 LIBS="-lintl $LIBS"
45599 for ac_func in strftime
45601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45602 echo "$as_me:$LINENO: checking for $ac_func" >&5
45603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45604 if eval "test \"\${$as_ac_var+set}\" = set"; then
45605 echo $ECHO_N "(cached) $ECHO_C" >&6
45607 cat >conftest.$ac_ext <<_ACEOF
45610 cat confdefs.h >>conftest.$ac_ext
45611 cat >>conftest.$ac_ext <<_ACEOF
45612 /* end confdefs.h. */
45613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45615 #define $ac_func innocuous_$ac_func
45617 /* System header to define __stub macros and hopefully few prototypes,
45618 which can conflict with char $ac_func (); below.
45619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45620 <limits.h> exists even on freestanding compilers. */
45623 # include <limits.h>
45625 # include <assert.h>
45630 /* Override any gcc2 internal prototype to avoid an error. */
45635 /* We use char because int might match the return type of a gcc2
45636 builtin and then its argument prototype would still apply. */
45638 /* The GNU C library defines this for functions which it implements
45639 to always fail with ENOSYS. Some functions are actually named
45640 something starting with __ and the normal name is an alias. */
45641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45644 char (*f) () = $ac_func;
45653 return f != $ac_func;
45658 rm -f conftest.$ac_objext conftest$ac_exeext
45659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45660 (eval $ac_link) 2>conftest.er1
45662 grep -v '^ *+' conftest.er1 >conftest.err
45664 cat conftest.err >&5
45665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45666 (exit $ac_status); } &&
45667 { ac_try='test -z "$ac_c_werror_flag"
45668 || test ! -s conftest.err'
45669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45670 (eval $ac_try) 2>&5
45672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45673 (exit $ac_status); }; } &&
45674 { ac_try='test -s conftest$ac_exeext'
45675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45676 (eval $ac_try) 2>&5
45678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45679 (exit $ac_status); }; }; then
45680 eval "$as_ac_var=yes"
45682 echo "$as_me: failed program was:" >&5
45683 sed 's/^/| /' conftest.$ac_ext >&5
45685 eval "$as_ac_var=no"
45687 rm -f conftest.err conftest.$ac_objext \
45688 conftest$ac_exeext conftest.$ac_ext
45690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45692 if test `eval echo '${'$as_ac_var'}'` = yes; then
45693 cat >>confdefs.h <<_ACEOF
45694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45699 "$ac_func.$ac_objext" | \
45700 *" $ac_func.$ac_objext" | \
45701 "$ac_func.$ac_objext "* | \
45702 *" $ac_func.$ac_objext "* ) ;;
45703 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45711 ice_have_strftime=no
45713 for ac_func in strftime
45715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45716 echo "$as_me:$LINENO: checking for $ac_func" >&5
45717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45718 if eval "test \"\${$as_ac_var+set}\" = set"; then
45719 echo $ECHO_N "(cached) $ECHO_C" >&6
45721 cat >conftest.$ac_ext <<_ACEOF
45724 cat confdefs.h >>conftest.$ac_ext
45725 cat >>conftest.$ac_ext <<_ACEOF
45726 /* end confdefs.h. */
45727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45729 #define $ac_func innocuous_$ac_func
45731 /* System header to define __stub macros and hopefully few prototypes,
45732 which can conflict with char $ac_func (); below.
45733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45734 <limits.h> exists even on freestanding compilers. */
45737 # include <limits.h>
45739 # include <assert.h>
45744 /* Override any gcc2 internal prototype to avoid an error. */
45749 /* We use char because int might match the return type of a gcc2
45750 builtin and then its argument prototype would still apply. */
45752 /* The GNU C library defines this for functions which it implements
45753 to always fail with ENOSYS. Some functions are actually named
45754 something starting with __ and the normal name is an alias. */
45755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45758 char (*f) () = $ac_func;
45767 return f != $ac_func;
45772 rm -f conftest.$ac_objext conftest$ac_exeext
45773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45774 (eval $ac_link) 2>conftest.er1
45776 grep -v '^ *+' conftest.er1 >conftest.err
45778 cat conftest.err >&5
45779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45780 (exit $ac_status); } &&
45781 { ac_try='test -z "$ac_c_werror_flag"
45782 || test ! -s conftest.err'
45783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45784 (eval $ac_try) 2>&5
45786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45787 (exit $ac_status); }; } &&
45788 { ac_try='test -s conftest$ac_exeext'
45789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45790 (eval $ac_try) 2>&5
45792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45793 (exit $ac_status); }; }; then
45794 eval "$as_ac_var=yes"
45796 echo "$as_me: failed program was:" >&5
45797 sed 's/^/| /' conftest.$ac_ext >&5
45799 eval "$as_ac_var=no"
45801 rm -f conftest.err conftest.$ac_objext \
45802 conftest$ac_exeext conftest.$ac_ext
45804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45806 if test `eval echo '${'$as_ac_var'}'` = yes; then
45807 cat >>confdefs.h <<_ACEOF
45808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45810 ice_have_strftime=yes
45814 if test "${ice_have_strftime}" = yes; then
45815 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
45816 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
45817 if test "${ice_cv_have_strftime_decl+set}" = set; then
45818 echo $ECHO_N "(cached) $ECHO_C" >&6
45821 ice_cv_have_strftime_decl=no
45822 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45823 ice_re_word='(^|[^a-zA-Z0-9_])'
45824 for header in time.h sys/time.h; do
45825 # Check for ordinary declaration
45826 cat >conftest.$ac_ext <<_ACEOF
45829 cat confdefs.h >>conftest.$ac_ext
45830 cat >>conftest.$ac_ext <<_ACEOF
45831 /* end confdefs.h. */
45835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45836 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
45837 ice_cv_have_strftime_decl=yes
45841 if test "$ice_cv_have_strftime_decl" = yes; then
45844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45845 cat >conftest.$ac_ext <<_ACEOF
45848 cat confdefs.h >>conftest.$ac_ext
45849 cat >>conftest.$ac_ext <<_ACEOF
45850 /* end confdefs.h. */
45854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45855 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45856 ice_cv_have_strftime_decl=yes
45860 if test "$ice_cv_have_strftime_decl" = yes; then
45867 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
45868 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
45869 if test "$ice_cv_have_strftime_decl" = yes; then
45871 cat >>confdefs.h <<_ACEOF
45872 #define HAVE_STRFTIME_DECL 1
45879 for ac_func in strncasecmp
45881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45882 echo "$as_me:$LINENO: checking for $ac_func" >&5
45883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45884 if eval "test \"\${$as_ac_var+set}\" = set"; then
45885 echo $ECHO_N "(cached) $ECHO_C" >&6
45887 cat >conftest.$ac_ext <<_ACEOF
45890 cat confdefs.h >>conftest.$ac_ext
45891 cat >>conftest.$ac_ext <<_ACEOF
45892 /* end confdefs.h. */
45893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45895 #define $ac_func innocuous_$ac_func
45897 /* System header to define __stub macros and hopefully few prototypes,
45898 which can conflict with char $ac_func (); below.
45899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45900 <limits.h> exists even on freestanding compilers. */
45903 # include <limits.h>
45905 # include <assert.h>
45910 /* Override any gcc2 internal prototype to avoid an error. */
45915 /* We use char because int might match the return type of a gcc2
45916 builtin and then its argument prototype would still apply. */
45918 /* The GNU C library defines this for functions which it implements
45919 to always fail with ENOSYS. Some functions are actually named
45920 something starting with __ and the normal name is an alias. */
45921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45924 char (*f) () = $ac_func;
45933 return f != $ac_func;
45938 rm -f conftest.$ac_objext conftest$ac_exeext
45939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45940 (eval $ac_link) 2>conftest.er1
45942 grep -v '^ *+' conftest.er1 >conftest.err
45944 cat conftest.err >&5
45945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45946 (exit $ac_status); } &&
45947 { ac_try='test -z "$ac_c_werror_flag"
45948 || test ! -s conftest.err'
45949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45950 (eval $ac_try) 2>&5
45952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953 (exit $ac_status); }; } &&
45954 { ac_try='test -s conftest$ac_exeext'
45955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45956 (eval $ac_try) 2>&5
45958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45959 (exit $ac_status); }; }; then
45960 eval "$as_ac_var=yes"
45962 echo "$as_me: failed program was:" >&5
45963 sed 's/^/| /' conftest.$ac_ext >&5
45965 eval "$as_ac_var=no"
45967 rm -f conftest.err conftest.$ac_objext \
45968 conftest$ac_exeext conftest.$ac_ext
45970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45972 if test `eval echo '${'$as_ac_var'}'` = yes; then
45973 cat >>confdefs.h <<_ACEOF
45974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45979 "$ac_func.$ac_objext" | \
45980 *" $ac_func.$ac_objext" | \
45981 "$ac_func.$ac_objext "* | \
45982 *" $ac_func.$ac_objext "* ) ;;
45983 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45991 ice_have_strncasecmp=no
45993 for ac_func in strncasecmp
45995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45996 echo "$as_me:$LINENO: checking for $ac_func" >&5
45997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45998 if eval "test \"\${$as_ac_var+set}\" = set"; then
45999 echo $ECHO_N "(cached) $ECHO_C" >&6
46001 cat >conftest.$ac_ext <<_ACEOF
46004 cat confdefs.h >>conftest.$ac_ext
46005 cat >>conftest.$ac_ext <<_ACEOF
46006 /* end confdefs.h. */
46007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46009 #define $ac_func innocuous_$ac_func
46011 /* System header to define __stub macros and hopefully few prototypes,
46012 which can conflict with char $ac_func (); below.
46013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46014 <limits.h> exists even on freestanding compilers. */
46017 # include <limits.h>
46019 # include <assert.h>
46024 /* Override any gcc2 internal prototype to avoid an error. */
46029 /* We use char because int might match the return type of a gcc2
46030 builtin and then its argument prototype would still apply. */
46032 /* The GNU C library defines this for functions which it implements
46033 to always fail with ENOSYS. Some functions are actually named
46034 something starting with __ and the normal name is an alias. */
46035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46038 char (*f) () = $ac_func;
46047 return f != $ac_func;
46052 rm -f conftest.$ac_objext conftest$ac_exeext
46053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46054 (eval $ac_link) 2>conftest.er1
46056 grep -v '^ *+' conftest.er1 >conftest.err
46058 cat conftest.err >&5
46059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46060 (exit $ac_status); } &&
46061 { ac_try='test -z "$ac_c_werror_flag"
46062 || test ! -s conftest.err'
46063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46064 (eval $ac_try) 2>&5
46066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46067 (exit $ac_status); }; } &&
46068 { ac_try='test -s conftest$ac_exeext'
46069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46070 (eval $ac_try) 2>&5
46072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46073 (exit $ac_status); }; }; then
46074 eval "$as_ac_var=yes"
46076 echo "$as_me: failed program was:" >&5
46077 sed 's/^/| /' conftest.$ac_ext >&5
46079 eval "$as_ac_var=no"
46081 rm -f conftest.err conftest.$ac_objext \
46082 conftest$ac_exeext conftest.$ac_ext
46084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46086 if test `eval echo '${'$as_ac_var'}'` = yes; then
46087 cat >>confdefs.h <<_ACEOF
46088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46090 ice_have_strncasecmp=yes
46094 if test "${ice_have_strncasecmp}" = yes; then
46095 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
46096 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
46097 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
46098 echo $ECHO_N "(cached) $ECHO_C" >&6
46101 ice_cv_have_strncasecmp_decl=no
46102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46103 ice_re_word='(^|[^a-zA-Z0-9_])'
46104 for header in string.h strings.h; do
46105 # Check for ordinary declaration
46106 cat >conftest.$ac_ext <<_ACEOF
46109 cat confdefs.h >>conftest.$ac_ext
46110 cat >>conftest.$ac_ext <<_ACEOF
46111 /* end confdefs.h. */
46115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46116 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
46117 ice_cv_have_strncasecmp_decl=yes
46121 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46124 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46125 cat >conftest.$ac_ext <<_ACEOF
46128 cat confdefs.h >>conftest.$ac_ext
46129 cat >>conftest.$ac_ext <<_ACEOF
46130 /* end confdefs.h. */
46134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46135 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46136 ice_cv_have_strncasecmp_decl=yes
46140 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46147 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
46148 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
46149 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46151 cat >>confdefs.h <<_ACEOF
46152 #define HAVE_STRNCASECMP_DECL 1
46159 for ac_func in strstr
46161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46162 echo "$as_me:$LINENO: checking for $ac_func" >&5
46163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46164 if eval "test \"\${$as_ac_var+set}\" = set"; then
46165 echo $ECHO_N "(cached) $ECHO_C" >&6
46167 cat >conftest.$ac_ext <<_ACEOF
46170 cat confdefs.h >>conftest.$ac_ext
46171 cat >>conftest.$ac_ext <<_ACEOF
46172 /* end confdefs.h. */
46173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46175 #define $ac_func innocuous_$ac_func
46177 /* System header to define __stub macros and hopefully few prototypes,
46178 which can conflict with char $ac_func (); below.
46179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46180 <limits.h> exists even on freestanding compilers. */
46183 # include <limits.h>
46185 # include <assert.h>
46190 /* Override any gcc2 internal prototype to avoid an error. */
46195 /* We use char because int might match the return type of a gcc2
46196 builtin and then its argument prototype would still apply. */
46198 /* The GNU C library defines this for functions which it implements
46199 to always fail with ENOSYS. Some functions are actually named
46200 something starting with __ and the normal name is an alias. */
46201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46204 char (*f) () = $ac_func;
46213 return f != $ac_func;
46218 rm -f conftest.$ac_objext conftest$ac_exeext
46219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46220 (eval $ac_link) 2>conftest.er1
46222 grep -v '^ *+' conftest.er1 >conftest.err
46224 cat conftest.err >&5
46225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46226 (exit $ac_status); } &&
46227 { ac_try='test -z "$ac_c_werror_flag"
46228 || test ! -s conftest.err'
46229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46230 (eval $ac_try) 2>&5
46232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46233 (exit $ac_status); }; } &&
46234 { ac_try='test -s conftest$ac_exeext'
46235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46236 (eval $ac_try) 2>&5
46238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239 (exit $ac_status); }; }; then
46240 eval "$as_ac_var=yes"
46242 echo "$as_me: failed program was:" >&5
46243 sed 's/^/| /' conftest.$ac_ext >&5
46245 eval "$as_ac_var=no"
46247 rm -f conftest.err conftest.$ac_objext \
46248 conftest$ac_exeext conftest.$ac_ext
46250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46252 if test `eval echo '${'$as_ac_var'}'` = yes; then
46253 cat >>confdefs.h <<_ACEOF
46254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46259 "$ac_func.$ac_objext" | \
46260 *" $ac_func.$ac_objext" | \
46261 "$ac_func.$ac_objext "* | \
46262 *" $ac_func.$ac_objext "* ) ;;
46263 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46273 for ac_func in syslog
46275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46276 echo "$as_me:$LINENO: checking for $ac_func" >&5
46277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46278 if eval "test \"\${$as_ac_var+set}\" = set"; then
46279 echo $ECHO_N "(cached) $ECHO_C" >&6
46281 cat >conftest.$ac_ext <<_ACEOF
46284 cat confdefs.h >>conftest.$ac_ext
46285 cat >>conftest.$ac_ext <<_ACEOF
46286 /* end confdefs.h. */
46287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46289 #define $ac_func innocuous_$ac_func
46291 /* System header to define __stub macros and hopefully few prototypes,
46292 which can conflict with char $ac_func (); below.
46293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46294 <limits.h> exists even on freestanding compilers. */
46297 # include <limits.h>
46299 # include <assert.h>
46304 /* Override any gcc2 internal prototype to avoid an error. */
46309 /* We use char because int might match the return type of a gcc2
46310 builtin and then its argument prototype would still apply. */
46312 /* The GNU C library defines this for functions which it implements
46313 to always fail with ENOSYS. Some functions are actually named
46314 something starting with __ and the normal name is an alias. */
46315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46318 char (*f) () = $ac_func;
46327 return f != $ac_func;
46332 rm -f conftest.$ac_objext conftest$ac_exeext
46333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46334 (eval $ac_link) 2>conftest.er1
46336 grep -v '^ *+' conftest.er1 >conftest.err
46338 cat conftest.err >&5
46339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340 (exit $ac_status); } &&
46341 { ac_try='test -z "$ac_c_werror_flag"
46342 || test ! -s conftest.err'
46343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46344 (eval $ac_try) 2>&5
46346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46347 (exit $ac_status); }; } &&
46348 { ac_try='test -s conftest$ac_exeext'
46349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46350 (eval $ac_try) 2>&5
46352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46353 (exit $ac_status); }; }; then
46354 eval "$as_ac_var=yes"
46356 echo "$as_me: failed program was:" >&5
46357 sed 's/^/| /' conftest.$ac_ext >&5
46359 eval "$as_ac_var=no"
46361 rm -f conftest.err conftest.$ac_objext \
46362 conftest$ac_exeext conftest.$ac_ext
46364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46366 if test `eval echo '${'$as_ac_var'}'` = yes; then
46367 cat >>confdefs.h <<_ACEOF
46368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46370 ice_have_syslog=yes
46374 if test "${ice_have_syslog}" = yes; then
46375 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
46376 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
46377 if test "${ice_cv_have_syslog_decl+set}" = set; then
46378 echo $ECHO_N "(cached) $ECHO_C" >&6
46381 ice_cv_have_syslog_decl=no
46382 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46383 ice_re_word='(^|[^a-zA-Z0-9_])'
46384 for header in syslog.h; do
46385 # Check for ordinary declaration
46386 cat >conftest.$ac_ext <<_ACEOF
46389 cat confdefs.h >>conftest.$ac_ext
46390 cat >>conftest.$ac_ext <<_ACEOF
46391 /* end confdefs.h. */
46395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46396 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
46397 ice_cv_have_syslog_decl=yes
46401 if test "$ice_cv_have_syslog_decl" = yes; then
46404 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46405 cat >conftest.$ac_ext <<_ACEOF
46408 cat confdefs.h >>conftest.$ac_ext
46409 cat >>conftest.$ac_ext <<_ACEOF
46410 /* end confdefs.h. */
46414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46415 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46416 ice_cv_have_syslog_decl=yes
46420 if test "$ice_cv_have_syslog_decl" = yes; then
46427 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
46428 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
46429 if test "$ice_cv_have_syslog_decl" = yes; then
46431 cat >>confdefs.h <<_ACEOF
46432 #define HAVE_SYSLOG_DECL 1
46441 for ac_func in system
46443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46444 echo "$as_me:$LINENO: checking for $ac_func" >&5
46445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46446 if eval "test \"\${$as_ac_var+set}\" = set"; then
46447 echo $ECHO_N "(cached) $ECHO_C" >&6
46449 cat >conftest.$ac_ext <<_ACEOF
46452 cat confdefs.h >>conftest.$ac_ext
46453 cat >>conftest.$ac_ext <<_ACEOF
46454 /* end confdefs.h. */
46455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46457 #define $ac_func innocuous_$ac_func
46459 /* System header to define __stub macros and hopefully few prototypes,
46460 which can conflict with char $ac_func (); below.
46461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46462 <limits.h> exists even on freestanding compilers. */
46465 # include <limits.h>
46467 # include <assert.h>
46472 /* Override any gcc2 internal prototype to avoid an error. */
46477 /* We use char because int might match the return type of a gcc2
46478 builtin and then its argument prototype would still apply. */
46480 /* The GNU C library defines this for functions which it implements
46481 to always fail with ENOSYS. Some functions are actually named
46482 something starting with __ and the normal name is an alias. */
46483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46486 char (*f) () = $ac_func;
46495 return f != $ac_func;
46500 rm -f conftest.$ac_objext conftest$ac_exeext
46501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46502 (eval $ac_link) 2>conftest.er1
46504 grep -v '^ *+' conftest.er1 >conftest.err
46506 cat conftest.err >&5
46507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46508 (exit $ac_status); } &&
46509 { ac_try='test -z "$ac_c_werror_flag"
46510 || test ! -s conftest.err'
46511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46512 (eval $ac_try) 2>&5
46514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46515 (exit $ac_status); }; } &&
46516 { ac_try='test -s conftest$ac_exeext'
46517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46518 (eval $ac_try) 2>&5
46520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46521 (exit $ac_status); }; }; then
46522 eval "$as_ac_var=yes"
46524 echo "$as_me: failed program was:" >&5
46525 sed 's/^/| /' conftest.$ac_ext >&5
46527 eval "$as_ac_var=no"
46529 rm -f conftest.err conftest.$ac_objext \
46530 conftest$ac_exeext conftest.$ac_ext
46532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46534 if test `eval echo '${'$as_ac_var'}'` = yes; then
46535 cat >>confdefs.h <<_ACEOF
46536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46538 ice_have_system=yes
46542 if test "${ice_have_system}" = yes; then
46543 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
46544 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
46545 if test "${ice_cv_have_system_decl+set}" = set; then
46546 echo $ECHO_N "(cached) $ECHO_C" >&6
46549 ice_cv_have_system_decl=no
46550 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46551 ice_re_word='(^|[^a-zA-Z0-9_])'
46552 for header in stdlib.h; do
46553 # Check for ordinary declaration
46554 cat >conftest.$ac_ext <<_ACEOF
46557 cat confdefs.h >>conftest.$ac_ext
46558 cat >>conftest.$ac_ext <<_ACEOF
46559 /* end confdefs.h. */
46563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46564 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
46565 ice_cv_have_system_decl=yes
46569 if test "$ice_cv_have_system_decl" = yes; then
46572 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46573 cat >conftest.$ac_ext <<_ACEOF
46576 cat confdefs.h >>conftest.$ac_ext
46577 cat >>conftest.$ac_ext <<_ACEOF
46578 /* end confdefs.h. */
46582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46583 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46584 ice_cv_have_system_decl=yes
46588 if test "$ice_cv_have_system_decl" = yes; then
46595 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
46596 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
46597 if test "$ice_cv_have_system_decl" = yes; then
46599 cat >>confdefs.h <<_ACEOF
46600 #define HAVE_SYSTEM_DECL 1
46609 for ac_func in time
46611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46612 echo "$as_me:$LINENO: checking for $ac_func" >&5
46613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46614 if eval "test \"\${$as_ac_var+set}\" = set"; then
46615 echo $ECHO_N "(cached) $ECHO_C" >&6
46617 cat >conftest.$ac_ext <<_ACEOF
46620 cat confdefs.h >>conftest.$ac_ext
46621 cat >>conftest.$ac_ext <<_ACEOF
46622 /* end confdefs.h. */
46623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46625 #define $ac_func innocuous_$ac_func
46627 /* System header to define __stub macros and hopefully few prototypes,
46628 which can conflict with char $ac_func (); below.
46629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46630 <limits.h> exists even on freestanding compilers. */
46633 # include <limits.h>
46635 # include <assert.h>
46640 /* Override any gcc2 internal prototype to avoid an error. */
46645 /* We use char because int might match the return type of a gcc2
46646 builtin and then its argument prototype would still apply. */
46648 /* The GNU C library defines this for functions which it implements
46649 to always fail with ENOSYS. Some functions are actually named
46650 something starting with __ and the normal name is an alias. */
46651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46654 char (*f) () = $ac_func;
46663 return f != $ac_func;
46668 rm -f conftest.$ac_objext conftest$ac_exeext
46669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46670 (eval $ac_link) 2>conftest.er1
46672 grep -v '^ *+' conftest.er1 >conftest.err
46674 cat conftest.err >&5
46675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46676 (exit $ac_status); } &&
46677 { ac_try='test -z "$ac_c_werror_flag"
46678 || test ! -s conftest.err'
46679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46680 (eval $ac_try) 2>&5
46682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46683 (exit $ac_status); }; } &&
46684 { ac_try='test -s conftest$ac_exeext'
46685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46686 (eval $ac_try) 2>&5
46688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46689 (exit $ac_status); }; }; then
46690 eval "$as_ac_var=yes"
46692 echo "$as_me: failed program was:" >&5
46693 sed 's/^/| /' conftest.$ac_ext >&5
46695 eval "$as_ac_var=no"
46697 rm -f conftest.err conftest.$ac_objext \
46698 conftest$ac_exeext conftest.$ac_ext
46700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46702 if test `eval echo '${'$as_ac_var'}'` = yes; then
46703 cat >>confdefs.h <<_ACEOF
46704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46710 if test "${ice_have_time}" = yes; then
46711 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
46712 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
46713 if test "${ice_cv_have_time_decl+set}" = set; then
46714 echo $ECHO_N "(cached) $ECHO_C" >&6
46717 ice_cv_have_time_decl=no
46718 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46719 ice_re_word='(^|[^a-zA-Z0-9_])'
46720 for header in time.h sys/time.h; do
46721 # Check for ordinary declaration
46722 cat >conftest.$ac_ext <<_ACEOF
46725 cat confdefs.h >>conftest.$ac_ext
46726 cat >>conftest.$ac_ext <<_ACEOF
46727 /* end confdefs.h. */
46731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46732 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
46733 ice_cv_have_time_decl=yes
46737 if test "$ice_cv_have_time_decl" = yes; then
46740 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46741 cat >conftest.$ac_ext <<_ACEOF
46744 cat confdefs.h >>conftest.$ac_ext
46745 cat >>conftest.$ac_ext <<_ACEOF
46746 /* end confdefs.h. */
46750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46751 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46752 ice_cv_have_time_decl=yes
46756 if test "$ice_cv_have_time_decl" = yes; then
46763 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
46764 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
46765 if test "$ice_cv_have_time_decl" = yes; then
46767 cat >>confdefs.h <<_ACEOF
46768 #define HAVE_TIME_DECL 1
46775 ice_have_tolower=no
46777 for ac_func in tolower
46779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46780 echo "$as_me:$LINENO: checking for $ac_func" >&5
46781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46782 if eval "test \"\${$as_ac_var+set}\" = set"; then
46783 echo $ECHO_N "(cached) $ECHO_C" >&6
46785 cat >conftest.$ac_ext <<_ACEOF
46788 cat confdefs.h >>conftest.$ac_ext
46789 cat >>conftest.$ac_ext <<_ACEOF
46790 /* end confdefs.h. */
46791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46793 #define $ac_func innocuous_$ac_func
46795 /* System header to define __stub macros and hopefully few prototypes,
46796 which can conflict with char $ac_func (); below.
46797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46798 <limits.h> exists even on freestanding compilers. */
46801 # include <limits.h>
46803 # include <assert.h>
46808 /* Override any gcc2 internal prototype to avoid an error. */
46813 /* We use char because int might match the return type of a gcc2
46814 builtin and then its argument prototype would still apply. */
46816 /* The GNU C library defines this for functions which it implements
46817 to always fail with ENOSYS. Some functions are actually named
46818 something starting with __ and the normal name is an alias. */
46819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46822 char (*f) () = $ac_func;
46831 return f != $ac_func;
46836 rm -f conftest.$ac_objext conftest$ac_exeext
46837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46838 (eval $ac_link) 2>conftest.er1
46840 grep -v '^ *+' conftest.er1 >conftest.err
46842 cat conftest.err >&5
46843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46844 (exit $ac_status); } &&
46845 { ac_try='test -z "$ac_c_werror_flag"
46846 || test ! -s conftest.err'
46847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46848 (eval $ac_try) 2>&5
46850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46851 (exit $ac_status); }; } &&
46852 { ac_try='test -s conftest$ac_exeext'
46853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46854 (eval $ac_try) 2>&5
46856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46857 (exit $ac_status); }; }; then
46858 eval "$as_ac_var=yes"
46860 echo "$as_me: failed program was:" >&5
46861 sed 's/^/| /' conftest.$ac_ext >&5
46863 eval "$as_ac_var=no"
46865 rm -f conftest.err conftest.$ac_objext \
46866 conftest$ac_exeext conftest.$ac_ext
46868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46870 if test `eval echo '${'$as_ac_var'}'` = yes; then
46871 cat >>confdefs.h <<_ACEOF
46872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46874 ice_have_tolower=yes
46878 if test "${ice_have_tolower}" = yes; then
46879 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
46880 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
46881 if test "${ice_cv_have_tolower_decl+set}" = set; then
46882 echo $ECHO_N "(cached) $ECHO_C" >&6
46885 ice_cv_have_tolower_decl=no
46886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46887 ice_re_word='(^|[^a-zA-Z0-9_])'
46888 for header in ctype.h; do
46889 # Check for ordinary declaration
46890 cat >conftest.$ac_ext <<_ACEOF
46893 cat confdefs.h >>conftest.$ac_ext
46894 cat >>conftest.$ac_ext <<_ACEOF
46895 /* end confdefs.h. */
46899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46900 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
46901 ice_cv_have_tolower_decl=yes
46905 if test "$ice_cv_have_tolower_decl" = yes; then
46908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46909 cat >conftest.$ac_ext <<_ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h. */
46918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46919 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46920 ice_cv_have_tolower_decl=yes
46924 if test "$ice_cv_have_tolower_decl" = yes; then
46931 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
46932 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
46933 if test "$ice_cv_have_tolower_decl" = yes; then
46935 cat >>confdefs.h <<_ACEOF
46936 #define HAVE_TOLOWER_DECL 1
46943 ice_have_toupper=no
46945 for ac_func in toupper
46947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46948 echo "$as_me:$LINENO: checking for $ac_func" >&5
46949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46950 if eval "test \"\${$as_ac_var+set}\" = set"; then
46951 echo $ECHO_N "(cached) $ECHO_C" >&6
46953 cat >conftest.$ac_ext <<_ACEOF
46956 cat confdefs.h >>conftest.$ac_ext
46957 cat >>conftest.$ac_ext <<_ACEOF
46958 /* end confdefs.h. */
46959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46961 #define $ac_func innocuous_$ac_func
46963 /* System header to define __stub macros and hopefully few prototypes,
46964 which can conflict with char $ac_func (); below.
46965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46966 <limits.h> exists even on freestanding compilers. */
46969 # include <limits.h>
46971 # include <assert.h>
46976 /* Override any gcc2 internal prototype to avoid an error. */
46981 /* We use char because int might match the return type of a gcc2
46982 builtin and then its argument prototype would still apply. */
46984 /* The GNU C library defines this for functions which it implements
46985 to always fail with ENOSYS. Some functions are actually named
46986 something starting with __ and the normal name is an alias. */
46987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46990 char (*f) () = $ac_func;
46999 return f != $ac_func;
47004 rm -f conftest.$ac_objext conftest$ac_exeext
47005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47006 (eval $ac_link) 2>conftest.er1
47008 grep -v '^ *+' conftest.er1 >conftest.err
47010 cat conftest.err >&5
47011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47012 (exit $ac_status); } &&
47013 { ac_try='test -z "$ac_c_werror_flag"
47014 || test ! -s conftest.err'
47015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47016 (eval $ac_try) 2>&5
47018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47019 (exit $ac_status); }; } &&
47020 { ac_try='test -s conftest$ac_exeext'
47021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47022 (eval $ac_try) 2>&5
47024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47025 (exit $ac_status); }; }; then
47026 eval "$as_ac_var=yes"
47028 echo "$as_me: failed program was:" >&5
47029 sed 's/^/| /' conftest.$ac_ext >&5
47031 eval "$as_ac_var=no"
47033 rm -f conftest.err conftest.$ac_objext \
47034 conftest$ac_exeext conftest.$ac_ext
47036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47038 if test `eval echo '${'$as_ac_var'}'` = yes; then
47039 cat >>confdefs.h <<_ACEOF
47040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47042 ice_have_toupper=yes
47046 if test "${ice_have_toupper}" = yes; then
47047 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
47048 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
47049 if test "${ice_cv_have_toupper_decl+set}" = set; then
47050 echo $ECHO_N "(cached) $ECHO_C" >&6
47053 ice_cv_have_toupper_decl=no
47054 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47055 ice_re_word='(^|[^a-zA-Z0-9_])'
47056 for header in ctype.h; do
47057 # Check for ordinary declaration
47058 cat >conftest.$ac_ext <<_ACEOF
47061 cat confdefs.h >>conftest.$ac_ext
47062 cat >>conftest.$ac_ext <<_ACEOF
47063 /* end confdefs.h. */
47067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47068 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
47069 ice_cv_have_toupper_decl=yes
47073 if test "$ice_cv_have_toupper_decl" = yes; then
47076 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47077 cat >conftest.$ac_ext <<_ACEOF
47080 cat confdefs.h >>conftest.$ac_ext
47081 cat >>conftest.$ac_ext <<_ACEOF
47082 /* end confdefs.h. */
47086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47087 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47088 ice_cv_have_toupper_decl=yes
47092 if test "$ice_cv_have_toupper_decl" = yes; then
47099 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
47100 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
47101 if test "$ice_cv_have_toupper_decl" = yes; then
47103 cat >>confdefs.h <<_ACEOF
47104 #define HAVE_TOUPPER_DECL 1
47113 for ac_func in ungetc
47115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47116 echo "$as_me:$LINENO: checking for $ac_func" >&5
47117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47118 if eval "test \"\${$as_ac_var+set}\" = set"; then
47119 echo $ECHO_N "(cached) $ECHO_C" >&6
47121 cat >conftest.$ac_ext <<_ACEOF
47124 cat confdefs.h >>conftest.$ac_ext
47125 cat >>conftest.$ac_ext <<_ACEOF
47126 /* end confdefs.h. */
47127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47129 #define $ac_func innocuous_$ac_func
47131 /* System header to define __stub macros and hopefully few prototypes,
47132 which can conflict with char $ac_func (); below.
47133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47134 <limits.h> exists even on freestanding compilers. */
47137 # include <limits.h>
47139 # include <assert.h>
47144 /* Override any gcc2 internal prototype to avoid an error. */
47149 /* We use char because int might match the return type of a gcc2
47150 builtin and then its argument prototype would still apply. */
47152 /* The GNU C library defines this for functions which it implements
47153 to always fail with ENOSYS. Some functions are actually named
47154 something starting with __ and the normal name is an alias. */
47155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47158 char (*f) () = $ac_func;
47167 return f != $ac_func;
47172 rm -f conftest.$ac_objext conftest$ac_exeext
47173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47174 (eval $ac_link) 2>conftest.er1
47176 grep -v '^ *+' conftest.er1 >conftest.err
47178 cat conftest.err >&5
47179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47180 (exit $ac_status); } &&
47181 { ac_try='test -z "$ac_c_werror_flag"
47182 || test ! -s conftest.err'
47183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47184 (eval $ac_try) 2>&5
47186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47187 (exit $ac_status); }; } &&
47188 { ac_try='test -s conftest$ac_exeext'
47189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47190 (eval $ac_try) 2>&5
47192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47193 (exit $ac_status); }; }; then
47194 eval "$as_ac_var=yes"
47196 echo "$as_me: failed program was:" >&5
47197 sed 's/^/| /' conftest.$ac_ext >&5
47199 eval "$as_ac_var=no"
47201 rm -f conftest.err conftest.$ac_objext \
47202 conftest$ac_exeext conftest.$ac_ext
47204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47206 if test `eval echo '${'$as_ac_var'}'` = yes; then
47207 cat >>confdefs.h <<_ACEOF
47208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47210 ice_have_ungetc=yes
47214 if test "${ice_have_ungetc}" = yes; then
47215 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
47216 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
47217 if test "${ice_cv_have_ungetc_decl+set}" = set; then
47218 echo $ECHO_N "(cached) $ECHO_C" >&6
47221 ice_cv_have_ungetc_decl=no
47222 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47223 ice_re_word='(^|[^a-zA-Z0-9_])'
47224 for header in stdio.h; do
47225 # Check for ordinary declaration
47226 cat >conftest.$ac_ext <<_ACEOF
47229 cat confdefs.h >>conftest.$ac_ext
47230 cat >>conftest.$ac_ext <<_ACEOF
47231 /* end confdefs.h. */
47235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47236 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
47237 ice_cv_have_ungetc_decl=yes
47241 if test "$ice_cv_have_ungetc_decl" = yes; then
47244 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47245 cat >conftest.$ac_ext <<_ACEOF
47248 cat confdefs.h >>conftest.$ac_ext
47249 cat >>conftest.$ac_ext <<_ACEOF
47250 /* end confdefs.h. */
47254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47255 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47256 ice_cv_have_ungetc_decl=yes
47260 if test "$ice_cv_have_ungetc_decl" = yes; then
47267 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
47268 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
47269 if test "$ice_cv_have_ungetc_decl" = yes; then
47271 cat >>confdefs.h <<_ACEOF
47272 #define HAVE_UNGETC_DECL 1
47279 for ac_func in vprintf
47281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47282 echo "$as_me:$LINENO: checking for $ac_func" >&5
47283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47284 if eval "test \"\${$as_ac_var+set}\" = set"; then
47285 echo $ECHO_N "(cached) $ECHO_C" >&6
47287 cat >conftest.$ac_ext <<_ACEOF
47290 cat confdefs.h >>conftest.$ac_ext
47291 cat >>conftest.$ac_ext <<_ACEOF
47292 /* end confdefs.h. */
47293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47295 #define $ac_func innocuous_$ac_func
47297 /* System header to define __stub macros and hopefully few prototypes,
47298 which can conflict with char $ac_func (); below.
47299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47300 <limits.h> exists even on freestanding compilers. */
47303 # include <limits.h>
47305 # include <assert.h>
47310 /* Override any gcc2 internal prototype to avoid an error. */
47315 /* We use char because int might match the return type of a gcc2
47316 builtin and then its argument prototype would still apply. */
47318 /* The GNU C library defines this for functions which it implements
47319 to always fail with ENOSYS. Some functions are actually named
47320 something starting with __ and the normal name is an alias. */
47321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47324 char (*f) () = $ac_func;
47333 return f != $ac_func;
47338 rm -f conftest.$ac_objext conftest$ac_exeext
47339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47340 (eval $ac_link) 2>conftest.er1
47342 grep -v '^ *+' conftest.er1 >conftest.err
47344 cat conftest.err >&5
47345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346 (exit $ac_status); } &&
47347 { ac_try='test -z "$ac_c_werror_flag"
47348 || test ! -s conftest.err'
47349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47350 (eval $ac_try) 2>&5
47352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47353 (exit $ac_status); }; } &&
47354 { ac_try='test -s conftest$ac_exeext'
47355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47356 (eval $ac_try) 2>&5
47358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47359 (exit $ac_status); }; }; then
47360 eval "$as_ac_var=yes"
47362 echo "$as_me: failed program was:" >&5
47363 sed 's/^/| /' conftest.$ac_ext >&5
47365 eval "$as_ac_var=no"
47367 rm -f conftest.err conftest.$ac_objext \
47368 conftest$ac_exeext conftest.$ac_ext
47370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47372 if test `eval echo '${'$as_ac_var'}'` = yes; then
47373 cat >>confdefs.h <<_ACEOF
47374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47377 echo "$as_me:$LINENO: checking for _doprnt" >&5
47378 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
47379 if test "${ac_cv_func__doprnt+set}" = set; then
47380 echo $ECHO_N "(cached) $ECHO_C" >&6
47382 cat >conftest.$ac_ext <<_ACEOF
47385 cat confdefs.h >>conftest.$ac_ext
47386 cat >>conftest.$ac_ext <<_ACEOF
47387 /* end confdefs.h. */
47388 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
47389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47390 #define _doprnt innocuous__doprnt
47392 /* System header to define __stub macros and hopefully few prototypes,
47393 which can conflict with char _doprnt (); below.
47394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47395 <limits.h> exists even on freestanding compilers. */
47398 # include <limits.h>
47400 # include <assert.h>
47405 /* Override any gcc2 internal prototype to avoid an error. */
47410 /* We use char because int might match the return type of a gcc2
47411 builtin and then its argument prototype would still apply. */
47413 /* The GNU C library defines this for functions which it implements
47414 to always fail with ENOSYS. Some functions are actually named
47415 something starting with __ and the normal name is an alias. */
47416 #if defined (__stub__doprnt) || defined (__stub____doprnt)
47419 char (*f) () = _doprnt;
47428 return f != _doprnt;
47433 rm -f conftest.$ac_objext conftest$ac_exeext
47434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47435 (eval $ac_link) 2>conftest.er1
47437 grep -v '^ *+' conftest.er1 >conftest.err
47439 cat conftest.err >&5
47440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47441 (exit $ac_status); } &&
47442 { ac_try='test -z "$ac_c_werror_flag"
47443 || test ! -s conftest.err'
47444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47445 (eval $ac_try) 2>&5
47447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448 (exit $ac_status); }; } &&
47449 { ac_try='test -s conftest$ac_exeext'
47450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47451 (eval $ac_try) 2>&5
47453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47454 (exit $ac_status); }; }; then
47455 ac_cv_func__doprnt=yes
47457 echo "$as_me: failed program was:" >&5
47458 sed 's/^/| /' conftest.$ac_ext >&5
47460 ac_cv_func__doprnt=no
47462 rm -f conftest.err conftest.$ac_objext \
47463 conftest$ac_exeext conftest.$ac_ext
47465 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
47466 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
47467 if test $ac_cv_func__doprnt = yes; then
47469 cat >>confdefs.h <<\_ACEOF
47470 #define HAVE_DOPRNT 1
47480 ice_have_vfprintf=no
47482 for ac_func in vfprintf
47484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47485 echo "$as_me:$LINENO: checking for $ac_func" >&5
47486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47487 if eval "test \"\${$as_ac_var+set}\" = set"; then
47488 echo $ECHO_N "(cached) $ECHO_C" >&6
47490 cat >conftest.$ac_ext <<_ACEOF
47493 cat confdefs.h >>conftest.$ac_ext
47494 cat >>conftest.$ac_ext <<_ACEOF
47495 /* end confdefs.h. */
47496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47498 #define $ac_func innocuous_$ac_func
47500 /* System header to define __stub macros and hopefully few prototypes,
47501 which can conflict with char $ac_func (); below.
47502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47503 <limits.h> exists even on freestanding compilers. */
47506 # include <limits.h>
47508 # include <assert.h>
47513 /* Override any gcc2 internal prototype to avoid an error. */
47518 /* We use char because int might match the return type of a gcc2
47519 builtin and then its argument prototype would still apply. */
47521 /* The GNU C library defines this for functions which it implements
47522 to always fail with ENOSYS. Some functions are actually named
47523 something starting with __ and the normal name is an alias. */
47524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47527 char (*f) () = $ac_func;
47536 return f != $ac_func;
47541 rm -f conftest.$ac_objext conftest$ac_exeext
47542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47543 (eval $ac_link) 2>conftest.er1
47545 grep -v '^ *+' conftest.er1 >conftest.err
47547 cat conftest.err >&5
47548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47549 (exit $ac_status); } &&
47550 { ac_try='test -z "$ac_c_werror_flag"
47551 || test ! -s conftest.err'
47552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47553 (eval $ac_try) 2>&5
47555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47556 (exit $ac_status); }; } &&
47557 { ac_try='test -s conftest$ac_exeext'
47558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47559 (eval $ac_try) 2>&5
47561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47562 (exit $ac_status); }; }; then
47563 eval "$as_ac_var=yes"
47565 echo "$as_me: failed program was:" >&5
47566 sed 's/^/| /' conftest.$ac_ext >&5
47568 eval "$as_ac_var=no"
47570 rm -f conftest.err conftest.$ac_objext \
47571 conftest$ac_exeext conftest.$ac_ext
47573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47575 if test `eval echo '${'$as_ac_var'}'` = yes; then
47576 cat >>confdefs.h <<_ACEOF
47577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47579 ice_have_vfprintf=yes
47583 if test "${ice_have_vfprintf}" = yes; then
47584 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
47585 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47586 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
47587 echo $ECHO_N "(cached) $ECHO_C" >&6
47590 ice_cv_have_vfprintf_decl=no
47591 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47592 ice_re_word='(^|[^a-zA-Z0-9_])'
47593 for header in stdio.h stdlib.h; do
47594 # Check for ordinary declaration
47595 cat >conftest.$ac_ext <<_ACEOF
47598 cat confdefs.h >>conftest.$ac_ext
47599 cat >>conftest.$ac_ext <<_ACEOF
47600 /* end confdefs.h. */
47604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47605 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
47606 ice_cv_have_vfprintf_decl=yes
47610 if test "$ice_cv_have_vfprintf_decl" = yes; then
47613 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47614 cat >conftest.$ac_ext <<_ACEOF
47617 cat confdefs.h >>conftest.$ac_ext
47618 cat >>conftest.$ac_ext <<_ACEOF
47619 /* end confdefs.h. */
47623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47624 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47625 ice_cv_have_vfprintf_decl=yes
47629 if test "$ice_cv_have_vfprintf_decl" = yes; then
47636 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
47637 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
47638 if test "$ice_cv_have_vfprintf_decl" = yes; then
47640 cat >>confdefs.h <<_ACEOF
47641 #define HAVE_VFPRINTF_DECL 1
47648 ice_have_vprintf=no
47650 for ac_func in vprintf
47652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47653 echo "$as_me:$LINENO: checking for $ac_func" >&5
47654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47655 if eval "test \"\${$as_ac_var+set}\" = set"; then
47656 echo $ECHO_N "(cached) $ECHO_C" >&6
47658 cat >conftest.$ac_ext <<_ACEOF
47661 cat confdefs.h >>conftest.$ac_ext
47662 cat >>conftest.$ac_ext <<_ACEOF
47663 /* end confdefs.h. */
47664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47666 #define $ac_func innocuous_$ac_func
47668 /* System header to define __stub macros and hopefully few prototypes,
47669 which can conflict with char $ac_func (); below.
47670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47671 <limits.h> exists even on freestanding compilers. */
47674 # include <limits.h>
47676 # include <assert.h>
47681 /* Override any gcc2 internal prototype to avoid an error. */
47686 /* We use char because int might match the return type of a gcc2
47687 builtin and then its argument prototype would still apply. */
47689 /* The GNU C library defines this for functions which it implements
47690 to always fail with ENOSYS. Some functions are actually named
47691 something starting with __ and the normal name is an alias. */
47692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47695 char (*f) () = $ac_func;
47704 return f != $ac_func;
47709 rm -f conftest.$ac_objext conftest$ac_exeext
47710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47711 (eval $ac_link) 2>conftest.er1
47713 grep -v '^ *+' conftest.er1 >conftest.err
47715 cat conftest.err >&5
47716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717 (exit $ac_status); } &&
47718 { ac_try='test -z "$ac_c_werror_flag"
47719 || test ! -s conftest.err'
47720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721 (eval $ac_try) 2>&5
47723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724 (exit $ac_status); }; } &&
47725 { ac_try='test -s conftest$ac_exeext'
47726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47727 (eval $ac_try) 2>&5
47729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730 (exit $ac_status); }; }; then
47731 eval "$as_ac_var=yes"
47733 echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47736 eval "$as_ac_var=no"
47738 rm -f conftest.err conftest.$ac_objext \
47739 conftest$ac_exeext conftest.$ac_ext
47741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47743 if test `eval echo '${'$as_ac_var'}'` = yes; then
47744 cat >>confdefs.h <<_ACEOF
47745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47747 ice_have_vprintf=yes
47751 if test "${ice_have_vprintf}" = yes; then
47752 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
47753 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47754 if test "${ice_cv_have_vprintf_decl+set}" = set; then
47755 echo $ECHO_N "(cached) $ECHO_C" >&6
47758 ice_cv_have_vprintf_decl=no
47759 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47760 ice_re_word='(^|[^a-zA-Z0-9_])'
47761 for header in stdio.h stdlib.h; do
47762 # Check for ordinary declaration
47763 cat >conftest.$ac_ext <<_ACEOF
47766 cat confdefs.h >>conftest.$ac_ext
47767 cat >>conftest.$ac_ext <<_ACEOF
47768 /* end confdefs.h. */
47772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47773 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
47774 ice_cv_have_vprintf_decl=yes
47778 if test "$ice_cv_have_vprintf_decl" = yes; then
47781 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47782 cat >conftest.$ac_ext <<_ACEOF
47785 cat confdefs.h >>conftest.$ac_ext
47786 cat >>conftest.$ac_ext <<_ACEOF
47787 /* end confdefs.h. */
47791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47792 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47793 ice_cv_have_vprintf_decl=yes
47797 if test "$ice_cv_have_vprintf_decl" = yes; then
47804 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
47805 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
47806 if test "$ice_cv_have_vprintf_decl" = yes; then
47808 cat >>confdefs.h <<_ACEOF
47809 #define HAVE_VPRINTF_DECL 1
47816 ice_have_vsprintf=no
47818 for ac_func in vsprintf
47820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47821 echo "$as_me:$LINENO: checking for $ac_func" >&5
47822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47823 if eval "test \"\${$as_ac_var+set}\" = set"; then
47824 echo $ECHO_N "(cached) $ECHO_C" >&6
47826 cat >conftest.$ac_ext <<_ACEOF
47829 cat confdefs.h >>conftest.$ac_ext
47830 cat >>conftest.$ac_ext <<_ACEOF
47831 /* end confdefs.h. */
47832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47834 #define $ac_func innocuous_$ac_func
47836 /* System header to define __stub macros and hopefully few prototypes,
47837 which can conflict with char $ac_func (); below.
47838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47839 <limits.h> exists even on freestanding compilers. */
47842 # include <limits.h>
47844 # include <assert.h>
47849 /* Override any gcc2 internal prototype to avoid an error. */
47854 /* We use char because int might match the return type of a gcc2
47855 builtin and then its argument prototype would still apply. */
47857 /* The GNU C library defines this for functions which it implements
47858 to always fail with ENOSYS. Some functions are actually named
47859 something starting with __ and the normal name is an alias. */
47860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47863 char (*f) () = $ac_func;
47872 return f != $ac_func;
47877 rm -f conftest.$ac_objext conftest$ac_exeext
47878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47879 (eval $ac_link) 2>conftest.er1
47881 grep -v '^ *+' conftest.er1 >conftest.err
47883 cat conftest.err >&5
47884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47885 (exit $ac_status); } &&
47886 { ac_try='test -z "$ac_c_werror_flag"
47887 || test ! -s conftest.err'
47888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47889 (eval $ac_try) 2>&5
47891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47892 (exit $ac_status); }; } &&
47893 { ac_try='test -s conftest$ac_exeext'
47894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47895 (eval $ac_try) 2>&5
47897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47898 (exit $ac_status); }; }; then
47899 eval "$as_ac_var=yes"
47901 echo "$as_me: failed program was:" >&5
47902 sed 's/^/| /' conftest.$ac_ext >&5
47904 eval "$as_ac_var=no"
47906 rm -f conftest.err conftest.$ac_objext \
47907 conftest$ac_exeext conftest.$ac_ext
47909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47911 if test `eval echo '${'$as_ac_var'}'` = yes; then
47912 cat >>confdefs.h <<_ACEOF
47913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47915 ice_have_vsprintf=yes
47919 if test "${ice_have_vsprintf}" = yes; then
47920 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
47921 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47922 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
47923 echo $ECHO_N "(cached) $ECHO_C" >&6
47926 ice_cv_have_vsprintf_decl=no
47927 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47928 ice_re_word='(^|[^a-zA-Z0-9_])'
47929 for header in stdio.h stdlib.h; do
47930 # Check for ordinary declaration
47931 cat >conftest.$ac_ext <<_ACEOF
47934 cat confdefs.h >>conftest.$ac_ext
47935 cat >>conftest.$ac_ext <<_ACEOF
47936 /* end confdefs.h. */
47940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47941 $EGREP "${ice_re_word}vsprintf[ ]*\(" >/dev/null 2>&1; then
47942 ice_cv_have_vsprintf_decl=yes
47946 if test "$ice_cv_have_vsprintf_decl" = yes; then
47949 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47950 cat >conftest.$ac_ext <<_ACEOF
47953 cat confdefs.h >>conftest.$ac_ext
47954 cat >>conftest.$ac_ext <<_ACEOF
47955 /* end confdefs.h. */
47959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47960 $EGREP "${ice_re_word}vsprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47961 ice_cv_have_vsprintf_decl=yes
47965 if test "$ice_cv_have_vsprintf_decl" = yes; then
47972 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
47973 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
47974 if test "$ice_cv_have_vsprintf_decl" = yes; then
47976 cat >>confdefs.h <<_ACEOF
47977 #define HAVE_VSPRINTF_DECL 1
47983 echo "$as_me:$LINENO: checking for wait4" >&5
47984 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
47985 if test "${ac_cv_func_wait4+set}" = set; then
47986 echo $ECHO_N "(cached) $ECHO_C" >&6
47988 cat >conftest.$ac_ext <<_ACEOF
47991 cat confdefs.h >>conftest.$ac_ext
47992 cat >>conftest.$ac_ext <<_ACEOF
47993 /* end confdefs.h. */
47994 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
47995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47996 #define wait4 innocuous_wait4
47998 /* System header to define __stub macros and hopefully few prototypes,
47999 which can conflict with char wait4 (); below.
48000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48001 <limits.h> exists even on freestanding compilers. */
48004 # include <limits.h>
48006 # include <assert.h>
48011 /* Override any gcc2 internal prototype to avoid an error. */
48016 /* We use char because int might match the return type of a gcc2
48017 builtin and then its argument prototype would still apply. */
48019 /* The GNU C library defines this for functions which it implements
48020 to always fail with ENOSYS. Some functions are actually named
48021 something starting with __ and the normal name is an alias. */
48022 #if defined (__stub_wait4) || defined (__stub___wait4)
48025 char (*f) () = wait4;
48039 rm -f conftest.$ac_objext conftest$ac_exeext
48040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48041 (eval $ac_link) 2>conftest.er1
48043 grep -v '^ *+' conftest.er1 >conftest.err
48045 cat conftest.err >&5
48046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48047 (exit $ac_status); } &&
48048 { ac_try='test -z "$ac_c_werror_flag"
48049 || test ! -s conftest.err'
48050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48051 (eval $ac_try) 2>&5
48053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48054 (exit $ac_status); }; } &&
48055 { ac_try='test -s conftest$ac_exeext'
48056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48057 (eval $ac_try) 2>&5
48059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48060 (exit $ac_status); }; }; then
48061 ac_cv_func_wait4=yes
48063 echo "$as_me: failed program was:" >&5
48064 sed 's/^/| /' conftest.$ac_ext >&5
48066 ac_cv_func_wait4=no
48068 rm -f conftest.err conftest.$ac_objext \
48069 conftest$ac_exeext conftest.$ac_ext
48071 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
48072 echo "${ECHO_T}$ac_cv_func_wait4" >&6
48075 for ac_func in waitpid
48077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48078 echo "$as_me:$LINENO: checking for $ac_func" >&5
48079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48080 if eval "test \"\${$as_ac_var+set}\" = set"; then
48081 echo $ECHO_N "(cached) $ECHO_C" >&6
48083 cat >conftest.$ac_ext <<_ACEOF
48086 cat confdefs.h >>conftest.$ac_ext
48087 cat >>conftest.$ac_ext <<_ACEOF
48088 /* end confdefs.h. */
48089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48091 #define $ac_func innocuous_$ac_func
48093 /* System header to define __stub macros and hopefully few prototypes,
48094 which can conflict with char $ac_func (); below.
48095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48096 <limits.h> exists even on freestanding compilers. */
48099 # include <limits.h>
48101 # include <assert.h>
48106 /* Override any gcc2 internal prototype to avoid an error. */
48111 /* We use char because int might match the return type of a gcc2
48112 builtin and then its argument prototype would still apply. */
48114 /* The GNU C library defines this for functions which it implements
48115 to always fail with ENOSYS. Some functions are actually named
48116 something starting with __ and the normal name is an alias. */
48117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48120 char (*f) () = $ac_func;
48129 return f != $ac_func;
48134 rm -f conftest.$ac_objext conftest$ac_exeext
48135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48136 (eval $ac_link) 2>conftest.er1
48138 grep -v '^ *+' conftest.er1 >conftest.err
48140 cat conftest.err >&5
48141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48142 (exit $ac_status); } &&
48143 { ac_try='test -z "$ac_c_werror_flag"
48144 || test ! -s conftest.err'
48145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48146 (eval $ac_try) 2>&5
48148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48149 (exit $ac_status); }; } &&
48150 { ac_try='test -s conftest$ac_exeext'
48151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48152 (eval $ac_try) 2>&5
48154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48155 (exit $ac_status); }; }; then
48156 eval "$as_ac_var=yes"
48158 echo "$as_me: failed program was:" >&5
48159 sed 's/^/| /' conftest.$ac_ext >&5
48161 eval "$as_ac_var=no"
48163 rm -f conftest.err conftest.$ac_objext \
48164 conftest$ac_exeext conftest.$ac_ext
48166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48168 if test `eval echo '${'$as_ac_var'}'` = yes; then
48169 cat >>confdefs.h <<_ACEOF
48170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48175 "$ac_func.$ac_objext" | \
48176 *" $ac_func.$ac_objext" | \
48177 "$ac_func.$ac_objext "* | \
48178 *" $ac_func.$ac_objext "* ) ;;
48179 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48187 for ac_func in strcasecmp
48189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48190 echo "$as_me:$LINENO: checking for $ac_func" >&5
48191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48192 if eval "test \"\${$as_ac_var+set}\" = set"; then
48193 echo $ECHO_N "(cached) $ECHO_C" >&6
48195 cat >conftest.$ac_ext <<_ACEOF
48198 cat confdefs.h >>conftest.$ac_ext
48199 cat >>conftest.$ac_ext <<_ACEOF
48200 /* end confdefs.h. */
48201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48203 #define $ac_func innocuous_$ac_func
48205 /* System header to define __stub macros and hopefully few prototypes,
48206 which can conflict with char $ac_func (); below.
48207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48208 <limits.h> exists even on freestanding compilers. */
48211 # include <limits.h>
48213 # include <assert.h>
48218 /* Override any gcc2 internal prototype to avoid an error. */
48223 /* We use char because int might match the return type of a gcc2
48224 builtin and then its argument prototype would still apply. */
48226 /* The GNU C library defines this for functions which it implements
48227 to always fail with ENOSYS. Some functions are actually named
48228 something starting with __ and the normal name is an alias. */
48229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48232 char (*f) () = $ac_func;
48241 return f != $ac_func;
48246 rm -f conftest.$ac_objext conftest$ac_exeext
48247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48248 (eval $ac_link) 2>conftest.er1
48250 grep -v '^ *+' conftest.er1 >conftest.err
48252 cat conftest.err >&5
48253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48254 (exit $ac_status); } &&
48255 { ac_try='test -z "$ac_c_werror_flag"
48256 || test ! -s conftest.err'
48257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48258 (eval $ac_try) 2>&5
48260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48261 (exit $ac_status); }; } &&
48262 { ac_try='test -s conftest$ac_exeext'
48263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48264 (eval $ac_try) 2>&5
48266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48267 (exit $ac_status); }; }; then
48268 eval "$as_ac_var=yes"
48270 echo "$as_me: failed program was:" >&5
48271 sed 's/^/| /' conftest.$ac_ext >&5
48273 eval "$as_ac_var=no"
48275 rm -f conftest.err conftest.$ac_objext \
48276 conftest$ac_exeext conftest.$ac_ext
48278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48280 if test `eval echo '${'$as_ac_var'}'` = yes; then
48281 cat >>confdefs.h <<_ACEOF
48282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48287 "$ac_func.$ac_objext" | \
48288 *" $ac_func.$ac_objext" | \
48289 "$ac_func.$ac_objext "* | \
48290 *" $ac_func.$ac_objext "* ) ;;
48291 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48299 ice_have_strcasecmp=no
48301 for ac_func in strcasecmp
48303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48304 echo "$as_me:$LINENO: checking for $ac_func" >&5
48305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48306 if eval "test \"\${$as_ac_var+set}\" = set"; then
48307 echo $ECHO_N "(cached) $ECHO_C" >&6
48309 cat >conftest.$ac_ext <<_ACEOF
48312 cat confdefs.h >>conftest.$ac_ext
48313 cat >>conftest.$ac_ext <<_ACEOF
48314 /* end confdefs.h. */
48315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48317 #define $ac_func innocuous_$ac_func
48319 /* System header to define __stub macros and hopefully few prototypes,
48320 which can conflict with char $ac_func (); below.
48321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48322 <limits.h> exists even on freestanding compilers. */
48325 # include <limits.h>
48327 # include <assert.h>
48332 /* Override any gcc2 internal prototype to avoid an error. */
48337 /* We use char because int might match the return type of a gcc2
48338 builtin and then its argument prototype would still apply. */
48340 /* The GNU C library defines this for functions which it implements
48341 to always fail with ENOSYS. Some functions are actually named
48342 something starting with __ and the normal name is an alias. */
48343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48346 char (*f) () = $ac_func;
48355 return f != $ac_func;
48360 rm -f conftest.$ac_objext conftest$ac_exeext
48361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48362 (eval $ac_link) 2>conftest.er1
48364 grep -v '^ *+' conftest.er1 >conftest.err
48366 cat conftest.err >&5
48367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368 (exit $ac_status); } &&
48369 { ac_try='test -z "$ac_c_werror_flag"
48370 || test ! -s conftest.err'
48371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48372 (eval $ac_try) 2>&5
48374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48375 (exit $ac_status); }; } &&
48376 { ac_try='test -s conftest$ac_exeext'
48377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48378 (eval $ac_try) 2>&5
48380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48381 (exit $ac_status); }; }; then
48382 eval "$as_ac_var=yes"
48384 echo "$as_me: failed program was:" >&5
48385 sed 's/^/| /' conftest.$ac_ext >&5
48387 eval "$as_ac_var=no"
48389 rm -f conftest.err conftest.$ac_objext \
48390 conftest$ac_exeext conftest.$ac_ext
48392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48394 if test `eval echo '${'$as_ac_var'}'` = yes; then
48395 cat >>confdefs.h <<_ACEOF
48396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48398 ice_have_strcasecmp=yes
48402 if test "${ice_have_strcasecmp}" = yes; then
48403 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
48404 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
48405 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
48406 echo $ECHO_N "(cached) $ECHO_C" >&6
48409 ice_cv_have_strcasecmp_decl=no
48410 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48411 ice_re_word='(^|[^a-zA-Z0-9_])'
48412 for header in string.h strings.h; do
48413 # Check for ordinary declaration
48414 cat >conftest.$ac_ext <<_ACEOF
48417 cat confdefs.h >>conftest.$ac_ext
48418 cat >>conftest.$ac_ext <<_ACEOF
48419 /* end confdefs.h. */
48423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48424 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
48425 ice_cv_have_strcasecmp_decl=yes
48429 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48432 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48433 cat >conftest.$ac_ext <<_ACEOF
48436 cat confdefs.h >>conftest.$ac_ext
48437 cat >>conftest.$ac_ext <<_ACEOF
48438 /* end confdefs.h. */
48442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48443 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48444 ice_cv_have_strcasecmp_decl=yes
48448 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48455 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
48456 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
48457 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48459 cat >>confdefs.h <<_ACEOF
48460 #define HAVE_STRCASECMP_DECL 1
48468 for ac_func in fnmatch
48470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48471 echo "$as_me:$LINENO: checking for $ac_func" >&5
48472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48473 if eval "test \"\${$as_ac_var+set}\" = set"; then
48474 echo $ECHO_N "(cached) $ECHO_C" >&6
48476 cat >conftest.$ac_ext <<_ACEOF
48479 cat confdefs.h >>conftest.$ac_ext
48480 cat >>conftest.$ac_ext <<_ACEOF
48481 /* end confdefs.h. */
48482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48484 #define $ac_func innocuous_$ac_func
48486 /* System header to define __stub macros and hopefully few prototypes,
48487 which can conflict with char $ac_func (); below.
48488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48489 <limits.h> exists even on freestanding compilers. */
48492 # include <limits.h>
48494 # include <assert.h>
48499 /* Override any gcc2 internal prototype to avoid an error. */
48504 /* We use char because int might match the return type of a gcc2
48505 builtin and then its argument prototype would still apply. */
48507 /* The GNU C library defines this for functions which it implements
48508 to always fail with ENOSYS. Some functions are actually named
48509 something starting with __ and the normal name is an alias. */
48510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48513 char (*f) () = $ac_func;
48522 return f != $ac_func;
48527 rm -f conftest.$ac_objext conftest$ac_exeext
48528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48529 (eval $ac_link) 2>conftest.er1
48531 grep -v '^ *+' conftest.er1 >conftest.err
48533 cat conftest.err >&5
48534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48535 (exit $ac_status); } &&
48536 { ac_try='test -z "$ac_c_werror_flag"
48537 || test ! -s conftest.err'
48538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48539 (eval $ac_try) 2>&5
48541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48542 (exit $ac_status); }; } &&
48543 { ac_try='test -s conftest$ac_exeext'
48544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48545 (eval $ac_try) 2>&5
48547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548 (exit $ac_status); }; }; then
48549 eval "$as_ac_var=yes"
48551 echo "$as_me: failed program was:" >&5
48552 sed 's/^/| /' conftest.$ac_ext >&5
48554 eval "$as_ac_var=no"
48556 rm -f conftest.err conftest.$ac_objext \
48557 conftest$ac_exeext conftest.$ac_ext
48559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48561 if test `eval echo '${'$as_ac_var'}'` = yes; then
48562 cat >>confdefs.h <<_ACEOF
48563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48570 if test "$ac_cv_func_fnmatch" != yes -a "$USE_QUICK_AND_DIRTY_ESTIMATES" != yes ; then
48571 { echo "$as_me:$LINENO: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&5
48572 echo "$as_me: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&2;}
48575 echo "$as_me:$LINENO: checking disk device prefixes" >&5
48576 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
48578 df / | while read line; do
48580 while test $# -gt 0; do
48581 if test "$1" = "/"; then
48588 ) | sed 's/(//' | sed 's/)//' `
48592 while test $# -gt 0; do
48593 if expr "$1" : '.*dev' >/dev/null 2>&1; then
48601 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
48602 echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
48603 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
48605 if test -d /dev/dsk; then
48606 DEV_PREFIX=/dev/dsk/
48607 if test -d /dev/rdsk; then
48608 RDEV_PREFIX=/dev/rdsk/
48610 RDEV_PREFIX=/dev/dsk/
48612 elif test -d /dev; then
48615 dev_prefix=/dev/dsk/
48616 rdev_prefix=/dev/rdsk/
48617 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
48618 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
48623 # Some systems, notably Linux, do not have raw disk devices
48624 # names. Check this by trying to see if a raw disk device name
48625 # exists using the normal raw device path prepended to the
48626 # mount point of the root filesystem.
48627 if test "$mount"; then
48628 dev_name="/dev/r`basename $mount`"
48629 if test -b $dev_name -o -c $dev_name; then
48643 echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
48644 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
48648 cat >>confdefs.h <<_ACEOF
48649 #define DEV_PREFIX "${DEV_PREFIX}"
48653 cat >>confdefs.h <<_ACEOF
48654 #define RDEV_PREFIX "${RDEV_PREFIX}"
48660 { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
48661 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
48665 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
48666 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
48667 if test "${amanda_cv_posix_filelocking+set}" = set; then
48668 echo $ECHO_N "(cached) $ECHO_C" >&6
48671 if test "$cross_compiling" = yes; then
48673 amanda_cv_posix_filelocking="no (cannot run test)"
48676 cat >conftest.$ac_ext <<_ACEOF
48679 cat confdefs.h >>conftest.$ac_ext
48680 cat >>conftest.$ac_ext <<_ACEOF
48681 /* end confdefs.h. */
48684 #define CONFIGURE_TEST
48685 #define USE_POSIX_FCNTL
48686 #include "${srcdir-.}/common-src/amflock.c"
48689 rm -f conftest$ac_exeext
48690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48691 (eval $ac_link) 2>&5
48693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48696 (eval $ac_try) 2>&5
48698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48699 (exit $ac_status); }; }; then
48701 amanda_cv_posix_filelocking=yes
48704 echo "$as_me: program exited with status $ac_status" >&5
48705 echo "$as_me: failed program was:" >&5
48706 sed 's/^/| /' conftest.$ac_ext >&5
48708 ( exit $ac_status )
48710 amanda_cv_posix_filelocking="no"
48713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48715 rm -f /tmp/conftest.lock
48718 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
48719 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
48720 if test "$amanda_cv_posix_filelocking" = yes; then
48722 cat >>confdefs.h <<\_ACEOF
48723 #define USE_POSIX_FCNTL 1
48726 HAS_WORKING_FILE_LOCK=1
48729 if test -z "$HAS_WORKING_FILE_LOCK"; then
48730 echo "$as_me:$LINENO: checking whether flock locking works" >&5
48731 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
48732 if test "${amanda_cv_flock_filelocking+set}" = set; then
48733 echo $ECHO_N "(cached) $ECHO_C" >&6
48736 if test "$cross_compiling" = yes; then
48738 amanda_cv_flock_filelocking="no (cannot run test)"
48741 cat >conftest.$ac_ext <<_ACEOF
48744 cat confdefs.h >>conftest.$ac_ext
48745 cat >>conftest.$ac_ext <<_ACEOF
48746 /* end confdefs.h. */
48749 #define CONFIGURE_TEST
48751 #include "${srcdir-.}/common-src/amflock.c"
48754 rm -f conftest$ac_exeext
48755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48756 (eval $ac_link) 2>&5
48758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48761 (eval $ac_try) 2>&5
48763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48764 (exit $ac_status); }; }; then
48766 amanda_cv_flock_filelocking="yes"
48769 echo "$as_me: program exited with status $ac_status" >&5
48770 echo "$as_me: failed program was:" >&5
48771 sed 's/^/| /' conftest.$ac_ext >&5
48773 ( exit $ac_status )
48775 amanda_cv_flock_filelocking="no"
48778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48780 rm -f /tmp/conftest.lock
48783 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
48784 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
48785 if test "$amanda_cv_flock_filelocking" = yes; then
48787 cat >>confdefs.h <<\_ACEOF
48788 #define USE_FLOCK 1
48791 HAS_WORKING_FILE_LOCK=1
48795 if test -z "$HAS_WORKING_FILE_LOCK"; then
48796 echo "$as_me:$LINENO: checking whether lockf locking works" >&5
48797 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
48798 if test "${amanda_cv_lockf_filelocking+set}" = set; then
48799 echo $ECHO_N "(cached) $ECHO_C" >&6
48802 if test "$cross_compiling" = yes; then
48804 amanda_cv_lockf_filelocking="no (cannot run test)"
48807 cat >conftest.$ac_ext <<_ACEOF
48810 cat confdefs.h >>conftest.$ac_ext
48811 cat >>conftest.$ac_ext <<_ACEOF
48812 /* end confdefs.h. */
48815 #define CONFIGURE_TEST
48817 #include "${srcdir-.}/common-src/amflock.c"
48820 rm -f conftest$ac_exeext
48821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48822 (eval $ac_link) 2>&5
48824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48827 (eval $ac_try) 2>&5
48829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48830 (exit $ac_status); }; }; then
48832 amanda_cv_lockf_filelocking="yes"
48835 echo "$as_me: program exited with status $ac_status" >&5
48836 echo "$as_me: failed program was:" >&5
48837 sed 's/^/| /' conftest.$ac_ext >&5
48839 ( exit $ac_status )
48841 amanda_cv_lockf_filelocking="no"
48844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48846 rm -f /tmp/conftest.lock
48849 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
48850 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
48851 if test "$amanda_cv_lockf_filelocking" = yes; then
48853 cat >>confdefs.h <<\_ACEOF
48854 #define USE_LOCKF 1
48857 HAS_WORKING_FILE_LOCK=1
48861 if test -z "$HAS_WORKING_FILE_LOCK"; then
48862 echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
48863 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
48864 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
48865 echo $ECHO_N "(cached) $ECHO_C" >&6
48868 if test "$cross_compiling" = yes; then
48870 amanda_cv_lnlock_filelocking="no (cannot run test)"
48873 cat >conftest.$ac_ext <<_ACEOF
48876 cat confdefs.h >>conftest.$ac_ext
48877 cat >>conftest.$ac_ext <<_ACEOF
48878 /* end confdefs.h. */
48881 #define CONFIGURE_TEST
48883 #include "${srcdir-.}/common-src/amflock.c"
48884 #include "${srcdir-.}/common-src/alloc.c"
48885 #include "${srcdir-.}/common-src/error.c"
48886 #include "${srcdir-.}/common-src/snprintf.c"
48889 rm -f conftest$ac_exeext
48890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48891 (eval $ac_link) 2>&5
48893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48896 (eval $ac_try) 2>&5
48898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48899 (exit $ac_status); }; }; then
48901 amanda_cv_lnlock_filelocking="yes"
48904 echo "$as_me: program exited with status $ac_status" >&5
48905 echo "$as_me: failed program was:" >&5
48906 sed 's/^/| /' conftest.$ac_ext >&5
48908 ( exit $ac_status )
48910 amanda_cv_lnlock_filelocking="no"
48913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48915 rm -f /tmp/conftest.lock
48918 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
48919 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
48920 if test "$amanda_cv_lnlock_filelocking" = yes; then
48922 cat >>confdefs.h <<\_ACEOF
48923 #define USE_LNLOCK 1
48926 HAS_WORKING_FILE_LOCK=1
48930 if test -z "$HAS_WORKING_FILE_LOCK"; then
48931 { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
48932 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
48933 { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
48934 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
48945 if test x"$NO_CLIENT_MODE" != x"true"; then
48947 WANT_CLIENT_FALSE='#'
48949 WANT_CLIENT_TRUE='#'
48955 if test ! -z "$SAMBA_CLIENT"; then
48957 WANT_SAMBA_FALSE='#'
48959 WANT_SAMBA_TRUE='#'
48965 if test x"$NO_RESTORE_MODE" != x"true"; then
48967 WANT_RESTORE_FALSE='#'
48969 WANT_RESTORE_TRUE='#'
48970 WANT_RESTORE_FALSE=
48975 if test x"$NO_SERVER_MODE" != x"true"; then
48977 WANT_SERVER_FALSE='#'
48979 WANT_SERVER_TRUE='#'
48985 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
48987 WANT_RECOVER_FALSE='#'
48989 WANT_RECOVER_TRUE='#'
48990 WANT_RECOVER_FALSE=
48995 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
48997 WANT_TAPE_FALSE='#'
49005 if test x"$NO_AMPLOT_MODE" != x"true"; then
49007 WANT_AMPLOT_FALSE='#'
49009 WANT_AMPLOT_TRUE='#'
49015 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
49016 WANT_CHG_SCSI_TRUE=
49017 WANT_CHG_SCSI_FALSE='#'
49019 WANT_CHG_SCSI_TRUE='#'
49020 WANT_CHG_SCSI_FALSE=
49025 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
49026 WANT_CHIO_SCSI_TRUE=
49027 WANT_CHIO_SCSI_FALSE='#'
49029 WANT_CHIO_SCSI_TRUE='#'
49030 WANT_CHIO_SCSI_FALSE=
49035 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
49036 WANT_RUNTIME_PSEUDO_RELOC_TRUE=
49037 WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
49039 WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
49040 WANT_RUNTIME_PSEUDO_RELOC_FALSE=
49045 if test x"$NEED_SETUID_CLIENT" != x"false"; then
49046 WANT_SETUID_CLIENT_TRUE=
49047 WANT_SETUID_CLIENT_FALSE='#'
49049 WANT_SETUID_CLIENT_TRUE='#'
49050 WANT_SETUID_CLIENT_FALSE=
49054 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
49056 cat >>confdefs.h <<\_ACEOF
49057 #define USE_RUNDUMP 1
49062 # This is necessary so that .o files in LIBOBJS are also built via
49063 # the ANSI2KNR-filtering rules.
49064 LIBOBJS=`echo "$LIBOBJS" |
49065 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
49066 LTLIBOBJS=`echo "$LIBOBJS" |
49067 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
49070 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
49073 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/amadmin.8 man/amanda.8 man/amcheck.8 man/amcheckdb.8 man/amcleanup.8 man/amdump.8 man/amflush.8 man/amlabel.8 man/amoverview.8 man/amrecover.8 man/amrmtape.8 man/amtoc.8 man/amverify.8 man/Makefile man/amstatus.8 man/amreport.8 man/amgetconf.8 man/amverifyrun.8 man/amtapetype.8 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"
49075 cat >confcache <<\_ACEOF
49076 # This file is a shell script that caches the results of configure
49077 # tests run on this system so they can be shared between configure
49078 # scripts and configure runs, see configure's option --config-cache.
49079 # It is not useful on other systems. If it contains results you don't
49080 # want to keep, you may remove or edit it.
49082 # config.status only pays attention to the cache file if you give it
49083 # the --recheck option to rerun configure.
49085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49087 # following values.
49091 # The following way of writing the cache mishandles newlines in values,
49092 # but we know of no workaround that is simple, portable, and efficient.
49093 # So, don't put newlines in cache variables' values.
49094 # Ultrix sh set writes to stderr and can't be redirected directly,
49095 # and sets the high bit in the cache file unless we assign to the vars.
49098 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49100 # `set' does not quote correctly, so add quotes (double-quote
49101 # substitution turns \\\\ into \\, and sed turns \\ into \).
49104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49107 # `set' quotes correctly as required by POSIX, so do not add quotes.
49109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49118 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49120 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49121 if test -w $cache_file; then
49122 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49123 cat confcache >$cache_file
49125 echo "not updating unwritable cache $cache_file"
49130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49131 # Let make expand exec_prefix.
49132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49134 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49135 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49136 # trailing colons and then remove the whole line if VPATH becomes empty
49137 # (actually we leave an empty line to preserve line numbers).
49138 if test "x$srcdir" = x.; then
49139 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49140 s/:*\$(srcdir):*/:/;
49141 s/:*\${srcdir}:*/:/;
49143 s/^\([^=]*=[ ]*\):*/\1/;
49149 DEFS=-DHAVE_CONFIG_H
49153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49154 # 1. Remove the extension, and $U if already installed.
49155 ac_i=`echo "$ac_i" |
49156 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49158 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49159 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49161 LIBOBJS=$ac_libobjs
49163 LTLIBOBJS=$ac_ltlibobjs
49166 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49167 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
49168 Usually this means the macro was only invoked conditionally." >&5
49169 echo "$as_me: error: conditional \"AMDEP\" was never defined.
49170 Usually this means the macro was only invoked conditionally." >&2;}
49171 { (exit 1); exit 1; }; }
49173 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49174 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
49175 Usually this means the macro was only invoked conditionally." >&5
49176 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
49177 Usually this means the macro was only invoked conditionally." >&2;}
49178 { (exit 1); exit 1; }; }
49180 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
49181 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
49182 Usually this means the macro was only invoked conditionally." >&5
49183 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
49184 Usually this means the macro was only invoked conditionally." >&2;}
49185 { (exit 1); exit 1; }; }
49187 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
49188 { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
49189 Usually this means the macro was only invoked conditionally." >&5
49190 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
49191 Usually this means the macro was only invoked conditionally." >&2;}
49192 { (exit 1); exit 1; }; }
49194 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
49195 { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
49196 Usually this means the macro was only invoked conditionally." >&5
49197 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
49198 Usually this means the macro was only invoked conditionally." >&2;}
49199 { (exit 1); exit 1; }; }
49201 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
49202 { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
49203 Usually this means the macro was only invoked conditionally." >&5
49204 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
49205 Usually this means the macro was only invoked conditionally." >&2;}
49206 { (exit 1); exit 1; }; }
49208 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
49209 { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
49210 Usually this means the macro was only invoked conditionally." >&5
49211 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
49212 Usually this means the macro was only invoked conditionally." >&2;}
49213 { (exit 1); exit 1; }; }
49215 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
49216 { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
49217 Usually this means the macro was only invoked conditionally." >&5
49218 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
49219 Usually this means the macro was only invoked conditionally." >&2;}
49220 { (exit 1); exit 1; }; }
49222 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
49223 { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
49224 Usually this means the macro was only invoked conditionally." >&5
49225 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
49226 Usually this means the macro was only invoked conditionally." >&2;}
49227 { (exit 1); exit 1; }; }
49229 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
49230 { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
49231 Usually this means the macro was only invoked conditionally." >&5
49232 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
49233 Usually this means the macro was only invoked conditionally." >&2;}
49234 { (exit 1); exit 1; }; }
49236 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
49237 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
49238 Usually this means the macro was only invoked conditionally." >&5
49239 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
49240 Usually this means the macro was only invoked conditionally." >&2;}
49241 { (exit 1); exit 1; }; }
49243 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
49244 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49245 Usually this means the macro was only invoked conditionally." >&5
49246 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49247 Usually this means the macro was only invoked conditionally." >&2;}
49248 { (exit 1); exit 1; }; }
49250 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
49251 { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49252 Usually this means the macro was only invoked conditionally." >&5
49253 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49254 Usually this means the macro was only invoked conditionally." >&2;}
49255 { (exit 1); exit 1; }; }
49257 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
49258 { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49259 Usually this means the macro was only invoked conditionally." >&5
49260 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49261 Usually this means the macro was only invoked conditionally." >&2;}
49262 { (exit 1); exit 1; }; }
49265 : ${CONFIG_STATUS=./config.status}
49266 ac_clean_files_save=$ac_clean_files
49267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49270 cat >$CONFIG_STATUS <<_ACEOF
49272 # Generated by $as_me.
49273 # Run this file to recreate the current configuration.
49274 # Compiler output produced by configure, useful for debugging
49275 # configure, is in config.log if it exists.
49278 ac_cs_recheck=false
49280 SHELL=\${CONFIG_SHELL-$SHELL}
49283 cat >>$CONFIG_STATUS <<\_ACEOF
49284 ## --------------------- ##
49285 ## M4sh Initialization. ##
49286 ## --------------------- ##
49288 # Be Bourne compatible
49289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49292 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49293 # is contrary to our usage. Disable this feature.
49294 alias -g '${1+"$@"}'='"$@"'
49295 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49298 DUALCASE=1; export DUALCASE # for MKS sh
49300 # Support unset when possible.
49301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49308 # Work around bugs in pre-3.0 UWIN ksh.
49309 $as_unset ENV MAIL MAILPATH
49316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49318 LC_TELEPHONE LC_TIME
49320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49321 eval $as_var=C; export $as_var
49327 # Required to use basename.
49328 if expr a : '\(a\)' >/dev/null 2>&1; then
49334 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49335 as_basename=basename
49341 # Name of the executable.
49342 as_me=`$as_basename "$0" ||
49343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49344 X"$0" : 'X\(//\)$' \| \
49345 X"$0" : 'X\(/\)$' \| \
49346 . : '\(.\)' 2>/dev/null ||
49348 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49349 /^X\/\(\/\/\)$/{ s//\1/; q; }
49350 /^X\/\(\/\).*/{ s//\1/; q; }
49354 # PATH needs CR, and LINENO needs CR and PATH.
49355 # Avoid depending upon Character Ranges.
49356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49359 as_cr_digits='0123456789'
49360 as_cr_alnum=$as_cr_Letters$as_cr_digits
49362 # The user is always right.
49363 if test "${PATH_SEPARATOR+set}" != set; then
49364 echo "#! /bin/sh" >conf$$.sh
49365 echo "exit 0" >>conf$$.sh
49367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49376 as_lineno_1=$LINENO
49377 as_lineno_2=$LINENO
49378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49379 test "x$as_lineno_1" != "x$as_lineno_2" &&
49380 test "x$as_lineno_3" = "x$as_lineno_2" || {
49381 # Find who we are. Look in the path if we contain no path at all
49384 *[\\/]* ) as_myself=$0 ;;
49385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49386 for as_dir in $PATH
49389 test -z "$as_dir" && as_dir=.
49390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49395 # We did not find ourselves, most probably we were run as `sh COMMAND'
49396 # in which case we are not to be found in the path.
49397 if test "x$as_myself" = x; then
49400 if test ! -f "$as_myself"; then
49401 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49402 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49403 { (exit 1); exit 1; }; }
49405 case $CONFIG_SHELL in
49407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49408 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49411 test -z "$as_dir" && as_dir=.
49412 for as_base in sh bash ksh sh5; do
49415 if ("$as_dir/$as_base" -c '
49416 as_lineno_1=$LINENO
49417 as_lineno_2=$LINENO
49418 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49419 test "x$as_lineno_1" != "x$as_lineno_2" &&
49420 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49421 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49422 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49423 CONFIG_SHELL=$as_dir/$as_base
49424 export CONFIG_SHELL
49425 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49434 # uniformly replaced by the line number. The first 'sed' inserts a
49435 # line-number line before each line; the second 'sed' does the real
49436 # work. The second script uses 'N' to pair each line-number line
49437 # with the numbered line, and appends trailing '-' during
49438 # substitution so that $LINENO is not a special case at line end.
49439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49440 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49441 sed '=' <$as_myself |
49446 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49449 s,^['$as_cr_digits']*\n,,
49450 ' >$as_me.lineno &&
49451 chmod +x $as_me.lineno ||
49452 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49453 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49454 { (exit 1); exit 1; }; }
49456 # Don't try to exec as it changes $[0], causing all sort of problems
49457 # (the dirname of $[0] is not the place where we might find the
49458 # original and so on. Autoconf is especially sensible to this).
49460 # Exit status is that of the last command.
49465 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49466 *c*,-n*) ECHO_N= ECHO_C='
49468 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49469 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49472 if expr a : '\(a\)' >/dev/null 2>&1; then
49478 rm -f conf$$ conf$$.exe conf$$.file
49480 if ln -s conf$$.file conf$$ 2>/dev/null; then
49481 # We could just check for DJGPP; but this test a) works b) is more generic
49482 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49483 if test -f conf$$.exe; then
49484 # Don't use ln at all; we don't have any links
49489 elif ln conf$$.file conf$$ 2>/dev/null; then
49494 rm -f conf$$ conf$$.exe conf$$.file
49496 if mkdir -p . 2>/dev/null; then
49499 test -d ./-p && rmdir ./-p
49503 as_executable_p="test -f"
49505 # Sed expression to map a string onto a valid CPP name.
49506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49508 # Sed expression to map a string onto a valid variable name.
49509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49513 # We need space, tab and new line, in precisely that order.
49523 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49524 # report actual input values of CONFIG_FILES etc. instead of their
49525 # values after options handling. Logging --version etc. is OK.
49529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49530 ## Running $as_me. ##
49535 This file was extended by $as_me, which was
49536 generated by GNU Autoconf 2.59. Invocation command line was
49538 CONFIG_FILES = $CONFIG_FILES
49539 CONFIG_HEADERS = $CONFIG_HEADERS
49540 CONFIG_LINKS = $CONFIG_LINKS
49541 CONFIG_COMMANDS = $CONFIG_COMMANDS
49545 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49549 # Files that config.status was made for.
49550 if test -n "$ac_config_files"; then
49551 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49554 if test -n "$ac_config_headers"; then
49555 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49558 if test -n "$ac_config_links"; then
49559 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49562 if test -n "$ac_config_commands"; then
49563 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49566 cat >>$CONFIG_STATUS <<\_ACEOF
49569 \`$as_me' instantiates files from templates according to the
49570 current configuration.
49572 Usage: $0 [OPTIONS] [FILE]...
49574 -h, --help print this help, then exit
49575 -V, --version print version number, then exit
49576 -q, --quiet do not print progress messages
49577 -d, --debug don't remove temporary files
49578 --recheck update $as_me by reconfiguring in the same conditions
49579 --file=FILE[:TEMPLATE]
49580 instantiate the configuration file FILE
49581 --header=FILE[:TEMPLATE]
49582 instantiate the configuration header FILE
49584 Configuration files:
49587 Configuration headers:
49590 Configuration commands:
49593 Report bugs to <bug-autoconf@gnu.org>."
49596 cat >>$CONFIG_STATUS <<_ACEOF
49599 configured by $0, generated by GNU Autoconf 2.59,
49600 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49602 Copyright (C) 2003 Free Software Foundation, Inc.
49603 This config.status script is free software; the Free Software Foundation
49604 gives unlimited permission to copy, distribute and modify it."
49609 cat >>$CONFIG_STATUS <<\_ACEOF
49610 # If no file are specified by the user, then we need to provide default
49611 # value. By we need to know if files were specified by the user.
49617 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49618 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49626 *) # This is not an option, so the user has probably given explicit
49629 ac_need_defaults=false;;
49633 # Handling of the options.
49635 cat >>$CONFIG_STATUS <<\_ACEOF
49636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49638 --version | --vers* | -V )
49639 echo "$ac_cs_version"; exit 0 ;;
49641 # Conflict between --help and --header
49642 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49643 Try \`$0 --help' for more information." >&5
49644 echo "$as_me: error: ambiguous option: $1
49645 Try \`$0 --help' for more information." >&2;}
49646 { (exit 1); exit 1; }; };;
49647 --help | --hel | -h )
49648 echo "$ac_cs_usage"; exit 0 ;;
49649 --debug | --d* | -d )
49651 --file | --fil | --fi | --f )
49653 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49654 ac_need_defaults=false;;
49655 --header | --heade | --head | --hea )
49657 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49658 ac_need_defaults=false;;
49659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49663 # This is an error.
49664 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49665 Try \`$0 --help' for more information." >&5
49666 echo "$as_me: error: unrecognized option: $1
49667 Try \`$0 --help' for more information." >&2;}
49668 { (exit 1); exit 1; }; } ;;
49670 *) ac_config_targets="$ac_config_targets $1" ;;
49676 ac_configure_extra_args=
49678 if $ac_cs_silent; then
49680 ac_configure_extra_args="$ac_configure_extra_args --silent"
49684 cat >>$CONFIG_STATUS <<_ACEOF
49685 if \$ac_cs_recheck; then
49686 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49687 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49692 cat >>$CONFIG_STATUS <<_ACEOF
49694 # INIT-COMMANDS section.
49697 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49698 # variables for create stdint.h replacement
49701 ac_stdint_h="$ac_stdint_h"
49702 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
49703 ac_cv_stdint_message="$ac_cv_stdint_message"
49704 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
49705 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
49706 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
49707 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
49708 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
49709 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
49710 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
49711 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
49712 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
49713 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
49714 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
49721 cat >>$CONFIG_STATUS <<\_ACEOF
49722 for ac_config_target in $ac_config_targets
49724 case "$ac_config_target" in
49725 # Handling of arguments.
49726 "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
49727 "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
49728 "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
49729 "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
49730 "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
49731 "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
49732 "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
49733 "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
49734 "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
49735 "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
49736 "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
49737 "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
49738 "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
49739 "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
49740 "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
49741 "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
49742 "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
49743 "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
49744 "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
49745 "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
49746 "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
49747 "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
49748 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
49749 "example/amanda.conf.chg-scsi" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf.chg-scsi" ;;
49750 "example/chg-scsi-linux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-linux.conf" ;;
49751 "example/chg-scsi-solaris.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-solaris.conf" ;;
49752 "example/chg-scsi-hpux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-hpux.conf" ;;
49753 "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
49754 "man/amadmin.8" ) CONFIG_FILES="$CONFIG_FILES man/amadmin.8" ;;
49755 "man/amanda.8" ) CONFIG_FILES="$CONFIG_FILES man/amanda.8" ;;
49756 "man/amcheck.8" ) CONFIG_FILES="$CONFIG_FILES man/amcheck.8" ;;
49757 "man/amcheckdb.8" ) CONFIG_FILES="$CONFIG_FILES man/amcheckdb.8" ;;
49758 "man/amcleanup.8" ) CONFIG_FILES="$CONFIG_FILES man/amcleanup.8" ;;
49759 "man/amdump.8" ) CONFIG_FILES="$CONFIG_FILES man/amdump.8" ;;
49760 "man/amflush.8" ) CONFIG_FILES="$CONFIG_FILES man/amflush.8" ;;
49761 "man/amlabel.8" ) CONFIG_FILES="$CONFIG_FILES man/amlabel.8" ;;
49762 "man/amoverview.8" ) CONFIG_FILES="$CONFIG_FILES man/amoverview.8" ;;
49763 "man/amrecover.8" ) CONFIG_FILES="$CONFIG_FILES man/amrecover.8" ;;
49764 "man/amrmtape.8" ) CONFIG_FILES="$CONFIG_FILES man/amrmtape.8" ;;
49765 "man/amtoc.8" ) CONFIG_FILES="$CONFIG_FILES man/amtoc.8" ;;
49766 "man/amverify.8" ) CONFIG_FILES="$CONFIG_FILES man/amverify.8" ;;
49767 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49768 "man/amstatus.8" ) CONFIG_FILES="$CONFIG_FILES man/amstatus.8" ;;
49769 "man/amreport.8" ) CONFIG_FILES="$CONFIG_FILES man/amreport.8" ;;
49770 "man/amgetconf.8" ) CONFIG_FILES="$CONFIG_FILES man/amgetconf.8" ;;
49771 "man/amverifyrun.8" ) CONFIG_FILES="$CONFIG_FILES man/amverifyrun.8" ;;
49772 "man/amtapetype.8" ) CONFIG_FILES="$CONFIG_FILES man/amtapetype.8" ;;
49773 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
49774 "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
49775 "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
49776 "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
49777 "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
49778 "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
49779 "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
49780 "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
49781 "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
49782 "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
49783 "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
49784 "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
49785 "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
49786 "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
49787 "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
49788 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
49789 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49790 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
49791 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
49792 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
49793 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49794 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49795 { (exit 1); exit 1; }; };;
49799 # If the user did not use the arguments to specify the items to instantiate,
49800 # then the envvar interface is used. Set only those that are not.
49801 # We use the long form for the default assignment because of an extremely
49802 # bizarre bug on SunOS 4.1.3.
49803 if $ac_need_defaults; then
49804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49809 # Have a temporary directory for convenience. Make it in the build tree
49810 # simply because there is no reason to put it here, and in addition,
49811 # creating and moving files from /tmp can sometimes cause problems.
49812 # Create a temporary directory, and hook for its removal unless debugging.
49815 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49816 trap '{ (exit 1); exit 1; }' 1 2 13 15
49819 # Create a (secure) tmp directory for tmp files.
49822 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49823 test -n "$tmp" && test -d "$tmp"
49826 tmp=./confstat$$-$RANDOM
49827 (umask 077 && mkdir $tmp)
49830 echo "$me: cannot create a temporary directory in ." >&2
49831 { (exit 1); exit 1; }
49836 cat >>$CONFIG_STATUS <<_ACEOF
49839 # CONFIG_FILES section.
49842 # No need to generate the scripts if there are no CONFIG_FILES.
49843 # This happens for instance when ./config.status config.h
49844 if test -n "\$CONFIG_FILES"; then
49845 # Protect against being on the right side of a sed subst in config.status.
49846 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49847 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49848 s,@SHELL@,$SHELL,;t t
49849 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49850 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49851 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49852 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49853 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49854 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49855 s,@exec_prefix@,$exec_prefix,;t t
49856 s,@prefix@,$prefix,;t t
49857 s,@program_transform_name@,$program_transform_name,;t t
49858 s,@bindir@,$bindir,;t t
49859 s,@sbindir@,$sbindir,;t t
49860 s,@libexecdir@,$libexecdir,;t t
49861 s,@datadir@,$datadir,;t t
49862 s,@sysconfdir@,$sysconfdir,;t t
49863 s,@sharedstatedir@,$sharedstatedir,;t t
49864 s,@localstatedir@,$localstatedir,;t t
49865 s,@libdir@,$libdir,;t t
49866 s,@includedir@,$includedir,;t t
49867 s,@oldincludedir@,$oldincludedir,;t t
49868 s,@infodir@,$infodir,;t t
49869 s,@mandir@,$mandir,;t t
49870 s,@build_alias@,$build_alias,;t t
49871 s,@host_alias@,$host_alias,;t t
49872 s,@target_alias@,$target_alias,;t t
49873 s,@DEFS@,$DEFS,;t t
49874 s,@ECHO_C@,$ECHO_C,;t t
49875 s,@ECHO_N@,$ECHO_N,;t t
49876 s,@ECHO_T@,$ECHO_T,;t t
49877 s,@LIBS@,$LIBS,;t t
49878 s,@build@,$build,;t t
49879 s,@build_cpu@,$build_cpu,;t t
49880 s,@build_vendor@,$build_vendor,;t t
49881 s,@build_os@,$build_os,;t t
49882 s,@host@,$host,;t t
49883 s,@host_cpu@,$host_cpu,;t t
49884 s,@host_vendor@,$host_vendor,;t t
49885 s,@host_os@,$host_os,;t t
49886 s,@target@,$target,;t t
49887 s,@target_cpu@,$target_cpu,;t t
49888 s,@target_vendor@,$target_vendor,;t t
49889 s,@target_os@,$target_os,;t t
49890 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
49891 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49892 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49893 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49894 s,@CYGPATH_W@,$CYGPATH_W,;t t
49895 s,@PACKAGE@,$PACKAGE,;t t
49896 s,@VERSION@,$VERSION,;t t
49897 s,@ACLOCAL@,$ACLOCAL,;t t
49898 s,@AUTOCONF@,$AUTOCONF,;t t
49899 s,@AUTOMAKE@,$AUTOMAKE,;t t
49900 s,@AUTOHEADER@,$AUTOHEADER,;t t
49901 s,@MAKEINFO@,$MAKEINFO,;t t
49902 s,@AMTAR@,$AMTAR,;t t
49903 s,@install_sh@,$install_sh,;t t
49904 s,@STRIP@,$STRIP,;t t
49905 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
49906 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
49907 s,@mkdir_p@,$mkdir_p,;t t
49909 s,@SET_MAKE@,$SET_MAKE,;t t
49910 s,@am__leading_dot@,$am__leading_dot,;t t
49911 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
49912 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
49913 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
49914 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
49915 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
49916 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
49917 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
49918 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
49919 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
49920 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
49921 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
49922 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
49923 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
49924 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
49925 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
49926 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
49927 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
49928 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
49929 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
49930 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
49931 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
49932 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
49933 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
49934 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
49936 s,@CFLAGS@,$CFLAGS,;t t
49937 s,@LDFLAGS@,$LDFLAGS,;t t
49938 s,@CPPFLAGS@,$CPPFLAGS,;t t
49939 s,@ac_ct_CC@,$ac_ct_CC,;t t
49940 s,@EXEEXT@,$EXEEXT,;t t
49941 s,@OBJEXT@,$OBJEXT,;t t
49942 s,@DEPDIR@,$DEPDIR,;t t
49943 s,@am__include@,$am__include,;t t
49944 s,@am__quote@,$am__quote,;t t
49945 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
49946 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
49947 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
49948 s,@CCDEPMODE@,$CCDEPMODE,;t t
49949 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
49950 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
49951 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
49953 s,@EGREP@,$EGREP,;t t
49955 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
49956 s,@YACC@,$YACC,;t t
49958 s,@COMPRESS@,$COMPRESS,;t t
49960 s,@GETCONF@,$GETCONF,;t t
49961 s,@GNUPLOT@,$GNUPLOT,;t t
49962 s,@GREP@,$GREP,;t t
49963 s,@GNUTAR@,$GNUTAR,;t t
49964 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
49965 s,@GZIP@,$GZIP,;t t
49966 s,@MAILER@,$MAILER,;t t
49968 s,@CHIO@,$CHIO,;t t
49971 s,@MCUTIL@,$MCUTIL,;t t
49972 s,@PRINT@,$PRINT,;t t
49973 s,@PCAT@,$PCAT,;t t
49974 s,@PERL@,$PERL,;t t
49975 s,@DUMP@,$DUMP,;t t
49976 s,@RESTORE@,$RESTORE,;t t
49977 s,@XFSDUMP@,$XFSDUMP,;t t
49978 s,@XFSRESTORE@,$XFSRESTORE,;t t
49979 s,@VXDUMP@,$VXDUMP,;t t
49980 s,@VXRESTORE@,$VXRESTORE,;t t
49981 s,@VDUMP@,$VDUMP,;t t
49982 s,@VRESTORE@,$VRESTORE,;t t
49983 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
49984 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
49985 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
49986 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
49987 s,@LN_S@,$LN_S,;t t
49988 s,@ECHO@,$ECHO,;t t
49989 s,@ac_ct_AR@,$ac_ct_AR,;t t
49990 s,@RANLIB@,$RANLIB,;t t
49991 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49993 s,@CXXFLAGS@,$CXXFLAGS,;t t
49994 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49995 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
49996 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
49997 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
49998 s,@CXXCPP@,$CXXCPP,;t t
50000 s,@FFLAGS@,$FFLAGS,;t t
50001 s,@ac_ct_F77@,$ac_ct_F77,;t t
50002 s,@LIBTOOL@,$LIBTOOL,;t t
50003 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
50005 s,@LEXLIB@,$LEXLIB,;t t
50006 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
50007 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
50008 s,@DB_EXT@,$DB_EXT,;t t
50009 s,@ALLOCA@,$ALLOCA,;t t
50010 s,@LIBOBJS@,$LIBOBJS,;t t
50011 s,@ac_n@,$ac_n,;t t
50012 s,@ac_c@,$ac_c,;t t
50013 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
50014 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
50015 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
50016 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
50017 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
50018 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
50019 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
50020 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
50021 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
50022 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
50023 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
50024 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
50025 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
50026 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
50027 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
50028 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
50029 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
50030 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
50031 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
50032 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
50033 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
50034 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
50035 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50036 s,@LTALLOCA@,$LTALLOCA,;t t
50041 cat >>$CONFIG_STATUS <<\_ACEOF
50042 # Split the substitutions into bite-sized pieces for seds with
50043 # small command number limits, like on Digital OSF/1 and HP-UX.
50044 ac_max_sed_lines=48
50045 ac_sed_frag=1 # Number of current file.
50046 ac_beg=1 # First line for current file.
50047 ac_end=$ac_max_sed_lines # Line after last line for current file.
50050 while $ac_more_lines; do
50051 if test $ac_beg -gt 1; then
50052 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50054 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50056 if test ! -s $tmp/subs.frag; then
50057 ac_more_lines=false
50059 # The purpose of the label and of the branching condition is to
50060 # speed up the sed processing (if there are no `@' at all, there
50061 # is no need to browse any of the substitutions).
50062 # These are the two extra sed commands mentioned above.
50064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50065 if test -z "$ac_sed_cmds"; then
50066 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50068 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50070 ac_sed_frag=`expr $ac_sed_frag + 1`
50072 ac_end=`expr $ac_end + $ac_max_sed_lines`
50075 if test -z "$ac_sed_cmds"; then
50078 fi # test -n "$CONFIG_FILES"
50081 cat >>$CONFIG_STATUS <<\_ACEOF
50082 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50085 - | *:- | *:-:* ) # input from stdin
50087 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50089 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50091 * ) ac_file_in=$ac_file.in ;;
50094 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50097 X"$ac_file" : 'X\(//\)[^/]' \| \
50098 X"$ac_file" : 'X\(//\)$' \| \
50099 X"$ac_file" : 'X\(/\)' \| \
50100 . : '\(.\)' 2>/dev/null ||
50102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50104 /^X\(\/\/\)$/{ s//\1/; q; }
50105 /^X\(\/\).*/{ s//\1/; q; }
50107 { if $as_mkdir_p; then
50112 while test ! -d "$as_dir"; do
50113 as_dirs="$as_dir $as_dirs"
50114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50116 X"$as_dir" : 'X\(//\)[^/]' \| \
50117 X"$as_dir" : 'X\(//\)$' \| \
50118 X"$as_dir" : 'X\(/\)' \| \
50119 . : '\(.\)' 2>/dev/null ||
50121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50123 /^X\(\/\/\)$/{ s//\1/; q; }
50124 /^X\(\/\).*/{ s//\1/; q; }
50127 test ! -n "$as_dirs" || mkdir $as_dirs
50128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50130 { (exit 1); exit 1; }; }; }
50134 if test "$ac_dir" != .; then
50135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50136 # A "../" for each directory in $ac_dir_suffix.
50137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50139 ac_dir_suffix= ac_top_builddir=
50143 .) # No --srcdir option. We are building in place.
50145 if test -z "$ac_top_builddir"; then
50148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50150 [\\/]* | ?:[\\/]* ) # Absolute path.
50151 ac_srcdir=$srcdir$ac_dir_suffix;
50152 ac_top_srcdir=$srcdir ;;
50153 *) # Relative path.
50154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50158 # Do not use `cd foo && pwd` to compute absolute paths, because
50159 # the directories may not exist.
50161 .) ac_abs_builddir="$ac_dir";;
50164 .) ac_abs_builddir=`pwd`;;
50165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50169 case $ac_abs_builddir in
50170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50172 case ${ac_top_builddir}. in
50173 .) ac_abs_top_builddir=$ac_abs_builddir;;
50174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50178 case $ac_abs_builddir in
50179 .) ac_abs_srcdir=$ac_srcdir;;
50182 .) ac_abs_srcdir=$ac_abs_builddir;;
50183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50187 case $ac_abs_builddir in
50188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50190 case $ac_top_srcdir in
50191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50200 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50203 if test x"$ac_file" != x-; then
50204 { echo "$as_me:$LINENO: creating $ac_file" >&5
50205 echo "$as_me: creating $ac_file" >&6;}
50208 # Let's still pretend it is `configure' which instantiates (i.e., don't
50209 # use $as_me), people would be surprised to read:
50210 # /* config.h. Generated by config.status. */
50211 if test x"$ac_file" = x-; then
50214 configure_input="$ac_file. "
50216 configure_input=$configure_input"Generated from `echo $ac_file_in |
50217 sed 's,.*/,,'` by configure."
50219 # First look for the input files in the build tree, otherwise in the
50221 ac_file_inputs=`IFS=:
50222 for f in $ac_file_in; do
50224 -) echo $tmp/stdin ;;
50226 # Absolute (can't be DOS-style, as IFS=:)
50227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50228 echo "$as_me: error: cannot find input file: $f" >&2;}
50229 { (exit 1); exit 1; }; }
50232 if test -f "$f"; then
50235 elif test -f "$srcdir/$f"; then
50240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50241 echo "$as_me: error: cannot find input file: $f" >&2;}
50242 { (exit 1); exit 1; }; }
50245 done` || { (exit 1); exit 1; }
50247 cat >>$CONFIG_STATUS <<_ACEOF
50251 cat >>$CONFIG_STATUS <<\_ACEOF
50253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50254 s,@configure_input@,$configure_input,;t t
50255 s,@srcdir@,$ac_srcdir,;t t
50256 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50257 s,@top_srcdir@,$ac_top_srcdir,;t t
50258 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50259 s,@builddir@,$ac_builddir,;t t
50260 s,@abs_builddir@,$ac_abs_builddir,;t t
50261 s,@top_builddir@,$ac_top_builddir,;t t
50262 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50263 s,@INSTALL@,$ac_INSTALL,;t t
50264 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50266 if test x"$ac_file" != x-; then
50267 mv $tmp/out $ac_file
50275 cat >>$CONFIG_STATUS <<\_ACEOF
50278 # CONFIG_HEADER section.
50281 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50282 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50284 # ac_d sets the value in "#define NAME VALUE" lines.
50285 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50286 ac_dB='[ ].*$,\1#\2'
50289 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50290 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
50291 ac_uB='$,\1#\2define\3'
50295 for ac_file in : $CONFIG_HEADERS; 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 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50308 echo "$as_me: creating $ac_file" >&6;}
50310 # First look for the input files in the build tree, otherwise in the
50312 ac_file_inputs=`IFS=:
50313 for f in $ac_file_in; do
50315 -) echo $tmp/stdin ;;
50317 # Absolute (can't be DOS-style, as IFS=:)
50318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50319 echo "$as_me: error: cannot find input file: $f" >&2;}
50320 { (exit 1); exit 1; }; }
50321 # Do quote $f, to prevent DOS paths from being IFS'd.
50324 if test -f "$f"; then
50327 elif test -f "$srcdir/$f"; then
50332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50333 echo "$as_me: error: cannot find input file: $f" >&2;}
50334 { (exit 1); exit 1; }; }
50337 done` || { (exit 1); exit 1; }
50338 # Remove the trailing spaces.
50339 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
50343 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50344 # `conftest.undefs', that substitutes the proper values into
50345 # config.h.in to produce config.h. The first handles `#define'
50346 # templates, and the second `#undef' templates.
50347 # And first: Protect against being on the right side of a sed subst in
50348 # config.status. Protect against being in an unquoted here document
50349 # in config.status.
50350 rm -f conftest.defines conftest.undefs
50351 # Using a here document instead of a string reduces the quoting nightmare.
50352 # Putting comments in sed scripts is not portable.
50354 # `end' is used to avoid that the second main sed command (meant for
50355 # 0-ary CPP macros) applies to n-ary macro definitions.
50356 # See the Autoconf documentation for `clear'.
50357 cat >confdef2sed.sed <<\_ACEOF
50362 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50364 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50367 # If some macros were called several times there might be several times
50368 # the same #defines, which is useless. Nevertheless, we may not want to
50369 # sort them, since we want the *last* AC-DEFINE to be honored.
50370 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50371 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50372 rm -f confdef2sed.sed
50374 # This sed command replaces #undef with comments. This is necessary, for
50375 # example, in the case of _POSIX_SOURCE, which is predefined and required
50376 # on some systems where configure will not decide to define it.
50377 cat >>conftest.undefs <<\_ACEOF
50378 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50381 # Break up conftest.defines because some shells have a limit on the size
50382 # of here documents, and old seds have small limits too (100 cmds).
50383 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50384 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50385 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50386 echo ' :' >>$CONFIG_STATUS
50387 rm -f conftest.tail
50388 while grep . conftest.defines >/dev/null
50390 # Write a limited-size here document to $tmp/defines.sed.
50391 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50392 # Speed up: don't consider the non `#define' lines.
50393 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
50394 # Work around the forget-to-reset-the-flag bug.
50395 echo 't clr' >>$CONFIG_STATUS
50396 echo ': clr' >>$CONFIG_STATUS
50397 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50399 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50401 mv $tmp/out $tmp/in
50403 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50404 rm -f conftest.defines
50405 mv conftest.tail conftest.defines
50407 rm -f conftest.defines
50408 echo ' fi # grep' >>$CONFIG_STATUS
50409 echo >>$CONFIG_STATUS
50411 # Break up conftest.undefs because some shells have a limit on the size
50412 # of here documents, and old seds have small limits too (100 cmds).
50413 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50414 rm -f conftest.tail
50415 while grep . conftest.undefs >/dev/null
50417 # Write a limited-size here document to $tmp/undefs.sed.
50418 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50419 # Speed up: don't consider the non `#undef'
50420 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
50421 # Work around the forget-to-reset-the-flag bug.
50422 echo 't clr' >>$CONFIG_STATUS
50423 echo ': clr' >>$CONFIG_STATUS
50424 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50426 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50428 mv $tmp/out $tmp/in
50430 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50431 rm -f conftest.undefs
50432 mv conftest.tail conftest.undefs
50434 rm -f conftest.undefs
50436 cat >>$CONFIG_STATUS <<\_ACEOF
50437 # Let's still pretend it is `configure' which instantiates (i.e., don't
50438 # use $as_me), people would be surprised to read:
50439 # /* config.h. Generated by config.status. */
50440 if test x"$ac_file" = x-; then
50441 echo "/* Generated by configure. */" >$tmp/config.h
50443 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50445 cat $tmp/in >>$tmp/config.h
50447 if test x"$ac_file" != x-; then
50448 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50449 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50450 echo "$as_me: $ac_file is unchanged" >&6;}
50452 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50454 X"$ac_file" : 'X\(//\)[^/]' \| \
50455 X"$ac_file" : 'X\(//\)$' \| \
50456 X"$ac_file" : 'X\(/\)' \| \
50457 . : '\(.\)' 2>/dev/null ||
50459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50461 /^X\(\/\/\)$/{ s//\1/; q; }
50462 /^X\(\/\).*/{ s//\1/; q; }
50464 { if $as_mkdir_p; then
50469 while test ! -d "$as_dir"; do
50470 as_dirs="$as_dir $as_dirs"
50471 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50473 X"$as_dir" : 'X\(//\)[^/]' \| \
50474 X"$as_dir" : 'X\(//\)$' \| \
50475 X"$as_dir" : 'X\(/\)' \| \
50476 . : '\(.\)' 2>/dev/null ||
50478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50480 /^X\(\/\/\)$/{ s//\1/; q; }
50481 /^X\(\/\).*/{ s//\1/; q; }
50484 test ! -n "$as_dirs" || mkdir $as_dirs
50485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50486 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50487 { (exit 1); exit 1; }; }; }
50490 mv $tmp/config.h $ac_file
50494 rm -f $tmp/config.h
50496 # Compute $ac_file's index in $config_headers.
50498 for _am_header in $config_headers :; do
50499 case $_am_header in
50500 $ac_file | $ac_file:* )
50503 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
50506 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
50507 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50508 X$ac_file : 'X\(//\)[^/]' \| \
50509 X$ac_file : 'X\(//\)$' \| \
50510 X$ac_file : 'X\(/\)' \| \
50511 . : '\(.\)' 2>/dev/null ||
50513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50515 /^X\(\/\/\)$/{ s//\1/; q; }
50516 /^X\(\/\).*/{ s//\1/; q; }
50517 s/.*/./; q'`/stamp-h$_am_stamp_count
50520 cat >>$CONFIG_STATUS <<\_ACEOF
50523 # CONFIG_COMMANDS section.
50525 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50526 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50527 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50528 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50529 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50530 X"$ac_dest" : 'X\(//\)[^/]' \| \
50531 X"$ac_dest" : 'X\(//\)$' \| \
50532 X"$ac_dest" : 'X\(/\)' \| \
50533 . : '\(.\)' 2>/dev/null ||
50535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50537 /^X\(\/\/\)$/{ s//\1/; q; }
50538 /^X\(\/\).*/{ s//\1/; q; }
50540 { if $as_mkdir_p; then
50545 while test ! -d "$as_dir"; do
50546 as_dirs="$as_dir $as_dirs"
50547 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50549 X"$as_dir" : 'X\(//\)[^/]' \| \
50550 X"$as_dir" : 'X\(//\)$' \| \
50551 X"$as_dir" : 'X\(/\)' \| \
50552 . : '\(.\)' 2>/dev/null ||
50554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50556 /^X\(\/\/\)$/{ s//\1/; q; }
50557 /^X\(\/\).*/{ s//\1/; q; }
50560 test ! -n "$as_dirs" || mkdir $as_dirs
50561 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50562 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50563 { (exit 1); exit 1; }; }; }
50567 if test "$ac_dir" != .; then
50568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50569 # A "../" for each directory in $ac_dir_suffix.
50570 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50572 ac_dir_suffix= ac_top_builddir=
50576 .) # No --srcdir option. We are building in place.
50578 if test -z "$ac_top_builddir"; then
50581 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50583 [\\/]* | ?:[\\/]* ) # Absolute path.
50584 ac_srcdir=$srcdir$ac_dir_suffix;
50585 ac_top_srcdir=$srcdir ;;
50586 *) # Relative path.
50587 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50588 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50591 # Do not use `cd foo && pwd` to compute absolute paths, because
50592 # the directories may not exist.
50594 .) ac_abs_builddir="$ac_dir";;
50597 .) ac_abs_builddir=`pwd`;;
50598 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50599 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50602 case $ac_abs_builddir in
50603 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50605 case ${ac_top_builddir}. in
50606 .) ac_abs_top_builddir=$ac_abs_builddir;;
50607 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50608 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50611 case $ac_abs_builddir in
50612 .) ac_abs_srcdir=$ac_srcdir;;
50615 .) ac_abs_srcdir=$ac_abs_builddir;;
50616 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50617 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50620 case $ac_abs_builddir in
50621 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50623 case $ac_top_srcdir in
50624 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50625 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50626 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50631 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50632 echo "$as_me: executing $ac_dest commands" >&6;}
50634 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
50635 # Strip MF so we end up with the name of the file.
50636 mf=`echo "$mf" | sed -e 's/:.*$//'`
50637 # Check whether this is an Automake generated Makefile or not.
50638 # We used to match only the files named `Makefile.in', but
50639 # some people rename them; so instead we look at the file content.
50640 # Grep'ing the first line is not enough: some people post-process
50641 # each Makefile.in and add a new line on top of each file to say so.
50642 # So let's grep whole file.
50643 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
50644 dirpart=`(dirname "$mf") 2>/dev/null ||
50645 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50646 X"$mf" : 'X\(//\)[^/]' \| \
50647 X"$mf" : 'X\(//\)$' \| \
50648 X"$mf" : 'X\(/\)' \| \
50649 . : '\(.\)' 2>/dev/null ||
50651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50653 /^X\(\/\/\)$/{ s//\1/; q; }
50654 /^X\(\/\).*/{ s//\1/; q; }
50659 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
50660 # Extract the definition of DEP_FILES from the Makefile without
50662 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50663 test -z "$DEPDIR" && continue
50664 # When using ansi2knr, U may be empty or an underscore; expand it
50665 U=`sed -n 's/^U = //p' < "$mf"`
50666 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
50667 # We invoke sed twice because it is the simplest approach to
50668 # changing $(DEPDIR) to its actual value in the expansion.
50669 for file in `sed -n '
50670 /^DEP_FILES = .*\\\\$/ {
50679 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
50680 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
50681 # Make sure the directory exists.
50682 test -f "$dirpart/$file" && continue
50683 fdir=`(dirname "$file") 2>/dev/null ||
50684 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50685 X"$file" : 'X\(//\)[^/]' \| \
50686 X"$file" : 'X\(//\)$' \| \
50687 X"$file" : 'X\(/\)' \| \
50688 . : '\(.\)' 2>/dev/null ||
50690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50692 /^X\(\/\/\)$/{ s//\1/; q; }
50693 /^X\(\/\).*/{ s//\1/; q; }
50695 { if $as_mkdir_p; then
50696 mkdir -p $dirpart/$fdir
50698 as_dir=$dirpart/$fdir
50700 while test ! -d "$as_dir"; do
50701 as_dirs="$as_dir $as_dirs"
50702 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50704 X"$as_dir" : 'X\(//\)[^/]' \| \
50705 X"$as_dir" : 'X\(//\)$' \| \
50706 X"$as_dir" : 'X\(/\)' \| \
50707 . : '\(.\)' 2>/dev/null ||
50709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50711 /^X\(\/\/\)$/{ s//\1/; q; }
50712 /^X\(\/\).*/{ s//\1/; q; }
50715 test ! -n "$as_dirs" || mkdir $as_dirs
50716 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
50717 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
50718 { (exit 1); exit 1; }; }; }
50720 # echo "creating $dirpart/$file"
50721 echo '# dummy' > "$dirpart/$file"
50726 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
50727 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
50728 ac_stdint=$tmp/_stdint.h
50730 echo "#ifndef" $_ac_stdint_h >$ac_stdint
50731 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
50732 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
50733 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
50734 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
50735 if test "_$ac_cv_header_stdint_t" != "_" ; then
50736 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
50739 cat >>$ac_stdint <<STDINT_EOF
50741 /* ................... shortcircuit part ........................... */
50743 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
50744 #include <stdint.h>
50746 #include <stddef.h>
50748 /* .................... configured part ............................ */
50752 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
50753 if test "_$ac_cv_header_stdint_x" != "_" ; then
50754 ac_header="$ac_cv_header_stdint_x"
50755 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
50757 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
50760 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
50761 if test "_$ac_cv_header_stdint_o" != "_" ; then
50762 ac_header="$ac_cv_header_stdint_o"
50763 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
50765 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
50768 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
50769 if test "_$ac_cv_header_stdint_u" != "_" ; then
50770 ac_header="$ac_cv_header_stdint_u"
50771 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
50773 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
50776 echo "" >>$ac_stdint
50778 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
50779 echo "#include <$ac_header>" >>$ac_stdint
50780 echo "" >>$ac_stdint
50783 echo "/* which 64bit typedef has been found */" >>$ac_stdint
50784 if test "$ac_cv_type_uint64_t" = "yes" ; then
50785 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
50787 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
50789 if test "$ac_cv_type_u_int64_t" = "yes" ; then
50790 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
50792 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
50794 echo "" >>$ac_stdint
50796 echo "/* which type model has been detected */" >>$ac_stdint
50797 if test "_$ac_cv_stdint_char_model" != "_" ; then
50798 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
50799 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
50801 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
50802 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
50804 echo "" >>$ac_stdint
50806 echo "/* whether int_least types were detected */" >>$ac_stdint
50807 if test "$ac_cv_type_int_least32_t" = "yes"; then
50808 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
50810 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
50812 echo "/* whether int_fast types were detected */" >>$ac_stdint
50813 if test "$ac_cv_type_int_fast32_t" = "yes"; then
50814 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
50816 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
50818 echo "/* whether intmax_t type was detected */" >>$ac_stdint
50819 if test "$ac_cv_type_intmax_t" = "yes"; then
50820 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
50822 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
50824 echo "" >>$ac_stdint
50826 cat >>$ac_stdint <<STDINT_EOF
50827 /* .................... detections part ............................ */
50829 /* whether we need to define bitspecific types from compiler base types */
50830 #ifndef _STDINT_HEADER_INTPTR
50831 #ifndef _STDINT_HEADER_UINT32
50832 #ifndef _STDINT_HEADER_U_INT32
50833 #define _STDINT_NEED_INT_MODEL_T
50835 #define _STDINT_HAVE_U_INT_TYPES
50840 #ifdef _STDINT_HAVE_U_INT_TYPES
50841 #undef _STDINT_NEED_INT_MODEL_T
50844 #ifdef _STDINT_CHAR_MODEL
50845 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
50846 #ifndef _STDINT_BYTE_MODEL
50847 #define _STDINT_BYTE_MODEL 12
50852 #ifndef _STDINT_HAVE_INT_LEAST32_T
50853 #define _STDINT_NEED_INT_LEAST_T
50856 #ifndef _STDINT_HAVE_INT_FAST32_T
50857 #define _STDINT_NEED_INT_FAST_T
50860 #ifndef _STDINT_HEADER_INTPTR
50861 #define _STDINT_NEED_INTPTR_T
50862 #ifndef _STDINT_HAVE_INTMAX_T
50863 #define _STDINT_NEED_INTMAX_T
50868 /* .................... definition part ............................ */
50870 /* some system headers have good uint64_t */
50871 #ifndef _HAVE_UINT64_T
50872 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
50873 #define _HAVE_UINT64_T
50874 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
50875 #define _HAVE_UINT64_T
50876 typedef u_int64_t uint64_t;
50880 #ifndef _HAVE_UINT64_T
50881 /* .. here are some common heuristics using compiler runtime specifics */
50882 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
50883 #define _HAVE_UINT64_T
50884 typedef long long int64_t;
50885 typedef unsigned long long uint64_t;
50887 #elif !defined __STRICT_ANSI__
50888 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
50889 #define _HAVE_UINT64_T
50890 typedef __int64 int64_t;
50891 typedef unsigned __int64 uint64_t;
50893 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
50894 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
50895 #if !defined _NO_LONGLONG
50896 #define _HAVE_UINT64_T
50897 typedef long long int64_t;
50898 typedef unsigned long long uint64_t;
50901 #elif defined __alpha || (defined __mips && defined _ABIN32)
50902 #if !defined _NO_LONGLONG
50903 typedef long int64_t;
50904 typedef unsigned long uint64_t;
50906 /* compiler/cpu type to define int64_t */
50911 #if defined _STDINT_HAVE_U_INT_TYPES
50912 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
50913 typedef u_int8_t uint8_t;
50914 typedef u_int16_t uint16_t;
50915 typedef u_int32_t uint32_t;
50917 /* glibc compatibility */
50918 #ifndef __int8_t_defined
50919 #define __int8_t_defined
50923 #ifdef _STDINT_NEED_INT_MODEL_T
50924 /* we must guess all the basic types. Apart from byte-adressable system, */
50925 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
50926 /* (btw, those nibble-addressable systems are way off, or so we assume) */
50929 #if defined _STDINT_BYTE_MODEL
50930 #if _STDINT_LONG_MODEL+0 == 242
50931 /* 2:4:2 = IP16 = a normal 16-bit system */
50932 typedef unsigned char uint8_t;
50933 typedef unsigned short uint16_t;
50934 typedef unsigned long uint32_t;
50935 #ifndef __int8_t_defined
50936 #define __int8_t_defined
50937 typedef char int8_t;
50938 typedef short int16_t;
50939 typedef long int32_t;
50941 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
50942 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
50943 /* 4:4:4 = ILP32 = a normal 32-bit system */
50944 typedef unsigned char uint8_t;
50945 typedef unsigned short uint16_t;
50946 typedef unsigned int uint32_t;
50947 #ifndef __int8_t_defined
50948 #define __int8_t_defined
50949 typedef char int8_t;
50950 typedef short int16_t;
50951 typedef int int32_t;
50953 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
50954 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
50955 /* 4:8:8 = LP64 = a normal 64-bit system */
50956 typedef unsigned char uint8_t;
50957 typedef unsigned short uint16_t;
50958 typedef unsigned int uint32_t;
50959 #ifndef __int8_t_defined
50960 #define __int8_t_defined
50961 typedef char int8_t;
50962 typedef short int16_t;
50963 typedef int int32_t;
50965 /* this system has a "long" of 64bit */
50966 #ifndef _HAVE_UINT64_T
50967 #define _HAVE_UINT64_T
50968 typedef unsigned long uint64_t;
50969 typedef long int64_t;
50971 #elif _STDINT_LONG_MODEL+0 == 448
50972 /* LLP64 a 64-bit system derived from a 32-bit system */
50973 typedef unsigned char uint8_t;
50974 typedef unsigned short uint16_t;
50975 typedef unsigned int uint32_t;
50976 #ifndef __int8_t_defined
50977 #define __int8_t_defined
50978 typedef char int8_t;
50979 typedef short int16_t;
50980 typedef int int32_t;
50982 /* assuming the system has a "long long" */
50983 #ifndef _HAVE_UINT64_T
50984 #define _HAVE_UINT64_T
50985 typedef unsigned long long uint64_t;
50986 typedef long long int64_t;
50989 #define _STDINT_NO_INT32_T
50992 #define _STDINT_NO_INT8_T
50993 #define _STDINT_NO_INT32_T
50998 * quote from SunOS-5.8 sys/inttypes.h:
50999 * Use at your own risk. As of February 1996, the committee is squarely
51000 * behind the fixed sized types; the "least" and "fast" types are still being
51001 * discussed. The probability that the "fast" types may be removed before
51002 * the standard is finalized is high enough that they are not currently
51006 #if defined _STDINT_NEED_INT_LEAST_T
51007 typedef int8_t int_least8_t;
51008 typedef int16_t int_least16_t;
51009 typedef int32_t int_least32_t;
51010 #ifdef _HAVE_UINT64_T
51011 typedef int64_t int_least64_t;
51014 typedef uint8_t uint_least8_t;
51015 typedef uint16_t uint_least16_t;
51016 typedef uint32_t uint_least32_t;
51017 #ifdef _HAVE_UINT64_T
51018 typedef uint64_t uint_least64_t;
51023 #if defined _STDINT_NEED_INT_FAST_T
51024 typedef int8_t int_fast8_t;
51025 typedef int int_fast16_t;
51026 typedef int32_t int_fast32_t;
51027 #ifdef _HAVE_UINT64_T
51028 typedef int64_t int_fast64_t;
51031 typedef uint8_t uint_fast8_t;
51032 typedef unsigned uint_fast16_t;
51033 typedef uint32_t uint_fast32_t;
51034 #ifdef _HAVE_UINT64_T
51035 typedef uint64_t uint_fast64_t;
51040 #ifdef _STDINT_NEED_INTMAX_T
51041 #ifdef _HAVE_UINT64_T
51042 typedef int64_t intmax_t;
51043 typedef uint64_t uintmax_t;
51045 typedef long intmax_t;
51046 typedef unsigned long uintmax_t;
51050 #ifdef _STDINT_NEED_INTPTR_T
51051 #ifndef __intptr_t_defined
51052 #define __intptr_t_defined
51053 /* we encourage using "long" to store pointer values, never use "int" ! */
51054 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
51055 typedef unsinged int uintptr_t;
51056 typedef int intptr_t;
51057 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
51058 typedef unsigned long uintptr_t;
51059 typedef long intptr_t;
51060 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
51061 typedef uint64_t uintptr_t;
51062 typedef int64_t intptr_t;
51063 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
51064 typedef unsigned long uintptr_t;
51065 typedef long intptr_t;
51076 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
51077 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
51078 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
51080 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
51081 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51082 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
51083 X"$ac_stdint_h" : 'X\(//\)$' \| \
51084 X"$ac_stdint_h" : 'X\(/\)' \| \
51085 . : '\(.\)' 2>/dev/null ||
51086 echo X"$ac_stdint_h" |
51087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51089 /^X\(\/\/\)$/{ s//\1/; q; }
51090 /^X\(\/\).*/{ s//\1/; q; }
51092 { if $as_mkdir_p; then
51097 while test ! -d "$as_dir"; do
51098 as_dirs="$as_dir $as_dirs"
51099 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51101 X"$as_dir" : 'X\(//\)[^/]' \| \
51102 X"$as_dir" : 'X\(//\)$' \| \
51103 X"$as_dir" : 'X\(/\)' \| \
51104 . : '\(.\)' 2>/dev/null ||
51106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51108 /^X\(\/\/\)$/{ s//\1/; q; }
51109 /^X\(\/\).*/{ s//\1/; q; }
51112 test ! -n "$as_dirs" || mkdir $as_dirs
51113 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51114 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51115 { (exit 1); exit 1; }; }; }
51118 mv $ac_stdint $ac_stdint_h
51125 cat >>$CONFIG_STATUS <<\_ACEOF
51127 { (exit 0); exit 0; }
51129 chmod +x $CONFIG_STATUS
51130 ac_clean_files=$ac_clean_files_save
51133 # configure is writing to config.log, and then calls config.status.
51134 # config.status does its own redirection, appending to config.log.
51135 # Unfortunately, on DOS this fails, as config.log is still kept open
51136 # by configure, so config.status won't be able to write to it; its
51137 # output is simply discarded. So we exec the FD to /dev/null,
51138 # effectively closing config.log, so it can be properly (re)opened and
51139 # appended to by config.status. When coming back to configure, we
51140 # need to make the FD available again.
51141 if test "$no_create" != yes; then
51143 ac_config_status_args=
51144 test "$silent" = yes &&
51145 ac_config_status_args="$ac_config_status_args --quiet"
51147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51150 # would make configure fail if this is the last instruction.
51151 $ac_cs_success || { (exit 1); exit 1; }