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 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
881 --with-tcp-wrappers=DIR enable tcpwrappers support
882 --with-working-dir=PATH specify path of Bacula working directory
883 --with-scriptdir=PATH specify path of Bacula scripts directory
884 --with-dump-email=EMAIL dump email address
885 --with-job-email=EMAIL job output email address
886 --with-smtp-host=HOST SMTP mail host address
887 --with-pid-dir=PATH specify location of Bacula pid files
888 --with-subsys-dir=PATH specify location of Bacula subsys file
889 --with-baseport=PORT specify base port address for daemons
890 --with-dir-password=PASSWORD specify Director's password
891 --with-fd-password=PASSWORD specify Client's password
892 --with-sd-password=PASSWORD specify Storage daemon's password
893 --with-dir-user=USER specify user for Director daemon
894 --with-dir-group=GROUP specify group for Director daemon
895 --with-sd-user=USER specify user for Storage daemon
896 --with-sd-group=GROUP specify group for Storage daemon
897 --with-fd-user=USER specify user for File daemon
898 --with-fd-group=GROUP specify group for File daemon
899 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
900 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
901 base install directory, defaults to /usr/local/pgsql
903 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
904 install directory, default is to search through
905 a number of common places for the MySQL files.
907 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
908 install directory, default is to search through
909 a number of common places for the MySQL files.
911 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
912 install directory, default is to search through
913 a number of common places for the SQLite files.
914 --with-x use the X Window System
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CXX C++ compiler command
924 CXXFLAGS C++ compiler flags
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 ac_dir_suffix= ac_top_builddir=
949 .) # No --srcdir option. We are building in place.
951 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
964 # Do not use `cd foo && pwd` to compute absolute paths, because
965 # the directories may not exist.
967 .) ac_abs_builddir="$ac_dir";;
970 .) ac_abs_builddir=`pwd`;;
971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
975 case $ac_abs_builddir in
976 .) ac_abs_top_builddir=${ac_top_builddir}.;;
978 case ${ac_top_builddir}. in
979 .) ac_abs_top_builddir=$ac_abs_builddir;;
980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
984 case $ac_abs_builddir in
985 .) ac_abs_srcdir=$ac_srcdir;;
988 .) ac_abs_srcdir=$ac_abs_builddir;;
989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
993 case $ac_abs_builddir in
994 .) ac_abs_top_srcdir=$ac_top_srcdir;;
996 case $ac_top_srcdir in
997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1004 # Check for guested configure; otherwise get Cygnus style configure.
1005 if test -f $ac_srcdir/configure.gnu; then
1007 $SHELL $ac_srcdir/configure.gnu --help=recursive
1008 elif test -f $ac_srcdir/configure; then
1010 $SHELL $ac_srcdir/configure --help=recursive
1011 elif test -f $ac_srcdir/configure.ac ||
1012 test -f $ac_srcdir/configure.in; then
1014 $ac_configure --help
1016 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1022 test -n "$ac_init_help" && exit 0
1023 if $ac_init_version; then
1026 Copyright (C) 2003 Free Software Foundation, Inc.
1027 This configure script is free software; the Free Software Foundation
1028 gives unlimited permission to copy, distribute and modify it.
1034 This file contains any messages produced by compilers while
1035 running configure, to aid debugging if configure makes a mistake.
1037 It was created by $as_me, which was
1038 generated by GNU Autoconf 2.59. Invocation command line was
1049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1061 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1072 test -z "$as_dir" && as_dir=.
1073 echo "PATH: $as_dir"
1088 # Keep a trace of the command line.
1089 # Strip out --no-create and --no-recursion so they do not pile up.
1090 # Strip out --silent because we don't want to record it for future runs.
1091 # Also quote any args containing shell meta-characters.
1092 # Make two passes to allow for proper duplicate-argument suppression.
1097 ac_must_keep_next=false
1103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1111 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1113 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1114 if test $ac_must_keep_next = true; then
1115 ac_must_keep_next=false # Got value, back to normal.
1118 *=* | --config-cache | -C | -disable-* | --disable-* \
1119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1121 | -with-* | --with-* | -without-* | --without-* | --x)
1122 case "$ac_configure_args0 " in
1123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1126 -* ) ac_must_keep_next=true ;;
1129 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1130 # Get rid of the leading space.
1136 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1137 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1139 # When interrupted or exit'd, cleanup temporary files, and complete
1140 # config.log. We remove comments because anyway the quotes in there
1141 # would cause problems or look ugly.
1142 # WARNING: Be sure not to use single quotes in there, as some shells,
1143 # such as our DU 5.0 friend, will then `close' the trap.
1144 trap 'exit_status=$?
1145 # Save into config.log some information that might help in debugging.
1150 ## ---------------- ##
1151 ## Cache variables. ##
1152 ## ---------------- ##
1155 # The following way of writing the cache mishandles newlines in values,
1158 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1161 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1173 ## ----------------- ##
1174 ## Output variables. ##
1175 ## ----------------- ##
1178 for ac_var in $ac_subst_vars
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1185 if test -n "$ac_subst_files"; then
1192 for ac_var in $ac_subst_files
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1200 if test -s confdefs.h; then
1207 sed "/^$/d" confdefs.h | sort
1210 test "$ac_signal" != 0 &&
1211 echo "$as_me: caught signal $ac_signal"
1212 echo "$as_me: exit $exit_status"
1214 rm -f core *.core &&
1215 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1218 for ac_signal in 1 2 13 15; do
1219 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1223 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1224 rm -rf conftest* confdefs.h
1225 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1228 # Predefined preprocessor variables.
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_NAME "$PACKAGE_NAME"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_STRING "$PACKAGE_STRING"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1255 # Let the site file select an alternate cache file if it wants to.
1256 # Prefer explicitly selected file to automatically selected ones.
1257 if test -z "$CONFIG_SITE"; then
1258 if test "x$prefix" != xNONE; then
1259 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1261 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1264 for ac_site_file in $CONFIG_SITE; do
1265 if test -r "$ac_site_file"; then
1266 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1267 echo "$as_me: loading site script $ac_site_file" >&6;}
1268 sed 's/^/| /' "$ac_site_file" >&5
1273 if test -r "$cache_file"; then
1274 # Some versions of bash will fail to source /dev/null (special
1275 # files actually), so we avoid doing that.
1276 if test -f "$cache_file"; then
1277 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1278 echo "$as_me: loading cache $cache_file" >&6;}
1280 [\\/]* | ?:[\\/]* ) . $cache_file;;
1281 *) . ./$cache_file;;
1285 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1286 echo "$as_me: creating cache $cache_file" >&6;}
1290 # Check that the precious variables saved in the cache have kept the same
1292 ac_cache_corrupted=false
1293 for ac_var in `(set) 2>&1 |
1294 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1296 eval ac_new_set=\$ac_env_${ac_var}_set
1297 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1298 eval ac_new_val="\$ac_env_${ac_var}_value"
1299 case $ac_old_set,$ac_new_set in
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1305 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1306 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1307 ac_cache_corrupted=: ;;
1310 if test "x$ac_old_val" != "x$ac_new_val"; then
1311 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1312 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1313 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1314 echo "$as_me: former value: $ac_old_val" >&2;}
1315 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1316 echo "$as_me: current value: $ac_new_val" >&2;}
1317 ac_cache_corrupted=:
1320 # Pass precious variables to config.status.
1321 if test "$ac_new_set" = set; then
1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1325 *) ac_arg=$ac_var=$ac_new_val ;;
1327 case " $ac_configure_args " in
1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1329 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1333 if $ac_cache_corrupted; then
1334 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1335 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1336 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1337 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1338 { (exit 1); exit 1; }; }
1342 ac_cpp='$CPP $CPPFLAGS'
1343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1372 if test -f $ac_dir/install-sh; then
1374 ac_install_sh="$ac_aux_dir/install-sh -c"
1376 elif test -f $ac_dir/install.sh; then
1378 ac_install_sh="$ac_aux_dir/install.sh -c"
1380 elif test -f $ac_dir/shtool; then
1382 ac_install_sh="$ac_aux_dir/shtool install -c"
1386 if test -z "$ac_aux_dir"; then
1387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1389 { (exit 1); exit 1; }; }
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1403 # Extract the first word of "$ac_prog", so it can be a program name with args.
1404 set dummy $ac_prog; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 TRUEPRG=$ac_cv_path_TRUEPRG
1434 if test -n "$TRUEPRG"; then
1435 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1436 echo "${ECHO_T}$TRUEPRG" >&6
1438 echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1442 test -n "$TRUEPRG" && break
1444 test -n "$TRUEPRG" || TRUEPRG=":"
1446 for ac_prog in false
1448 # Extract the first word of "$ac_prog", so it can be a program name with args.
1449 set dummy $ac_prog; ac_word=$2
1450 echo "$as_me:$LINENO: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 test -z "$as_dir" && as_dir=.
1465 for ac_exec_ext in '' $ac_executable_extensions; do
1466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 FALSEPRG=$ac_cv_path_FALSEPRG
1479 if test -n "$FALSEPRG"; then
1480 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1481 echo "${ECHO_T}$FALSEPRG" >&6
1483 echo "$as_me:$LINENO: result: no" >&5
1484 echo "${ECHO_T}no" >&6
1487 test -n "$FALSEPRG" && break
1489 test -n "$FALSEPRG" || FALSEPRG=":"
1494 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1495 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1496 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1497 echo "configuring for bacula $VERSION ($DATE)"
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506 if test -n "$ac_tool_prefix"; then
1507 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1508 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$CC"; then
1515 ac_cv_prog_CC="$CC" # Let the user override the test.
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 if test -n "$CC"; then
1535 echo "$as_me:$LINENO: result: $CC" >&5
1536 echo "${ECHO_T}$CC" >&6
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1543 if test -z "$ac_cv_prog_CC"; then
1545 # Extract the first word of "gcc", so it can be a program name with args.
1546 set dummy gcc; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 if test -n "$ac_ct_CC"; then
1553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 ac_cv_prog_ac_ct_CC="gcc"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1572 if test -n "$ac_ct_CC"; then
1573 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1574 echo "${ECHO_T}$ac_ct_CC" >&6
1576 echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1585 if test -z "$CC"; then
1586 if test -n "$ac_tool_prefix"; then
1587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1588 set dummy ${ac_tool_prefix}cc; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_CC+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 if test -n "$CC"; then
1595 ac_cv_prog_CC="$CC" # Let the user override the test.
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_CC="${ac_tool_prefix}cc"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 if test -n "$CC"; then
1615 echo "$as_me:$LINENO: result: $CC" >&5
1616 echo "${ECHO_T}$CC" >&6
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1623 if test -z "$ac_cv_prog_CC"; then
1625 # Extract the first word of "cc", so it can be a program name with args.
1626 set dummy cc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$ac_ct_CC"; then
1633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_CC="cc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652 if test -n "$ac_ct_CC"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654 echo "${ECHO_T}$ac_ct_CC" >&6
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1666 if test -z "$CC"; then
1667 # Extract the first word of "cc", so it can be a program name with args.
1668 set dummy cc; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$CC"; then
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1686 ac_prog_rejected=yes
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 if test $ac_prog_rejected = yes; then
1697 # We found a bogon in the path, so make sure we never use it.
1698 set dummy $ac_cv_prog_CC
1700 if test $# != 0; then
1701 # We chose a different compiler from the bogus one.
1702 # However, it has the same basename, so the bogon will be chosen
1703 # first if we set CC to just the basename; use the full file name.
1705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1711 if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1720 if test -z "$CC"; then
1721 if test -n "$ac_tool_prefix"; then
1724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$CC"; then
1732 ac_cv_prog_CC="$CC" # Let the user override the test.
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 if test -n "$CC"; then
1752 echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1759 test -n "$CC" && break
1762 if test -z "$CC"; then
1766 # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy $ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if test -n "$ac_ct_CC"; then
1774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_ac_ct_CC="$ac_prog"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1793 if test -n "$ac_ct_CC"; then
1794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1795 echo "${ECHO_T}$ac_ct_CC" >&6
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1801 test -n "$ac_ct_CC" && break
1810 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1811 See \`config.log' for more details." >&5
1812 echo "$as_me: error: no acceptable C compiler found in \$PATH
1813 See \`config.log' for more details." >&2;}
1814 { (exit 1); exit 1; }; }
1816 # Provide some information about the compiler.
1817 echo "$as_me:$LINENO:" \
1818 "checking for C compiler version" >&5
1819 ac_compiler=`set X $ac_compile; echo $2`
1820 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1821 (eval $ac_compiler --version </dev/null >&5) 2>&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }
1825 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1826 (eval $ac_compiler -v </dev/null >&5) 2>&5
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }
1830 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1831 (eval $ac_compiler -V </dev/null >&5) 2>&5
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }
1836 cat >conftest.$ac_ext <<_ACEOF
1839 cat confdefs.h >>conftest.$ac_ext
1840 cat >>conftest.$ac_ext <<_ACEOF
1841 /* end confdefs.h. */
1851 ac_clean_files_save=$ac_clean_files
1852 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1853 # Try to create an executable without -o first, disregard a.out.
1854 # It will help us diagnose broken compilers, and finding out an intuition
1856 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1857 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1858 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1859 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1860 (eval $ac_link_default) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; then
1864 # Find the output, starting from the most likely. This scheme is
1865 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1868 # Be careful to initialize this variable, since it used to be cached.
1869 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1871 # b.out is created by i960 compilers.
1872 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1874 test -f "$ac_file" || continue
1876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1879 # This is the source file.
1882 # We found the default executable, but exeext='' is most
1886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1887 # FIXME: I believe we export ac_cv_exeext for Libtool,
1888 # but it would be cool to find out if it's true. Does anybody
1889 # maintain Libtool? --akim.
1897 echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: C compiler cannot create executables
1903 See \`config.log' for more details." >&2;}
1904 { (exit 77); exit 77; }; }
1907 ac_exeext=$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_file" >&5
1909 echo "${ECHO_T}$ac_file" >&6
1911 # Check the compiler produces executables we can run. If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1914 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1915 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1916 # If not cross compiling, check that we can run a simple program.
1917 if test "$cross_compiling" != yes; then
1918 if { ac_try='./$ac_file'
1919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; }; then
1926 if test "$cross_compiling" = maybe; then
1929 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1930 If you meant to cross compile, use \`--host'.
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot run C compiled programs.
1933 If you meant to cross compile, use \`--host'.
1934 See \`config.log' for more details." >&2;}
1935 { (exit 1); exit 1; }; }
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1942 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1943 ac_clean_files=$ac_clean_files_save
1944 # Check the compiler produces executables we can run. If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1947 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1948 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1949 echo "${ECHO_T}$cross_compiling" >&6
1951 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1952 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1954 (eval $ac_link) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; then
1958 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1959 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1960 # work properly (i.e., refer to `conftest.exe'), while it won't with
1962 for ac_file in conftest.exe conftest conftest.*; do
1963 test -f "$ac_file" || continue
1965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1966 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1973 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1974 See \`config.log' for more details." >&5
1975 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1976 See \`config.log' for more details." >&2;}
1977 { (exit 1); exit 1; }; }
1980 rm -f conftest$ac_cv_exeext
1981 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1982 echo "${ECHO_T}$ac_cv_exeext" >&6
1984 rm -f conftest.$ac_ext
1985 EXEEXT=$ac_cv_exeext
1987 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1988 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1989 if test "${ac_cv_objext+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 cat >conftest.$ac_ext <<_ACEOF
1995 cat confdefs.h >>conftest.$ac_ext
1996 cat >>conftest.$ac_ext <<_ACEOF
1997 /* end confdefs.h. */
2007 rm -f conftest.o conftest.obj
2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; then
2013 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2021 echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2024 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2025 See \`config.log' for more details." >&5
2026 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2027 See \`config.log' for more details." >&2;}
2028 { (exit 1); exit 1; }; }
2031 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2033 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2034 echo "${ECHO_T}$ac_cv_objext" >&6
2035 OBJEXT=$ac_cv_objext
2037 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2038 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2039 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 cat >conftest.$ac_ext <<_ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062 (eval $ac_compile) 2>conftest.er1
2064 grep -v '^ *+' conftest.er1 >conftest.err
2066 cat conftest.err >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); } &&
2069 { ac_try='test -z "$ac_c_werror_flag"
2070 || test ! -s conftest.err'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; } &&
2076 { ac_try='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2084 echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2093 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2094 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2095 GCC=`test $ac_compiler_gnu = yes && echo yes`
2096 ac_test_CFLAGS=${CFLAGS+set}
2097 ac_save_CFLAGS=$CFLAGS
2099 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2100 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_g+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 rm -f conftest.$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>conftest.er1
2123 grep -v '^ *+' conftest.er1 >conftest.err
2125 cat conftest.err >&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); } &&
2128 { ac_try='test -z "$ac_c_werror_flag"
2129 || test ! -s conftest.err'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; } &&
2135 { ac_try='test -s conftest.$ac_objext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2143 echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2151 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2152 if test "$ac_test_CFLAGS" = set; then
2153 CFLAGS=$ac_save_CFLAGS
2154 elif test $ac_cv_prog_cc_g = yes; then
2155 if test "$GCC" = yes; then
2161 if test "$GCC" = yes; then
2167 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2168 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2169 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 ac_cv_prog_cc_stdc=no
2174 cat >conftest.$ac_ext <<_ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h. */
2182 #include <sys/types.h>
2183 #include <sys/stat.h>
2184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2185 struct buf { int x; };
2186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2187 static char *e (p, i)
2193 static char *f (char * (*g) (char **, int), char **p, ...)
2198 s = g (p, va_arg (v,int));
2203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2204 function prototypes and stuff, but not '\xHH' hex character constants.
2205 These don't provoke an error unfortunately, instead are silently treated
2206 as 'x'. The following induces an error, until -std1 is added to get
2207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2208 array size at least. It's necessary to write '\x00'==0 to get something
2209 that's true only with -std1. */
2210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2212 int test (int i, double x);
2213 struct s1 {int (*f) (int a);};
2214 struct s2 {int (*f) (double a);};
2215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2226 # Don't try gcc -ansi; that turns off useful extensions and
2227 # breaks some systems' header files.
2228 # AIX -qlanglvl=ansi
2229 # Ultrix and OSF/1 -std1
2230 # HP-UX 10.20 and later -Ae
2231 # HP-UX older versions -Aa -D_HPUX_SOURCE
2232 # SVR4 -Xc -D__EXTENSIONS__
2233 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2235 CC="$ac_save_CC $ac_arg"
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2240 grep -v '^ *+' conftest.er1 >conftest.err
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 ac_cv_prog_cc_stdc=$ac_arg
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2265 rm -f conftest.err conftest.$ac_objext
2267 rm -f conftest.$ac_ext conftest.$ac_objext
2272 case "x$ac_cv_prog_cc_stdc" in
2274 echo "$as_me:$LINENO: result: none needed" >&5
2275 echo "${ECHO_T}none needed" >&6 ;;
2277 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2278 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2279 CC="$CC $ac_cv_prog_cc_stdc" ;;
2282 # Some people use a C++ compiler to compile C. Since we use `exit',
2283 # in C++ we need to declare it. In case someone uses the same compiler
2284 # for both compiling C and C++ we need to have the C++ compiler decide
2285 # the declaration of exit, since it's the most demanding environment.
2286 cat >conftest.$ac_ext <<_ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
2295 grep -v '^ *+' conftest.er1 >conftest.err
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -z "$ac_c_werror_flag"
2301 || test ! -s conftest.err'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2313 for ac_declaration in \
2315 'extern "C" void std::exit (int) throw (); using std::exit;' \
2316 'extern "C" void std::exit (int); using std::exit;' \
2317 'extern "C" void exit (int) throw ();' \
2318 'extern "C" void exit (int);' \
2321 cat >conftest.$ac_ext <<_ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>conftest.er1
2341 grep -v '^ *+' conftest.er1 >conftest.err
2343 cat conftest.err >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); } &&
2346 { ac_try='test -z "$ac_c_werror_flag"
2347 || test ! -s conftest.err'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 if test -n "$ac_declaration"; then
2414 echo '#ifdef __cplusplus' >>confdefs.h
2415 echo $ac_declaration >>confdefs.h
2416 echo '#endif' >>confdefs.h
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432 ac_cpp='$CXXCPP $CPPFLAGS'
2433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2436 if test -n "$ac_tool_prefix"; then
2437 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CXX+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$CXX"; then
2447 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CXX"; then
2467 echo "$as_me:$LINENO: result: $CXX" >&5
2468 echo "${ECHO_T}$CXX" >&6
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2474 test -n "$CXX" && break
2477 if test -z "$CXX"; then
2479 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy $ac_prog; ac_word=$2
2483 echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$ac_ct_CXX"; then
2489 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498 ac_cv_prog_ac_ct_CXX="$ac_prog"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2508 if test -n "$ac_ct_CXX"; then
2509 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2510 echo "${ECHO_T}$ac_ct_CXX" >&6
2512 echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2516 test -n "$ac_ct_CXX" && break
2518 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO:" \
2526 "checking for C++ compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529 (eval $ac_compiler --version </dev/null >&5) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534 (eval $ac_compiler -v </dev/null >&5) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539 (eval $ac_compiler -V </dev/null >&5) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2544 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2545 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2546 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>conftest.er1
2571 grep -v '^ *+' conftest.er1 >conftest.err
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_cxx_werror_flag"
2577 || test ! -s conftest.err'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2601 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2602 GXX=`test $ac_compiler_gnu = yes && echo yes`
2603 ac_test_CXXFLAGS=${CXXFLAGS+set}
2604 ac_save_CXXFLAGS=$CXXFLAGS
2606 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2607 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2608 if test "${ac_cv_prog_cxx_g+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1 >conftest.err
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -z "$ac_cxx_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_prog_cxx_g=yes
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2658 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2659 if test "$ac_test_CXXFLAGS" = set; then
2660 CXXFLAGS=$ac_save_CXXFLAGS
2661 elif test $ac_cv_prog_cxx_g = yes; then
2662 if test "$GXX" = yes; then
2668 if test "$GXX" = yes; then
2674 for ac_declaration in \
2676 'extern "C" void std::exit (int) throw (); using std::exit;' \
2677 'extern "C" void std::exit (int); using std::exit;' \
2678 'extern "C" void exit (int) throw ();' \
2679 'extern "C" void exit (int);' \
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_cxx_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2747 grep -v '^ *+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_cxx_werror_flag"
2753 || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 if test -n "$ac_declaration"; then
2775 echo '#ifdef __cplusplus' >>confdefs.h
2776 echo $ac_declaration >>confdefs.h
2777 echo '#endif' >>confdefs.h
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test "x$CC" != xcc; then
2787 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2788 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2790 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2791 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2793 set dummy $CC; ac_cc=`echo $2 |
2794 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2795 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 cat >conftest.$ac_ext <<_ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 # Make sure it works both with $CC and with simple cc.
2814 # We do the test twice because some compilers refuse to overwrite an
2815 # existing .o file with -o, though they will create one.
2816 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); };
2828 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2829 if test "x$CC" != xcc; then
2830 # Test first that cc exists at all.
2831 if { ac_try='cc -c conftest.$ac_ext >&5'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2838 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); };
2852 # cc exists but doesn't like -o.
2853 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2858 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2870 cat >>confdefs.h <<\_ACEOF
2871 #define NO_MINUS_C_MINUS_O 1
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 # Double quotes because CPP needs to be expanded
2892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 for ac_c_preproc_warn_flag in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2939 # Broken: fails on valid input.
2942 rm -f conftest.err conftest.$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Passes both tests.
2982 rm -f conftest.err conftest.$ac_ext
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3002 for ac_c_preproc_warn_flag in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3117 then ac_cv_prog_egrep='grep -E'
3118 else ac_cv_prog_egrep='egrep'
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123 EGREP=$ac_cv_prog_egrep
3126 if test $ac_cv_c_compiler_gnu = yes; then
3127 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3128 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3129 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 ac_pattern="Autoconf.*'x'"
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3143 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3144 ac_cv_prog_gcc_traditional=yes
3146 ac_cv_prog_gcc_traditional=no
3151 if test $ac_cv_prog_gcc_traditional = no; then
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3163 ac_cv_prog_gcc_traditional=yes
3169 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3170 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3171 if test $ac_cv_prog_gcc_traditional = yes; then
3172 CC="$CC -traditional"
3178 cat >>confdefs.h <<\_ACEOF
3184 # Find a good install program. We prefer a C program (faster),
3185 # so one script is as good as another. But avoid the broken or
3186 # incompatible versions:
3187 # SysV /etc/install, /usr/sbin/install
3188 # SunOS /usr/etc/install
3189 # IRIX /sbin/install
3191 # AmigaOS /C/install, which installs bootblocks on floppy discs
3192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3195 # OS/2's system install, which has a completely different semantic
3196 # ./install, which can be erroneously created by make from ./install.sh.
3197 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3198 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3199 if test -z "$INSTALL"; then
3200 if test "${ac_cv_path_install+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 # Account for people who put trailing slashes in PATH elements.
3210 ./ | .// | /cC/* | \
3211 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3212 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3215 # OSF1 and SCO ODT 3.0 have their own names for install.
3216 # Don't use installbsd from OSF since it installs stuff as root
3218 for ac_prog in ginstall scoinst install; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3221 if test $ac_prog = install &&
3222 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3223 # AIX install. It has an incompatible calling convention.
3225 elif test $ac_prog = install &&
3226 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3227 # program-specific install script used by HP pwplus--don't use.
3230 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3242 if test "${ac_cv_path_install+set}" = set; then
3243 INSTALL=$ac_cv_path_install
3245 # As a last resort, use the slow shell script. We don't cache a
3246 # path for INSTALL within a source directory, because that will
3247 # break other packages using the cache if that directory is
3248 # removed, or if the path is relative.
3249 INSTALL=$ac_install_sh
3252 echo "$as_me:$LINENO: result: $INSTALL" >&5
3253 echo "${ECHO_T}$INSTALL" >&6
3255 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3256 # It thinks the first close brace ends the variable substitution.
3257 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3259 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3261 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_prog_RANLIB+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 if test -n "$RANLIB"; then
3272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 RANLIB=$ac_cv_prog_RANLIB
3291 if test -n "$RANLIB"; then
3292 echo "$as_me:$LINENO: result: $RANLIB" >&5
3293 echo "${ECHO_T}$RANLIB" >&6
3295 echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6
3300 if test -z "$ac_cv_prog_RANLIB"; then
3301 ac_ct_RANLIB=$RANLIB
3302 # Extract the first word of "ranlib", so it can be a program name with args.
3303 set dummy ranlib; ac_word=$2
3304 echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 if test -n "$ac_ct_RANLIB"; then
3310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_ac_ct_RANLIB="ranlib"
3320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3330 if test -n "$ac_ct_RANLIB"; then
3331 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3332 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3338 RANLIB=$ac_ct_RANLIB
3340 RANLIB="$ac_cv_prog_RANLIB"
3343 # Extract the first word of "mv", so it can be a program name with args.
3344 set dummy mv; ac_word=$2
3345 echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347 if test "${ac_cv_path_MV+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3375 if test -n "$MV"; then
3376 echo "$as_me:$LINENO: result: $MV" >&5
3377 echo "${ECHO_T}$MV" >&6
3379 echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3383 # Extract the first word of "rm", so it can be a program name with args.
3384 set dummy rm; ac_word=$2
3385 echo "$as_me:$LINENO: checking for $ac_word" >&5
3386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387 if test "${ac_cv_path_RM+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3415 if test -n "$RM"; then
3416 echo "$as_me:$LINENO: result: $RM" >&5
3417 echo "${ECHO_T}$RM" >&6
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 # Extract the first word of "cp", so it can be a program name with args.
3424 set dummy cp; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_path_CP+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3455 if test -n "$CP"; then
3456 echo "$as_me:$LINENO: result: $CP" >&5
3457 echo "${ECHO_T}$CP" >&6
3459 echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3463 # Extract the first word of "sed", so it can be a program name with args.
3464 set dummy sed; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_SED+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3495 if test -n "$SED"; then
3496 echo "$as_me:$LINENO: result: $SED" >&5
3497 echo "${ECHO_T}$SED" >&6
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3503 # Extract the first word of "awk", so it can be a program name with args.
3504 set dummy awk; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_path_AWK+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3535 if test -n "$AWK"; then
3536 echo "$as_me:$LINENO: result: $AWK" >&5
3537 echo "${ECHO_T}$AWK" >&6
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3543 # Extract the first word of "echo", so it can be a program name with args.
3544 set dummy echo; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_path_ECHO+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3573 ECHO=$ac_cv_path_ECHO
3575 if test -n "$ECHO"; then
3576 echo "$as_me:$LINENO: result: $ECHO" >&5
3577 echo "${ECHO_T}$ECHO" >&6
3579 echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3583 # Extract the first word of "cmp", so it can be a program name with args.
3584 set dummy cmp; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_CMP+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3615 if test -n "$CMP"; then
3616 echo "$as_me:$LINENO: result: $CMP" >&5
3617 echo "${ECHO_T}$CMP" >&6
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3623 # Extract the first word of "tbl", so it can be a program name with args.
3624 set dummy tbl; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_path_TBL+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3655 if test -n "$TBL"; then
3656 echo "$as_me:$LINENO: result: $TBL" >&5
3657 echo "${ECHO_T}$TBL" >&6
3659 echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3663 # Extract the first word of "ar", so it can be a program name with args.
3664 set dummy ar; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_path_AR+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3695 if test -n "$AR"; then
3696 echo "$as_me:$LINENO: result: $AR" >&5
3697 echo "${ECHO_T}$AR" >&6
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3703 # Extract the first word of "openssl", so it can be a program name with args.
3704 set dummy openssl; ac_word=$2
3705 echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_path_OPENSSL+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3733 OPENSSL=$ac_cv_path_OPENSSL
3735 if test -n "$OPENSSL"; then
3736 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3737 echo "${ECHO_T}$OPENSSL" >&6
3739 echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3743 # Extract the first word of "mtx", so it can be a program name with args.
3744 set dummy mtx; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_path_MTX+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3775 if test -n "$MTX"; then
3776 echo "$as_me:$LINENO: result: $MTX" >&5
3777 echo "${ECHO_T}$MTX" >&6
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3783 # Extract the first word of "pkg-config", so it can be a program name with args.
3784 set dummy pkg-config; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3813 PKGCONFIG=$ac_cv_path_PKGCONFIG
3815 if test -n "$PKGCONFIG"; then
3816 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3817 echo "${ECHO_T}$PKGCONFIG" >&6
3819 echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3823 # Extract the first word of "wx-config", so it can be a program name with args.
3824 set dummy wx-config; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3853 WXCONFIG=$ac_cv_path_WXCONFIG
3855 if test -n "$WXCONFIG"; then
3856 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3857 echo "${ECHO_T}$WXCONFIG" >&6
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3864 test -n "$ARFLAG" || ARFLAGS="cr"
3877 # Make sure we can run config.sub.
3878 $ac_config_sub sun4 >/dev/null 2>&1 ||
3879 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3880 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3881 { (exit 1); exit 1; }; }
3883 echo "$as_me:$LINENO: checking build system type" >&5
3884 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3885 if test "${ac_cv_build+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 ac_cv_build_alias=$build_alias
3889 test -z "$ac_cv_build_alias" &&
3890 ac_cv_build_alias=`$ac_config_guess`
3891 test -z "$ac_cv_build_alias" &&
3892 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3893 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3894 { (exit 1); exit 1; }; }
3895 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3896 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3897 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3898 { (exit 1); exit 1; }; }
3901 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3902 echo "${ECHO_T}$ac_cv_build" >&6
3904 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3905 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3906 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3910 echo "$as_me:$LINENO: checking host system type" >&5
3911 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3912 if test "${ac_cv_host+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 ac_cv_host_alias=$host_alias
3916 test -z "$ac_cv_host_alias" &&
3917 ac_cv_host_alias=$ac_cv_build_alias
3918 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3919 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3920 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3921 { (exit 1); exit 1; }; }
3924 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3925 echo "${ECHO_T}$ac_cv_host" >&6
3927 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3928 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3929 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3933 *cygwin* ) CYGWIN=yes;;
3937 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3943 HAVE_SUN_OS_FALSE='#'
3945 HAVE_SUN_OS_TRUE='#'
3948 cat >>confdefs.h <<\_ACEOF
3949 #define HAVE_SUN_OS 1
3957 HAVE_SUN_OS_FALSE='#'
3959 HAVE_SUN_OS_TRUE='#'
3964 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3970 HAVE_OSF1_OS_FALSE='#'
3972 HAVE_OSF1_OS_TRUE='#'
3975 cat >>confdefs.h <<\_ACEOF
3976 #define HAVE_OSF1_OS 1
3984 HAVE_OSF1_OS_FALSE='#'
3986 HAVE_OSF1_OS_TRUE='#'
3991 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3997 HAVE_AIX_OS_FALSE='#'
3999 HAVE_AIX_OS_TRUE='#'
4002 cat >>confdefs.h <<\_ACEOF
4003 #define HAVE_AIX_OS 1
4011 HAVE_AIX_OS_FALSE='#'
4013 HAVE_AIX_OS_TRUE='#'
4018 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4024 HAVE_HPUX_OS_FALSE='#'
4026 HAVE_HPUX_OS_TRUE='#'
4029 cat >>confdefs.h <<\_ACEOF
4030 #define HAVE_HPUX_OS 1
4038 HAVE_HPUX_OS_FALSE='#'
4040 HAVE_HPUX_OS_TRUE='#'
4045 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4051 HAVE_LINUX_OS_FALSE='#'
4053 HAVE_LINUX_OS_TRUE='#'
4054 HAVE_LINUX_OS_FALSE=
4056 cat >>confdefs.h <<\_ACEOF
4057 #define HAVE_LINUX_OS 1
4065 HAVE_LINUX_OS_FALSE='#'
4067 HAVE_LINUX_OS_TRUE='#'
4068 HAVE_LINUX_OS_FALSE=
4072 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4077 HAVE_FREEBSD_OS_TRUE=
4078 HAVE_FREEBSD_OS_FALSE='#'
4080 HAVE_FREEBSD_OS_TRUE='#'
4081 HAVE_FREEBSD_OS_FALSE=
4083 cat >>confdefs.h <<\_ACEOF
4084 #define HAVE_FREEBSD_OS 1
4091 HAVE_FREEBSD_OS_TRUE=
4092 HAVE_FREEBSD_OS_FALSE='#'
4094 HAVE_FREEBSD_OS_TRUE='#'
4095 HAVE_FREEBSD_OS_FALSE=
4099 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4104 HAVE_NETBSD_OS_TRUE=
4105 HAVE_NETBSD_OS_FALSE='#'
4107 HAVE_NETBSD_OS_TRUE='#'
4108 HAVE_NETBSD_OS_FALSE=
4110 cat >>confdefs.h <<\_ACEOF
4111 #define HAVE_NETBSD_OS 1
4118 HAVE_NETBSD_OS_TRUE=
4119 HAVE_NETBSD_OS_FALSE='#'
4121 HAVE_NETBSD_OS_TRUE='#'
4122 HAVE_NETBSD_OS_FALSE=
4126 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4131 HAVE_OPENBSD_OS_TRUE=
4132 HAVE_OPENBSD_OS_FALSE='#'
4134 HAVE_OPENBSD_OS_TRUE='#'
4135 HAVE_OPENBSD_OS_FALSE=
4137 cat >>confdefs.h <<\_ACEOF
4138 #define HAVE_OPENBSD_OS 1
4145 HAVE_OPENBSD_OS_TRUE=
4146 HAVE_OPENBSD_OS_FALSE='#'
4148 HAVE_OPENBSD_OS_TRUE='#'
4149 HAVE_OPENBSD_OS_FALSE=
4153 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4159 HAVE_BSDI_OS_FALSE='#'
4161 HAVE_BSDI_OS_TRUE='#'
4164 cat >>confdefs.h <<\_ACEOF
4165 #define HAVE_BSDI_OS 1
4173 HAVE_BSDI_OS_FALSE='#'
4175 HAVE_BSDI_OS_TRUE='#'
4180 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4186 HAVE_SGI_OS_FALSE='#'
4188 HAVE_SGI_OS_TRUE='#'
4191 cat >>confdefs.h <<\_ACEOF
4192 #define HAVE_SGI_OS 1
4200 HAVE_SGI_OS_FALSE='#'
4202 HAVE_SGI_OS_TRUE='#'
4207 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4213 HAVE_IRIX_OS_FALSE='#'
4215 HAVE_IRIX_OS_TRUE='#'
4218 cat >>confdefs.h <<\_ACEOF
4219 #define HAVE_IRIX_OS 1
4227 HAVE_IRIX_OS_FALSE='#'
4229 HAVE_IRIX_OS_TRUE='#'
4234 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4239 HAVE_DARWIN_OS_TRUE=
4240 HAVE_DARWIN_OS_FALSE='#'
4242 HAVE_DARWIN_OS_TRUE='#'
4243 HAVE_DARWIN_OS_FALSE=
4245 cat >>confdefs.h <<\_ACEOF
4246 #define HAVE_DARWIN_OS 1
4253 HAVE_DARWIN_OS_TRUE=
4254 HAVE_DARWIN_OS_FALSE='#'
4256 HAVE_DARWIN_OS_TRUE='#'
4257 HAVE_DARWIN_OS_FALSE=
4262 # -----------------------------------------------------------
4263 # ----------------------------------------------------------
4264 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4265 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4266 if test "x$DISTNAME" != "x"
4268 echo "distname set to $DISTNAME"
4269 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4272 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4275 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4278 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4281 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4284 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4287 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4290 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4293 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4296 elif test -f /etc/SuSE-release
4299 elif test -d /etc/SuSEconfig
4302 elif test -f /etc/mandrake-release
4305 elif test -f /etc/whitebox-release
4308 elif test -f /etc/redhat-release
4311 elif test -f /etc/gentoo-release
4314 elif test -f /etc/debian_version
4317 elif test -f /etc/slackware-version
4320 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4323 elif test -f /etc/engarde-version
4326 elif test "$CYGWIN" = yes
4329 cat >>confdefs.h <<\_ACEOF
4330 #define HAVE_CYGWIN 1
4336 echo "$as_me:$LINENO: result: done" >&5
4337 echo "${ECHO_T}done" >&6
4340 # -----------------------------------------------------------
4341 # ----------------------------------------------------------
4346 INSIDE_GNOME_COMMON_TRUE=
4347 INSIDE_GNOME_COMMON_FALSE='#'
4349 INSIDE_GNOME_COMMON_TRUE='#'
4350 INSIDE_GNOME_COMMON_FALSE=
4353 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4355 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4358 # ------------------------------------------------------------------
4359 # If the user has not set --prefix, we set our default to nothing.
4360 # In this case, if the user has not set --sysconfdir, we set it
4361 # to the package default of /etc/bacula. If either --prefix or
4362 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4363 # ------------------------------------------------------------------
4364 if test x${prefix} = xNONE ; then
4365 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4366 sysconfdir=/etc/bacula
4370 sysconfdir=`eval echo ${sysconfdir}`
4372 # -------------------------------------------------------------------------
4373 # If the user has not set --exec-prefix, we default to ${prefix}
4374 # -------------------------------------------------------------------------
4375 if test x${exec_prefix} = xNONE ; then
4376 exec_prefix=${prefix}
4379 # ------------------------------------------------------------------
4380 # If the user has not set --sbindir, we set our default as /sbin
4381 # ------------------------------------------------------------------
4382 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4383 sbindir=${exec_prefix}/sbin
4385 sbindir=`eval echo ${sbindir}`
4387 # ------------------------------------------------------------------
4388 # All list of languages for which a translation exist. Each
4389 # language is separated by a space.
4390 # ------------------------------------------------------------------
4393 for ac_prog in msgfmt
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_path_MSGFMT+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 MSGFMT=$ac_cv_path_MSGFMT
4426 if test -n "$MSGFMT"; then
4427 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4428 echo "${ECHO_T}$MSGFMT" >&6
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4434 test -n "$MSGFMT" && break
4436 test -n "$MSGFMT" || MSGFMT="no"
4438 if test "$MSGFMT" = "no"
4440 echo 'msgfmt program not found, disabling NLS !'
4442 USE_INCLUDED_LIBINTL=no
4450 support_postgresql=no
4451 support_smartalloc=yes
4452 support_readline=yes
4455 support_wx_console=no
4457 support_static_tools=no
4458 support_static_fd=no
4459 support_static_sd=no
4460 support_static_dir=no
4461 support_static_cons=no
4462 build_client_only=no
4468 # -------------------------------------------
4469 # gnome (default off)
4470 # -------------------------------------------
4471 # Check whether --enable-gnome or --disable-gnome was given.
4472 if test "${enable_gnome+set}" = set; then
4473 enableval="$enable_gnome"
4474 if test x$enableval = xyes; then
4480 if test x$support_gnome = xyes; then
4481 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4483 if test $pkg = 0; then
4484 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4485 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4486 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4487 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4492 GNOME_DIR=src/gnome2-console
4493 gnome_version="Version 2.x"
4506 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4507 if test "${with_gnome_includes+set}" = set; then
4508 withval="$with_gnome_includes"
4510 CFLAGS="$CFLAGS -I$withval"
4515 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4516 if test "${with_gnome_libs+set}" = set; then
4517 withval="$with_gnome_libs"
4519 LDFLAGS="$LDFLAGS -L$withval"
4520 gnome_prefix=$withval
4525 # Check whether --with-gnome or --without-gnome was given.
4526 if test "${with_gnome+set}" = set; then
4527 withval="$with_gnome"
4528 if test x$withval = xyes; then
4532 if test "x$withval" = xno; then
4536 LDFLAGS="$LDFLAGS -L$withval/lib"
4537 CFLAGS="$CFLAGS -I$withval/include"
4538 gnome_prefix=$withval/lib
4545 if test "x$want_gnome" = xyes; then
4547 # Extract the first word of "gnome-config", so it can be a program name with args.
4548 set dummy gnome-config; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 case $GNOME_CONFIG in
4556 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4577 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4579 if test -n "$GNOME_CONFIG"; then
4580 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4581 echo "${ECHO_T}$GNOME_CONFIG" >&6
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4587 if test "$GNOME_CONFIG" = "no"; then
4588 no_gnome_config="yes"
4590 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4591 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4592 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4593 echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4597 # Extract the first word of "orbit-config", so it can be a program name with args.
4598 set dummy orbit-config; ac_word=$2
4599 echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 case $ORBIT_CONFIG in
4606 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4627 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4629 if test -n "$ORBIT_CONFIG"; then
4630 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4631 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4637 # Extract the first word of "orbit-idl", so it can be a program name with args.
4638 set dummy orbit-idl; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4667 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4669 if test -n "$ORBIT_IDL"; then
4670 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4671 echo "${ECHO_T}$ORBIT_IDL" >&6
4673 echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6
4677 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4678 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4679 if test "${gnome_cv_orbit_found+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4684 gnome_cv_orbit_found=no
4686 gnome_cv_orbit_found=yes
4690 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4691 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4694 if test x$gnome_cv_orbit_found = xyes; then
4696 HAVE_ORBIT_FALSE='#'
4701 if test x$gnome_cv_orbit_found = xyes; then
4703 ORBIT_CFLAGS=`orbit-config --cflags client server`
4704 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4708 if test xfail = xfailure; then
4709 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4710 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4711 { (exit 1); exit 1; }; }
4715 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4716 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4717 if test "${gnome_cv_gnorba_found+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 gnome_cv_gnorba_found=no
4722 if test x$gnome_cv_orbit_found = xyes; then
4723 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4724 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4725 if test -n "$GNORBA_LIBS"; then
4726 gnome_cv_gnorba_found=yes
4731 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4732 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4735 if test x$gnome_cv_gnorba_found = xyes; then
4737 HAVE_GNORBA_FALSE='#'
4739 HAVE_GNORBA_TRUE='#'
4742 if test x$gnome_cv_orbit_found = xyes; then
4744 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4745 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4749 if test xfail = xfailure; then
4750 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4751 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4752 { (exit 1); exit 1; }; }
4756 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4757 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4758 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4759 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4760 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4761 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4762 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767 no_gnome_config="yes"
4771 if test x$exec_prefix = xNONE; then
4772 if test x$prefix = xNONE; then
4773 gnome_prefix=$ac_default_prefix/lib
4775 gnome_prefix=$prefix/lib
4778 gnome_prefix=`eval echo \`echo $libdir\``
4781 if test "$no_gnome_config" = "yes"; then
4782 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4783 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4784 if test -f $gnome_prefix/gnomeConf.sh; then
4785 echo "$as_me:$LINENO: result: found" >&5
4786 echo "${ECHO_T}found" >&6
4787 echo "loading gnome configuration from" \
4788 "$gnome_prefix/gnomeConf.sh"
4789 . $gnome_prefix/gnomeConf.sh
4792 echo "$as_me:$LINENO: result: not found" >&5
4793 echo "${ECHO_T}not found" >&6
4794 if test xfail = xfail; then
4795 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4796 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4797 { (exit 1); exit 1; }; }
4806 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4807 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4811 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4812 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4813 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4816 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4817 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4818 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4821 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4822 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4823 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4825 echo "$as_me:$LINENO: result: unknown library" >&5
4826 echo "${ECHO_T}unknown library" >&6
4828 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4829 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4834 GNOME_DIR=src/gnome-console
4835 gnome_version="Version 1.4"
4841 # -------------------------------------------
4842 # wx-console (default off)
4843 # -------------------------------------------
4844 # Check whether --enable-wx-console or --disable-wx-console was given.
4845 if test "${enable_wx_console+set}" = set; then
4846 enableval="$enable_wx_console"
4847 if test x$enableval = xyes; then
4848 support_wx_console=yes
4853 if test x$support_wx_console = xyes; then
4854 abc=`$WXCONFIG --cppflags`
4856 if test $pkg = 0; then
4857 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4858 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4861 WX_DIR=src/wx-console
4864 echo "wx-config program not found. wx-console disabled."
4866 support_wx_console=no
4873 # -------------------------------------------
4874 # smartalloc (default off)
4875 # -------------------------------------------
4876 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4877 if test "${enable_smartalloc+set}" = set; then
4878 enableval="$enable_smartalloc"
4879 if test x$enableval = xno; then
4880 support_smartalloc=no
4884 if test x$support_smartalloc = xyes; then
4885 cat >>confdefs.h <<\_ACEOF
4886 #define SMARTALLOC 1
4891 # -------------------------------------------
4892 # static-tools (default off)
4893 # -------------------------------------------
4894 # Check whether --enable-static-tools or --disable-static-tools was given.
4895 if test "${enable_static_tools+set}" = set; then
4896 enableval="$enable_static_tools"
4897 if test x$enableval = xyes; then
4898 support_static_tools=yes
4903 if test x$support_static_tools = xyes; then
4904 TTOOL_LDFLAGS="-static"
4908 # -------------------------------------------
4909 # static-fd (default off)
4910 # -------------------------------------------
4911 # Check whether --enable-static-fd or --disable-static-fd was given.
4912 if test "${enable_static_fd+set}" = set; then
4913 enableval="$enable_static_fd"
4914 if test x$enableval = xyes; then
4915 support_static_fd=yes
4920 if test x$support_static_fd = xyes; then
4921 STATIC_FD="static-bacula-fd"
4925 # -------------------------------------------
4926 # static-sd (default off)
4927 # -------------------------------------------
4928 # Check whether --enable-static-sd or --disable-static-sd was given.
4929 if test "${enable_static_sd+set}" = set; then
4930 enableval="$enable_static_sd"
4931 if test x$enableval = xyes; then
4932 support_static_sd=yes
4937 if test x$support_static_sd = xyes; then
4938 STATIC_SD="static-bacula-sd"
4942 # -------------------------------------------
4943 # static-dir (default off)
4944 # -------------------------------------------
4945 # Check whether --enable-static-dir or --disable-static-dir was given.
4946 if test "${enable_static_dir+set}" = set; then
4947 enableval="$enable_static_dir"
4948 if test x$enableval = xyes; then
4949 support_static_dir=yes
4954 if test x$support_static_dir = xyes; then
4955 STATIC_DIR="static-bacula-dir"
4959 # -------------------------------------------
4960 # static-cons (default off)
4961 # -------------------------------------------
4962 # Check whether --enable-static-cons or --disable-static-cons was given.
4963 if test "${enable_static_cons+set}" = set; then
4964 enableval="$enable_static_cons"
4965 if test x$enableval = xyes; then
4966 support_static_cons=yes
4973 if test x$support_static_cons = xyes; then
4974 STATIC_CONS="static-bconsole"
4975 STATIC_GNOME_CONS="static-gnome-console"
4976 STATIC_WX_CONS="static-wx-console"
4982 # -------------------------------------------
4983 # client_only (default off)
4984 # -------------------------------------------
4985 # Check whether --enable-client-only or --disable-client-only was given.
4986 if test "${enable_client_only+set}" = set; then
4987 enableval="$enable_client_only"
4988 if test x$enableval = xyes; then
4989 build_client_only=yes
4994 if test x$build_client_only = xno; then
5001 # ---------------------------------------------------
5002 # Check for conio (Bacula readline substitute)(
5003 # ---------------------------------------------------
5004 # this allows you to turn it completely off
5005 # Check whether --enable-conio or --disable-conio was given.
5006 if test "${enable_conio+set}" = set; then
5007 enableval="$enable_conio"
5008 if test x$enableval = xno; then
5014 if test x$support_conio = xyes; then
5015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5017 if test "${ac_cv_header_stdc+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_cv_header_stdc=yes
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 ac_cv_header_stdc=no
5068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 if test $ac_cv_header_stdc = yes; then
5071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5082 $EGREP "memchr" >/dev/null 2>&1; then
5085 ac_cv_header_stdc=no
5091 if test $ac_cv_header_stdc = yes; then
5092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5103 $EGREP "free" >/dev/null 2>&1; then
5106 ac_cv_header_stdc=no
5112 if test $ac_cv_header_stdc = yes; then
5113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5114 if test "$cross_compiling" = yes; then
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5124 #if ((' ' & 0x0FF) == 0x020)
5125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5128 # define ISLOWER(c) \
5129 (('a' <= (c) && (c) <= 'i') \
5130 || ('j' <= (c) && (c) <= 'r') \
5131 || ('s' <= (c) && (c) <= 'z'))
5132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5140 for (i = 0; i < 256; i++)
5141 if (XOR (islower (i), ISLOWER (i))
5142 || toupper (i) != TOUPPER (i))
5147 rm -f conftest$ac_exeext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5149 (eval $ac_link) 2>&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5160 echo "$as_me: program exited with status $ac_status" >&5
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5165 ac_cv_header_stdc=no
5167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5171 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5172 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5173 if test $ac_cv_header_stdc = yes; then
5175 cat >>confdefs.h <<\_ACEOF
5176 #define STDC_HEADERS 1
5181 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5192 inttypes.h stdint.h unistd.h
5194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5195 echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 $ac_includes_default
5208 #include <$ac_header>
5210 rm -f conftest.$ac_objext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5212 (eval $ac_compile) 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -z "$ac_c_werror_flag"
5220 || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 eval "$as_ac_Header=yes"
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 eval "$as_ac_Header=no"
5239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5244 cat >>confdefs.h <<_ACEOF
5245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 if test "${ac_cv_header_termcap_h+set}" = set; then
5254 echo "$as_me:$LINENO: checking for termcap.h" >&5
5255 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5256 if test "${ac_cv_header_termcap_h+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5260 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5262 # Is the header compilable?
5263 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5264 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 $ac_includes_default
5272 #include <termcap.h>
5274 rm -f conftest.$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276 (eval $ac_compile) 2>conftest.er1
5278 grep -v '^ *+' conftest.er1 >conftest.err
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -z "$ac_c_werror_flag"
5284 || test ! -s conftest.err'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; } &&
5290 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_header_compiler=yes
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5301 ac_header_compiler=no
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5305 echo "${ECHO_T}$ac_header_compiler" >&6
5307 # Is the header present?
5308 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5309 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <termcap.h>
5318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_c_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5335 if test -z "$ac_cpp_err"; then
5336 ac_header_preproc=yes
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 ac_header_preproc=no
5343 rm -f conftest.err conftest.$ac_ext
5344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5345 echo "${ECHO_T}$ac_header_preproc" >&6
5347 # So? What about this header?
5348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5350 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5351 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5353 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5354 ac_header_preproc=yes
5357 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5358 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5360 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5362 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5363 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5364 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5365 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5366 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5368 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5371 ## ------------------------------------------ ##
5372 ## Report this to the AC_PACKAGE_NAME lists. ##
5373 ## ------------------------------------------ ##
5376 sed "s/^/$as_me: WARNING: /" >&2
5379 echo "$as_me:$LINENO: checking for termcap.h" >&5
5380 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5381 if test "${ac_cv_header_termcap_h+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 ac_cv_header_termcap_h=$ac_header_preproc
5386 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5387 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5390 if test $ac_cv_header_termcap_h = yes; then
5391 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5392 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5393 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 ac_check_lib_save_LIBS=$LIBS
5397 LIBS="-ltermcap $LIBS"
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5405 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */
5420 rm -f conftest.$ac_objext conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_cv_lib_termcap_tgetent=yes
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_cv_lib_termcap_tgetent=no
5449 rm -f conftest.err conftest.$ac_objext \
5450 conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5453 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5454 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5455 if test $ac_cv_lib_termcap_tgetent = yes; then
5456 CONS_LIBS="-ltermcap"
5462 cat >>confdefs.h <<\_ACEOF
5463 #define HAVE_CONIO 1
5468 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5469 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5470 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lncurses $LIBS"
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5482 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -z "$ac_c_werror_flag"
5507 || test ! -s conftest.err'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; } &&
5513 { ac_try='test -s conftest$ac_exeext'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 ac_cv_lib_ncurses_tgetent=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_cv_lib_ncurses_tgetent=no
5526 rm -f conftest.err conftest.$ac_objext \
5527 conftest$ac_exeext conftest.$ac_ext
5528 LIBS=$ac_check_lib_save_LIBS
5530 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5531 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5532 if test $ac_cv_lib_ncurses_tgetent = yes; then
5533 CONS_LIBS="-lncurses"
5539 cat >>confdefs.h <<\_ACEOF
5540 #define HAVE_CONIO 1
5545 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5553 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5560 # ---------------------------------------------------
5561 # Check for readline support/directory (default off)
5562 # ---------------------------------------------------
5563 # this allows you to turn it completely off
5564 # Check whether --enable-readline or --disable-readline was given.
5565 if test "${enable_readline+set}" = set; then
5566 enableval="$enable_readline"
5567 if test x$enableval = xno; then
5574 if test x$support_readline = xyes; then
5576 # Check whether --with-readline or --without-readline was given.
5577 if test "${with_readline+set}" = set; then
5578 withval="$with_readline"
5580 case "$with_readline" in
5583 if test "$with_readline" != "yes"; then
5584 CONS_INC="-I${with_readline}"
5585 CONS_LDFLAGS="-L$with_readline"
5587 with_readline="/usr/include/readline"
5589 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5592 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5599 # Is the header compilable?
5600 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5601 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 $ac_includes_default
5609 #include <${with_readline}/readline.h>
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>conftest.er1
5615 grep -v '^ *+' conftest.er1 >conftest.err
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_c_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_header_compiler=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_header_compiler=no
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5642 echo "${ECHO_T}$ac_header_compiler" >&6
5644 # Is the header present?
5645 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5646 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <${with_readline}/readline.h>
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } >/dev/null; then
5663 if test -s conftest.err; then
5664 ac_cpp_err=$ac_c_preproc_warn_flag
5665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5672 if test -z "$ac_cpp_err"; then
5673 ac_header_preproc=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_header_preproc=no
5680 rm -f conftest.err conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5682 echo "${ECHO_T}$ac_header_preproc" >&6
5684 # So? What about this header?
5685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5687 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5688 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
5690 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
5691 ac_header_preproc=yes
5694 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5695 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5697 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
5699 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
5701 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5703 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
5705 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
5708 ## ------------------------------------------ ##
5709 ## Report this to the AC_PACKAGE_NAME lists. ##
5710 ## ------------------------------------------ ##
5713 sed "s/^/$as_me: WARNING: /" >&2
5716 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5717 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 eval "$as_ac_Header=\$ac_header_preproc"
5723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5728 cat >>confdefs.h <<\_ACEOF
5729 #define HAVE_READLINE 1
5732 CONS_LIBS="-lreadline -ltermcap"
5737 echo "readline.h not found. readline turned off ..."
5749 # check for standard readline library
5750 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5751 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5752 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5753 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5757 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5759 # Is the header compilable?
5760 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5761 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 $ac_includes_default
5769 #include </usr/include/readline/readline.h>
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5775 grep -v '^ *+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_header_compiler=yes
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 ac_header_compiler=no
5800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5802 echo "${ECHO_T}$ac_header_compiler" >&6
5804 # Is the header present?
5805 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5806 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #include </usr/include/readline/readline.h>
5815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } >/dev/null; then
5823 if test -s conftest.err; then
5824 ac_cpp_err=$ac_c_preproc_warn_flag
5825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5832 if test -z "$ac_cpp_err"; then
5833 ac_header_preproc=yes
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_header_preproc=no
5840 rm -f conftest.err conftest.$ac_ext
5841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5842 echo "${ECHO_T}$ac_header_preproc" >&6
5844 # So? What about this header?
5845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5847 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5848 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5849 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
5850 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
5851 ac_header_preproc=yes
5854 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5855 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5856 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5857 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5858 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
5859 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
5861 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5863 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
5865 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
5868 ## ------------------------------------------ ##
5869 ## Report this to the AC_PACKAGE_NAME lists. ##
5870 ## ------------------------------------------ ##
5873 sed "s/^/$as_me: WARNING: /" >&2
5876 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5877 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5878 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5883 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5884 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5887 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_READLINE 1
5893 CONS_INC="-I/usr/include/readline"
5894 CONS_LIBS="-lreadline -ltermcap"
5898 # Did not find standard library, so try Bacula's default
5899 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5901 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5902 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5909 # Is the header compilable?
5910 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5911 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 #include <${TOP_DIR}/depkgs/readline/readline.h>
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_header_compiler=yes
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_header_compiler=no
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5952 echo "${ECHO_T}$ac_header_compiler" >&6
5954 # Is the header present?
5955 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5956 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <${TOP_DIR}/depkgs/readline/readline.h>
5965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5968 grep -v '^ *+' conftest.er1 >conftest.err
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } >/dev/null; then
5973 if test -s conftest.err; then
5974 ac_cpp_err=$ac_c_preproc_warn_flag
5975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5982 if test -z "$ac_cpp_err"; then
5983 ac_header_preproc=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_header_preproc=no
5990 rm -f conftest.err conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5992 echo "${ECHO_T}$ac_header_preproc" >&6
5994 # So? What about this header?
5995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5997 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5998 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6000 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6001 ac_header_preproc=yes
6004 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6005 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6006 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6007 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6009 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6011 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6013 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6015 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6018 ## ------------------------------------------ ##
6019 ## Report this to the AC_PACKAGE_NAME lists. ##
6020 ## ------------------------------------------ ##
6023 sed "s/^/$as_me: WARNING: /" >&2
6026 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6027 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 eval "$as_ac_Header=\$ac_header_preproc"
6033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038 cat >>confdefs.h <<\_ACEOF
6039 #define HAVE_READLINE 1
6043 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6044 CONS_LIBS="-lreadline -lhistory -ltermcap"
6045 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6046 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6050 echo "readline.h not found. readline turned off ..."
6076 # Minimal stuff for readline Makefile configuration
6079 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6080 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6081 if test "${ac_cv_header_stat_broken+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 #include <sys/stat.h>
6093 #if defined(S_ISBLK) && defined(S_IFDIR)
6094 # if S_ISBLK (S_IFDIR)
6099 #if defined(S_ISBLK) && defined(S_IFCHR)
6100 # if S_ISBLK (S_IFCHR)
6105 #if defined(S_ISLNK) && defined(S_IFREG)
6106 # if S_ISLNK (S_IFREG)
6111 #if defined(S_ISSOCK) && defined(S_IFREG)
6112 # if S_ISSOCK (S_IFREG)
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "You lose" >/dev/null 2>&1; then
6120 ac_cv_header_stat_broken=yes
6122 ac_cv_header_stat_broken=no
6127 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6128 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6129 if test $ac_cv_header_stat_broken = yes; then
6131 cat >>confdefs.h <<\_ACEOF
6132 #define STAT_MACROS_BROKEN 1
6143 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6144 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6145 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6146 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 cat >conftest.$ac_ext <<_ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <sys/types.h>
6168 rm -f conftest.$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170 (eval $ac_compile) 2>conftest.er1
6172 grep -v '^ *+' conftest.er1 >conftest.err
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try='test -s conftest.$ac_objext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 eval "$as_ac_Header=yes"
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 eval "$as_ac_Header=no"
6197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6202 cat >>confdefs.h <<_ACEOF
6203 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6206 ac_header_dirent=$ac_hdr; break
6210 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6211 if test $ac_header_dirent = dirent.h; then
6212 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6213 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6214 if test "${ac_cv_search_opendir+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 ac_func_search_save_LIBS=$LIBS
6218 ac_cv_search_opendir=no
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag"
6251 || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest$ac_exeext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_search_opendir="none required"
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6269 rm -f conftest.err conftest.$ac_objext \
6270 conftest$ac_exeext conftest.$ac_ext
6271 if test "$ac_cv_search_opendir" = no; then
6272 for ac_lib in dir; do
6273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6281 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6296 rm -f conftest.$ac_objext conftest$ac_exeext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6298 (eval $ac_link) 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest$ac_exeext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_search_opendir="-l$ac_lib"
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6325 rm -f conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext conftest.$ac_ext
6329 LIBS=$ac_func_search_save_LIBS
6331 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6332 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6333 if test "$ac_cv_search_opendir" != no; then
6334 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6339 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6340 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6341 if test "${ac_cv_search_opendir+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 ac_func_search_save_LIBS=$LIBS
6345 ac_cv_search_opendir=no
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6353 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370 (eval $ac_link) 2>conftest.er1
6372 grep -v '^ *+' conftest.er1 >conftest.err
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -z "$ac_c_werror_flag"
6378 || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_search_opendir="none required"
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6396 rm -f conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 if test "$ac_cv_search_opendir" = no; then
6400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6401 cat >conftest.$ac_ext <<_ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6408 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_search_opendir="-l$ac_lib"
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6452 rm -f conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6456 LIBS=$ac_func_search_save_LIBS
6458 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6459 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6460 if test "$ac_cv_search_opendir" != no; then
6461 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6475 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6478 echo "$as_me:$LINENO: checking for $ac_func" >&5
6479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_var+set}\" = set"; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6491 #define $ac_func innocuous_$ac_func
6493 /* System header to define __stub macros and hopefully few prototypes,
6494 which can conflict with char $ac_func (); below.
6495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6496 <limits.h> exists even on freestanding compilers. */
6499 # include <limits.h>
6501 # include <assert.h>
6506 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6514 /* The GNU C library defines this for functions which it implements
6515 to always fail with ENOSYS. Some functions are actually named
6516 something starting with __ and the normal name is an alias. */
6517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6520 char (*f) () = $ac_func;
6529 return f != $ac_func;
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536 (eval $ac_link) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1 >conftest.err
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest$ac_exeext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 eval "$as_ac_var=yes"
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 eval "$as_ac_var=no"
6563 rm -f conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6568 if test `eval echo '${'$as_ac_var'}'` = yes; then
6569 cat >>confdefs.h <<_ACEOF
6570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6578 for ac_func in nanosleep nl_langinfo
6580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6581 echo "$as_me:$LINENO: checking for $ac_func" >&5
6582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_var+set}\" = set"; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6594 #define $ac_func innocuous_$ac_func
6596 /* System header to define __stub macros and hopefully few prototypes,
6597 which can conflict with char $ac_func (); below.
6598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6599 <limits.h> exists even on freestanding compilers. */
6602 # include <limits.h>
6604 # include <assert.h>
6609 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */
6617 /* The GNU C library defines this for functions which it implements
6618 to always fail with ENOSYS. Some functions are actually named
6619 something starting with __ and the normal name is an alias. */
6620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6623 char (*f) () = $ac_func;
6632 return f != $ac_func;
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6639 (eval $ac_link) 2>conftest.er1
6641 grep -v '^ *+' conftest.er1 >conftest.err
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -z "$ac_c_werror_flag"
6647 || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 eval "$as_ac_var=yes"
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 eval "$as_ac_var=no"
6666 rm -f conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6671 if test `eval echo '${'$as_ac_var'}'` = yes; then
6672 cat >>confdefs.h <<_ACEOF
6673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6680 for ac_header in varargs.h
6682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6692 # Is the header compilable?
6693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6695 cat >conftest.$ac_ext <<_ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701 $ac_includes_default
6702 #include <$ac_header>
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -z "$ac_c_werror_flag"
6714 || test ! -s conftest.err'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; } &&
6720 { ac_try='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_header_compiler=yes
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_header_compiler=no
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735 echo "${ECHO_T}$ac_header_compiler" >&6
6737 # Is the header present?
6738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 #include <$ac_header>
6748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6751 grep -v '^ *+' conftest.er1 >conftest.err
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } >/dev/null; then
6756 if test -s conftest.err; then
6757 ac_cpp_err=$ac_c_preproc_warn_flag
6758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6765 if test -z "$ac_cpp_err"; then
6766 ac_header_preproc=yes
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_header_preproc=no
6773 rm -f conftest.err conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775 echo "${ECHO_T}$ac_header_preproc" >&6
6777 # So? What about this header?
6778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6784 ac_header_preproc=yes
6787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6801 ## ------------------------------------------ ##
6802 ## Report this to the AC_PACKAGE_NAME lists. ##
6803 ## ------------------------------------------ ##
6806 sed "s/^/$as_me: WARNING: /" >&2
6809 echo "$as_me:$LINENO: checking for $ac_header" >&5
6810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 eval "$as_ac_Header=\$ac_header_preproc"
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6830 # End of readline/conio stuff
6831 # -----------------------------------------------------------------------
6834 # ---------------------------------------------------
6835 # Check for GMP support/directory
6836 # ---------------------------------------------------
6840 # [ --with-gmp[=DIR] Specify gmp library directory],
6842 # case "$with_gmp" in
6845 # if test "$with_gmp" != "yes"; then
6846 # GMP_INC="-I$with_gmp"
6848 # GMP_LDFLAGS="-L$with_gmp"
6850 # with_gmp="/usr/include"
6852 # AC_CHECK_HEADER($with_gmp/gmp.h,
6853 # [ AC_MSG_RESULT(yes)
6854 # AC_DEFINE(HAVE_GMP)
6858 # [ AC_MSG_ERROR([*** gmp library missing])
6864 # # check for standard gmp library
6865 # AC_CHECK_HEADER(/usr/include/gmp.h,
6866 # [ AC_MSG_RESULT(yes)
6867 # AC_DEFINE(HAVE_GMP)
6872 # # Did not find standard library, so use our own
6873 # AC_MSG_RESULT(yes)
6874 # AC_DEFINE(HAVE_GMP)
6877 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6879 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6880 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6886 #AC_SUBST(GMP_LDFLAGS)
6890 # -----------------------------------------------------------------------
6893 # ---------------------------------------------------
6894 # Check for CWEB support/directory
6895 # ---------------------------------------------------
6900 # [ --with-cweb[=DIR] Specify cweb library directory],
6902 # case "$with_cweb" in
6905 # if test "$with_cweb" != "yes"; then
6906 # CWEB_INC="-I$with_cweb"
6907 # CWEB_LIBS="-lcweb"
6908 # CWEB_LDFLAGS="-L$with_cweb"
6910 # with_cweb="/usr/include"
6912 # AC_CHECK_HEADER($with_cweb/cweb.h,
6913 # [ AC_MSG_RESULT(yes)
6914 # AC_DEFINE(HAVE_CWEB)
6915 # CWEB_LIBS="-lcweb"
6918 # [ AC_MSG_ERROR([*** cweb library missing])
6924 # # check for standard cweb library
6925 # AC_CHECK_HEADER(/usr/include/cweb.h,
6926 # [ AC_MSG_RESULT(yes)
6927 # AC_DEFINE(HAVE_CWEB)
6930 # CWEB_LIBS="-lcweb"
6932 # # Did not find starndard library, so use our own
6933 # AC_MSG_RESULT(yes)
6934 # AC_DEFINE(HAVE_CWEB)
6937 # CWEB=${TOP_DIR}/depkgs/cweb
6938 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6939 # CWEB_LIBS="-lcweb"
6940 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6941 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6947 #AC_SUBST(CWEB_LIBS)
6948 #AC_SUBST(CWEB_LDFLAGS)
6952 # -----------------------------------------------------------------------
6956 # -----------------------------------------------------------
6957 # Check whether user wants TCP wrappers support (default off)
6958 # -----------------------------------------------------------
6961 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6962 if test "${with_tcp_wrappers+set}" = set; then
6963 withval="$with_tcp_wrappers"
6965 if test "x$withval" != "xno" ; then
6967 LIBS="$saved_LIBS -lwrap"
6968 echo "$as_me:$LINENO: checking for libwrap" >&5
6969 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6970 cat >conftest.$ac_ext <<_ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6977 int deny_severity = 0;
6978 int allow_severity = 0;
6979 struct request_info *req;
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>conftest.er1
6992 grep -v '^ *+' conftest.er1 >conftest.err
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try='test -z "$ac_c_werror_flag"
6998 || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest$ac_exeext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7011 echo "$as_me:$LINENO: result: yes" >&5
7012 echo "${ECHO_T}yes" >&6
7013 cat >>confdefs.h <<\_ACEOF
7014 #define HAVE_LIBWRAP 1
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7024 LIBS="$saved_LIBS -lwrap -lnsl"
7025 cat >conftest.$ac_ext <<_ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7032 int deny_severity = 0;
7033 int allow_severity = 0;
7034 struct request_info *req;
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -z "$ac_c_werror_flag"
7053 || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7066 echo "$as_me:$LINENO: result: yes" >&5
7067 echo "${ECHO_T}yes" >&6
7068 cat >>confdefs.h <<\_ACEOF
7069 #define HAVE_LIBWRAP 1
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7079 echo "$as_me: error: *** libwrap missing" >&2;}
7080 { (exit 1); exit 1; }; }
7083 rm -f conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7087 rm -f conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7094 # ------------------------------------------
7095 # Where to place working dir
7096 # ------------------------------------------
7097 working_dir=`eval echo ${prefix}/var/bacula/working`
7099 # Check whether --with-working-dir or --without-working-dir was given.
7100 if test "${with_working_dir+set}" = set; then
7101 withval="$with_working_dir"
7103 if test "x$withval" != "xno" ; then
7104 working_dir=$withval
7113 # ------------------------------------------
7114 # Where to place scriptdir (script files)
7115 # ------------------------------------------
7116 scriptdir=`eval echo ${sysconfdir}`
7118 # Check whether --with-scriptdir or --without-scriptdir was given.
7119 if test "${with_scriptdir+set}" = set; then
7120 withval="$with_scriptdir"
7122 if test "x$withval" != "xno" ; then
7132 # ------------------------------------------
7133 # Where to send dump email
7134 # ------------------------------------------
7135 dump_email=root@localhost
7137 # Check whether --with-dump-email or --without-dump-email was given.
7138 if test "${with_dump_email+set}" = set; then
7139 withval="$with_dump_email"
7141 if test "x$withval" != "xno" ; then
7150 # ------------------------------------------
7151 # Where to send job email
7152 # ------------------------------------------
7153 job_email=root@localhost
7155 # Check whether --with-job-email or --without-job-email was given.
7156 if test "${with_job_email+set}" = set; then
7157 withval="$with_job_email"
7159 if test "x$withval" != "xno" ; then
7168 # ------------------------------------------
7169 # Where to find smtp host
7170 # ------------------------------------------
7173 # Check whether --with-smtp_host or --without-smtp_host was given.
7174 if test "${with_smtp_host+set}" = set; then
7175 withval="$with_smtp_host"
7177 if test "x$withval" != "xno" ; then
7187 # ------------------------------------
7188 # Where to place pid files
7189 # ------------------------------------
7192 # Check whether --with-pid-dir or --without-pid-dir was given.
7193 if test "${with_pid_dir+set}" = set; then
7194 withval="$with_pid_dir"
7196 if test "x$withval" != "xno" ; then
7203 cat >>confdefs.h <<_ACEOF
7204 #define _PATH_BACULA_PIDDIR "$piddir"
7210 # ------------------------------------
7211 # Where to place subsys "lock file"
7212 # ------------------------------------
7213 subsysdir=/var/run/subsys
7215 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7216 if test "${with_subsys_dir+set}" = set; then
7217 withval="$with_subsys_dir"
7219 if test "x$withval" != "xno" ; then
7230 # ------------------------------------
7231 # Where to start assigning ports
7232 # ------------------------------------
7235 # Check whether --with-baseport or --without-baseport was given.
7236 if test "${with_baseport+set}" = set; then
7237 withval="$with_baseport"
7239 if test "x$withval" != "xno" ; then
7247 dir_port=`expr $baseport`
7248 fd_port=`expr $baseport + 1`
7249 sd_port=`expr $fd_port + 1`
7256 # ------------------------------------------
7257 # Generate passwords
7258 # ------------------------------------------
7261 # Check whether --with-dir-password or --without-dir-password was given.
7262 if test "${with_dir_password+set}" = set; then
7263 withval="$with_dir_password"
7265 if test "x$withval" != "xno" ; then
7266 dir_password=$withval
7272 if test "x$dir_password" = "x" ; then
7273 if test "x$OPENSSL" = "xnone" ; then
7274 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7275 key=`autoconf/randpass 33`
7277 key=`openssl rand -base64 33`
7284 # Check whether --with-fd-password or --without-fd-password was given.
7285 if test "${with_fd_password+set}" = set; then
7286 withval="$with_fd_password"
7288 if test "x$withval" != "xno" ; then
7289 fd_password=$withval
7295 if test "x$fd_password" = "x" ; then
7296 if test "x$OPENSSL" = "xnone" ; then
7297 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7298 key=`autoconf/randpass 37`
7300 key=`openssl rand -base64 33`
7307 # Check whether --with-sd-password or --without-sd-password was given.
7308 if test "${with_sd_password+set}" = set; then
7309 withval="$with_sd_password"
7311 if test "x$withval" != "xno" ; then
7312 sd_password=$withval
7318 if test "x$sd_password" = "x" ; then
7319 if test "x$OPENSSL" = "xnone" ; then
7320 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7321 key=`autoconf/randpass 41`
7323 key=`openssl rand -base64 33`
7335 # Handle users and groups for each daemon
7339 # Check whether --with-dir_user or --without-dir_user was given.
7340 if test "${with_dir_user+set}" = set; then
7341 withval="$with_dir_user"
7343 if test "x$withval" != "x" ; then
7352 # Check whether --with-dir_group or --without-dir_group was given.
7353 if test "${with_dir_group+set}" = set; then
7354 withval="$with_dir_group"
7356 if test "x$withval" != "x" ; then
7365 # Check whether --with-sd_user or --without-sd_user was given.
7366 if test "${with_sd_user+set}" = set; then
7367 withval="$with_sd_user"
7369 if test "x$withval" != "x" ; then
7378 # Check whether --with-sd_group or --without-sd_group was given.
7379 if test "${with_sd_group+set}" = set; then
7380 withval="$with_sd_group"
7382 if test "x$withval" != "x" ; then
7391 # Check whether --with-fd_user or --without-fd_user was given.
7392 if test "${with_fd_user+set}" = set; then
7393 withval="$with_fd_user"
7395 if test "x$withval" != "x" ; then
7404 # Check whether --with-fd_group or --without-fd_group was given.
7405 if test "${with_fd_group+set}" = set; then
7406 withval="$with_fd_group"
7408 if test "x$withval" != "x" ; then
7426 # allow setting default executable permissions
7430 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7431 if test "${with_sbin_perm+set}" = set; then
7432 withval="$with_sbin_perm"
7434 if test "x$withval" != "x" ; then
7443 # ------------------------------------------------
7444 # Bacula check for various SQL database engines
7445 # ------------------------------------------------
7448 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7449 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7451 # Check whether --with-postgresql or --without-postgresql was given.
7452 if test "${with_postgresql+set}" = set; then
7453 withval="$with_postgresql"
7455 if test "$withval" != "no"; then
7456 if test "$db_found" = "yes"; then
7457 echo "$as_me:$LINENO: result: error" >&5
7458 echo "${ECHO_T}error" >&6
7459 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7460 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7461 { (exit 1); exit 1; }; };
7463 if test "$withval" = "yes"; then
7464 if test -f /usr/local/include/libpq-fe.h; then
7465 POSTGRESQL_INCDIR=/usr/local/include
7466 POSTGRESQL_LIBDIR=/usr/local/lib
7467 POSTGRESQL_BINDIR=/usr/local/bin
7468 elif test -f /usr/include/libpq-fe.h; then
7469 POSTGRESQL_INCDIR=/usr/include
7470 POSTGRESQL_LIBDIR=/usr/lib
7471 POSTGRESQL_BINDIR=/usr/bin
7472 elif test -f /usr/include/pgsql/libpq-fe.h; then
7473 POSTGRESQL_INCDIR=/usr/include/pgsql
7474 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7475 POSTGRESQL_BINDIR=/usr/bin
7476 elif test -f /usr/include/postgresql/libpq-fe.h; then
7477 POSTGRESQL_INCDIR=/usr/include/postgresql
7478 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7479 POSTGRESQL_BINDIR=/usr/bin
7481 echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7483 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7484 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7485 { (exit 1); exit 1; }; }
7487 elif test -f $withval/include/libpq-fe.h; then
7488 POSTGRESQL_INCDIR=$withval/include
7489 POSTGRESQL_LIBDIR=$withval/lib
7490 POSTGRESQL_BINDIR=$withval/bin
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7495 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7496 { (exit 1); exit 1; }; }
7498 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7499 echo "$as_me:$LINENO: checking for crypt" >&5
7500 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7501 if test "${ac_cv_func_crypt+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
7511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7512 #define crypt innocuous_crypt
7514 /* System header to define __stub macros and hopefully few prototypes,
7515 which can conflict with char crypt (); below.
7516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517 <limits.h> exists even on freestanding compilers. */
7520 # include <limits.h>
7522 # include <assert.h>
7527 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7535 /* The GNU C library defines this for functions which it implements
7536 to always fail with ENOSYS. Some functions are actually named
7537 something starting with __ and the normal name is an alias. */
7538 #if defined (__stub_crypt) || defined (__stub___crypt)
7541 char (*f) () = crypt;
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest$ac_exeext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_func_crypt=yes
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7584 rm -f conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7588 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7589 if test $ac_cv_func_crypt = yes; then
7592 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7593 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7594 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 ac_check_lib_save_LIBS=$LIBS
7598 LIBS="-lcrypt $LIBS"
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7606 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_lib_crypt_crypt=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_lib_crypt_crypt=no
7650 rm -f conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7654 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7655 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7656 if test $ac_cv_lib_crypt_crypt = yes; then
7657 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7662 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7663 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7664 SQL_BINDIR=$POSTGRESQL_BINDIR
7665 cat >>confdefs.h <<\_ACEOF
7666 #define HAVE_POSTGRESQL 1
7669 echo "$as_me:$LINENO: result: yes" >&5
7670 echo "${ECHO_T}yes" >&6
7672 support_postgresql=yes
7676 echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6
7682 echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6
7694 echo "$as_me:$LINENO: checking for MySQL support" >&5
7695 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7697 # Check whether --with-mysql or --without-mysql was given.
7698 if test "${with_mysql+set}" = set; then
7699 withval="$with_mysql"
7701 if test "$withval" != "no"; then
7702 if test "$withval" = "yes"; then
7703 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7704 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7705 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7706 MYSQL_BINDIR=/usr/local/mysql/bin
7707 elif test -f /usr/include/mysql/mysql.h; then
7708 MYSQL_INCDIR=/usr/include/mysql
7709 MYSQL_LIBDIR=/usr/lib/mysql
7710 MYSQL_BINDIR=/usr/bin
7711 elif test -f /usr/include/mysql.h; then
7712 MYSQL_INCDIR=/usr/include
7713 MYSQL_LIBDIR=/usr/lib
7714 MYSQL_BINDIR=/usr/bin
7715 elif test -f /usr/local/include/mysql/mysql.h; then
7716 MYSQL_INCDIR=/usr/local/include/mysql
7717 MYSQL_LIBDIR=/usr/local/lib/mysql
7718 MYSQL_BINDIR=/usr/local/bin
7719 elif test -f /usr/local/include/mysql.h; then
7720 MYSQL_INCDIR=/usr/local/include
7721 MYSQL_LIBDIR=/usr/local/lib
7722 MYSQL_BINDIR=/usr/local/bin
7724 echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6
7726 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7727 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7728 { (exit 1); exit 1; }; }
7731 if test -f $withval/include/mysql/mysql.h; then
7732 MYSQL_INCDIR=$withval/include/mysql
7733 MYSQL_LIBDIR=$withval/lib/mysql
7734 MYSQL_BINDIR=$withval/bin
7735 elif test -f $withval/include/mysql.h; then
7736 MYSQL_INCDIR=$withval/include
7737 MYSQL_LIBDIR=$withval/lib
7738 MYSQL_BINDIR=$withval/bin
7740 echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6
7742 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7743 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7744 { (exit 1); exit 1; }; }
7747 SQL_INCLUDE=-I$MYSQL_INCDIR
7748 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7749 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7750 cat >>confdefs.h <<\_ACEOF
7751 #define HAVE_THREAD_SAFE_MYSQL 1
7755 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7757 SQL_BINDIR=$MYSQL_BINDIR
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_MYSQL 1
7763 echo "$as_me:$LINENO: result: yes" >&5
7764 echo "${ECHO_T}yes" >&6
7771 echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6
7779 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7780 if test "${with_embedded_mysql+set}" = set; then
7781 withval="$with_embedded_mysql"
7783 if test "$withval" != "no"; then
7784 if test "$withval" = "yes"; then
7785 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7786 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7787 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7788 MYSQL_BINDIR=/usr/local/mysql/bin
7789 elif test -f /usr/include/mysql/mysql.h; then
7790 MYSQL_INCDIR=/usr/include/mysql
7791 MYSQL_LIBDIR=/usr/lib/mysql
7792 MYSQL_BINDIR=/usr/bin
7793 elif test -f /usr/include/mysql.h; then
7794 MYSQL_INCDIR=/usr/include
7795 MYSQL_LIBDIR=/usr/lib
7796 MYSQL_BINDIR=/usr/bin
7797 elif test -f /usr/local/include/mysql/mysql.h; then
7798 MYSQL_INCDIR=/usr/local/include/mysql
7799 MYSQL_LIBDIR=/usr/local/lib/mysql
7800 MYSQL_BINDIR=/usr/local/bin
7801 elif test -f /usr/local/include/mysql.h; then
7802 MYSQL_INCDIR=/usr/local/include
7803 MYSQL_LIBDIR=/usr/local/lib
7804 MYSQL_BINDIR=/usr/local/bin
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7808 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7809 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7810 { (exit 1); exit 1; }; }
7813 if test -f $withval/include/mysql/mysql.h; then
7814 MYSQL_INCDIR=$withval/include/mysql
7815 MYSQL_LIBDIR=$withval/lib/mysql
7816 MYSQL_BINDIR=$withval/bin
7817 elif test -f $withval/include/mysql.h; then
7818 MYSQL_INCDIR=$withval/include
7819 MYSQL_LIBDIR=$withval/lib
7820 MYSQL_BINDIR=$withval/bin
7822 echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7824 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7825 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7826 { (exit 1); exit 1; }; }
7829 SQL_INCLUDE=-I$MYSQL_INCDIR
7830 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7831 SQL_BINDIR=$MYSQL_BINDIR
7833 cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_MYSQL 1
7837 cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_EMBEDDED_MYSQL 1
7841 echo "$as_me:$LINENO: result: yes" >&5
7842 echo "${ECHO_T}yes" >&6
7849 echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7865 echo "$as_me:$LINENO: checking for SQLite support" >&5
7866 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7868 # Check whether --with-sqlite or --without-sqlite was given.
7869 if test "${with_sqlite+set}" = set; then
7870 withval="$with_sqlite"
7872 if test "$withval" != "no"; then
7873 if test "$withval" = "yes"; then
7874 if test -f /usr/local/include/sqlite.h; then
7875 SQLITE_INCDIR=/usr/local/include
7876 SQLITE_LIBDIR=/usr/local/lib
7877 SQLITE_BINDIR=/usr/local/bin
7878 elif test -f /usr/include/sqlite.h; then
7879 SQLITE_INCDIR=/usr/include
7880 SQLITE_LIBDIR=/usr/lib
7881 SQLITE_BINDIR=/usr/bin
7883 echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7885 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7886 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7887 { (exit 1); exit 1; }; }
7890 if test -f $withval/sqlite.h; then
7891 SQLITE_INCDIR=$withval
7892 SQLITE_LIBDIR=$withval
7893 SQLITE_BINDIR=$withval
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7897 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7898 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7899 { (exit 1); exit 1; }; }
7902 SQL_INCLUDE=-I$SQLITE_INCDIR
7903 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7904 SQL_BINDIR=$SQLITE_BINDIR
7906 cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_SQLITE 1
7910 echo "$as_me:$LINENO: result: yes" >&5
7911 echo "${ECHO_T}yes" >&6
7918 echo "$as_me:$LINENO: result: no" >&5
7919 echo "${ECHO_T}no" >&6
7924 echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7937 cat >>confdefs.h <<\_ACEOF
7938 #define PROTOTYPES 1
7942 if test -z "$CFLAGS"; then
7943 if test -z "$CCOPTS"; then
7952 largefile_support="no"
7954 # Check whether --enable-largefile or --disable-largefile was given.
7955 if test "${enable_largefile+set}" = set; then
7956 enableval="$enable_largefile"
7959 if test "$enable_largefile" != no; then
7960 if test -n "$ac_tool_prefix"; then
7961 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7962 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7963 echo "$as_me:$LINENO: checking for $ac_word" >&5
7964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7965 if test "${ac_cv_prog_GETCONF+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 if test -n "$GETCONF"; then
7969 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 GETCONF=$ac_cv_prog_GETCONF
7988 if test -n "$GETCONF"; then
7989 echo "$as_me:$LINENO: result: $GETCONF" >&5
7990 echo "${ECHO_T}$GETCONF" >&6
7992 echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6
7997 if test -z "$ac_cv_prog_GETCONF"; then
7998 ac_ct_GETCONF=$GETCONF
7999 # Extract the first word of "getconf", so it can be a program name with args.
8000 set dummy getconf; ac_word=$2
8001 echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 if test -n "$ac_ct_GETCONF"; then
8007 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_prog_ac_ct_GETCONF="getconf"
8017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8026 if test -n "$ac_ct_GETCONF"; then
8027 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8028 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8030 echo "$as_me:$LINENO: result: no" >&5
8031 echo "${ECHO_T}no" >&6
8034 GETCONF=$ac_ct_GETCONF
8036 GETCONF="$ac_cv_prog_GETCONF"
8039 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8040 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8041 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8045 ac_cv_sys_largefile_CFLAGS=no
8047 # IRIX 6.2 and later require cc -n32.
8048 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8049 if test "$GCC" != yes; then
8050 ac_cv_sys_largefile_CFLAGS=-n32
8053 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag"
8079 || test ! -s conftest.err'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; }; then
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 ac_cv_sys_largefile_CFLAGS=no
8098 rm -f conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8105 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8106 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8107 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8108 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8112 ac_cv_sys_largefile_LDFLAGS=no
8116 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8117 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8118 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8119 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8120 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8124 ac_cv_sys_largefile_LIBS=no
8128 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8129 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8131 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8134 -D_FILE_OFFSET_BITS=*) ;;
8135 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8136 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8142 '') CPPFLAGS="$ac_flag" ;;
8143 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8151 '') CFLAGS="$ac_flag" ;;
8152 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8157 case "$ac_cv_sys_largefile_LDFLAGS" in
8161 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8162 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8165 case "$ac_cv_sys_largefile_LIBS" in
8169 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8170 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8173 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8174 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8175 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 ac_cv_sys_file_offset_bits=no
8180 # HP-UX 10.20 and later
8181 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8182 ac_cv_sys_file_offset_bits=64 ;;
8184 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8186 -D_FILE_OFFSET_BITS)
8187 ac_cv_sys_file_offset_bits=1 ;;
8188 -D_FILE_OFFSET_BITS=*)
8189 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8194 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8195 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8196 if test "$ac_cv_sys_file_offset_bits" != no; then
8198 cat >>confdefs.h <<_ACEOF
8199 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8203 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8204 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8205 if test "${ac_cv_sys_largefile_source+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 ac_cv_sys_largefile_source=no
8210 # HP-UX 10.20 and later
8211 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8212 ac_cv_sys_largefile_source=1 ;;
8214 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8216 -D_LARGEFILE_SOURCE)
8217 ac_cv_sys_largefile_source=1 ;;
8218 -D_LARGEFILE_SOURCE=*)
8219 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8224 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8225 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8226 if test "$ac_cv_sys_largefile_source" != no; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8233 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8234 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8235 if test "${ac_cv_sys_large_files+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 ac_cv_sys_large_files=no
8241 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8242 ac_cv_sys_large_files=1 ;;
8244 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8247 ac_cv_sys_large_files=1 ;;
8249 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8254 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8255 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8256 if test "$ac_cv_sys_large_files" != no; then
8258 cat >>confdefs.h <<_ACEOF
8259 #define _LARGE_FILES $ac_cv_sys_large_files
8267 echo "$as_me:$LINENO: checking for X" >&5
8268 echo $ECHO_N "checking for X... $ECHO_C" >&6
8271 # Check whether --with-x or --without-x was given.
8272 if test "${with_x+set}" = set; then
8276 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8277 if test "x$with_x" = xno; then
8278 # The user explicitly disabled X.
8281 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8282 # Both variables are already set.
8285 if test "${ac_cv_have_x+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 # One or both of the vars are not set, and there is no cached value.
8289 ac_x_includes=no ac_x_libraries=no
8291 if mkdir conftest.dir; then
8293 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8294 cat >Imakefile <<'_ACEOF'
8296 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8298 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8299 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8300 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8301 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8302 for ac_extension in a so sl; do
8303 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8304 test -f $ac_im_libdir/libX11.$ac_extension; then
8305 ac_im_usrlibdir=$ac_im_libdir; break
8308 # Screen out bogus values from the imake configuration. They are
8309 # bogus both because they are the default anyway, and because
8310 # using them would break gcc on systems where it needs fixed includes.
8311 case $ac_im_incroot in
8313 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8315 case $ac_im_usrlibdir in
8317 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8324 # Standard set of common directories for X headers.
8325 # Check X11 before X11Rn because it is often a symlink to the current release.
8337 /usr/local/X11/include
8338 /usr/local/X11R6/include
8339 /usr/local/X11R5/include
8340 /usr/local/X11R4/include
8342 /usr/local/include/X11
8343 /usr/local/include/X11R6
8344 /usr/local/include/X11R5
8345 /usr/local/include/X11R4
8349 /usr/XFree86/include/X11
8353 /usr/unsupported/include
8355 /usr/local/x11r5/include
8356 /usr/lpp/Xamples/include
8358 /usr/openwin/include
8359 /usr/openwin/share/include'
8361 if test "$ac_x_includes" = no; then
8362 # Guess where to find include files, by looking for Intrinsic.h.
8363 # First, try using that file with no special directory specified.
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 #include <X11/Intrinsic.h>
8372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } >/dev/null; then
8380 if test -s conftest.err; then
8381 ac_cpp_err=$ac_c_preproc_warn_flag
8382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8389 if test -z "$ac_cpp_err"; then
8390 # We can compile using X headers with no special include directory.
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 for ac_dir in $ac_x_header_dirs; do
8397 if test -r "$ac_dir/X11/Intrinsic.h"; then
8398 ac_x_includes=$ac_dir
8403 rm -f conftest.err conftest.$ac_ext
8404 fi # $ac_x_includes = no
8406 if test "$ac_x_libraries" = no; then
8407 # Check for the libraries.
8408 # See if we find them without any special options.
8409 # Don't add to $LIBS permanently.
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 #include <X11/Intrinsic.h>
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8450 # We can link X programs with no special library path.
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8457 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8459 # Don't even attempt the hair of trying to link an X program!
8460 for ac_extension in a so sl; do
8461 if test -r $ac_dir/libXt.$ac_extension; then
8462 ac_x_libraries=$ac_dir
8468 rm -f conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 fi # $ac_x_libraries = no
8472 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8473 # Didn't find X anywhere. Cache the known absence of X.
8474 ac_cv_have_x="have_x=no"
8476 # Record where we found X for the cache.
8477 ac_cv_have_x="have_x=yes \
8478 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8483 eval "$ac_cv_have_x"
8486 if test "$have_x" != yes; then
8487 echo "$as_me:$LINENO: result: $have_x" >&5
8488 echo "${ECHO_T}$have_x" >&6
8491 # If each of the values was on the command line, it overrides each guess.
8492 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8493 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8494 # Update the cache value to reflect the command line values.
8495 ac_cv_have_x="have_x=yes \
8496 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8497 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8498 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8501 if test "$no_x" = yes; then
8502 # Not all programs may use this symbol, but it does not hurt to define it.
8504 cat >>confdefs.h <<\_ACEOF
8505 #define X_DISPLAY_MISSING 1
8508 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8510 if test -n "$x_includes"; then
8511 X_CFLAGS="$X_CFLAGS -I$x_includes"
8514 # It would also be nice to do this for all -L options, not just this one.
8515 if test -n "$x_libraries"; then
8516 X_LIBS="$X_LIBS -L$x_libraries"
8517 # For Solaris; some versions of Sun CC require a space after -R and
8518 # others require no space. Words are not sufficient . . . .
8519 case `(uname -sr) 2>/dev/null` in
8521 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8522 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8523 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8568 rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 if test $ac_R_nospace = yes; then
8571 echo "$as_me:$LINENO: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8573 X_LIBS="$X_LIBS -R$x_libraries"
8575 LIBS="$ac_xsave_LIBS -R $x_libraries"
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8620 rm -f conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 if test $ac_R_space = yes; then
8623 echo "$as_me:$LINENO: result: yes" >&5
8624 echo "${ECHO_T}yes" >&6
8625 X_LIBS="$X_LIBS -R $x_libraries"
8627 echo "$as_me:$LINENO: result: neither works" >&5
8628 echo "${ECHO_T}neither works" >&6
8635 # Check for system-dependent libraries X programs must link with.
8636 # Do this before checking for the system-independent R6 libraries
8637 # (-lICE), since we may need -lsocket or whatever for X linking.
8639 if test "$ISC" = yes; then
8640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8642 # Martyn Johnson says this is needed for Ultrix, if the X
8643 # libraries were built with DECnet support. And Karl Berry says
8644 # the Alpha needs dnet_stub (dnet does not exist).
8645 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8646 cat >conftest.$ac_ext <<_ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8653 /* Override any gcc2 internal prototype to avoid an error. */
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8659 char XOpenDisplay ();
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670 (eval $ac_link) 2>conftest.er1
8672 grep -v '^ *+' conftest.er1 >conftest.err
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } &&
8677 { ac_try='test -z "$ac_c_werror_flag"
8678 || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8696 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8697 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 ac_check_lib_save_LIBS=$LIBS
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8709 /* Override any gcc2 internal prototype to avoid an error. */
8713 /* We use char because int might match the return type of a gcc2
8714 builtin and then its argument prototype would still apply. */
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726 (eval $ac_link) 2>conftest.er1
8728 grep -v '^ *+' conftest.er1 >conftest.err
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag"
8734 || test ! -s conftest.err'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_lib_dnet_dnet_ntoa=yes
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8751 ac_cv_lib_dnet_dnet_ntoa=no
8753 rm -f conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 LIBS=$ac_check_lib_save_LIBS
8757 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8758 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8759 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8760 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8763 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8764 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8765 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8766 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-ldnet_stub $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8778 /* Override any gcc2 internal prototype to avoid an error. */
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795 (eval $ac_link) 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_lib_dnet_stub_dnet_ntoa=no
8822 rm -f conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8826 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8827 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8828 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8829 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8834 rm -f conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LIBS="$ac_xsave_LIBS"
8838 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8839 # to get the SysV transport functions.
8840 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8842 # The nsl library prevents programs from opening the X display
8843 # on Irix 5.2, according to T.E. Dickey.
8844 # The functions gethostbyname, getservbyname, and inet_addr are
8845 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8846 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8847 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8848 if test "${ac_cv_func_gethostbyname+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8859 #define gethostbyname innocuous_gethostbyname
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char gethostbyname (); below.
8863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864 <limits.h> exists even on freestanding compilers. */
8867 # include <limits.h>
8869 # include <assert.h>
8872 #undef gethostbyname
8874 /* Override any gcc2 internal prototype to avoid an error. */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char gethostbyname ();
8882 /* The GNU C library defines this for functions which it implements
8883 to always fail with ENOSYS. Some functions are actually named
8884 something starting with __ and the normal name is an alias. */
8885 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8888 char (*f) () = gethostbyname;
8897 return f != gethostbyname;
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>conftest.er1
8906 grep -v '^ *+' conftest.er1 >conftest.err
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_cv_func_gethostbyname=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_cv_func_gethostbyname=no
8931 rm -f conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8934 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8935 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8937 if test $ac_cv_func_gethostbyname = no; then
8938 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8939 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8940 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 ac_check_lib_save_LIBS=$LIBS
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8952 /* Override any gcc2 internal prototype to avoid an error. */
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958 char gethostbyname ();
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8971 grep -v '^ *+' conftest.er1 >conftest.err
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_lib_nsl_gethostbyname=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_lib_nsl_gethostbyname=no
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 LIBS=$ac_check_lib_save_LIBS
9000 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9001 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9002 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9006 if test $ac_cv_lib_nsl_gethostbyname = no; then
9007 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9008 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9009 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 ac_check_lib_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 /* Override any gcc2 internal prototype to avoid an error. */
9025 /* We use char because int might match the return type of a gcc2
9026 builtin and then its argument prototype would still apply. */
9027 char gethostbyname ();
9036 rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038 (eval $ac_link) 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_lib_bsd_gethostbyname=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_cv_lib_bsd_gethostbyname=no
9065 rm -f conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 LIBS=$ac_check_lib_save_LIBS
9069 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9070 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9071 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9078 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9079 # socket/setsockopt and other routines are undefined under SCO ODT
9080 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9081 # on later versions), says Simon Leinen: it contains gethostby*
9082 # variants that don't use the name server (or something). -lsocket
9083 # must be given before -lnsl if both are needed. We assume that
9084 # if connect needs -lnsl, so does gethostbyname.
9085 echo "$as_me:$LINENO: checking for connect" >&5
9086 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9087 if test "${ac_cv_func_connect+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9098 #define connect innocuous_connect
9100 /* System header to define __stub macros and hopefully few prototypes,
9101 which can conflict with char connect (); below.
9102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9103 <limits.h> exists even on freestanding compilers. */
9106 # include <limits.h>
9108 # include <assert.h>
9113 /* Override any gcc2 internal prototype to avoid an error. */
9118 /* We use char because int might match the return type of a gcc2
9119 builtin and then its argument prototype would still apply. */
9121 /* The GNU C library defines this for functions which it implements
9122 to always fail with ENOSYS. Some functions are actually named
9123 something starting with __ and the normal name is an alias. */
9124 #if defined (__stub_connect) || defined (__stub___connect)
9127 char (*f) () = connect;
9136 return f != connect;
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143 (eval $ac_link) 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try='test -z "$ac_c_werror_flag"
9151 || test ! -s conftest.err'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; } &&
9157 { ac_try='test -s conftest$ac_exeext'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 ac_cv_func_connect=yes
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 ac_cv_func_connect=no
9170 rm -f conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9174 echo "${ECHO_T}$ac_cv_func_connect" >&6
9176 if test $ac_cv_func_connect = no; then
9177 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9178 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9179 if test "${ac_cv_lib_socket_connect+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 ac_check_lib_save_LIBS=$LIBS
9183 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9184 cat >conftest.$ac_ext <<_ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9191 /* Override any gcc2 internal prototype to avoid an error. */
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>conftest.er1
9210 grep -v '^ *+' conftest.er1 >conftest.err
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -z "$ac_c_werror_flag"
9216 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } &&
9222 { ac_try='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 ac_cv_lib_socket_connect=yes
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_cv_lib_socket_connect=no
9235 rm -f conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237 LIBS=$ac_check_lib_save_LIBS
9239 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9240 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9241 if test $ac_cv_lib_socket_connect = yes; then
9242 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9247 # Guillermo Gomez says -lposix is necessary on A/UX.
9248 echo "$as_me:$LINENO: checking for remove" >&5
9249 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9250 if test "${ac_cv_func_remove+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9261 #define remove innocuous_remove
9263 /* System header to define __stub macros and hopefully few prototypes,
9264 which can conflict with char remove (); below.
9265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9266 <limits.h> exists even on freestanding compilers. */
9269 # include <limits.h>
9271 # include <assert.h>
9276 /* Override any gcc2 internal prototype to avoid an error. */
9281 /* We use char because int might match the return type of a gcc2
9282 builtin and then its argument prototype would still apply. */
9284 /* The GNU C library defines this for functions which it implements
9285 to always fail with ENOSYS. Some functions are actually named
9286 something starting with __ and the normal name is an alias. */
9287 #if defined (__stub_remove) || defined (__stub___remove)
9290 char (*f) () = remove;
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9308 grep -v '^ *+' conftest.er1 >conftest.err
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_func_remove=yes
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_func_remove=no
9333 rm -f conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9336 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9337 echo "${ECHO_T}$ac_cv_func_remove" >&6
9339 if test $ac_cv_func_remove = no; then
9340 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9341 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9342 if test "${ac_cv_lib_posix_remove+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 ac_check_lib_save_LIBS=$LIBS
9346 LIBS="-lposix $LIBS"
9347 cat >conftest.$ac_ext <<_ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9354 /* Override any gcc2 internal prototype to avoid an error. */
9358 /* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371 (eval $ac_link) 2>conftest.er1
9373 grep -v '^ *+' conftest.er1 >conftest.err
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } &&
9378 { ac_try='test -z "$ac_c_werror_flag"
9379 || test ! -s conftest.err'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 ac_cv_lib_posix_remove=yes
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_cv_lib_posix_remove=no
9398 rm -f conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 LIBS=$ac_check_lib_save_LIBS
9402 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9403 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9404 if test $ac_cv_lib_posix_remove = yes; then
9405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9410 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9411 echo "$as_me:$LINENO: checking for shmat" >&5
9412 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9413 if test "${ac_cv_func_shmat+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.$ac_ext <<_ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9424 #define shmat innocuous_shmat
9426 /* System header to define __stub macros and hopefully few prototypes,
9427 which can conflict with char shmat (); below.
9428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9429 <limits.h> exists even on freestanding compilers. */
9432 # include <limits.h>
9434 # include <assert.h>
9439 /* Override any gcc2 internal prototype to avoid an error. */
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined (__stub_shmat) || defined (__stub___shmat)
9453 char (*f) () = shmat;
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag"
9477 || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_func_shmat=yes
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9496 rm -f conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9499 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9500 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9502 if test $ac_cv_func_shmat = no; then
9503 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9504 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9505 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 ac_check_lib_save_LIBS=$LIBS
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9517 /* Override any gcc2 internal prototype to avoid an error. */
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534 (eval $ac_link) 2>conftest.er1
9536 grep -v '^ *+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag"
9542 || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_cv_lib_ipc_shmat=yes
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_cv_lib_ipc_shmat=no
9561 rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9565 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9566 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9567 if test $ac_cv_lib_ipc_shmat = yes; then
9568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9574 # Check for libraries that X11R6 Xt/Xaw programs need.
9575 ac_save_LDFLAGS=$LDFLAGS
9576 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9577 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9578 # check for ICE first), but we must link in the order -lSM -lICE or
9579 # we get undefined symbols. So assume we have SM if we have ICE.
9580 # These have to be linked with before -lX11, unlike the other
9581 # libraries we check for below, so use a different variable.
9582 # John Interrante, Karl Berry
9583 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9584 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9585 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9590 cat >conftest.$ac_ext <<_ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 /* Override any gcc2 internal prototype to avoid an error. */
9601 /* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603 char IceConnectionNumber ();
9607 IceConnectionNumber ();
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
9616 grep -v '^ *+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_lib_ICE_IceConnectionNumber=yes
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9639 ac_cv_lib_ICE_IceConnectionNumber=no
9641 rm -f conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643 LIBS=$ac_check_lib_save_LIBS
9645 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9646 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9647 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9648 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9651 LDFLAGS=$ac_save_LDFLAGS
9709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9711 echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9719 # Is the header compilable?
9720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 $ac_includes_default
9729 #include <$ac_header>
9731 rm -f conftest.$ac_objext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733 (eval $ac_compile) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest.$ac_objext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_header_compiler=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_header_compiler=no
9760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9762 echo "${ECHO_T}$ac_header_compiler" >&6
9764 # Is the header present?
9765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 #include <$ac_header>
9775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } >/dev/null; then
9783 if test -s conftest.err; then
9784 ac_cpp_err=$ac_c_preproc_warn_flag
9785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9792 if test -z "$ac_cpp_err"; then
9793 ac_header_preproc=yes
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_header_preproc=no
9800 rm -f conftest.err conftest.$ac_ext
9801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9802 echo "${ECHO_T}$ac_header_preproc" >&6
9804 # So? What about this header?
9805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9811 ac_header_preproc=yes
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9828 ## ------------------------------------------ ##
9829 ## Report this to the AC_PACKAGE_NAME lists. ##
9830 ## ------------------------------------------ ##
9833 sed "s/^/$as_me: WARNING: /" >&2
9836 echo "$as_me:$LINENO: checking for $ac_header" >&5
9837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 eval "$as_ac_Header=\$ac_header_preproc"
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9848 cat >>confdefs.h <<_ACEOF
9849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9858 if test "${ac_cv_header_stdc+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest.$ac_objext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_header_stdc=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_header_stdc=no
9909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9911 if test $ac_cv_header_stdc = yes; then
9912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923 $EGREP "memchr" >/dev/null 2>&1; then
9926 ac_cv_header_stdc=no
9932 if test $ac_cv_header_stdc = yes; then
9933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9944 $EGREP "free" >/dev/null 2>&1; then
9947 ac_cv_header_stdc=no
9953 if test $ac_cv_header_stdc = yes; then
9954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9955 if test "$cross_compiling" = yes; then
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9965 #if ((' ' & 0x0FF) == 0x020)
9966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9969 # define ISLOWER(c) \
9970 (('a' <= (c) && (c) <= 'i') \
9971 || ('j' <= (c) && (c) <= 'r') \
9972 || ('s' <= (c) && (c) <= 'z'))
9973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9981 for (i = 0; i < 256; i++)
9982 if (XOR (islower (i), ISLOWER (i))
9983 || toupper (i) != TOUPPER (i))
9988 rm -f conftest$ac_exeext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990 (eval $ac_link) 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
10001 echo "$as_me: program exited with status $ac_status" >&5
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ( exit $ac_status )
10006 ac_cv_header_stdc=no
10008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10014 if test $ac_cv_header_stdc = yes; then
10016 cat >>confdefs.h <<\_ACEOF
10017 #define STDC_HEADERS 1
10022 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10023 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10024 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <sys/types.h>
10037 return makedev(0, 0);
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044 (eval $ac_link) 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag"
10052 || test ! -s conftest.err'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_header_sys_types_h_makedev=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_cv_header_sys_types_h_makedev=no
10071 rm -f conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10075 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10076 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10078 if test $ac_cv_header_sys_types_h_makedev = no; then
10079 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10080 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10081 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10082 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10086 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10088 # Is the header compilable?
10089 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10090 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 $ac_includes_default
10098 #include <sys/mkdev.h>
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102 (eval $ac_compile) 2>conftest.er1
10104 grep -v '^ *+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag"
10110 || test ! -s conftest.err'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest.$ac_objext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_header_compiler=yes
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_header_compiler=no
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10131 echo "${ECHO_T}$ac_header_compiler" >&6
10133 # Is the header present?
10134 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10135 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 #include <sys/mkdev.h>
10144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } >/dev/null; then
10152 if test -s conftest.err; then
10153 ac_cpp_err=$ac_c_preproc_warn_flag
10154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10161 if test -z "$ac_cpp_err"; then
10162 ac_header_preproc=yes
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_header_preproc=no
10169 rm -f conftest.err conftest.$ac_ext
10170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10171 echo "${ECHO_T}$ac_header_preproc" >&6
10173 # So? What about this header?
10174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10176 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10177 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
10179 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
10180 ac_header_preproc=yes
10183 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10184 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10186 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
10188 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
10190 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10192 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
10194 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
10197 ## ------------------------------------------ ##
10198 ## Report this to the AC_PACKAGE_NAME lists. ##
10199 ## ------------------------------------------ ##
10202 sed "s/^/$as_me: WARNING: /" >&2
10205 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10206 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10207 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10212 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10213 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10216 if test $ac_cv_header_sys_mkdev_h = yes; then
10218 cat >>confdefs.h <<\_ACEOF
10219 #define MAJOR_IN_MKDEV 1
10226 if test $ac_cv_header_sys_mkdev_h = no; then
10227 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10228 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10229 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10230 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10234 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10236 # Is the header compilable?
10237 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10238 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10239 cat >conftest.$ac_ext <<_ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 $ac_includes_default
10246 #include <sys/sysmacros.h>
10248 rm -f conftest.$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_header_compiler=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_header_compiler=no
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10279 echo "${ECHO_T}$ac_header_compiler" >&6
10281 # Is the header present?
10282 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10283 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 #include <sys/sysmacros.h>
10292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10295 grep -v '^ *+' conftest.er1 >conftest.err
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } >/dev/null; then
10300 if test -s conftest.err; then
10301 ac_cpp_err=$ac_c_preproc_warn_flag
10302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10309 if test -z "$ac_cpp_err"; then
10310 ac_header_preproc=yes
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ac_header_preproc=no
10317 rm -f conftest.err conftest.$ac_ext
10318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10319 echo "${ECHO_T}$ac_header_preproc" >&6
10321 # So? What about this header?
10322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10324 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10325 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10326 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
10327 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
10328 ac_header_preproc=yes
10331 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10332 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10334 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
10336 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
10338 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10340 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
10342 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
10345 ## ------------------------------------------ ##
10346 ## Report this to the AC_PACKAGE_NAME lists. ##
10347 ## ------------------------------------------ ##
10350 sed "s/^/$as_me: WARNING: /" >&2
10353 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10354 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10355 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10361 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10364 if test $ac_cv_header_sys_sysmacros_h = yes; then
10366 cat >>confdefs.h <<\_ACEOF
10367 #define MAJOR_IN_SYSMACROS 1
10381 ac_header_dirent=no
10382 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10383 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10384 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10385 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <sys/types.h>
10407 rm -f conftest.$ac_objext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -z "$ac_c_werror_flag"
10417 || test ! -s conftest.err'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest.$ac_objext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 eval "$as_ac_Header=yes"
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 eval "$as_ac_Header=no"
10436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10441 cat >>confdefs.h <<_ACEOF
10442 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10445 ac_header_dirent=$ac_hdr; break
10449 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10450 if test $ac_header_dirent = dirent.h; then
10451 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10452 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10453 if test "${ac_cv_search_opendir+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 ac_func_search_save_LIBS=$LIBS
10457 ac_cv_search_opendir=no
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 /* Override any gcc2 internal prototype to avoid an error. */
10469 /* We use char because int might match the return type of a gcc2
10470 builtin and then its argument prototype would still apply. */
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -z "$ac_c_werror_flag"
10490 || test ! -s conftest.err'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; } &&
10496 { ac_try='test -s conftest$ac_exeext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_search_opendir="none required"
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10508 rm -f conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 if test "$ac_cv_search_opendir" = no; then
10511 for ac_lib in dir; do
10512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10520 /* Override any gcc2 internal prototype to avoid an error. */
10524 /* We use char because int might match the return type of a gcc2
10525 builtin and then its argument prototype would still apply. */
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537 (eval $ac_link) 2>conftest.er1
10539 grep -v '^ *+' conftest.er1 >conftest.err
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try='test -z "$ac_c_werror_flag"
10545 || test ! -s conftest.err'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; } &&
10551 { ac_try='test -s conftest$ac_exeext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_search_opendir="-l$ac_lib"
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10564 rm -f conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_func_search_save_LIBS
10570 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10571 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10572 if test "$ac_cv_search_opendir" != no; then
10573 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10578 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10579 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10580 if test "${ac_cv_search_opendir+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 ac_func_search_save_LIBS=$LIBS
10584 ac_cv_search_opendir=no
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10592 /* Override any gcc2 internal prototype to avoid an error. */
10596 /* We use char because int might match the return type of a gcc2
10597 builtin and then its argument prototype would still apply. */
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609 (eval $ac_link) 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_c_werror_flag"
10617 || test ! -s conftest.err'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; } &&
10623 { ac_try='test -s conftest$ac_exeext'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_cv_search_opendir="none required"
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10635 rm -f conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 if test "$ac_cv_search_opendir" = no; then
10638 for ac_lib in x; do
10639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10647 /* Override any gcc2 internal prototype to avoid an error. */
10651 /* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -z "$ac_c_werror_flag"
10672 || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_search_opendir="-l$ac_lib"
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10691 rm -f conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_func_search_save_LIBS
10697 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10698 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10699 if test "$ac_cv_search_opendir" != no; then
10700 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10706 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10707 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10708 if test "${ac_cv_header_stat_broken+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 cat >conftest.$ac_ext <<_ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <sys/types.h>
10718 #include <sys/stat.h>
10720 #if defined(S_ISBLK) && defined(S_IFDIR)
10721 # if S_ISBLK (S_IFDIR)
10726 #if defined(S_ISBLK) && defined(S_IFCHR)
10727 # if S_ISBLK (S_IFCHR)
10732 #if defined(S_ISLNK) && defined(S_IFREG)
10733 # if S_ISLNK (S_IFREG)
10738 #if defined(S_ISSOCK) && defined(S_IFREG)
10739 # if S_ISSOCK (S_IFREG)
10745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10746 $EGREP "You lose" >/dev/null 2>&1; then
10747 ac_cv_header_stat_broken=yes
10749 ac_cv_header_stat_broken=no
10754 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10755 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10756 if test $ac_cv_header_stat_broken = yes; then
10758 cat >>confdefs.h <<\_ACEOF
10759 #define STAT_MACROS_BROKEN 1
10764 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10765 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10766 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10776 #include <sys/wait.h>
10777 #ifndef WEXITSTATUS
10778 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10781 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10789 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10794 rm -f conftest.$ac_objext
10795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10796 (eval $ac_compile) 2>conftest.er1
10798 grep -v '^ *+' conftest.er1 >conftest.err
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -z "$ac_c_werror_flag"
10804 || test ! -s conftest.err'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; } &&
10810 { ac_try='test -s conftest.$ac_objext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_cv_header_sys_wait_h=yes
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_cv_header_sys_wait_h=no
10823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10826 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10827 if test $ac_cv_header_sys_wait_h = yes; then
10829 cat >>confdefs.h <<\_ACEOF
10830 #define HAVE_SYS_WAIT_H 1
10835 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10836 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10837 if test "${ac_cv_header_time+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 cat >conftest.$ac_ext <<_ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 #include <sys/types.h>
10847 #include <sys/time.h>
10853 if ((struct tm *) 0)
10859 rm -f conftest.$ac_objext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861 (eval $ac_compile) 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag"
10869 || test ! -s conftest.err'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest.$ac_objext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_header_time=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_header_time=no
10888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10890 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10891 echo "${ECHO_T}$ac_cv_header_time" >&6
10892 if test $ac_cv_header_time = yes; then
10894 cat >>confdefs.h <<\_ACEOF
10895 #define TIME_WITH_SYS_TIME 1
10901 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10902 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10903 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 $ac_includes_default
10916 static struct stat ac_aggr;
10917 if (ac_aggr.st_blksize)
10923 rm -f conftest.$ac_objext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest.$ac_objext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_member_struct_stat_st_blksize=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10960 static struct stat ac_aggr;
10961 if (sizeof ac_aggr.st_blksize)
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_member_struct_stat_st_blksize=yes
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_cv_member_struct_stat_st_blksize=no
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11000 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11001 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11002 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11009 cat >>confdefs.h <<\_ACEOF
11010 #define HAVE_ST_BLKSIZE 1
11016 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11017 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11018 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11031 static struct stat ac_aggr;
11032 if (ac_aggr.st_blocks)
11038 rm -f conftest.$ac_objext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>conftest.er1
11042 grep -v '^ *+' conftest.er1 >conftest.err
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -z "$ac_c_werror_flag"
11048 || test ! -s conftest.err'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest.$ac_objext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_member_struct_stat_st_blocks=yes
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 cat >conftest.$ac_ext <<_ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 $ac_includes_default
11075 static struct stat ac_aggr;
11076 if (sizeof ac_aggr.st_blocks)
11082 rm -f conftest.$ac_objext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084 (eval $ac_compile) 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest.$ac_objext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_cv_member_struct_stat_st_blocks=yes
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_cv_member_struct_stat_st_blocks=no
11111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11115 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11116 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11117 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11124 cat >>confdefs.h <<\_ACEOF
11125 #define HAVE_ST_BLOCKS 1
11130 "fileblocks.$ac_objext" | \
11131 *" fileblocks.$ac_objext" | \
11132 "fileblocks.$ac_objext "* | \
11133 *" fileblocks.$ac_objext "* ) ;;
11134 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
11140 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11141 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11142 if test "${ac_cv_struct_tm+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 #include <sys/types.h>
11157 struct tm *tp; tp->tm_sec;
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag"
11172 || test ! -s conftest.err'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 ac_cv_struct_tm=time.h
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_cv_struct_tm=sys/time.h
11191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11194 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11195 if test $ac_cv_struct_tm = sys/time.h; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define TM_IN_SYS_TIME 1
11203 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11204 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11205 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <sys/types.h>
11215 #include <$ac_cv_struct_tm>
11221 static struct tm ac_aggr;
11222 if (ac_aggr.tm_zone)
11228 rm -f conftest.$ac_objext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11230 (eval $ac_compile) 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -z "$ac_c_werror_flag"
11238 || test ! -s conftest.err'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; } &&
11244 { ac_try='test -s conftest.$ac_objext'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 ac_cv_member_struct_tm_tm_zone=yes
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 #include <sys/types.h>
11262 #include <$ac_cv_struct_tm>
11268 static struct tm ac_aggr;
11269 if (sizeof ac_aggr.tm_zone)
11275 rm -f conftest.$ac_objext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11277 (eval $ac_compile) 2>conftest.er1
11279 grep -v '^ *+' conftest.er1 >conftest.err
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try='test -z "$ac_c_werror_flag"
11285 || test ! -s conftest.err'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; } &&
11291 { ac_try='test -s conftest.$ac_objext'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 ac_cv_member_struct_tm_tm_zone=yes
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11302 ac_cv_member_struct_tm_tm_zone=no
11304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11309 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11310 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313 #define HAVE_STRUCT_TM_TM_ZONE 1
11319 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11321 cat >>confdefs.h <<\_ACEOF
11322 #define HAVE_TM_ZONE 1
11326 echo "$as_me:$LINENO: checking for tzname" >&5
11327 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11328 if test "${ac_cv_var_tzname+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11338 #ifndef tzname /* For SGI. */
11339 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11350 rm -f conftest.$ac_objext conftest$ac_exeext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352 (eval $ac_link) 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try='test -z "$ac_c_werror_flag"
11360 || test ! -s conftest.err'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11372 ac_cv_var_tzname=yes
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_cv_var_tzname=no
11379 rm -f conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11382 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11383 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11384 if test $ac_cv_var_tzname = yes; then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define HAVE_TZNAME 1
11394 echo "$as_me:$LINENO: checking for utime.h" >&5
11395 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11396 if test "${ba_cv_header_utime_h+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 cat >conftest.$ac_ext <<_ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11406 #include <sys/types.h>
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_c_werror_flag"
11426 || test ! -s conftest.err'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; } &&
11432 { ac_try='test -s conftest.$ac_objext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 ba_cv_header_utime_h=yes
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 ba_cv_header_utime_h=no
11445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11447 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11448 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11449 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_UTIME_H 1
11454 echo "$as_me:$LINENO: checking for socklen_t" >&5
11455 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11456 if test "${ba_cv_header_socklen_t+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11466 #include <sys/types.h>
11467 #include <sys/socket.h>
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478 (eval $ac_compile) 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -z "$ac_c_werror_flag"
11486 || test ! -s conftest.err'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; } &&
11492 { ac_try='test -s conftest.$ac_objext'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 ba_cv_header_socklen_t=yes
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ba_cv_header_socklen_t=no
11505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11508 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11509 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_SOCKLEN_T 1
11514 echo "$as_me:$LINENO: checking for bigendian" >&5
11515 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11516 if test "${ba_cv_bigendian+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 if test "$cross_compiling" = yes; then
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11530 rm -f conftest$ac_exeext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532 (eval $ac_link) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ba_cv_bigendian=yes
11543 echo "$as_me: program exited with status $ac_status" >&5
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ( exit $ac_status )
11550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11554 echo "${ECHO_T}$ba_cv_bigendian" >&6
11555 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_BIGENDIAN 1
11561 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11563 if test "${ac_cv_c_const+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11576 /* FIXME: Include the comments suggested by Paul. */
11577 #ifndef __cplusplus
11578 /* Ultrix mips cc rejects this. */
11579 typedef int charset[2];
11581 /* SunOS 4.1.1 cc rejects this. */
11582 char const *const *ccp;
11584 /* NEC SVR4.0.2 mips cc rejects this. */
11585 struct point {int x, y;};
11586 static struct point const zero = {0,0};
11587 /* AIX XL C 1.02.0.0 rejects this.
11588 It does not let you subtract one const X* pointer from another in
11589 an arm of an if-expression whose if-part is not a constant
11591 const char *g = "string";
11592 ccp = &g + (g ? g-g : 0);
11593 /* HPUX 7.0 cc rejects these. */
11596 ccp = (char const *const *) p;
11597 { /* SCO 3.2v4 cc rejects this. */
11599 char const *s = 0 ? (char *) 0 : (char const *) 0;
11603 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11604 int x[] = {25, 17};
11605 const int *foo = &x[0];
11608 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11609 typedef const int *iptr;
11613 { /* AIX XL C 1.02.0.0 rejects this saying
11614 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11615 struct s { int j; const int *ap[3]; };
11616 struct s *b; b->j = 5;
11618 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11619 const int foo = 10;
11627 rm -f conftest.$ac_objext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11631 grep -v '^ *+' conftest.er1 >conftest.err
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_c_werror_flag"
11637 || test ! -s conftest.err'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11658 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11659 echo "${ECHO_T}$ac_cv_c_const" >&6
11660 if test $ac_cv_c_const = no; then
11662 cat >>confdefs.h <<\_ACEOF
11670 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11671 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11673 # The order of these tests is important.
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 #include <sys/statvfs.h>
11681 #include <sys/fstyp.h>
11683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } >/dev/null; then
11691 if test -s conftest.err; then
11692 ac_cpp_err=$ac_c_preproc_warn_flag
11693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11700 if test -z "$ac_cpp_err"; then
11701 cat >>confdefs.h <<\_ACEOF
11702 #define FSTYPE_STATVFS 1
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11711 rm -f conftest.err conftest.$ac_ext
11712 if test $fstype = no; then
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <sys/statfs.h>
11720 #include <sys/fstyp.h>
11722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } >/dev/null; then
11730 if test -s conftest.err; then
11731 ac_cpp_err=$ac_c_preproc_warn_flag
11732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11739 if test -z "$ac_cpp_err"; then
11740 cat >>confdefs.h <<\_ACEOF
11741 #define FSTYPE_USG_STATFS 1
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11750 rm -f conftest.err conftest.$ac_ext
11752 if test $fstype = no; then
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <sys/statfs.h>
11760 #include <sys/vmount.h>
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } >/dev/null; then
11770 if test -s conftest.err; then
11771 ac_cpp_err=$ac_c_preproc_warn_flag
11772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11779 if test -z "$ac_cpp_err"; then
11780 cat >>confdefs.h <<\_ACEOF
11781 #define FSTYPE_AIX_STATFS 1
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11790 rm -f conftest.err conftest.$ac_ext
11792 if test $fstype = no; then
11793 cat >conftest.$ac_ext <<_ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 #include <mntent.h>
11801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11804 grep -v '^ *+' conftest.er1 >conftest.err
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } >/dev/null; then
11809 if test -s conftest.err; then
11810 ac_cpp_err=$ac_c_preproc_warn_flag
11811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11818 if test -z "$ac_cpp_err"; then
11819 cat >>confdefs.h <<\_ACEOF
11820 #define FSTYPE_MNTENT 1
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11829 rm -f conftest.err conftest.$ac_ext
11831 if test $fstype = no; then
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 #include <sys/mount.h>
11841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11842 $EGREP "f_type;" >/dev/null 2>&1; then
11843 cat >>confdefs.h <<\_ACEOF
11844 #define FSTYPE_STATFS 1
11851 if test $fstype = no; then
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <sys/mount.h>
11859 #include <sys/fs_types.h>
11861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } >/dev/null; then
11869 if test -s conftest.err; then
11870 ac_cpp_err=$ac_c_preproc_warn_flag
11871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11878 if test -z "$ac_cpp_err"; then
11879 cat >>confdefs.h <<\_ACEOF
11880 #define FSTYPE_GETMNT 1
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11889 rm -f conftest.err conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: $fstype" >&5
11892 echo "${ECHO_T}$fstype" >&6
11894 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11895 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11896 if test "${ac_cv_type_signal+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 #include <sys/types.h>
11906 #include <signal.h>
11911 extern "C" void (*signal (int, void (*)(int)))(int);
11913 void (*signal ()) ();
11924 rm -f conftest.$ac_objext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag"
11934 || test ! -s conftest.err'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; } &&
11940 { ac_try='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_type_signal=void
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 ac_cv_type_signal=int
11953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11955 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11956 echo "${ECHO_T}$ac_cv_type_signal" >&6
11958 cat >>confdefs.h <<_ACEOF
11959 #define RETSIGTYPE $ac_cv_type_signal
11964 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11965 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11966 if test "${bash_cv_signal_vintage+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 #include <signal.h>
11982 struct sigaction sa;
11983 sigemptyset(&ss); sigsuspend(&ss);
11984 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11985 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag"
12001 || test ! -s conftest.err'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest$ac_exeext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 bash_cv_signal_vintage=posix
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12019 cat >conftest.$ac_ext <<_ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025 #include <signal.h>
12030 int mask = sigmask(SIGINT);
12031 sigsetmask(mask); sigblock(mask); sigpause(mask);
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 bash_cv_signal_vintage=4.2bsd
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 #include <signal.h>
12073 RETSIGTYPE foo() { }
12078 int mask = sigmask(SIGINT);
12079 sigset(SIGINT, foo); sigrelse(SIGINT);
12080 sighold(SIGINT); sigpause(SIGINT);
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088 (eval $ac_link) 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag"
12096 || test ! -s conftest.err'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest$ac_exeext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 bash_cv_signal_vintage=svr3
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 bash_cv_signal_vintage=v7
12116 rm -f conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12120 rm -f conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12124 rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12129 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12130 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12131 if test "$bash_cv_signal_vintage" = posix; then
12132 cat >>confdefs.h <<\_ACEOF
12133 #define HAVE_POSIX_SIGNALS 1
12136 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12137 cat >>confdefs.h <<\_ACEOF
12138 #define HAVE_BSD_SIGNALS 1
12141 elif test "$bash_cv_signal_vintage" = svr3; then
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_USG_SIGHOLD 1
12148 echo "$as_me:$LINENO: checking for mode_t" >&5
12149 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12150 if test "${ac_cv_type_mode_t+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 $ac_includes_default
12165 if (sizeof (mode_t))
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } &&
12180 { ac_try='test -z "$ac_c_werror_flag"
12181 || test ! -s conftest.err'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_type_mode_t=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_cv_type_mode_t=no
12200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12202 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12203 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12204 if test $ac_cv_type_mode_t = yes; then
12208 cat >>confdefs.h <<_ACEOF
12214 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12215 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12216 if test "${ac_cv_type_uid_t+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 cat >conftest.$ac_ext <<_ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 #include <sys/types.h>
12228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12229 $EGREP "uid_t" >/dev/null 2>&1; then
12230 ac_cv_type_uid_t=yes
12232 ac_cv_type_uid_t=no
12237 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12238 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12239 if test $ac_cv_type_uid_t = no; then
12241 cat >>confdefs.h <<\_ACEOF
12246 cat >>confdefs.h <<\_ACEOF
12252 echo "$as_me:$LINENO: checking for size_t" >&5
12253 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12254 if test "${ac_cv_type_size_t+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263 $ac_includes_default
12269 if (sizeof (size_t))
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_type_size_t=yes
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 ac_cv_type_size_t=no
12304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12306 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12307 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12308 if test $ac_cv_type_size_t = yes; then
12312 cat >>confdefs.h <<_ACEOF
12313 #define size_t unsigned
12318 echo "$as_me:$LINENO: checking for pid_t" >&5
12319 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12320 if test "${ac_cv_type_pid_t+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 $ac_includes_default
12335 if (sizeof (pid_t))
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343 (eval $ac_compile) 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_c_werror_flag"
12351 || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_type_pid_t=yes
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_cv_type_pid_t=no
12370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12373 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12374 if test $ac_cv_type_pid_t = yes; then
12378 cat >>confdefs.h <<_ACEOF
12384 echo "$as_me:$LINENO: checking for off_t" >&5
12385 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12386 if test "${ac_cv_type_off_t+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 $ac_includes_default
12401 if (sizeof (off_t))
12407 rm -f conftest.$ac_objext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409 (eval $ac_compile) 2>conftest.er1
12411 grep -v '^ *+' conftest.er1 >conftest.err
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest.$ac_objext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_type_off_t=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_cv_type_off_t=no
12436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12438 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12439 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12440 if test $ac_cv_type_off_t = yes; then
12444 cat >>confdefs.h <<_ACEOF
12450 echo "$as_me:$LINENO: checking for ino_t" >&5
12451 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12452 if test "${ac_cv_type_ino_t+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 cat >conftest.$ac_ext <<_ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461 $ac_includes_default
12467 if (sizeof (ino_t))
12473 rm -f conftest.$ac_objext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>conftest.er1
12477 grep -v '^ *+' conftest.er1 >conftest.err
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag"
12483 || test ! -s conftest.err'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_type_ino_t=yes
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_cv_type_ino_t=no
12502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12504 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12505 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12506 if test $ac_cv_type_ino_t = yes; then
12510 cat >>confdefs.h <<_ACEOF
12511 #define ino_t unsigned long
12516 echo "$as_me:$LINENO: checking for dev_t" >&5
12517 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12518 if test "${ac_cv_type_dev_t+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 $ac_includes_default
12533 if (sizeof (dev_t))
12539 rm -f conftest.$ac_objext
12540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12541 (eval $ac_compile) 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag"
12549 || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest.$ac_objext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_type_dev_t=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_cv_type_dev_t=no
12568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12570 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12571 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12572 if test $ac_cv_type_dev_t = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define dev_t unsigned long
12582 echo "$as_me:$LINENO: checking for daddr_t" >&5
12583 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12584 if test "${ac_cv_type_daddr_t+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12593 $ac_includes_default
12599 if (sizeof (daddr_t))
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607 (eval $ac_compile) 2>conftest.er1
12609 grep -v '^ *+' conftest.er1 >conftest.err
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -z "$ac_c_werror_flag"
12615 || test ! -s conftest.err'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_cv_type_daddr_t=yes
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_cv_type_daddr_t=no
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12637 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12638 if test $ac_cv_type_daddr_t = yes; then
12642 cat >>confdefs.h <<_ACEOF
12643 #define daddr_t long
12648 echo "$as_me:$LINENO: checking for major_t" >&5
12649 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12650 if test "${ac_cv_type_major_t+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12665 if (sizeof (major_t))
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12675 grep -v '^ *+' conftest.er1 >conftest.err
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag"
12681 || test ! -s conftest.err'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest.$ac_objext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_cv_type_major_t=yes
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_cv_type_major_t=no
12700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12702 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12703 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12704 if test $ac_cv_type_major_t = yes; then
12708 cat >>confdefs.h <<_ACEOF
12709 #define major_t int
12714 echo "$as_me:$LINENO: checking for minor_t" >&5
12715 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12716 if test "${ac_cv_type_minor_t+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12731 if (sizeof (minor_t))
12737 rm -f conftest.$ac_objext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739 (eval $ac_compile) 2>conftest.er1
12741 grep -v '^ *+' conftest.er1 >conftest.err
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -z "$ac_c_werror_flag"
12747 || test ! -s conftest.err'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; } &&
12753 { ac_try='test -s conftest.$ac_objext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_type_minor_t=yes
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_cv_type_minor_t=no
12766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12768 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12769 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12770 if test $ac_cv_type_minor_t = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775 #define minor_t int
12780 echo "$as_me:$LINENO: checking for ssize_t" >&5
12781 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12782 if test "${ac_cv_type_ssize_t+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 $ac_includes_default
12797 if (sizeof (ssize_t))
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_cv_type_ssize_t=yes
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_cv_type_ssize_t=no
12832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12834 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12835 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12836 if test $ac_cv_type_ssize_t = yes; then
12840 cat >>confdefs.h <<_ACEOF
12841 #define ssize_t int
12846 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12847 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12848 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 $ac_includes_default
12861 static struct stat ac_aggr;
12862 if (ac_aggr.st_blocks)
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12872 grep -v '^ *+' conftest.er1 >conftest.err
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_c_werror_flag"
12878 || test ! -s conftest.err'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_cv_member_struct_stat_st_blocks=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 cat >conftest.$ac_ext <<_ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901 $ac_includes_default
12905 static struct stat ac_aggr;
12906 if (sizeof ac_aggr.st_blocks)
12912 rm -f conftest.$ac_objext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12916 grep -v '^ *+' conftest.er1 >conftest.err
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_member_struct_stat_st_blocks=yes
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ac_cv_member_struct_stat_st_blocks=no
12941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12947 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12949 cat >>confdefs.h <<_ACEOF
12950 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12954 cat >>confdefs.h <<\_ACEOF
12955 #define HAVE_ST_BLOCKS 1
12960 "fileblocks.$ac_objext" | \
12961 *" fileblocks.$ac_objext" | \
12962 "fileblocks.$ac_objext "* | \
12963 *" fileblocks.$ac_objext "* ) ;;
12964 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12971 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12972 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12973 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982 $ac_includes_default
12986 static struct stat ac_aggr;
12987 if (ac_aggr.st_rdev)
12993 rm -f conftest.$ac_objext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_c_werror_flag"
13003 || test ! -s conftest.err'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_member_struct_stat_st_rdev=yes
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 $ac_includes_default
13030 static struct stat ac_aggr;
13031 if (sizeof ac_aggr.st_rdev)
13037 rm -f conftest.$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039 (eval $ac_compile) 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag"
13047 || test ! -s conftest.err'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_member_struct_stat_st_rdev=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_cv_member_struct_stat_st_rdev=no
13066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13072 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13074 cat >>confdefs.h <<_ACEOF
13075 #define HAVE_STRUCT_STAT_ST_RDEV 1
13079 cat >>confdefs.h <<\_ACEOF
13080 #define HAVE_ST_RDEV 1
13086 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13087 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13088 if test "${ac_cv_struct_tm+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 #include <sys/types.h>
13103 struct tm *tp; tp->tm_sec;
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110 (eval $ac_compile) 2>conftest.er1
13112 grep -v '^ *+' conftest.er1 >conftest.err
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_struct_tm=time.h
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_cv_struct_tm=sys/time.h
13137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13139 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13140 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13141 if test $ac_cv_struct_tm = sys/time.h; then
13143 cat >>confdefs.h <<\_ACEOF
13144 #define TM_IN_SYS_TIME 1
13149 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13150 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13151 if test "${ac_cv_c_const+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 cat >conftest.$ac_ext <<_ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13164 /* FIXME: Include the comments suggested by Paul. */
13165 #ifndef __cplusplus
13166 /* Ultrix mips cc rejects this. */
13167 typedef int charset[2];
13169 /* SunOS 4.1.1 cc rejects this. */
13170 char const *const *ccp;
13172 /* NEC SVR4.0.2 mips cc rejects this. */
13173 struct point {int x, y;};
13174 static struct point const zero = {0,0};
13175 /* AIX XL C 1.02.0.0 rejects this.
13176 It does not let you subtract one const X* pointer from another in
13177 an arm of an if-expression whose if-part is not a constant
13179 const char *g = "string";
13180 ccp = &g + (g ? g-g : 0);
13181 /* HPUX 7.0 cc rejects these. */
13184 ccp = (char const *const *) p;
13185 { /* SCO 3.2v4 cc rejects this. */
13187 char const *s = 0 ? (char *) 0 : (char const *) 0;
13191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13192 int x[] = {25, 17};
13193 const int *foo = &x[0];
13196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13197 typedef const int *iptr;
13201 { /* AIX XL C 1.02.0.0 rejects this saying
13202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13203 struct s { int j; const int *ap[3]; };
13204 struct s *b; b->j = 5;
13206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13207 const int foo = 10;
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest.$ac_objext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13246 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13247 echo "${ECHO_T}$ac_cv_c_const" >&6
13248 if test $ac_cv_c_const = no; then
13250 cat >>confdefs.h <<\_ACEOF
13258 echo "$as_me:$LINENO: checking for char" >&5
13259 echo $ECHO_N "checking for char... $ECHO_C" >&6
13260 if test "${ac_cv_type_char+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 $ac_includes_default
13281 rm -f conftest.$ac_objext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13283 (eval $ac_compile) 2>conftest.er1
13285 grep -v '^ *+' conftest.er1 >conftest.err
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_c_werror_flag"
13291 || test ! -s conftest.err'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest.$ac_objext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 ac_cv_type_char=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13312 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13313 echo "${ECHO_T}$ac_cv_type_char" >&6
13315 echo "$as_me:$LINENO: checking size of char" >&5
13316 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13317 if test "${ac_cv_sizeof_char+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 if test "$ac_cv_type_char" = yes; then
13321 # The cast to unsigned long works around a bug in the HP C Compiler
13322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13324 # This bug is HP SR number 8606223364.
13325 if test "$cross_compiling" = yes; then
13326 # Depending upon the size, compute the lo and hi bounds.
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 $ac_includes_default
13337 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13344 rm -f conftest.$ac_objext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_c_werror_flag"
13354 || test ! -s conftest.err'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest.$ac_objext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13378 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_hi=$ac_mid; break
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_lo=`expr $ac_mid + 1`
13413 if test $ac_lo -le $ac_mid; then
13417 ac_mid=`expr 2 '*' $ac_mid + 1`
13419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13435 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13442 rm -f conftest.$ac_objext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13444 (eval $ac_compile) 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag"
13452 || test ! -s conftest.err'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest.$ac_objext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 $ac_includes_default
13476 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_lo=$ac_mid; break
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 ac_hi=`expr '(' $ac_mid ')' - 1`
13511 if test $ac_mid -le $ac_hi; then
13515 ac_mid=`expr 2 '*' $ac_mid`
13517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13528 # Binary search between lo and hi bounds.
13529 while test "x$ac_lo" != "x$ac_hi"; do
13530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13531 cat >conftest.$ac_ext <<_ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 $ac_includes_default
13541 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13548 rm -f conftest.$ac_objext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag"
13558 || test ! -s conftest.err'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_lo=`expr '(' $ac_mid ')' + 1`
13577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580 ?*) ac_cv_sizeof_char=$ac_lo;;
13581 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13582 See \`config.log' for more details." >&5
13583 echo "$as_me: error: cannot compute sizeof (char), 77
13584 See \`config.log' for more details." >&2;}
13585 { (exit 1); exit 1; }; } ;;
13588 if test "$cross_compiling" = yes; then
13589 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13590 See \`config.log' for more details." >&5
13591 echo "$as_me: error: cannot run test program while cross compiling
13592 See \`config.log' for more details." >&2;}
13593 { (exit 1); exit 1; }; }
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 $ac_includes_default
13602 long longval () { return (long) (sizeof (char)); }
13603 unsigned long ulongval () { return (long) (sizeof (char)); }
13605 #include <stdlib.h>
13610 FILE *f = fopen ("conftest.val", "w");
13613 if (((long) (sizeof (char))) < 0)
13615 long i = longval ();
13616 if (i != ((long) (sizeof (char))))
13618 fprintf (f, "%ld\n", i);
13622 unsigned long i = ulongval ();
13623 if (i != ((long) (sizeof (char))))
13625 fprintf (f, "%lu\n", i);
13627 exit (ferror (f) || fclose (f) != 0);
13633 rm -f conftest$ac_exeext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13635 (eval $ac_link) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_sizeof_char=`cat conftest.val`
13646 echo "$as_me: program exited with status $ac_status" >&5
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ( exit $ac_status )
13651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13652 See \`config.log' for more details." >&5
13653 echo "$as_me: error: cannot compute sizeof (char), 77
13654 See \`config.log' for more details." >&2;}
13655 { (exit 1); exit 1; }; }
13657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13662 ac_cv_sizeof_char=0
13665 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13666 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13667 cat >>confdefs.h <<_ACEOF
13668 #define SIZEOF_CHAR $ac_cv_sizeof_char
13672 echo "$as_me:$LINENO: checking for short int" >&5
13673 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13674 if test "${ac_cv_type_short_int+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 cat >conftest.$ac_ext <<_ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13687 if ((short int *) 0)
13689 if (sizeof (short int))
13695 rm -f conftest.$ac_objext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13697 (eval $ac_compile) 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag"
13705 || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest.$ac_objext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_type_short_int=yes
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13722 ac_cv_type_short_int=no
13724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13726 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13727 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13729 echo "$as_me:$LINENO: checking size of short int" >&5
13730 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13731 if test "${ac_cv_sizeof_short_int+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 if test "$ac_cv_type_short_int" = yes; then
13735 # The cast to unsigned long works around a bug in the HP C Compiler
13736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13738 # This bug is HP SR number 8606223364.
13739 if test "$cross_compiling" = yes; then
13740 # Depending upon the size, compute the lo and hi bounds.
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 $ac_includes_default
13751 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13758 rm -f conftest.$ac_objext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>conftest.er1
13762 grep -v '^ *+' conftest.er1 >conftest.err
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13782 cat >conftest.$ac_ext <<_ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 $ac_includes_default
13792 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_hi=$ac_mid; break
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_lo=`expr $ac_mid + 1`
13827 if test $ac_lo -le $ac_mid; then
13831 ac_mid=`expr 2 '*' $ac_mid + 1`
13833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 $ac_includes_default
13849 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13856 rm -f conftest.$ac_objext
13857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13858 (eval $ac_compile) 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag"
13866 || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13880 cat >conftest.$ac_ext <<_ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13890 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>conftest.er1
13901 grep -v '^ *+' conftest.er1 >conftest.err
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -z "$ac_c_werror_flag"
13907 || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest.$ac_objext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_lo=$ac_mid; break
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 ac_hi=`expr '(' $ac_mid ')' - 1`
13925 if test $ac_mid -le $ac_hi; then
13929 ac_mid=`expr 2 '*' $ac_mid`
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13942 # Binary search between lo and hi bounds.
13943 while test "x$ac_lo" != "x$ac_hi"; do
13944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13945 cat >conftest.$ac_ext <<_ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13955 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>conftest.er1
13966 grep -v '^ *+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag"
13972 || test ! -s conftest.err'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_lo=`expr '(' $ac_mid ')' + 1`
13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13994 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13996 See \`config.log' for more details." >&5
13997 echo "$as_me: error: cannot compute sizeof (short int), 77
13998 See \`config.log' for more details." >&2;}
13999 { (exit 1); exit 1; }; } ;;
14002 if test "$cross_compiling" = yes; then
14003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14004 See \`config.log' for more details." >&5
14005 echo "$as_me: error: cannot run test program while cross compiling
14006 See \`config.log' for more details." >&2;}
14007 { (exit 1); exit 1; }; }
14009 cat >conftest.$ac_ext <<_ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14016 long longval () { return (long) (sizeof (short int)); }
14017 unsigned long ulongval () { return (long) (sizeof (short int)); }
14019 #include <stdlib.h>
14024 FILE *f = fopen ("conftest.val", "w");
14027 if (((long) (sizeof (short int))) < 0)
14029 long i = longval ();
14030 if (i != ((long) (sizeof (short int))))
14032 fprintf (f, "%ld\n", i);
14036 unsigned long i = ulongval ();
14037 if (i != ((long) (sizeof (short int))))
14039 fprintf (f, "%lu\n", i);
14041 exit (ferror (f) || fclose (f) != 0);
14047 rm -f conftest$ac_exeext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049 (eval $ac_link) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 ac_cv_sizeof_short_int=`cat conftest.val`
14060 echo "$as_me: program exited with status $ac_status" >&5
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ( exit $ac_status )
14065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14066 See \`config.log' for more details." >&5
14067 echo "$as_me: error: cannot compute sizeof (short int), 77
14068 See \`config.log' for more details." >&2;}
14069 { (exit 1); exit 1; }; }
14071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14076 ac_cv_sizeof_short_int=0
14079 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14080 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14081 cat >>confdefs.h <<_ACEOF
14082 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14086 echo "$as_me:$LINENO: checking for int" >&5
14087 echo $ECHO_N "checking for int... $ECHO_C" >&6
14088 if test "${ac_cv_type_int+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 $ac_includes_default
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111 (eval $ac_compile) 2>conftest.er1
14113 grep -v '^ *+' conftest.er1 >conftest.err
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
14118 { ac_try='test -z "$ac_c_werror_flag"
14119 || test ! -s conftest.err'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest.$ac_objext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14133 echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14141 echo "${ECHO_T}$ac_cv_type_int" >&6
14143 echo "$as_me:$LINENO: checking size of int" >&5
14144 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14145 if test "${ac_cv_sizeof_int+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 if test "$ac_cv_type_int" = yes; then
14149 # The cast to unsigned long works around a bug in the HP C Compiler
14150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14152 # This bug is HP SR number 8606223364.
14153 if test "$cross_compiling" = yes; then
14154 # Depending upon the size, compute the lo and hi bounds.
14155 cat >conftest.$ac_ext <<_ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 $ac_includes_default
14165 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14172 rm -f conftest.$ac_objext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14174 (eval $ac_compile) 2>conftest.er1
14176 grep -v '^ *+' conftest.er1 >conftest.err
14178 cat conftest.err >&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -z "$ac_c_werror_flag"
14182 || test ! -s conftest.err'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest.$ac_objext'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14196 cat >conftest.$ac_ext <<_ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 $ac_includes_default
14206 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_hi=$ac_mid; break
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_lo=`expr $ac_mid + 1`
14241 if test $ac_lo -le $ac_mid; then
14245 ac_mid=`expr 2 '*' $ac_mid + 1`
14247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 $ac_includes_default
14263 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>conftest.er1
14274 grep -v '^ *+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_c_werror_flag"
14280 || test ! -s conftest.err'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest.$ac_objext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14304 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_lo=$ac_mid; break
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_hi=`expr '(' $ac_mid ')' - 1`
14339 if test $ac_mid -le $ac_hi; then
14343 ac_mid=`expr 2 '*' $ac_mid`
14345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356 # Binary search between lo and hi bounds.
14357 while test "x$ac_lo" != "x$ac_hi"; do
14358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14369 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14376 rm -f conftest.$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378 (eval $ac_compile) 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_lo=`expr '(' $ac_mid ')' + 1`
14405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14408 ?*) ac_cv_sizeof_int=$ac_lo;;
14409 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14410 See \`config.log' for more details." >&5
14411 echo "$as_me: error: cannot compute sizeof (int), 77
14412 See \`config.log' for more details." >&2;}
14413 { (exit 1); exit 1; }; } ;;
14416 if test "$cross_compiling" = yes; then
14417 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14418 See \`config.log' for more details." >&5
14419 echo "$as_me: error: cannot run test program while cross compiling
14420 See \`config.log' for more details." >&2;}
14421 { (exit 1); exit 1; }; }
14423 cat >conftest.$ac_ext <<_ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 $ac_includes_default
14430 long longval () { return (long) (sizeof (int)); }
14431 unsigned long ulongval () { return (long) (sizeof (int)); }
14433 #include <stdlib.h>
14438 FILE *f = fopen ("conftest.val", "w");
14441 if (((long) (sizeof (int))) < 0)
14443 long i = longval ();
14444 if (i != ((long) (sizeof (int))))
14446 fprintf (f, "%ld\n", i);
14450 unsigned long i = ulongval ();
14451 if (i != ((long) (sizeof (int))))
14453 fprintf (f, "%lu\n", i);
14455 exit (ferror (f) || fclose (f) != 0);
14461 rm -f conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_cv_sizeof_int=`cat conftest.val`
14474 echo "$as_me: program exited with status $ac_status" >&5
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ( exit $ac_status )
14479 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14480 See \`config.log' for more details." >&5
14481 echo "$as_me: error: cannot compute sizeof (int), 77
14482 See \`config.log' for more details." >&2;}
14483 { (exit 1); exit 1; }; }
14485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14493 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14494 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14495 cat >>confdefs.h <<_ACEOF
14496 #define SIZEOF_INT $ac_cv_sizeof_int
14500 echo "$as_me:$LINENO: checking for long int" >&5
14501 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14502 if test "${ac_cv_type_long_int+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 cat >conftest.$ac_ext <<_ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14511 $ac_includes_default
14515 if ((long int *) 0)
14517 if (sizeof (long int))
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525 (eval $ac_compile) 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest.$ac_objext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_cv_type_long_int=yes
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 ac_cv_type_long_int=no
14552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14555 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14557 echo "$as_me:$LINENO: checking size of long int" >&5
14558 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14559 if test "${ac_cv_sizeof_long_int+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 if test "$ac_cv_type_long_int" = yes; then
14563 # The cast to unsigned long works around a bug in the HP C Compiler
14564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14566 # This bug is HP SR number 8606223364.
14567 if test "$cross_compiling" = yes; then
14568 # Depending upon the size, compute the lo and hi bounds.
14569 cat >conftest.$ac_ext <<_ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 $ac_includes_default
14579 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14586 rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>conftest.er1
14590 grep -v '^ *+' conftest.er1 >conftest.err
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -z "$ac_c_werror_flag"
14596 || test ! -s conftest.err'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 $ac_includes_default
14620 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_hi=$ac_mid; break
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_lo=`expr $ac_mid + 1`
14655 if test $ac_lo -le $ac_mid; then
14659 ac_mid=`expr 2 '*' $ac_mid + 1`
14661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 $ac_includes_default
14677 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14688 grep -v '^ *+' conftest.er1 >conftest.err
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 $ac_includes_default
14718 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14725 rm -f conftest.$ac_objext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14727 (eval $ac_compile) 2>conftest.er1
14729 grep -v '^ *+' conftest.er1 >conftest.err
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -z "$ac_c_werror_flag"
14735 || test ! -s conftest.err'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; } &&
14741 { ac_try='test -s conftest.$ac_objext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_lo=$ac_mid; break
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14752 ac_hi=`expr '(' $ac_mid ')' - 1`
14753 if test $ac_mid -le $ac_hi; then
14757 ac_mid=`expr 2 '*' $ac_mid`
14759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14770 # Binary search between lo and hi bounds.
14771 while test "x$ac_lo" != "x$ac_hi"; do
14772 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14773 cat >conftest.$ac_ext <<_ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 $ac_includes_default
14783 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14790 rm -f conftest.$ac_objext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14792 (eval $ac_compile) 2>conftest.er1
14794 grep -v '^ *+' conftest.er1 >conftest.err
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -z "$ac_c_werror_flag"
14800 || test ! -s conftest.err'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; } &&
14806 { ac_try='test -s conftest.$ac_objext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 ac_lo=`expr '(' $ac_mid ')' + 1`
14819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14823 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14824 See \`config.log' for more details." >&5
14825 echo "$as_me: error: cannot compute sizeof (long int), 77
14826 See \`config.log' for more details." >&2;}
14827 { (exit 1); exit 1; }; } ;;
14830 if test "$cross_compiling" = yes; then
14831 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14832 See \`config.log' for more details." >&5
14833 echo "$as_me: error: cannot run test program while cross compiling
14834 See \`config.log' for more details." >&2;}
14835 { (exit 1); exit 1; }; }
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 $ac_includes_default
14844 long longval () { return (long) (sizeof (long int)); }
14845 unsigned long ulongval () { return (long) (sizeof (long int)); }
14847 #include <stdlib.h>
14852 FILE *f = fopen ("conftest.val", "w");
14855 if (((long) (sizeof (long int))) < 0)
14857 long i = longval ();
14858 if (i != ((long) (sizeof (long int))))
14860 fprintf (f, "%ld\n", i);
14864 unsigned long i = ulongval ();
14865 if (i != ((long) (sizeof (long int))))
14867 fprintf (f, "%lu\n", i);
14869 exit (ferror (f) || fclose (f) != 0);
14875 rm -f conftest$ac_exeext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_sizeof_long_int=`cat conftest.val`
14888 echo "$as_me: program exited with status $ac_status" >&5
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ( exit $ac_status )
14893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14894 See \`config.log' for more details." >&5
14895 echo "$as_me: error: cannot compute sizeof (long int), 77
14896 See \`config.log' for more details." >&2;}
14897 { (exit 1); exit 1; }; }
14899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14904 ac_cv_sizeof_long_int=0
14907 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14908 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14909 cat >>confdefs.h <<_ACEOF
14910 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14914 echo "$as_me:$LINENO: checking for long long int" >&5
14915 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14916 if test "${ac_cv_type_long_long_int+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 $ac_includes_default
14929 if ((long long int *) 0)
14931 if (sizeof (long long int))
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>conftest.er1
14941 grep -v '^ *+' conftest.er1 >conftest.err
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -z "$ac_c_werror_flag"
14947 || test ! -s conftest.err'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; } &&
14953 { ac_try='test -s conftest.$ac_objext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_cv_type_long_long_int=yes
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 ac_cv_type_long_long_int=no
14966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14968 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14969 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14971 echo "$as_me:$LINENO: checking size of long long int" >&5
14972 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14973 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 if test "$ac_cv_type_long_long_int" = yes; then
14977 # The cast to unsigned long works around a bug in the HP C Compiler
14978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14980 # This bug is HP SR number 8606223364.
14981 if test "$cross_compiling" = yes; then
14982 # Depending upon the size, compute the lo and hi bounds.
14983 cat >conftest.$ac_ext <<_ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989 $ac_includes_default
14993 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002 (eval $ac_compile) 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try='test -z "$ac_c_werror_flag"
15010 || test ! -s conftest.err'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest.$ac_objext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 $ac_includes_default
15034 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15041 rm -f conftest.$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043 (eval $ac_compile) 2>conftest.er1
15045 grep -v '^ *+' conftest.er1 >conftest.err
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -z "$ac_c_werror_flag"
15051 || test ! -s conftest.err'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_hi=$ac_mid; break
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_lo=`expr $ac_mid + 1`
15069 if test $ac_lo -le $ac_mid; then
15073 ac_mid=`expr 2 '*' $ac_mid + 1`
15075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 cat >conftest.$ac_ext <<_ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 $ac_includes_default
15091 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15098 rm -f conftest.$ac_objext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100 (eval $ac_compile) 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag"
15108 || test ! -s conftest.err'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest.$ac_objext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 $ac_includes_default
15132 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
15139 rm -f conftest.$ac_objext
15140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15141 (eval $ac_compile) 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -z "$ac_c_werror_flag"
15149 || test ! -s conftest.err'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_lo=$ac_mid; break
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 ac_hi=`expr '(' $ac_mid ')' - 1`
15167 if test $ac_mid -le $ac_hi; then
15171 ac_mid=`expr 2 '*' $ac_mid`
15173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15184 # Binary search between lo and hi bounds.
15185 while test "x$ac_lo" != "x$ac_hi"; do
15186 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15187 cat >conftest.$ac_ext <<_ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 $ac_includes_default
15197 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15204 rm -f conftest.$ac_objext
15205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15206 (eval $ac_compile) 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag"
15214 || test ! -s conftest.err'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_lo=`expr '(' $ac_mid ')' + 1`
15233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15236 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
15237 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15238 See \`config.log' for more details." >&5
15239 echo "$as_me: error: cannot compute sizeof (long long int), 77
15240 See \`config.log' for more details." >&2;}
15241 { (exit 1); exit 1; }; } ;;
15244 if test "$cross_compiling" = yes; then
15245 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15246 See \`config.log' for more details." >&5
15247 echo "$as_me: error: cannot run test program while cross compiling
15248 See \`config.log' for more details." >&2;}
15249 { (exit 1); exit 1; }; }
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 $ac_includes_default
15258 long longval () { return (long) (sizeof (long long int)); }
15259 unsigned long ulongval () { return (long) (sizeof (long long int)); }
15261 #include <stdlib.h>
15266 FILE *f = fopen ("conftest.val", "w");
15269 if (((long) (sizeof (long long int))) < 0)
15271 long i = longval ();
15272 if (i != ((long) (sizeof (long long int))))
15274 fprintf (f, "%ld\n", i);
15278 unsigned long i = ulongval ();
15279 if (i != ((long) (sizeof (long long int))))
15281 fprintf (f, "%lu\n", i);
15283 exit (ferror (f) || fclose (f) != 0);
15289 rm -f conftest$ac_exeext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291 (eval $ac_link) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_cv_sizeof_long_long_int=`cat conftest.val`
15302 echo "$as_me: program exited with status $ac_status" >&5
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ( exit $ac_status )
15307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15308 See \`config.log' for more details." >&5
15309 echo "$as_me: error: cannot compute sizeof (long long int), 77
15310 See \`config.log' for more details." >&2;}
15311 { (exit 1); exit 1; }; }
15313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15318 ac_cv_sizeof_long_long_int=0
15321 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15322 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15323 cat >>confdefs.h <<_ACEOF
15324 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15328 echo "$as_me:$LINENO: checking for int *" >&5
15329 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15330 if test "${ac_cv_type_int_p+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 $ac_includes_default
15345 if (sizeof (int *))
15351 rm -f conftest.$ac_objext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15353 (eval $ac_compile) 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag"
15361 || test ! -s conftest.err'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest.$ac_objext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 ac_cv_type_int_p=yes
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 ac_cv_type_int_p=no
15380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15382 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15383 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15385 echo "$as_me:$LINENO: checking size of int *" >&5
15386 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15387 if test "${ac_cv_sizeof_int_p+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 if test "$ac_cv_type_int_p" = yes; then
15391 # The cast to unsigned long works around a bug in the HP C Compiler
15392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15394 # This bug is HP SR number 8606223364.
15395 if test "$cross_compiling" = yes; then
15396 # Depending upon the size, compute the lo and hi bounds.
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 $ac_includes_default
15407 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag"
15424 || test ! -s conftest.err'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 $ac_includes_default
15448 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_hi=$ac_mid; break
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_lo=`expr $ac_mid + 1`
15483 if test $ac_lo -le $ac_mid; then
15487 ac_mid=`expr 2 '*' $ac_mid + 1`
15489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 $ac_includes_default
15505 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15512 rm -f conftest.$ac_objext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
15521 { ac_try='test -z "$ac_c_werror_flag"
15522 || test ! -s conftest.err'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15546 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15553 rm -f conftest.$ac_objext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555 (eval $ac_compile) 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -z "$ac_c_werror_flag"
15563 || test ! -s conftest.err'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 ac_lo=$ac_mid; break
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15580 ac_hi=`expr '(' $ac_mid ')' - 1`
15581 if test $ac_mid -le $ac_hi; then
15585 ac_mid=`expr 2 '*' $ac_mid`
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598 # Binary search between lo and hi bounds.
15599 while test "x$ac_lo" != "x$ac_hi"; do
15600 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15601 cat >conftest.$ac_ext <<_ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15607 $ac_includes_default
15611 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag"
15628 || test ! -s conftest.err'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15642 echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ac_lo=`expr '(' $ac_mid ')' + 1`
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15650 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15651 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15652 See \`config.log' for more details." >&5
15653 echo "$as_me: error: cannot compute sizeof (int *), 77
15654 See \`config.log' for more details." >&2;}
15655 { (exit 1); exit 1; }; } ;;
15658 if test "$cross_compiling" = yes; then
15659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15660 See \`config.log' for more details." >&5
15661 echo "$as_me: error: cannot run test program while cross compiling
15662 See \`config.log' for more details." >&2;}
15663 { (exit 1); exit 1; }; }
15665 cat >conftest.$ac_ext <<_ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15671 $ac_includes_default
15672 long longval () { return (long) (sizeof (int *)); }
15673 unsigned long ulongval () { return (long) (sizeof (int *)); }
15675 #include <stdlib.h>
15680 FILE *f = fopen ("conftest.val", "w");
15683 if (((long) (sizeof (int *))) < 0)
15685 long i = longval ();
15686 if (i != ((long) (sizeof (int *))))
15688 fprintf (f, "%ld\n", i);
15692 unsigned long i = ulongval ();
15693 if (i != ((long) (sizeof (int *))))
15695 fprintf (f, "%lu\n", i);
15697 exit (ferror (f) || fclose (f) != 0);
15703 rm -f conftest$ac_exeext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15705 (eval $ac_link) 2>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_cv_sizeof_int_p=`cat conftest.val`
15716 echo "$as_me: program exited with status $ac_status" >&5
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15720 ( exit $ac_status )
15721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15722 See \`config.log' for more details." >&5
15723 echo "$as_me: error: cannot compute sizeof (int *), 77
15724 See \`config.log' for more details." >&2;}
15725 { (exit 1); exit 1; }; }
15727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15732 ac_cv_sizeof_int_p=0
15735 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15736 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15737 cat >>confdefs.h <<_ACEOF
15738 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15743 # Check for sys/types.h types
15744 echo "$as_me:$LINENO: checking for u_int type" >&5
15745 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15746 if test "${ac_cv_have_u_int+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <sys/types.h>
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>conftest.er1
15769 grep -v '^ *+' conftest.er1 >conftest.err
15771 cat conftest.err >&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } &&
15774 { ac_try='test -z "$ac_c_werror_flag"
15775 || test ! -s conftest.err'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_cv_have_u_int="yes"
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15792 ac_cv_have_u_int="no"
15795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15799 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15800 if test "x$ac_cv_have_u_int" = "xyes" ; then
15801 cat >>confdefs.h <<\_ACEOF
15802 #define HAVE_U_INT 1
15808 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15809 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15810 if test "${ac_cv_have_intmax_t+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 #include <sys/types.h>
15829 rm -f conftest.$ac_objext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831 (eval $ac_compile) 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag"
15839 || test ! -s conftest.err'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest.$ac_objext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851 ac_cv_have_intmax_t="yes"
15853 echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15857 cat >conftest.$ac_ext <<_ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 #include <stdint.h>
15872 rm -f conftest.$ac_objext
15873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15874 (eval $ac_compile) 2>conftest.er1
15876 grep -v '^ *+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -z "$ac_c_werror_flag"
15882 || test ! -s conftest.err'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } &&
15888 { ac_try='test -s conftest.$ac_objext'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 ac_cv_have_intmax_t="yes"
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15899 ac_cv_have_intmax_t="no"
15902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15911 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15912 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15913 cat >>confdefs.h <<\_ACEOF
15914 #define HAVE_INTMAX_T 1
15921 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15922 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15923 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <sys/types.h>
15937 u_intmax_t a; a = 1;
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_cv_have_u_intmax_t="yes"
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <stdint.h>
15980 u_intmax_t a; a = 1;
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_cv_have_u_intmax_t="yes"
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_cv_have_u_intmax_t="no"
16015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16022 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16023 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16024 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16025 cat >>confdefs.h <<\_ACEOF
16026 #define HAVE_U_INTMAX_T 1
16033 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16034 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16035 if test "${ac_cv_have_intxx_t+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 #include <sys/types.h>
16049 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16054 rm -f conftest.$ac_objext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16056 (eval $ac_compile) 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -z "$ac_c_werror_flag"
16064 || test ! -s conftest.err'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; } &&
16070 { ac_try='test -s conftest.$ac_objext'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; }; then
16076 ac_cv_have_intxx_t="yes"
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_cv_have_intxx_t="no"
16084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16087 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16088 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16089 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_INTXX_T 1
16097 echo "$as_me:$LINENO: checking for int64_t type" >&5
16098 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16099 if test "${ac_cv_have_int64_t+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 #include <sys/types.h>
16118 rm -f conftest.$ac_objext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120 (eval $ac_compile) 2>conftest.er1
16122 grep -v '^ *+' conftest.er1 >conftest.err
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -z "$ac_c_werror_flag"
16128 || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest.$ac_objext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_cv_have_int64_t="yes"
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_cv_have_int64_t="no"
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16152 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16153 if test "x$ac_cv_have_int64_t" = "xyes" ; then
16154 cat >>confdefs.h <<\_ACEOF
16155 #define HAVE_INT64_T 1
16161 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16162 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16163 if test "${ac_cv_have_u_intxx_t+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 #include <sys/types.h>
16177 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16182 rm -f conftest.$ac_objext
16183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16184 (eval $ac_compile) 2>conftest.er1
16186 grep -v '^ *+' conftest.er1 >conftest.err
16188 cat conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -z "$ac_c_werror_flag"
16192 || test ! -s conftest.err'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; } &&
16198 { ac_try='test -s conftest.$ac_objext'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_cv_have_u_intxx_t="yes"
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ac_cv_have_u_intxx_t="no"
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16215 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16216 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16217 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16218 cat >>confdefs.h <<\_ACEOF
16219 #define HAVE_U_INTXX_T 1
16225 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16226 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16227 if test "${ac_cv_have_u_int64_t+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 cat >conftest.$ac_ext <<_ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 #include <sys/types.h>
16241 u_int64_t a; a = 1;
16246 rm -f conftest.$ac_objext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248 (eval $ac_compile) 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag"
16256 || test ! -s conftest.err'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try='test -s conftest.$ac_objext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 ac_cv_have_u_int64_t="yes"
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ac_cv_have_u_int64_t="no"
16276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16279 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16280 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16281 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_U_INT64_T 1
16289 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16290 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16292 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16293 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <sys/bitypes.h>
16304 int8_t a; int16_t b; int32_t c;
16305 u_int8_t e; u_int16_t f; u_int32_t g;
16306 a = b = c = e = f = g = 1;
16311 rm -f conftest.$ac_objext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16313 (eval $ac_compile) 2>conftest.er1
16315 grep -v '^ *+' conftest.er1 >conftest.err
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -z "$ac_c_werror_flag"
16321 || test ! -s conftest.err'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest.$ac_objext'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 cat >>confdefs.h <<\_ACEOF
16334 #define HAVE_U_INTXX_T 1
16337 cat >>confdefs.h <<\_ACEOF
16338 #define HAVE_INTXX_T 1
16341 cat >>confdefs.h <<\_ACEOF
16342 #define HAVE_SYS_BITYPES_H 1
16345 echo "$as_me:$LINENO: result: yes" >&5
16346 echo "${ECHO_T}yes" >&6
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 echo "$as_me:$LINENO: result: no" >&5
16352 echo "${ECHO_T}no" >&6
16355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16358 if test -z "$have_u_intxx_t" ; then
16359 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16360 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16361 if test "${ac_cv_have_uintxx_t+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 cat >conftest.$ac_ext <<_ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371 #include <sys/types.h>
16375 uint8_t a; uint16_t b;
16376 uint32_t c; a = b = c = 1;
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag"
16391 || test ! -s conftest.err'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_cv_have_uintxx_t="yes"
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_cv_have_uintxx_t="no"
16411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16414 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16415 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16416 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16417 cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_UINTXX_T 1
16424 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
16425 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16427 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
16428 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
16429 cat >conftest.$ac_ext <<_ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 #include <sys/bitypes.h>
16439 int64_t a; u_int64_t b;
16445 rm -f conftest.$ac_objext
16446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16447 (eval $ac_compile) 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag"
16455 || test ! -s conftest.err'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; } &&
16461 { ac_try='test -s conftest.$ac_objext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 cat >>confdefs.h <<\_ACEOF
16468 #define HAVE_U_INT64_T 1
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE_INT64_T 1
16475 echo "$as_me:$LINENO: result: yes" >&5
16476 echo "${ECHO_T}yes" >&6
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 echo "$as_me:$LINENO: result: no" >&5
16482 echo "${ECHO_T}no" >&6
16485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16488 if (test -z "$have_uintxx_t" && \
16489 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16491 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16492 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16493 cat >conftest.$ac_ext <<_ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499 #include <sys/bitypes.h>
16503 uint8_t a; uint16_t b;
16504 uint32_t c; a = b = c = 1;
16509 rm -f conftest.$ac_objext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16511 (eval $ac_compile) 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag"
16519 || test ! -s conftest.err'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest.$ac_objext'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 cat >>confdefs.h <<\_ACEOF
16532 #define HAVE_UINTXX_T 1
16535 echo "$as_me:$LINENO: result: yes" >&5
16536 echo "${ECHO_T}yes" >&6
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 echo "$as_me:$LINENO: result: no" >&5
16542 echo "${ECHO_T}no" >&6
16545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 echo "$as_me:$LINENO: checking for $ac_func" >&5
16583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16584 if eval "test \"\${$as_ac_var+set}\" = set"; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 cat >conftest.$ac_ext <<_ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595 #define $ac_func innocuous_$ac_func
16597 /* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char $ac_func (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16603 # include <limits.h>
16605 # include <assert.h>
16610 /* Override any gcc2 internal prototype to avoid an error. */
16615 /* We use char because int might match the return type of a gcc2
16616 builtin and then its argument prototype would still apply. */
16618 /* The GNU C library defines this for functions which it implements
16619 to always fail with ENOSYS. Some functions are actually named
16620 something starting with __ and the normal name is an alias. */
16621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16624 char (*f) () = $ac_func;
16633 return f != $ac_func;
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag"
16648 || test ! -s conftest.err'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 eval "$as_ac_var=yes"
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 eval "$as_ac_var=no"
16667 rm -f conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16672 if test `eval echo '${'$as_ac_var'}'` = yes; then
16673 cat >>confdefs.h <<_ACEOF
16674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16678 echo 'configure: cannot find needed function.'; exit 1
16685 for ac_func in fchdir
16687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16688 echo "$as_me:$LINENO: checking for $ac_func" >&5
16689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16690 if eval "test \"\${$as_ac_var+set}\" = set"; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16701 #define $ac_func innocuous_$ac_func
16703 /* System header to define __stub macros and hopefully few prototypes,
16704 which can conflict with char $ac_func (); below.
16705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16706 <limits.h> exists even on freestanding compilers. */
16709 # include <limits.h>
16711 # include <assert.h>
16716 /* Override any gcc2 internal prototype to avoid an error. */
16721 /* We use char because int might match the return type of a gcc2
16722 builtin and then its argument prototype would still apply. */
16724 /* The GNU C library defines this for functions which it implements
16725 to always fail with ENOSYS. Some functions are actually named
16726 something starting with __ and the normal name is an alias. */
16727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16730 char (*f) () = $ac_func;
16739 return f != $ac_func;
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16746 (eval $ac_link) 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -z "$ac_c_werror_flag"
16754 || test ! -s conftest.err'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest$ac_exeext'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 eval "$as_ac_var=yes"
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 eval "$as_ac_var=no"
16773 rm -f conftest.err conftest.$ac_objext \
16774 conftest$ac_exeext conftest.$ac_ext
16776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16778 if test `eval echo '${'$as_ac_var'}'` = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16782 cat >>confdefs.h <<\_ACEOF
16783 #define HAVE_FCHDIR 1
16790 for ac_func in strtoll
16792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16793 echo "$as_me:$LINENO: checking for $ac_func" >&5
16794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16795 if eval "test \"\${$as_ac_var+set}\" = set"; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16806 #define $ac_func innocuous_$ac_func
16808 /* System header to define __stub macros and hopefully few prototypes,
16809 which can conflict with char $ac_func (); below.
16810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811 <limits.h> exists even on freestanding compilers. */
16814 # include <limits.h>
16816 # include <assert.h>
16821 /* Override any gcc2 internal prototype to avoid an error. */
16826 /* We use char because int might match the return type of a gcc2
16827 builtin and then its argument prototype would still apply. */
16829 /* The GNU C library defines this for functions which it implements
16830 to always fail with ENOSYS. Some functions are actually named
16831 something starting with __ and the normal name is an alias. */
16832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16835 char (*f) () = $ac_func;
16844 return f != $ac_func;
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>conftest.er1
16853 grep -v '^ *+' conftest.er1 >conftest.err
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -z "$ac_c_werror_flag"
16859 || test ! -s conftest.err'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 eval "$as_ac_var=yes"
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 eval "$as_ac_var=no"
16878 rm -f conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16883 if test `eval echo '${'$as_ac_var'}'` = yes; then
16884 cat >>confdefs.h <<_ACEOF
16885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16887 cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_STRTOLL 1
16896 for ac_func in chflags
16898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16899 echo "$as_me:$LINENO: checking for $ac_func" >&5
16900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16901 if eval "test \"\${$as_ac_var+set}\" = set"; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912 #define $ac_func innocuous_$ac_func
16914 /* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16920 # include <limits.h>
16922 # include <assert.h>
16927 /* Override any gcc2 internal prototype to avoid an error. */
16932 /* We use char because int might match the return type of a gcc2
16933 builtin and then its argument prototype would still apply. */
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16941 char (*f) () = $ac_func;
16950 return f != $ac_func;
16955 rm -f conftest.$ac_objext conftest$ac_exeext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957 (eval $ac_link) 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -z "$ac_c_werror_flag"
16965 || test ! -s conftest.err'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 eval "$as_ac_var=yes"
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 eval "$as_ac_var=no"
16984 rm -f conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16989 if test `eval echo '${'$as_ac_var'}'` = yes; then
16990 cat >>confdefs.h <<_ACEOF
16991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17002 for ac_func in snprintf vsnprintf gethostid getdomainname
17004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17005 echo "$as_me:$LINENO: checking for $ac_func" >&5
17006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17007 if eval "test \"\${$as_ac_var+set}\" = set"; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17018 #define $ac_func innocuous_$ac_func
17020 /* System header to define __stub macros and hopefully few prototypes,
17021 which can conflict with char $ac_func (); below.
17022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17023 <limits.h> exists even on freestanding compilers. */
17026 # include <limits.h>
17028 # include <assert.h>
17033 /* Override any gcc2 internal prototype to avoid an error. */
17038 /* We use char because int might match the return type of a gcc2
17039 builtin and then its argument prototype would still apply. */
17041 /* The GNU C library defines this for functions which it implements
17042 to always fail with ENOSYS. Some functions are actually named
17043 something starting with __ and the normal name is an alias. */
17044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17047 char (*f) () = $ac_func;
17056 return f != $ac_func;
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17063 (eval $ac_link) 2>conftest.er1
17065 grep -v '^ *+' conftest.er1 >conftest.err
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -z "$ac_c_werror_flag"
17071 || test ! -s conftest.err'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; } &&
17077 { ac_try='test -s conftest$ac_exeext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 eval "$as_ac_var=yes"
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 eval "$as_ac_var=no"
17090 rm -f conftest.err conftest.$ac_objext \
17091 conftest$ac_exeext conftest.$ac_ext
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17095 if test `eval echo '${'$as_ac_var'}'` = yes; then
17096 cat >>confdefs.h <<_ACEOF
17097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17108 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
17110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17111 echo "$as_me:$LINENO: checking for $ac_func" >&5
17112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17113 if eval "test \"\${$as_ac_var+set}\" = set"; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 cat >conftest.$ac_ext <<_ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17124 #define $ac_func innocuous_$ac_func
17126 /* System header to define __stub macros and hopefully few prototypes,
17127 which can conflict with char $ac_func (); below.
17128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17129 <limits.h> exists even on freestanding compilers. */
17132 # include <limits.h>
17134 # include <assert.h>
17139 /* Override any gcc2 internal prototype to avoid an error. */
17144 /* We use char because int might match the return type of a gcc2
17145 builtin and then its argument prototype would still apply. */
17147 /* The GNU C library defines this for functions which it implements
17148 to always fail with ENOSYS. Some functions are actually named
17149 something starting with __ and the normal name is an alias. */
17150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17153 char (*f) () = $ac_func;
17162 return f != $ac_func;
17167 rm -f conftest.$ac_objext conftest$ac_exeext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17169 (eval $ac_link) 2>conftest.er1
17171 grep -v '^ *+' conftest.er1 >conftest.err
17173 cat conftest.err >&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } &&
17176 { ac_try='test -z "$ac_c_werror_flag"
17177 || test ! -s conftest.err'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try='test -s conftest$ac_exeext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 eval "$as_ac_var=yes"
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 eval "$as_ac_var=no"
17196 rm -f conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17201 if test `eval echo '${'$as_ac_var'}'` = yes; then
17202 cat >>confdefs.h <<_ACEOF
17203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17210 # If resolver functions are not in libc check for -lnsl or -lresolv.
17211 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17212 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17213 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 cat >conftest.$ac_ext <<_ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
17223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17224 #define gethostbyname_r innocuous_gethostbyname_r
17226 /* System header to define __stub macros and hopefully few prototypes,
17227 which can conflict with char gethostbyname_r (); below.
17228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17229 <limits.h> exists even on freestanding compilers. */
17232 # include <limits.h>
17234 # include <assert.h>
17237 #undef gethostbyname_r
17239 /* Override any gcc2 internal prototype to avoid an error. */
17244 /* We use char because int might match the return type of a gcc2
17245 builtin and then its argument prototype would still apply. */
17246 char gethostbyname_r ();
17247 /* The GNU C library defines this for functions which it implements
17248 to always fail with ENOSYS. Some functions are actually named
17249 something starting with __ and the normal name is an alias. */
17250 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
17253 char (*f) () = gethostbyname_r;
17262 return f != gethostbyname_r;
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269 (eval $ac_link) 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_func_gethostbyname_r=yes
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 ac_cv_func_gethostbyname_r=no
17296 rm -f conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17299 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
17300 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
17301 if test $ac_cv_func_gethostbyname_r = yes; then
17302 echo "$as_me:$LINENO: result: using libc's resolver" >&5
17303 echo "${ECHO_T}using libc's resolver" >&6
17306 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
17307 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
17308 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 ac_check_lib_save_LIBS=$LIBS
17313 cat >conftest.$ac_ext <<_ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17320 /* Override any gcc2 internal prototype to avoid an error. */
17324 /* We use char because int might match the return type of a gcc2
17325 builtin and then its argument prototype would still apply. */
17326 char gethostbyname_r ();
17330 gethostbyname_r ();
17335 rm -f conftest.$ac_objext conftest$ac_exeext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337 (eval $ac_link) 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag"
17345 || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest$ac_exeext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_lib_nsl_gethostbyname_r=yes
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 ac_cv_lib_nsl_gethostbyname_r=no
17364 rm -f conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17368 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
17369 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
17370 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
17371 cat >>confdefs.h <<_ACEOF
17372 #define HAVE_LIBNSL 1
17380 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
17381 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
17382 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 ac_check_lib_save_LIBS=$LIBS
17386 LIBS="-lresolv $LIBS"
17387 cat >conftest.$ac_ext <<_ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17394 /* Override any gcc2 internal prototype to avoid an error. */
17398 /* We use char because int might match the return type of a gcc2
17399 builtin and then its argument prototype would still apply. */
17400 char gethostbyname_r ();
17404 gethostbyname_r ();
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17411 (eval $ac_link) 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag"
17419 || test ! -s conftest.err'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try='test -s conftest$ac_exeext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_cv_lib_resolv_gethostbyname_r=yes
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_cv_lib_resolv_gethostbyname_r=no
17438 rm -f conftest.err conftest.$ac_objext \
17439 conftest$ac_exeext conftest.$ac_ext
17440 LIBS=$ac_check_lib_save_LIBS
17442 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
17443 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
17444 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
17445 cat >>confdefs.h <<_ACEOF
17446 #define HAVE_LIBRESOLV 1
17449 LIBS="-lresolv $LIBS"
17457 # Find where sockets are (especially for Solaris)
17458 echo "$as_me:$LINENO: checking for socket" >&5
17459 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17460 if test "${ac_cv_func_socket+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17471 #define socket innocuous_socket
17473 /* System header to define __stub macros and hopefully few prototypes,
17474 which can conflict with char socket (); below.
17475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476 <limits.h> exists even on freestanding compilers. */
17479 # include <limits.h>
17481 # include <assert.h>
17486 /* Override any gcc2 internal prototype to avoid an error. */
17491 /* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17494 /* The GNU C library defines this for functions which it implements
17495 to always fail with ENOSYS. Some functions are actually named
17496 something starting with __ and the normal name is an alias. */
17497 #if defined (__stub_socket) || defined (__stub___socket)
17500 char (*f) () = socket;
17509 return f != socket;
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516 (eval $ac_link) 2>conftest.er1
17518 grep -v '^ *+' conftest.er1 >conftest.err
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } &&
17523 { ac_try='test -z "$ac_c_werror_flag"
17524 || test ! -s conftest.err'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try='test -s conftest$ac_exeext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_cv_func_socket=yes
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 ac_cv_func_socket=no
17543 rm -f conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17546 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17547 echo "${ECHO_T}$ac_cv_func_socket" >&6
17548 if test $ac_cv_func_socket = yes; then
17549 echo "$as_me:$LINENO: result: using libc's socket" >&5
17550 echo "${ECHO_T}using libc's socket" >&6
17553 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17554 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
17555 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 ac_check_lib_save_LIBS=$LIBS
17559 LIBS="-lxnet $LIBS"
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17567 /* Override any gcc2 internal prototype to avoid an error. */
17571 /* We use char because int might match the return type of a gcc2
17572 builtin and then its argument prototype would still apply. */
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584 (eval $ac_link) 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_c_werror_flag"
17592 || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_lib_xnet_socket=yes
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ac_cv_lib_xnet_socket=no
17611 rm -f conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17615 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17616 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
17617 if test $ac_cv_lib_xnet_socket = yes; then
17618 cat >>confdefs.h <<_ACEOF
17619 #define HAVE_LIBXNET 1
17622 LIBS="-lxnet $LIBS"
17627 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17628 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
17629 if test "${ac_cv_lib_socket_socket+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 ac_check_lib_save_LIBS=$LIBS
17633 LIBS="-lsocket $LIBS"
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17641 /* Override any gcc2 internal prototype to avoid an error. */
17645 /* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658 (eval $ac_link) 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_c_werror_flag"
17666 || test ! -s conftest.err'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest$ac_exeext'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_lib_socket_socket=yes
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_cv_lib_socket_socket=no
17685 rm -f conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17689 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17690 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
17691 if test $ac_cv_lib_socket_socket = yes; then
17692 cat >>confdefs.h <<_ACEOF
17693 #define HAVE_LIBSOCKET 1
17696 LIBS="-lsocket $LIBS"
17701 echo "$as_me:$LINENO: checking for socket in -linet" >&5
17702 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
17703 if test "${ac_cv_lib_inet_socket+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 ac_check_lib_save_LIBS=$LIBS
17707 LIBS="-linet $LIBS"
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17715 /* Override any gcc2 internal prototype to avoid an error. */
17719 /* We use char because int might match the return type of a gcc2
17720 builtin and then its argument prototype would still apply. */
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732 (eval $ac_link) 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_lib_inet_socket=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_lib_inet_socket=no
17759 rm -f conftest.err conftest.$ac_objext \
17760 conftest$ac_exeext conftest.$ac_ext
17761 LIBS=$ac_check_lib_save_LIBS
17763 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17764 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
17765 if test $ac_cv_lib_inet_socket = yes; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define HAVE_LIBINET 1
17770 LIBS="-linet $LIBS"
17778 for ac_func in inet_pton
17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781 echo "$as_me:$LINENO: checking for $ac_func" >&5
17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17783 if eval "test \"\${$as_ac_var+set}\" = set"; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17794 #define $ac_func innocuous_$ac_func
17796 /* System header to define __stub macros and hopefully few prototypes,
17797 which can conflict with char $ac_func (); below.
17798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799 <limits.h> exists even on freestanding compilers. */
17802 # include <limits.h>
17804 # include <assert.h>
17809 /* Override any gcc2 internal prototype to avoid an error. */
17814 /* We use char because int might match the return type of a gcc2
17815 builtin and then its argument prototype would still apply. */
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17823 char (*f) () = $ac_func;
17832 return f != $ac_func;
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest$ac_exeext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 eval "$as_ac_var=yes"
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 eval "$as_ac_var=no"
17866 rm -f conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17871 if test `eval echo '${'$as_ac_var'}'` = yes; then
17872 cat >>confdefs.h <<_ACEOF
17873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17875 cat >>confdefs.h <<\_ACEOF
17876 #define HAVE_INET_PTON 1
17883 for ac_func in inet_ntop
17885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17886 echo "$as_me:$LINENO: checking for $ac_func" >&5
17887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17888 if eval "test \"\${$as_ac_var+set}\" = set"; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17899 #define $ac_func innocuous_$ac_func
17901 /* System header to define __stub macros and hopefully few prototypes,
17902 which can conflict with char $ac_func (); below.
17903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17904 <limits.h> exists even on freestanding compilers. */
17907 # include <limits.h>
17909 # include <assert.h>
17914 /* Override any gcc2 internal prototype to avoid an error. */
17919 /* We use char because int might match the return type of a gcc2
17920 builtin and then its argument prototype would still apply. */
17922 /* The GNU C library defines this for functions which it implements
17923 to always fail with ENOSYS. Some functions are actually named
17924 something starting with __ and the normal name is an alias. */
17925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17928 char (*f) () = $ac_func;
17937 return f != $ac_func;
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17944 (eval $ac_link) 2>conftest.er1
17946 grep -v '^ *+' conftest.er1 >conftest.err
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
17951 { ac_try='test -z "$ac_c_werror_flag"
17952 || test ! -s conftest.err'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; } &&
17958 { ac_try='test -s conftest$ac_exeext'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
17964 eval "$as_ac_var=yes"
17966 echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17969 eval "$as_ac_var=no"
17971 rm -f conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17976 if test `eval echo '${'$as_ac_var'}'` = yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17980 cat >>confdefs.h <<\_ACEOF
17981 #define HAVE_INET_NTOP 1
17988 for ac_func in gethostbyname2
17990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17991 echo "$as_me:$LINENO: checking for $ac_func" >&5
17992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17993 if eval "test \"\${$as_ac_var+set}\" = set"; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18004 #define $ac_func innocuous_$ac_func
18006 /* System header to define __stub macros and hopefully few prototypes,
18007 which can conflict with char $ac_func (); below.
18008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18009 <limits.h> exists even on freestanding compilers. */
18012 # include <limits.h>
18014 # include <assert.h>
18019 /* Override any gcc2 internal prototype to avoid an error. */
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18027 /* The GNU C library defines this for functions which it implements
18028 to always fail with ENOSYS. Some functions are actually named
18029 something starting with __ and the normal name is an alias. */
18030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18033 char (*f) () = $ac_func;
18042 return f != $ac_func;
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 eval "$as_ac_var=yes"
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 eval "$as_ac_var=no"
18076 rm -f conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18085 cat >>confdefs.h <<\_ACEOF
18086 #define HAVE_GETHOSTBYNAME2 1
18093 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18094 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18095 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 #include <sys/socket.h>
18108 struct sockaddr s; s.sa_len;
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18117 grep -v '^ *+' conftest.er1 >conftest.err
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_struct_sockaddr_sa_len=yes
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_cv_struct_sockaddr_sa_len=no
18142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18144 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18145 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18147 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18149 cat >>confdefs.h <<\_ACEOF
18150 #define HAVE_SA_LEN 1
18156 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18157 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18158 if test "${ac_cv_ipv6_support+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 #include <sys/types.h>
18168 #include <sys/socket.h>
18169 #include <netinet/in.h>
18173 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18181 (eval $ac_link) 2>conftest.er1
18183 grep -v '^ *+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
18188 { ac_try='test -z "$ac_c_werror_flag"
18189 || test ! -s conftest.err'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; } &&
18195 { ac_try='test -s conftest$ac_exeext'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; }; then
18201 ac_cv_ipv6_support=yes
18203 echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18206 ac_cv_ipv6_support=no
18208 rm -f conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18211 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18212 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18214 if test "$ac_cv_ipv6_support" = yes; then
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_IPV6 1
18225 for ac_func in strftime
18227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18228 echo "$as_me:$LINENO: checking for $ac_func" >&5
18229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18230 if eval "test \"\${$as_ac_var+set}\" = set"; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18241 #define $ac_func innocuous_$ac_func
18243 /* System header to define __stub macros and hopefully few prototypes,
18244 which can conflict with char $ac_func (); below.
18245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18246 <limits.h> exists even on freestanding compilers. */
18249 # include <limits.h>
18251 # include <assert.h>
18256 /* Override any gcc2 internal prototype to avoid an error. */
18261 /* We use char because int might match the return type of a gcc2
18262 builtin and then its argument prototype would still apply. */
18264 /* The GNU C library defines this for functions which it implements
18265 to always fail with ENOSYS. Some functions are actually named
18266 something starting with __ and the normal name is an alias. */
18267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18270 char (*f) () = $ac_func;
18279 return f != $ac_func;
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18286 (eval $ac_link) 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 eval "$as_ac_var=yes"
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 eval "$as_ac_var=no"
18313 rm -f conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18318 if test `eval echo '${'$as_ac_var'}'` = yes; then
18319 cat >>confdefs.h <<_ACEOF
18320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18324 # strftime is in -lintl on SCO UNIX.
18325 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18326 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18327 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-lintl $LIBS"
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 /* Override any gcc2 internal prototype to avoid an error. */
18343 /* We use char because int might match the return type of a gcc2
18344 builtin and then its argument prototype would still apply. */
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_intl_strftime=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_intl_strftime=no
18383 rm -f conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18388 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18389 if test $ac_cv_lib_intl_strftime = yes; then
18390 cat >>confdefs.h <<\_ACEOF
18391 #define HAVE_STRFTIME 1
18394 LIBS="-lintl $LIBS"
18401 for ac_func in vprintf
18403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18404 echo "$as_me:$LINENO: checking for $ac_func" >&5
18405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18406 if eval "test \"\${$as_ac_var+set}\" = set"; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18417 #define $ac_func innocuous_$ac_func
18419 /* System header to define __stub macros and hopefully few prototypes,
18420 which can conflict with char $ac_func (); below.
18421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18422 <limits.h> exists even on freestanding compilers. */
18425 # include <limits.h>
18427 # include <assert.h>
18432 /* Override any gcc2 internal prototype to avoid an error. */
18437 /* We use char because int might match the return type of a gcc2
18438 builtin and then its argument prototype would still apply. */
18440 /* The GNU C library defines this for functions which it implements
18441 to always fail with ENOSYS. Some functions are actually named
18442 something starting with __ and the normal name is an alias. */
18443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18446 char (*f) () = $ac_func;
18455 return f != $ac_func;
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462 (eval $ac_link) 2>conftest.er1
18464 grep -v '^ *+' conftest.er1 >conftest.err
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
18469 { ac_try='test -z "$ac_c_werror_flag"
18470 || test ! -s conftest.err'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest$ac_exeext'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 eval "$as_ac_var=yes"
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 eval "$as_ac_var=no"
18489 rm -f conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18494 if test `eval echo '${'$as_ac_var'}'` = yes; then
18495 cat >>confdefs.h <<_ACEOF
18496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18499 echo "$as_me:$LINENO: checking for _doprnt" >&5
18500 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
18501 if test "${ac_cv_func__doprnt+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18510 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
18511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18512 #define _doprnt innocuous__doprnt
18514 /* System header to define __stub macros and hopefully few prototypes,
18515 which can conflict with char _doprnt (); below.
18516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517 <limits.h> exists even on freestanding compilers. */
18520 # include <limits.h>
18522 # include <assert.h>
18527 /* Override any gcc2 internal prototype to avoid an error. */
18532 /* We use char because int might match the return type of a gcc2
18533 builtin and then its argument prototype would still apply. */
18535 /* The GNU C library defines this for functions which it implements
18536 to always fail with ENOSYS. Some functions are actually named
18537 something starting with __ and the normal name is an alias. */
18538 #if defined (__stub__doprnt) || defined (__stub____doprnt)
18541 char (*f) () = _doprnt;
18550 return f != _doprnt;
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18557 (eval $ac_link) 2>conftest.er1
18559 grep -v '^ *+' conftest.er1 >conftest.err
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } &&
18564 { ac_try='test -z "$ac_c_werror_flag"
18565 || test ! -s conftest.err'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest$ac_exeext'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 ac_cv_func__doprnt=yes
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 ac_cv_func__doprnt=no
18584 rm -f conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18587 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
18588 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
18589 if test $ac_cv_func__doprnt = yes; then
18591 cat >>confdefs.h <<\_ACEOF
18592 #define HAVE_DOPRNT 1
18601 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18602 # for constant arguments. Useless!
18603 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18604 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18605 if test "${ac_cv_working_alloca_h+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 #include <alloca.h>
18618 char *p = (char *) alloca (2 * sizeof (int));
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625 (eval $ac_link) 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
18632 { ac_try='test -z "$ac_c_werror_flag"
18633 || test ! -s conftest.err'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; } &&
18639 { ac_try='test -s conftest$ac_exeext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_working_alloca_h=yes
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ac_cv_working_alloca_h=no
18652 rm -f conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18655 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18656 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18657 if test $ac_cv_working_alloca_h = yes; then
18659 cat >>confdefs.h <<\_ACEOF
18660 #define HAVE_ALLOCA_H 1
18665 echo "$as_me:$LINENO: checking for alloca" >&5
18666 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18667 if test "${ac_cv_func_alloca_works+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18677 # define alloca __builtin_alloca
18680 # include <malloc.h>
18681 # define alloca _alloca
18684 # include <alloca.h>
18689 # ifndef alloca /* predefined by HP cc +Olibcalls */
18700 char *p = (char *) alloca (1);
18705 rm -f conftest.$ac_objext conftest$ac_exeext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18707 (eval $ac_link) 2>conftest.er1
18709 grep -v '^ *+' conftest.er1 >conftest.err
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_c_werror_flag"
18715 || test ! -s conftest.err'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } &&
18721 { ac_try='test -s conftest$ac_exeext'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_func_alloca_works=yes
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_cv_func_alloca_works=no
18734 rm -f conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
18737 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18738 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18740 if test $ac_cv_func_alloca_works = yes; then
18742 cat >>confdefs.h <<\_ACEOF
18743 #define HAVE_ALLOCA 1
18747 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18748 # that cause trouble. Some versions do not even contain alloca or
18749 # contain a buggy version. If you still want to use their alloca,
18750 # use ar to extract alloca.o from them instead of compiling alloca.c.
18752 ALLOCA=alloca.$ac_objext
18754 cat >>confdefs.h <<\_ACEOF
18759 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18760 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18761 if test "${ac_cv_os_cray+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 #if defined(CRAY) && ! defined(CRAY2)
18777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18778 $EGREP "webecray" >/dev/null 2>&1; then
18786 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18787 echo "${ECHO_T}$ac_cv_os_cray" >&6
18788 if test $ac_cv_os_cray = yes; then
18789 for ac_func in _getb67 GETB67 getb67; do
18790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18791 echo "$as_me:$LINENO: checking for $ac_func" >&5
18792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18793 if eval "test \"\${$as_ac_var+set}\" = set"; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 cat >conftest.$ac_ext <<_ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18804 #define $ac_func innocuous_$ac_func
18806 /* System header to define __stub macros and hopefully few prototypes,
18807 which can conflict with char $ac_func (); below.
18808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 <limits.h> exists even on freestanding compilers. */
18812 # include <limits.h>
18814 # include <assert.h>
18819 /* Override any gcc2 internal prototype to avoid an error. */
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18827 /* The GNU C library defines this for functions which it implements
18828 to always fail with ENOSYS. Some functions are actually named
18829 something starting with __ and the normal name is an alias. */
18830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18833 char (*f) () = $ac_func;
18842 return f != $ac_func;
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849 (eval $ac_link) 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_c_werror_flag"
18857 || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 eval "$as_ac_var=yes"
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18874 eval "$as_ac_var=no"
18876 rm -f conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18881 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define CRAY_STACKSEG_END $ac_func
18893 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18894 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18895 if test "${ac_cv_c_stack_direction+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 if test "$cross_compiling" = yes; then
18899 ac_cv_c_stack_direction=0
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 find_stack_direction ()
18910 static char *addr = 0;
18915 return find_stack_direction ();
18918 return (&dummy > addr) ? 1 : -1;
18924 exit (find_stack_direction () < 0);
18927 rm -f conftest$ac_exeext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929 (eval $ac_link) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
18938 ac_cv_c_stack_direction=1
18940 echo "$as_me: program exited with status $ac_status" >&5
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ( exit $ac_status )
18945 ac_cv_c_stack_direction=-1
18947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18950 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18951 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18953 cat >>confdefs.h <<_ACEOF
18954 #define STACK_DIRECTION $ac_cv_c_stack_direction
18960 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
18961 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
18962 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
18963 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 ac_check_lib_save_LIBS=$LIBS
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18975 /* Override any gcc2 internal prototype to avoid an error. */
18979 /* We use char because int might match the return type of a gcc2
18980 builtin and then its argument prototype would still apply. */
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18992 (eval $ac_link) 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -z "$ac_c_werror_flag"
19000 || test ! -s conftest.err'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try='test -s conftest$ac_exeext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 ac_cv_lib_sun_getmntent=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_lib_sun_getmntent=no
19019 rm -f conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext conftest.$ac_ext
19021 LIBS=$ac_check_lib_save_LIBS
19023 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19024 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19025 if test $ac_cv_lib_sun_getmntent = yes; then
19028 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19029 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19030 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 ac_check_lib_save_LIBS=$LIBS
19035 cat >conftest.$ac_ext <<_ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19042 /* Override any gcc2 internal prototype to avoid an error. */
19046 /* We use char because int might match the return type of a gcc2
19047 builtin and then its argument prototype would still apply. */
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059 (eval $ac_link) 2>conftest.er1
19061 grep -v '^ *+' conftest.er1 >conftest.err
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_seq_getmntent=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_lib_seq_getmntent=no
19086 rm -f conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19090 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19091 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19092 if test $ac_cv_lib_seq_getmntent = yes; then
19095 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19096 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19097 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 ac_check_lib_save_LIBS=$LIBS
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19109 /* Override any gcc2 internal prototype to avoid an error. */
19113 /* We use char because int might match the return type of a gcc2
19114 builtin and then its argument prototype would still apply. */
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126 (eval $ac_link) 2>conftest.er1
19128 grep -v '^ *+' conftest.er1 >conftest.err
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag"
19134 || test ! -s conftest.err'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest$ac_exeext'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_cv_lib_gen_getmntent=yes
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ac_cv_lib_gen_getmntent=no
19153 rm -f conftest.err conftest.$ac_objext \
19154 conftest$ac_exeext conftest.$ac_ext
19155 LIBS=$ac_check_lib_save_LIBS
19157 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19158 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19159 if test $ac_cv_lib_gen_getmntent = yes; then
19168 for ac_func in getmntent
19170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19171 echo "$as_me:$LINENO: checking for $ac_func" >&5
19172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19173 if eval "test \"\${$as_ac_var+set}\" = set"; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19184 #define $ac_func innocuous_$ac_func
19186 /* System header to define __stub macros and hopefully few prototypes,
19187 which can conflict with char $ac_func (); below.
19188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19189 <limits.h> exists even on freestanding compilers. */
19192 # include <limits.h>
19194 # include <assert.h>
19199 /* Override any gcc2 internal prototype to avoid an error. */
19204 /* We use char because int might match the return type of a gcc2
19205 builtin and then its argument prototype would still apply. */
19207 /* The GNU C library defines this for functions which it implements
19208 to always fail with ENOSYS. Some functions are actually named
19209 something starting with __ and the normal name is an alias. */
19210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19213 char (*f) () = $ac_func;
19222 return f != $ac_func;
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229 (eval $ac_link) 2>conftest.er1
19231 grep -v '^ *+' conftest.er1 >conftest.err
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest$ac_exeext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 eval "$as_ac_var=yes"
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 eval "$as_ac_var=no"
19256 rm -f conftest.err conftest.$ac_objext \
19257 conftest$ac_exeext conftest.$ac_ext
19259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19261 if test `eval echo '${'$as_ac_var'}'` = yes; then
19262 cat >>confdefs.h <<_ACEOF
19263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19270 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19271 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19272 if test "${ac_cv_func_closedir_void+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 if test "$cross_compiling" = yes; then
19276 ac_cv_func_closedir_void=yes
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284 $ac_includes_default
19285 #include <$ac_header_dirent>
19286 #ifndef __cplusplus
19293 exit (closedir (opendir (".")) != 0);
19298 rm -f conftest$ac_exeext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300 (eval $ac_link) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_func_closedir_void=no
19311 echo "$as_me: program exited with status $ac_status" >&5
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ( exit $ac_status )
19316 ac_cv_func_closedir_void=yes
19318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19321 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19322 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19323 if test $ac_cv_func_closedir_void = yes; then
19325 cat >>confdefs.h <<\_ACEOF
19326 #define CLOSEDIR_VOID 1
19331 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19332 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19333 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 if test "$cross_compiling" = yes; then
19337 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19338 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19339 { (exit 1); exit 1; }; }
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 # include <unistd.h>
19354 /* If this system has a BSD-style setpgrp which takes arguments,
19355 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19356 exit successfully. */
19357 exit (setpgrp (1,1) == -1 ? 0 : 1);
19362 rm -f conftest$ac_exeext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364 (eval $ac_link) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_cv_func_setpgrp_void=no
19375 echo "$as_me: program exited with status $ac_status" >&5
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ( exit $ac_status )
19380 ac_cv_func_setpgrp_void=yes
19382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19385 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19386 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19387 if test $ac_cv_func_setpgrp_void = yes; then
19389 cat >>confdefs.h <<\_ACEOF
19390 #define SETPGRP_VOID 1
19394 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
19395 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
19396 if test "${ac_cv_func_fnmatch_works+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 # Some versions of Solaris, SCO, and the GNU C Library
19400 # have a broken or incompatible fnmatch.
19401 # So we run a test program. If we are cross-compiling, take no chance.
19402 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
19403 if test "$cross_compiling" = yes; then
19404 ac_cv_func_fnmatch_works=cross
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 #include <fnmatch.h>
19413 # define y(a, b, c) (fnmatch (a, b, c) == 0)
19414 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
19420 (!(y ("a*", "abc", 0)
19421 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19422 && y ("a\\\\bc", "abc", 0)
19423 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19424 && y ("*x", ".x", 0)
19425 && n ("*x", ".x", FNM_PERIOD)
19431 rm -f conftest$ac_exeext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433 (eval $ac_link) 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 ac_cv_func_fnmatch_works=yes
19444 echo "$as_me: program exited with status $ac_status" >&5
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ( exit $ac_status )
19449 ac_cv_func_fnmatch_works=no
19451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19454 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
19455 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
19456 if test $ac_cv_func_fnmatch_works = yes; then
19458 cat >>confdefs.h <<\_ACEOF
19459 #define HAVE_FNMATCH 1
19468 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
19469 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
19470 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 ac_check_lib_save_LIBS=$LIBS
19474 LIBS="-lxpg4 $LIBS"
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19482 /* Override any gcc2 internal prototype to avoid an error. */
19486 /* We use char because int might match the return type of a gcc2
19487 builtin and then its argument prototype would still apply. */
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499 (eval $ac_link) 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag"
19507 || test ! -s conftest.err'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest$ac_exeext'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 ac_cv_lib_xpg4_setlocale=yes
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 ac_cv_lib_xpg4_setlocale=no
19526 rm -f conftest.err conftest.$ac_objext \
19527 conftest$ac_exeext conftest.$ac_ext
19528 LIBS=$ac_check_lib_save_LIBS
19530 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
19531 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
19532 if test $ac_cv_lib_xpg4_setlocale = yes; then
19533 LIBS="$LIBS -lxpg4"
19539 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
19540 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
19541 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 ac_check_lib_save_LIBS=$LIBS
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19553 /* Override any gcc2 internal prototype to avoid an error. */
19557 /* We use char because int might match the return type of a gcc2
19558 builtin and then its argument prototype would still apply. */
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_c_werror_flag"
19578 || test ! -s conftest.err'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest$ac_exeext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 ac_cv_lib_sun_getpwnam=yes
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_lib_sun_getpwnam=no
19597 rm -f conftest.err conftest.$ac_objext \
19598 conftest$ac_exeext conftest.$ac_ext
19599 LIBS=$ac_check_lib_save_LIBS
19601 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
19602 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
19603 if test $ac_cv_lib_sun_getpwnam = yes; then
19604 cat >>confdefs.h <<_ACEOF
19605 #define HAVE_LIBSUN 1
19614 for ac_header in zlib.h
19616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19618 echo "$as_me:$LINENO: checking for $ac_header" >&5
19619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626 # Is the header compilable?
19627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 $ac_includes_default
19636 #include <$ac_header>
19638 rm -f conftest.$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19642 grep -v '^ *+' conftest.er1 >conftest.err
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest.$ac_objext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_header_compiler=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_header_compiler=no
19667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19669 echo "${ECHO_T}$ac_header_compiler" >&6
19671 # Is the header present?
19672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19680 #include <$ac_header>
19682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19685 grep -v '^ *+' conftest.er1 >conftest.err
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } >/dev/null; then
19690 if test -s conftest.err; then
19691 ac_cpp_err=$ac_c_preproc_warn_flag
19692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19699 if test -z "$ac_cpp_err"; then
19700 ac_header_preproc=yes
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_header_preproc=no
19707 rm -f conftest.err conftest.$ac_ext
19708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19709 echo "${ECHO_T}$ac_header_preproc" >&6
19711 # So? What about this header?
19712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19718 ac_header_preproc=yes
19721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19735 ## ------------------------------------------ ##
19736 ## Report this to the AC_PACKAGE_NAME lists. ##
19737 ## ------------------------------------------ ##
19740 sed "s/^/$as_me: WARNING: /" >&2
19743 echo "$as_me:$LINENO: checking for $ac_header" >&5
19744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 eval "$as_ac_Header=\$ac_header_preproc"
19750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19755 cat >>confdefs.h <<_ACEOF
19756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19763 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19764 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19765 if test "${ac_cv_lib_z_deflate+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 ac_check_lib_save_LIBS=$LIBS
19770 cat >conftest.$ac_ext <<_ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19777 /* Override any gcc2 internal prototype to avoid an error. */
19781 /* We use char because int might match the return type of a gcc2
19782 builtin and then its argument prototype would still apply. */
19792 rm -f conftest.$ac_objext conftest$ac_exeext
19793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19794 (eval $ac_link) 2>conftest.er1
19796 grep -v '^ *+' conftest.er1 >conftest.err
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -z "$ac_c_werror_flag"
19802 || test ! -s conftest.err'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest$ac_exeext'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_cv_lib_z_deflate=yes
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_cv_lib_z_deflate=no
19821 rm -f conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19826 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19827 if test $ac_cv_lib_z_deflate = yes; then
19832 if test x$FDLIBS = x-lz; then
19833 cat >>confdefs.h <<\_ACEOF
19834 #define HAVE_LIBZ 1
19840 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19841 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
19842 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
19843 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
19847 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
19849 # Is the header compilable?
19850 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
19851 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $ac_includes_default
19859 #include <sys/acl.h>
19861 rm -f conftest.$ac_objext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_header_compiler=yes
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_header_compiler=no
19890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19892 echo "${ECHO_T}$ac_header_compiler" >&6
19894 # Is the header present?
19895 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
19896 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
19897 cat >conftest.$ac_ext <<_ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 #include <sys/acl.h>
19905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19908 grep -v '^ *+' conftest.er1 >conftest.err
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } >/dev/null; then
19913 if test -s conftest.err; then
19914 ac_cpp_err=$ac_c_preproc_warn_flag
19915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19922 if test -z "$ac_cpp_err"; then
19923 ac_header_preproc=yes
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_header_preproc=no
19930 rm -f conftest.err conftest.$ac_ext
19931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932 echo "${ECHO_T}$ac_header_preproc" >&6
19934 # So? What about this header?
19935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19938 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
19940 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
19941 ac_header_preproc=yes
19944 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
19949 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
19951 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
19953 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
19955 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
19958 ## ------------------------------------------ ##
19959 ## Report this to the AC_PACKAGE_NAME lists. ##
19960 ## ------------------------------------------ ##
19963 sed "s/^/$as_me: WARNING: /" >&2
19966 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
19967 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
19968 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 ac_cv_header_sys_acl_h=$ac_header_preproc
19973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
19974 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
19979 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
19980 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
19981 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 ac_check_lib_save_LIBS=$LIBS
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 /* Override any gcc2 internal prototype to avoid an error. */
19997 /* We use char because int might match the return type of a gcc2
19998 builtin and then its argument prototype would still apply. */
19999 char acl_get_file ();
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010 (eval $ac_link) 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag"
20018 || test ! -s conftest.err'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest$ac_exeext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_cv_lib_acl_acl_get_file=yes
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ac_cv_lib_acl_acl_get_file=no
20037 rm -f conftest.err conftest.$ac_objext \
20038 conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20042 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20043 if test $ac_cv_lib_acl_acl_get_file = yes; then
20044 FDLIBS="-lacl $FDLIBS"
20048 if test $ac_cv_lib_acl_acl_get_file = yes; then
20049 cat >>confdefs.h <<\_ACEOF
20057 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20058 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20059 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 ac_check_lib_save_LIBS=$LIBS
20063 LIBS="-lpthread $LIBS"
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20071 /* Override any gcc2 internal prototype to avoid an error. */
20075 /* We use char because int might match the return type of a gcc2
20076 builtin and then its argument prototype would still apply. */
20077 char pthread_create ();
20086 rm -f conftest.$ac_objext conftest$ac_exeext
20087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20088 (eval $ac_link) 2>conftest.er1
20090 grep -v '^ *+' conftest.er1 >conftest.err
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
20095 { ac_try='test -z "$ac_c_werror_flag"
20096 || test ! -s conftest.err'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; } &&
20102 { ac_try='test -s conftest$ac_exeext'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; }; then
20108 ac_cv_lib_pthread_pthread_create=yes
20110 echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_cv_lib_pthread_pthread_create=no
20115 rm -f conftest.err conftest.$ac_objext \
20116 conftest$ac_exeext conftest.$ac_ext
20117 LIBS=$ac_check_lib_save_LIBS
20119 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20120 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20121 if test $ac_cv_lib_pthread_pthread_create = yes; then
20122 PTHREAD_LIB="-lpthread"
20124 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20125 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20126 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 ac_check_lib_save_LIBS=$LIBS
20130 LIBS="-lpthreads $LIBS"
20131 cat >conftest.$ac_ext <<_ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20138 /* Override any gcc2 internal prototype to avoid an error. */
20142 /* We use char because int might match the return type of a gcc2
20143 builtin and then its argument prototype would still apply. */
20144 char pthread_create ();
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155 (eval $ac_link) 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest$ac_exeext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_lib_pthreads_pthread_create=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_lib_pthreads_pthread_create=no
20182 rm -f conftest.err conftest.$ac_objext \
20183 conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20186 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20187 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20188 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20189 PTHREAD_LIB="-lpthreads"
20191 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20192 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20193 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 ac_check_lib_save_LIBS=$LIBS
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 /* Override any gcc2 internal prototype to avoid an error. */
20209 /* We use char because int might match the return type of a gcc2
20210 builtin and then its argument prototype would still apply. */
20211 char pthread_create ();
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222 (eval $ac_link) 2>conftest.er1
20224 grep -v '^ *+' conftest.er1 >conftest.err
20226 cat conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try='test -z "$ac_c_werror_flag"
20230 || test ! -s conftest.err'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; } &&
20236 { ac_try='test -s conftest$ac_exeext'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; }; then
20242 ac_cv_lib_c_r_pthread_create=yes
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 ac_cv_lib_c_r_pthread_create=no
20249 rm -f conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
20251 LIBS=$ac_check_lib_save_LIBS
20253 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20254 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20255 if test $ac_cv_lib_c_r_pthread_create = yes; then
20256 PTHREAD_LIB="-lc_r"
20258 echo "$as_me:$LINENO: checking for pthread_create" >&5
20259 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20260 if test "${ac_cv_func_pthread_create+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20271 #define pthread_create innocuous_pthread_create
20273 /* System header to define __stub macros and hopefully few prototypes,
20274 which can conflict with char pthread_create (); below.
20275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20276 <limits.h> exists even on freestanding compilers. */
20279 # include <limits.h>
20281 # include <assert.h>
20284 #undef pthread_create
20286 /* Override any gcc2 internal prototype to avoid an error. */
20291 /* We use char because int might match the return type of a gcc2
20292 builtin and then its argument prototype would still apply. */
20293 char pthread_create ();
20294 /* The GNU C library defines this for functions which it implements
20295 to always fail with ENOSYS. Some functions are actually named
20296 something starting with __ and the normal name is an alias. */
20297 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20300 char (*f) () = pthread_create;
20309 return f != pthread_create;
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_c_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
20336 ac_cv_func_pthread_create=yes
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_cv_func_pthread_create=no
20343 rm -f conftest.err conftest.$ac_objext \
20344 conftest$ac_exeext conftest.$ac_ext
20346 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20347 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20360 cat >>confdefs.h <<\_ACEOF
20366 CFLAGS=${CFLAGS--O}
20367 LDFLAGS=${LDFLAGS--O}
20368 DB_LIBS="${SQL_LFLAGS}"
20370 CPPFLAGS="$CPPFLAGS"
20395 # Finally we set appropriate distribution specific
20396 # variables and defaults
20398 # PFILES are platform specific files
20399 PFILES="platforms/Makefile"
20403 hostname=`uname -n | cut -d '.' -f 1`
20404 case "$DISTNAME" in
20407 PSCMD="ps -e -o pid,comm"
20408 PFILES="${PFILES} \
20409 platforms/aix/Makefile"
20410 TAPEDRIVE="/dev/rmt0.1"
20414 PTHREAD_LIB="-lpthread -lexc"
20415 if test "${CC}" = "gcc" ; then
20422 TAPEDRIVE="/dev/nrmt0"
20425 DISTVER=`uname -a |awk '{print $3}'`
20426 TAPEDRIVE="/dev/nrmt0"
20427 PTHREAD_LIB="-pthread"
20428 CFLAGS="${CFLAGS} -pthread"
20429 PSCMD="ps -x -o pid,command"
20432 PFILES="${PFILES} \
20433 platforms/bsdi/Makefile \
20434 platforms/bsdi/bacula-fd \
20435 platforms/bsdi/bacula-sd \
20436 platforms/bsdi/bacula-dir"
20437 largefile_support="yes"
20440 DISTVER=`uname -a |awk '{print $3}'`
20441 TAPEDRIVE="/dev/nrst0"
20443 WCFLAGS="-mwindows"
20444 WLDFLAGS="-mwindows"
20448 TAPEDRIVE="/dev/nst0"
20449 PSCMD="ps -e -o pid,command"
20451 PFILES="${PFILES} \
20452 platforms/darwin/Makefile"
20455 DISTVER=`cat /etc/debian_version`
20456 TAPEDRIVE="/dev/nrst0"
20457 PSCMD="ps -e -o pid,command"
20460 DISTVER=`uname -a |awk '{print $3}'`
20461 VER=`echo $DISTVER | cut -c 1`
20462 if test x$VER = x4 ; then
20463 PTHREAD_LIB="-pthread"
20464 CFLAGS="${CFLAGS} -pthread"
20468 TAPEDRIVE="/dev/nrsa0"
20469 PSCMD="ps -x -o pid,command"
20470 PFILES="${PFILES} \
20471 platforms/freebsd/Makefile \
20472 platforms/freebsd/bacula-fd \
20473 platforms/freebsd/bacula-sd \
20474 platforms/freebsd/bacula-dir"
20475 largefile_support="yes"
20478 PSCMD="UNIX95=1 ps -e -o pid,comm"
20479 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
20481 TAPEDRIVE="/dev/rmt/0hnb"
20485 TAPEDRIVE="/dev/rmt/0cbn"
20486 PSCMD="ps -e -o pid,comm"
20487 PFILES="${PFILES} \
20488 platforms/irix/Makefile \
20489 platforms/irix/bacula-fd \
20490 platforms/irix/bacula-sd \
20491 platforms/irix/bacula-dir"
20494 DISTVER=`uname -a |awk '{print $3}'`
20497 TAPEDRIVE="/dev/nrst0"
20498 PSCMD="ps -a -o pid,command"
20499 PTHREAD_LIB="-pthread"
20500 CFLAGS="${CFLAGS} -pthread"
20503 DISTVER=`uname -a |awk '{print $3}'`
20506 TAPEDRIVE="/dev/nrst0"
20507 PSCMD="ps -a -o pid,command"
20508 PTHREAD_LIB="-pthread"
20509 CFLAGS="${CFLAGS} -pthread"
20510 PFILES="${PFILES} \
20511 platforms/openbsd/Makefile \
20512 platforms/openbsd/bacula-fd \
20513 platforms/openbsd/bacula-sd \
20514 platforms/openbsd/bacula-dir"
20517 if test -f /etc/whitebox-release ; then
20518 f=/etc/whitebox-release
20520 f=/etc/redhat-release
20522 if test `cat $f | grep release |\
20523 cut -f 3 -d ' '`x = "Enterprise"x ; then
20524 DISTVER="Enterprise "`cat $f | grep release |\
20527 DISTVER=`cat /etc/redhat-release | grep release |\
20530 TAPEDRIVE="/dev/nst0"
20531 PSCMD="ps -e -o pid,command"
20532 PFILES="${PFILES} \
20533 platforms/redhat/Makefile \
20534 platforms/redhat/bacula-fd \
20535 platforms/redhat/bacula-sd \
20536 platforms/redhat/bacula-dir \
20537 platforms/redhat/bacula.spec \
20539 hostname=`hostname -s`
20542 DISTVER=`cat /etc/mandrake-release | grep release |\
20544 TAPEDRIVE="/dev/nst0"
20545 PSCMD="ps -e -o pid,command"
20546 PFILES="${PFILES} \
20547 platforms/mandrake/Makefile \
20548 platforms/mandrake/bacula-fd \
20549 platforms/mandrake/bacula-sd \
20550 platforms/mandrake/bacula-dir \
20551 platforms/mandrake/bacula.spec \
20555 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
20556 TAPEDRIVE="/dev/nst0"
20557 PSCMD="ps -e -o pid,command"
20558 PFILES="${PFILES} \
20559 platforms/gentoo/Makefile \
20560 platforms/gentoo/bacula-fd \
20561 platforms/gentoo/bacula-sd \
20562 platforms/gentoo/bacula-dir"
20565 DISTVER=`cat /etc/slackware-version`
20566 TAPEDRIVE="/dev/nst0"
20567 PSCMD="ps -e -o pid,command"
20568 PFILES="${PFILES} \
20569 platforms/slackware/Makefile \
20570 platforms/slackware/rc.bacula-fd \
20571 platforms/slackware/rc.bacula-sd \
20572 platforms/slackware/rc.bacula-dir\
20573 platforms/slackware/functions.bacula"
20577 TAPEDRIVE="/dev/rmt/0cbn"
20578 PSCMD="ps -e -o pid,comm"
20579 PFILES="${PFILES} \
20580 platforms/solaris/Makefile \
20581 platforms/solaris/bacula-fd \
20582 platforms/solaris/bacula-sd \
20583 platforms/solaris/bacula-dir"
20584 if test x$DISTVER = x5.6 ; then
20585 cat >>confdefs.h <<\_ACEOF
20586 #define HAVE_OLD_SOCKOPT 1
20592 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
20594 TAPEDRIVE="/dev/nst0"
20595 PSCMD="ps -e -o pid,command"
20596 PFILES="${PFILES} \
20597 platforms/suse/Makefile \
20598 platforms/suse/bacula-fd \
20599 platforms/suse/bacula-sd \
20600 platforms/suse/bacula-dir \
20601 platforms/suse/bacula \
20602 platforms/suse/bacula.spec"
20607 TAPEDRIVE="/dev/nst0"
20608 PSCMD="ps -e -o pid,command"
20609 PFILES="${PFILES} \
20610 platforms/suse/Makefile \
20611 platforms/suse/bacula-fd \
20612 platforms/suse/bacula-sd \
20613 platforms/suse/bacula-dir"
20617 TAPEDRIVE="/dev/nst0"
20620 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
20626 LIBS="$PTHREAD_LIB $LIBS"
20628 cat >>confdefs.h <<_ACEOF
20632 cat >>confdefs.h <<_ACEOF
20643 MCOMMON=./autoconf/Make.common
20646 if test "x${subsysdir}" = "x${sbindir}" ; then
20649 echo "You have set both --sbindir and --with-subsys-dir"
20650 echo " equal to: ${subsysdir} "
20651 echo "This is not permitted. Please reconfigure."
20653 echo "Aborting configuration ..."
20659 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
20660 ac_config_commands="$ac_config_commands default"
20661 cat >confcache <<\_ACEOF
20662 # This file is a shell script that caches the results of configure
20663 # tests run on this system so they can be shared between configure
20664 # scripts and configure runs, see configure's option --config-cache.
20665 # It is not useful on other systems. If it contains results you don't
20666 # want to keep, you may remove or edit it.
20668 # config.status only pays attention to the cache file if you give it
20669 # the --recheck option to rerun configure.
20671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20673 # following values.
20677 # The following way of writing the cache mishandles newlines in values,
20678 # but we know of no workaround that is simple, portable, and efficient.
20679 # So, don't put newlines in cache variables' values.
20680 # Ultrix sh set writes to stderr and can't be redirected directly,
20681 # and sets the high bit in the cache file unless we assign to the vars.
20684 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20686 # `set' does not quote correctly, so add quotes (double-quote
20687 # substitution turns \\\\ into \\, and sed turns \\ into \).
20690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20693 # `set' quotes correctly as required by POSIX, so do not add quotes.
20695 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20704 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20706 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20707 if test -w $cache_file; then
20708 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20709 cat confcache >$cache_file
20711 echo "not updating unwritable cache $cache_file"
20716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20717 # Let make expand exec_prefix.
20718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20720 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20721 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20722 # trailing colons and then remove the whole line if VPATH becomes empty
20723 # (actually we leave an empty line to preserve line numbers).
20724 if test "x$srcdir" = x.; then
20725 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20726 s/:*\$(srcdir):*/:/;
20727 s/:*\${srcdir}:*/:/;
20729 s/^\([^=]*=[ ]*\):*/\1/;
20735 DEFS=-DHAVE_CONFIG_H
20739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20740 # 1. Remove the extension, and $U if already installed.
20741 ac_i=`echo "$ac_i" |
20742 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20744 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20745 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20747 LIBOBJS=$ac_libobjs
20749 LTLIBOBJS=$ac_ltlibobjs
20753 : ${CONFIG_STATUS=./config.status}
20754 ac_clean_files_save=$ac_clean_files
20755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20756 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20757 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20758 cat >$CONFIG_STATUS <<_ACEOF
20760 # Generated by $as_me.
20761 # Run this file to recreate the current configuration.
20762 # Compiler output produced by configure, useful for debugging
20763 # configure, is in config.log if it exists.
20766 ac_cs_recheck=false
20768 SHELL=\${CONFIG_SHELL-$SHELL}
20771 cat >>$CONFIG_STATUS <<\_ACEOF
20772 ## --------------------- ##
20773 ## M4sh Initialization. ##
20774 ## --------------------- ##
20776 # Be Bourne compatible
20777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20780 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20781 # is contrary to our usage. Disable this feature.
20782 alias -g '${1+"$@"}'='"$@"'
20783 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20786 DUALCASE=1; export DUALCASE # for MKS sh
20788 # Support unset when possible.
20789 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20796 # Work around bugs in pre-3.0 UWIN ksh.
20797 $as_unset ENV MAIL MAILPATH
20804 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20805 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20806 LC_TELEPHONE LC_TIME
20808 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20809 eval $as_var=C; export $as_var
20815 # Required to use basename.
20816 if expr a : '\(a\)' >/dev/null 2>&1; then
20822 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20823 as_basename=basename
20829 # Name of the executable.
20830 as_me=`$as_basename "$0" ||
20831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20832 X"$0" : 'X\(//\)$' \| \
20833 X"$0" : 'X\(/\)$' \| \
20834 . : '\(.\)' 2>/dev/null ||
20836 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20837 /^X\/\(\/\/\)$/{ s//\1/; q; }
20838 /^X\/\(\/\).*/{ s//\1/; q; }
20842 # PATH needs CR, and LINENO needs CR and PATH.
20843 # Avoid depending upon Character Ranges.
20844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20847 as_cr_digits='0123456789'
20848 as_cr_alnum=$as_cr_Letters$as_cr_digits
20850 # The user is always right.
20851 if test "${PATH_SEPARATOR+set}" != set; then
20852 echo "#! /bin/sh" >conf$$.sh
20853 echo "exit 0" >>conf$$.sh
20855 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20864 as_lineno_1=$LINENO
20865 as_lineno_2=$LINENO
20866 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20867 test "x$as_lineno_1" != "x$as_lineno_2" &&
20868 test "x$as_lineno_3" = "x$as_lineno_2" || {
20869 # Find who we are. Look in the path if we contain no path at all
20872 *[\\/]* ) as_myself=$0 ;;
20873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20874 for as_dir in $PATH
20877 test -z "$as_dir" && as_dir=.
20878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20883 # We did not find ourselves, most probably we were run as `sh COMMAND'
20884 # in which case we are not to be found in the path.
20885 if test "x$as_myself" = x; then
20888 if test ! -f "$as_myself"; then
20889 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20890 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20891 { (exit 1); exit 1; }; }
20893 case $CONFIG_SHELL in
20895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20896 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20899 test -z "$as_dir" && as_dir=.
20900 for as_base in sh bash ksh sh5; do
20903 if ("$as_dir/$as_base" -c '
20904 as_lineno_1=$LINENO
20905 as_lineno_2=$LINENO
20906 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20907 test "x$as_lineno_1" != "x$as_lineno_2" &&
20908 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20909 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20910 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20911 CONFIG_SHELL=$as_dir/$as_base
20912 export CONFIG_SHELL
20913 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20921 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20922 # uniformly replaced by the line number. The first 'sed' inserts a
20923 # line-number line before each line; the second 'sed' does the real
20924 # work. The second script uses 'N' to pair each line-number line
20925 # with the numbered line, and appends trailing '-' during
20926 # substitution so that $LINENO is not a special case at line end.
20927 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20928 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20929 sed '=' <$as_myself |
20934 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20937 s,^['$as_cr_digits']*\n,,
20938 ' >$as_me.lineno &&
20939 chmod +x $as_me.lineno ||
20940 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20941 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20942 { (exit 1); exit 1; }; }
20944 # Don't try to exec as it changes $[0], causing all sort of problems
20945 # (the dirname of $[0] is not the place where we might find the
20946 # original and so on. Autoconf is especially sensible to this).
20948 # Exit status is that of the last command.
20953 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20954 *c*,-n*) ECHO_N= ECHO_C='
20956 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20957 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20960 if expr a : '\(a\)' >/dev/null 2>&1; then
20966 rm -f conf$$ conf$$.exe conf$$.file
20968 if ln -s conf$$.file conf$$ 2>/dev/null; then
20969 # We could just check for DJGPP; but this test a) works b) is more generic
20970 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20971 if test -f conf$$.exe; then
20972 # Don't use ln at all; we don't have any links
20977 elif ln conf$$.file conf$$ 2>/dev/null; then
20982 rm -f conf$$ conf$$.exe conf$$.file
20984 if mkdir -p . 2>/dev/null; then
20987 test -d ./-p && rmdir ./-p
20991 as_executable_p="test -f"
20993 # Sed expression to map a string onto a valid CPP name.
20994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20996 # Sed expression to map a string onto a valid variable name.
20997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21001 # We need space, tab and new line, in precisely that order.
21011 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21012 # report actual input values of CONFIG_FILES etc. instead of their
21013 # values after options handling. Logging --version etc. is OK.
21017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21018 ## Running $as_me. ##
21023 This file was extended by $as_me, which was
21024 generated by GNU Autoconf 2.59. Invocation command line was
21026 CONFIG_FILES = $CONFIG_FILES
21027 CONFIG_HEADERS = $CONFIG_HEADERS
21028 CONFIG_LINKS = $CONFIG_LINKS
21029 CONFIG_COMMANDS = $CONFIG_COMMANDS
21033 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21037 # Files that config.status was made for.
21038 if test -n "$ac_config_files"; then
21039 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21042 if test -n "$ac_config_headers"; then
21043 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21046 if test -n "$ac_config_links"; then
21047 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21050 if test -n "$ac_config_commands"; then
21051 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21054 cat >>$CONFIG_STATUS <<\_ACEOF
21057 \`$as_me' instantiates files from templates according to the
21058 current configuration.
21060 Usage: $0 [OPTIONS] [FILE]...
21062 -h, --help print this help, then exit
21063 -V, --version print version number, then exit
21064 -q, --quiet do not print progress messages
21065 -d, --debug don't remove temporary files
21066 --recheck update $as_me by reconfiguring in the same conditions
21067 --file=FILE[:TEMPLATE]
21068 instantiate the configuration file FILE
21069 --header=FILE[:TEMPLATE]
21070 instantiate the configuration header FILE
21072 Configuration files:
21075 Configuration headers:
21078 Configuration commands:
21081 Report bugs to <bug-autoconf@gnu.org>."
21084 cat >>$CONFIG_STATUS <<_ACEOF
21087 configured by $0, generated by GNU Autoconf 2.59,
21088 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21090 Copyright (C) 2003 Free Software Foundation, Inc.
21091 This config.status script is free software; the Free Software Foundation
21092 gives unlimited permission to copy, distribute and modify it."
21097 cat >>$CONFIG_STATUS <<\_ACEOF
21098 # If no file are specified by the user, then we need to provide default
21099 # value. By we need to know if files were specified by the user.
21105 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21106 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21114 *) # This is not an option, so the user has probably given explicit
21117 ac_need_defaults=false;;
21121 # Handling of the options.
21123 cat >>$CONFIG_STATUS <<\_ACEOF
21124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21126 --version | --vers* | -V )
21127 echo "$ac_cs_version"; exit 0 ;;
21129 # Conflict between --help and --header
21130 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21131 Try \`$0 --help' for more information." >&5
21132 echo "$as_me: error: ambiguous option: $1
21133 Try \`$0 --help' for more information." >&2;}
21134 { (exit 1); exit 1; }; };;
21135 --help | --hel | -h )
21136 echo "$ac_cs_usage"; exit 0 ;;
21137 --debug | --d* | -d )
21139 --file | --fil | --fi | --f )
21141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21142 ac_need_defaults=false;;
21143 --header | --heade | --head | --hea )
21145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21146 ac_need_defaults=false;;
21147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21151 # This is an error.
21152 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21153 Try \`$0 --help' for more information." >&5
21154 echo "$as_me: error: unrecognized option: $1
21155 Try \`$0 --help' for more information." >&2;}
21156 { (exit 1); exit 1; }; } ;;
21158 *) ac_config_targets="$ac_config_targets $1" ;;
21164 ac_configure_extra_args=
21166 if $ac_cs_silent; then
21168 ac_configure_extra_args="$ac_configure_extra_args --silent"
21172 cat >>$CONFIG_STATUS <<_ACEOF
21173 if \$ac_cs_recheck; then
21174 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21175 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21184 cat >>$CONFIG_STATUS <<\_ACEOF
21185 for ac_config_target in $ac_config_targets
21187 case "$ac_config_target" in
21188 # Handling of arguments.
21189 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21190 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21191 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21192 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21193 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21194 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21195 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21196 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21197 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21198 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21199 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21200 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21201 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21202 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21203 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21204 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21205 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21206 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21207 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21208 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21209 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21210 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21211 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21212 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21213 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21214 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21215 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21216 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21217 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21218 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21219 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21220 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21221 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21222 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21223 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21224 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21225 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21226 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21227 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21228 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21229 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21230 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21231 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21232 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21233 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21234 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21235 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21236 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21237 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21238 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21239 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21240 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21241 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21242 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21243 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21244 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21245 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21246 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21247 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21248 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21249 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21250 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21251 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21252 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21253 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21254 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21255 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21256 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21257 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21258 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21259 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21260 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21261 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21262 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21263 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21264 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21265 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21266 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21267 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21268 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21269 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21270 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21271 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21272 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21273 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21274 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21275 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21276 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21277 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21278 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21279 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21280 { (exit 1); exit 1; }; };;
21284 # If the user did not use the arguments to specify the items to instantiate,
21285 # then the envvar interface is used. Set only those that are not.
21286 # We use the long form for the default assignment because of an extremely
21287 # bizarre bug on SunOS 4.1.3.
21288 if $ac_need_defaults; then
21289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21290 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21294 # Have a temporary directory for convenience. Make it in the build tree
21295 # simply because there is no reason to put it here, and in addition,
21296 # creating and moving files from /tmp can sometimes cause problems.
21297 # Create a temporary directory, and hook for its removal unless debugging.
21300 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21301 trap '{ (exit 1); exit 1; }' 1 2 13 15
21304 # Create a (secure) tmp directory for tmp files.
21307 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21308 test -n "$tmp" && test -d "$tmp"
21311 tmp=./confstat$$-$RANDOM
21312 (umask 077 && mkdir $tmp)
21315 echo "$me: cannot create a temporary directory in ." >&2
21316 { (exit 1); exit 1; }
21321 cat >>$CONFIG_STATUS <<_ACEOF
21324 # CONFIG_FILES section.
21327 # No need to generate the scripts if there are no CONFIG_FILES.
21328 # This happens for instance when ./config.status config.h
21329 if test -n "\$CONFIG_FILES"; then
21330 # Protect against being on the right side of a sed subst in config.status.
21331 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21332 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21333 s,@SHELL@,$SHELL,;t t
21334 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21335 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21336 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21337 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21338 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21339 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21340 s,@exec_prefix@,$exec_prefix,;t t
21341 s,@prefix@,$prefix,;t t
21342 s,@program_transform_name@,$program_transform_name,;t t
21343 s,@bindir@,$bindir,;t t
21344 s,@sbindir@,$sbindir,;t t
21345 s,@libexecdir@,$libexecdir,;t t
21346 s,@datadir@,$datadir,;t t
21347 s,@sysconfdir@,$sysconfdir,;t t
21348 s,@sharedstatedir@,$sharedstatedir,;t t
21349 s,@localstatedir@,$localstatedir,;t t
21350 s,@libdir@,$libdir,;t t
21351 s,@includedir@,$includedir,;t t
21352 s,@oldincludedir@,$oldincludedir,;t t
21353 s,@infodir@,$infodir,;t t
21354 s,@mandir@,$mandir,;t t
21355 s,@build_alias@,$build_alias,;t t
21356 s,@host_alias@,$host_alias,;t t
21357 s,@target_alias@,$target_alias,;t t
21358 s,@DEFS@,$DEFS,;t t
21359 s,@ECHO_C@,$ECHO_C,;t t
21360 s,@ECHO_N@,$ECHO_N,;t t
21361 s,@ECHO_T@,$ECHO_T,;t t
21362 s,@LIBS@,$LIBS,;t t
21363 s,@BUILD_DIR@,$BUILD_DIR,;t t
21364 s,@TRUEPRG@,$TRUEPRG,;t t
21365 s,@FALSEPRG@,$FALSEPRG,;t t
21366 s,@VERSION@,$VERSION,;t t
21367 s,@DATE@,$DATE,;t t
21368 s,@LSMDATE@,$LSMDATE,;t t
21370 s,@CFLAGS@,$CFLAGS,;t t
21371 s,@LDFLAGS@,$LDFLAGS,;t t
21372 s,@CPPFLAGS@,$CPPFLAGS,;t t
21373 s,@ac_ct_CC@,$ac_ct_CC,;t t
21374 s,@EXEEXT@,$EXEEXT,;t t
21375 s,@OBJEXT@,$OBJEXT,;t t
21377 s,@CXXFLAGS@,$CXXFLAGS,;t t
21378 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21380 s,@EGREP@,$EGREP,;t t
21381 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21382 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21383 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21384 s,@RANLIB@,$RANLIB,;t t
21385 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21391 s,@ECHO@,$ECHO,;t t
21395 s,@OPENSSL@,$OPENSSL,;t t
21397 s,@PKGCONFIG@,$PKGCONFIG,;t t
21398 s,@WXCONFIG@,$WXCONFIG,;t t
21399 s,@ARFLAGS@,$ARFLAGS,;t t
21400 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21401 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21402 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21403 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21404 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21405 s,@build@,$build,;t t
21406 s,@build_cpu@,$build_cpu,;t t
21407 s,@build_vendor@,$build_vendor,;t t
21408 s,@build_os@,$build_os,;t t
21409 s,@host@,$host,;t t
21410 s,@host_cpu@,$host_cpu,;t t
21411 s,@host_vendor@,$host_vendor,;t t
21412 s,@host_os@,$host_os,;t t
21413 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21414 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21415 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21416 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21417 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21418 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21419 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21420 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21421 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21422 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21423 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21424 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21425 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21426 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21427 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21428 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21429 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21430 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21431 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21432 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21433 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21434 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21435 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21436 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21437 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21438 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21439 s,@MSGFMT@,$MSGFMT,;t t
21440 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21441 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21442 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21443 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
21444 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
21445 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
21446 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
21447 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
21448 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
21449 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
21450 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
21451 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
21452 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
21453 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
21454 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
21455 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
21456 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
21457 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
21458 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
21459 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
21460 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
21461 s,@GNOME_DIR@,$GNOME_DIR,;t t
21462 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
21463 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
21464 s,@WX_DIR@,$WX_DIR,;t t
21465 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
21466 s,@STATIC_FD@,$STATIC_FD,;t t
21467 s,@STATIC_SD@,$STATIC_SD,;t t
21468 s,@STATIC_DIR@,$STATIC_DIR,;t t
21469 s,@STATIC_CONS@,$STATIC_CONS,;t t
21470 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
21471 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
21472 s,@ALL_DIRS@,$ALL_DIRS,;t t
21473 s,@CONS_INC@,$CONS_INC,;t t
21474 s,@CONS_OBJ@,$CONS_OBJ,;t t
21475 s,@CONS_SRC@,$CONS_SRC,;t t
21476 s,@CONS_LIBS@,$CONS_LIBS,;t t
21477 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
21478 s,@READLINE_SRC@,$READLINE_SRC,;t t
21479 s,@working_dir@,$working_dir,;t t
21480 s,@scriptdir@,$scriptdir,;t t
21481 s,@dump_email@,$dump_email,;t t
21482 s,@job_email@,$job_email,;t t
21483 s,@smtp_host@,$smtp_host,;t t
21484 s,@piddir@,$piddir,;t t
21485 s,@subsysdir@,$subsysdir,;t t
21486 s,@baseport@,$baseport,;t t
21487 s,@dir_port@,$dir_port,;t t
21488 s,@fd_port@,$fd_port,;t t
21489 s,@sd_port@,$sd_port,;t t
21490 s,@dir_password@,$dir_password,;t t
21491 s,@fd_password@,$fd_password,;t t
21492 s,@sd_password@,$sd_password,;t t
21493 s,@dir_user@,$dir_user,;t t
21494 s,@dir_group@,$dir_group,;t t
21495 s,@sd_user@,$sd_user,;t t
21496 s,@sd_group@,$sd_group,;t t
21497 s,@fd_user@,$fd_user,;t t
21498 s,@fd_group@,$fd_group,;t t
21499 s,@SBINPERM@,$SBINPERM,;t t
21500 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
21501 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
21502 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
21503 s,@cats@,$cats,;t t
21504 s,@DB_NAME@,$DB_NAME,;t t
21505 s,@GETCONF@,$GETCONF,;t t
21506 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
21507 s,@X_CFLAGS@,$X_CFLAGS,;t t
21508 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21509 s,@X_LIBS@,$X_LIBS,;t t
21510 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21511 s,@LIBOBJS@,$LIBOBJS,;t t
21512 s,@ALLOCA@,$ALLOCA,;t t
21513 s,@FDLIBS@,$FDLIBS,;t t
21514 s,@DEBUG@,$DEBUG,;t t
21515 s,@DINCLUDE@,$DINCLUDE,;t t
21516 s,@DLIB@,$DLIB,;t t
21517 s,@DB_LIBS@,$DB_LIBS,;t t
21518 s,@WCFLAGS@,$WCFLAGS,;t t
21519 s,@WLDFLAGS@,$WLDFLAGS,;t t
21520 s,@OBJLIST@,$OBJLIST,;t t
21521 s,@hostname@,$hostname,;t t
21522 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
21523 s,@PSCMD@,$PSCMD,;t t
21524 s,@WIN32@,$WIN32,;t t
21525 s,@MACOSX@,$MACOSX,;t t
21526 s,@DISTNAME@,$DISTNAME,;t t
21527 s,@DISTVER@,$DISTVER,;t t
21528 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21529 /@MCOMMON@/r $MCOMMON
21535 cat >>$CONFIG_STATUS <<\_ACEOF
21536 # Split the substitutions into bite-sized pieces for seds with
21537 # small command number limits, like on Digital OSF/1 and HP-UX.
21538 ac_max_sed_lines=48
21539 ac_sed_frag=1 # Number of current file.
21540 ac_beg=1 # First line for current file.
21541 ac_end=$ac_max_sed_lines # Line after last line for current file.
21544 while $ac_more_lines; do
21545 if test $ac_beg -gt 1; then
21546 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21548 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21550 if test ! -s $tmp/subs.frag; then
21551 ac_more_lines=false
21553 # The purpose of the label and of the branching condition is to
21554 # speed up the sed processing (if there are no `@' at all, there
21555 # is no need to browse any of the substitutions).
21556 # These are the two extra sed commands mentioned above.
21558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21559 if test -z "$ac_sed_cmds"; then
21560 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21562 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21564 ac_sed_frag=`expr $ac_sed_frag + 1`
21566 ac_end=`expr $ac_end + $ac_max_sed_lines`
21569 if test -z "$ac_sed_cmds"; then
21572 fi # test -n "$CONFIG_FILES"
21575 cat >>$CONFIG_STATUS <<\_ACEOF
21576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21579 - | *:- | *:-:* ) # input from stdin
21581 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21583 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21585 * ) ac_file_in=$ac_file.in ;;
21588 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21589 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21591 X"$ac_file" : 'X\(//\)[^/]' \| \
21592 X"$ac_file" : 'X\(//\)$' \| \
21593 X"$ac_file" : 'X\(/\)' \| \
21594 . : '\(.\)' 2>/dev/null ||
21596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21598 /^X\(\/\/\)$/{ s//\1/; q; }
21599 /^X\(\/\).*/{ s//\1/; q; }
21601 { if $as_mkdir_p; then
21606 while test ! -d "$as_dir"; do
21607 as_dirs="$as_dir $as_dirs"
21608 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21610 X"$as_dir" : 'X\(//\)[^/]' \| \
21611 X"$as_dir" : 'X\(//\)$' \| \
21612 X"$as_dir" : 'X\(/\)' \| \
21613 . : '\(.\)' 2>/dev/null ||
21615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21617 /^X\(\/\/\)$/{ s//\1/; q; }
21618 /^X\(\/\).*/{ s//\1/; q; }
21621 test ! -n "$as_dirs" || mkdir $as_dirs
21622 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21624 { (exit 1); exit 1; }; }; }
21628 if test "$ac_dir" != .; then
21629 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21630 # A "../" for each directory in $ac_dir_suffix.
21631 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21633 ac_dir_suffix= ac_top_builddir=
21637 .) # No --srcdir option. We are building in place.
21639 if test -z "$ac_top_builddir"; then
21642 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21644 [\\/]* | ?:[\\/]* ) # Absolute path.
21645 ac_srcdir=$srcdir$ac_dir_suffix;
21646 ac_top_srcdir=$srcdir ;;
21647 *) # Relative path.
21648 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21649 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21652 # Do not use `cd foo && pwd` to compute absolute paths, because
21653 # the directories may not exist.
21655 .) ac_abs_builddir="$ac_dir";;
21658 .) ac_abs_builddir=`pwd`;;
21659 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21660 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21663 case $ac_abs_builddir in
21664 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21666 case ${ac_top_builddir}. in
21667 .) ac_abs_top_builddir=$ac_abs_builddir;;
21668 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21669 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21672 case $ac_abs_builddir in
21673 .) ac_abs_srcdir=$ac_srcdir;;
21676 .) ac_abs_srcdir=$ac_abs_builddir;;
21677 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21678 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21681 case $ac_abs_builddir in
21682 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21684 case $ac_top_srcdir in
21685 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21686 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21687 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21694 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21697 if test x"$ac_file" != x-; then
21698 { echo "$as_me:$LINENO: creating $ac_file" >&5
21699 echo "$as_me: creating $ac_file" >&6;}
21702 # Let's still pretend it is `configure' which instantiates (i.e., don't
21703 # use $as_me), people would be surprised to read:
21704 # /* config.h. Generated by config.status. */
21705 if test x"$ac_file" = x-; then
21708 configure_input="$ac_file. "
21710 configure_input=$configure_input"Generated from `echo $ac_file_in |
21711 sed 's,.*/,,'` by configure."
21713 # First look for the input files in the build tree, otherwise in the
21715 ac_file_inputs=`IFS=:
21716 for f in $ac_file_in; do
21718 -) echo $tmp/stdin ;;
21720 # Absolute (can't be DOS-style, as IFS=:)
21721 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21722 echo "$as_me: error: cannot find input file: $f" >&2;}
21723 { (exit 1); exit 1; }; }
21726 if test -f "$f"; then
21729 elif test -f "$srcdir/$f"; then
21734 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21735 echo "$as_me: error: cannot find input file: $f" >&2;}
21736 { (exit 1); exit 1; }; }
21739 done` || { (exit 1); exit 1; }
21741 cat >>$CONFIG_STATUS <<_ACEOF
21745 cat >>$CONFIG_STATUS <<\_ACEOF
21747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21748 s,@configure_input@,$configure_input,;t t
21749 s,@srcdir@,$ac_srcdir,;t t
21750 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21751 s,@top_srcdir@,$ac_top_srcdir,;t t
21752 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21753 s,@builddir@,$ac_builddir,;t t
21754 s,@abs_builddir@,$ac_abs_builddir,;t t
21755 s,@top_builddir@,$ac_top_builddir,;t t
21756 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21757 s,@INSTALL@,$ac_INSTALL,;t t
21758 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21760 if test x"$ac_file" != x-; then
21761 mv $tmp/out $ac_file
21769 cat >>$CONFIG_STATUS <<\_ACEOF
21772 # CONFIG_HEADER section.
21775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21778 # ac_d sets the value in "#define NAME VALUE" lines.
21779 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21780 ac_dB='[ ].*$,\1#\2'
21783 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21784 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21785 ac_uB='$,\1#\2define\3'
21789 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21792 - | *:- | *:-:* ) # input from stdin
21794 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21796 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21798 * ) ac_file_in=$ac_file.in ;;
21801 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21802 echo "$as_me: creating $ac_file" >&6;}
21804 # First look for the input files in the build tree, otherwise in the
21806 ac_file_inputs=`IFS=:
21807 for f in $ac_file_in; do
21809 -) echo $tmp/stdin ;;
21811 # Absolute (can't be DOS-style, as IFS=:)
21812 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21813 echo "$as_me: error: cannot find input file: $f" >&2;}
21814 { (exit 1); exit 1; }; }
21815 # Do quote $f, to prevent DOS paths from being IFS'd.
21818 if test -f "$f"; then
21821 elif test -f "$srcdir/$f"; then
21826 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21827 echo "$as_me: error: cannot find input file: $f" >&2;}
21828 { (exit 1); exit 1; }; }
21831 done` || { (exit 1); exit 1; }
21832 # Remove the trailing spaces.
21833 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21837 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21838 # `conftest.undefs', that substitutes the proper values into
21839 # config.h.in to produce config.h. The first handles `#define'
21840 # templates, and the second `#undef' templates.
21841 # And first: Protect against being on the right side of a sed subst in
21842 # config.status. Protect against being in an unquoted here document
21843 # in config.status.
21844 rm -f conftest.defines conftest.undefs
21845 # Using a here document instead of a string reduces the quoting nightmare.
21846 # Putting comments in sed scripts is not portable.
21848 # `end' is used to avoid that the second main sed command (meant for
21849 # 0-ary CPP macros) applies to n-ary macro definitions.
21850 # See the Autoconf documentation for `clear'.
21851 cat >confdef2sed.sed <<\_ACEOF
21856 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21858 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21861 # If some macros were called several times there might be several times
21862 # the same #defines, which is useless. Nevertheless, we may not want to
21863 # sort them, since we want the *last* AC-DEFINE to be honored.
21864 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21865 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21866 rm -f confdef2sed.sed
21868 # This sed command replaces #undef with comments. This is necessary, for
21869 # example, in the case of _POSIX_SOURCE, which is predefined and required
21870 # on some systems where configure will not decide to define it.
21871 cat >>conftest.undefs <<\_ACEOF
21872 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21875 # Break up conftest.defines because some shells have a limit on the size
21876 # of here documents, and old seds have small limits too (100 cmds).
21877 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21878 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21879 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21880 echo ' :' >>$CONFIG_STATUS
21881 rm -f conftest.tail
21882 while grep . conftest.defines >/dev/null
21884 # Write a limited-size here document to $tmp/defines.sed.
21885 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21886 # Speed up: don't consider the non `#define' lines.
21887 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21888 # Work around the forget-to-reset-the-flag bug.
21889 echo 't clr' >>$CONFIG_STATUS
21890 echo ': clr' >>$CONFIG_STATUS
21891 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21893 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21895 mv $tmp/out $tmp/in
21897 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21898 rm -f conftest.defines
21899 mv conftest.tail conftest.defines
21901 rm -f conftest.defines
21902 echo ' fi # grep' >>$CONFIG_STATUS
21903 echo >>$CONFIG_STATUS
21905 # Break up conftest.undefs because some shells have a limit on the size
21906 # of here documents, and old seds have small limits too (100 cmds).
21907 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21908 rm -f conftest.tail
21909 while grep . conftest.undefs >/dev/null
21911 # Write a limited-size here document to $tmp/undefs.sed.
21912 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21913 # Speed up: don't consider the non `#undef'
21914 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21915 # Work around the forget-to-reset-the-flag bug.
21916 echo 't clr' >>$CONFIG_STATUS
21917 echo ': clr' >>$CONFIG_STATUS
21918 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21920 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21922 mv $tmp/out $tmp/in
21924 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21925 rm -f conftest.undefs
21926 mv conftest.tail conftest.undefs
21928 rm -f conftest.undefs
21930 cat >>$CONFIG_STATUS <<\_ACEOF
21931 # Let's still pretend it is `configure' which instantiates (i.e., don't
21932 # use $as_me), people would be surprised to read:
21933 # /* config.h. Generated by config.status. */
21934 if test x"$ac_file" = x-; then
21935 echo "/* Generated by configure. */" >$tmp/config.h
21937 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21939 cat $tmp/in >>$tmp/config.h
21941 if test x"$ac_file" != x-; then
21942 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21944 echo "$as_me: $ac_file is unchanged" >&6;}
21946 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21948 X"$ac_file" : 'X\(//\)[^/]' \| \
21949 X"$ac_file" : 'X\(//\)$' \| \
21950 X"$ac_file" : 'X\(/\)' \| \
21951 . : '\(.\)' 2>/dev/null ||
21953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21955 /^X\(\/\/\)$/{ s//\1/; q; }
21956 /^X\(\/\).*/{ s//\1/; q; }
21958 { if $as_mkdir_p; then
21963 while test ! -d "$as_dir"; do
21964 as_dirs="$as_dir $as_dirs"
21965 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21967 X"$as_dir" : 'X\(//\)[^/]' \| \
21968 X"$as_dir" : 'X\(//\)$' \| \
21969 X"$as_dir" : 'X\(/\)' \| \
21970 . : '\(.\)' 2>/dev/null ||
21972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21974 /^X\(\/\/\)$/{ s//\1/; q; }
21975 /^X\(\/\).*/{ s//\1/; q; }
21978 test ! -n "$as_dirs" || mkdir $as_dirs
21979 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21981 { (exit 1); exit 1; }; }; }
21984 mv $tmp/config.h $ac_file
21988 rm -f $tmp/config.h
21992 cat >>$CONFIG_STATUS <<\_ACEOF
21995 # CONFIG_COMMANDS section.
21997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21998 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21999 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22000 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22002 X"$ac_dest" : 'X\(//\)[^/]' \| \
22003 X"$ac_dest" : 'X\(//\)$' \| \
22004 X"$ac_dest" : 'X\(/\)' \| \
22005 . : '\(.\)' 2>/dev/null ||
22007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22009 /^X\(\/\/\)$/{ s//\1/; q; }
22010 /^X\(\/\).*/{ s//\1/; q; }
22012 { if $as_mkdir_p; then
22017 while test ! -d "$as_dir"; do
22018 as_dirs="$as_dir $as_dirs"
22019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22021 X"$as_dir" : 'X\(//\)[^/]' \| \
22022 X"$as_dir" : 'X\(//\)$' \| \
22023 X"$as_dir" : 'X\(/\)' \| \
22024 . : '\(.\)' 2>/dev/null ||
22026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22028 /^X\(\/\/\)$/{ s//\1/; q; }
22029 /^X\(\/\).*/{ s//\1/; q; }
22032 test ! -n "$as_dirs" || mkdir $as_dirs
22033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22035 { (exit 1); exit 1; }; }; }
22039 if test "$ac_dir" != .; then
22040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22041 # A "../" for each directory in $ac_dir_suffix.
22042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22044 ac_dir_suffix= ac_top_builddir=
22048 .) # No --srcdir option. We are building in place.
22050 if test -z "$ac_top_builddir"; then
22053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22055 [\\/]* | ?:[\\/]* ) # Absolute path.
22056 ac_srcdir=$srcdir$ac_dir_suffix;
22057 ac_top_srcdir=$srcdir ;;
22058 *) # Relative path.
22059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22063 # Do not use `cd foo && pwd` to compute absolute paths, because
22064 # the directories may not exist.
22066 .) ac_abs_builddir="$ac_dir";;
22069 .) ac_abs_builddir=`pwd`;;
22070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22074 case $ac_abs_builddir in
22075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22077 case ${ac_top_builddir}. in
22078 .) ac_abs_top_builddir=$ac_abs_builddir;;
22079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22083 case $ac_abs_builddir in
22084 .) ac_abs_srcdir=$ac_srcdir;;
22087 .) ac_abs_srcdir=$ac_abs_builddir;;
22088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22092 case $ac_abs_builddir in
22093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22095 case $ac_top_srcdir in
22096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22103 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22104 echo "$as_me: executing $ac_dest commands" >&6;}
22106 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22112 cat >>$CONFIG_STATUS <<\_ACEOF
22114 { (exit 0); exit 0; }
22116 chmod +x $CONFIG_STATUS
22117 ac_clean_files=$ac_clean_files_save
22120 # configure is writing to config.log, and then calls config.status.
22121 # config.status does its own redirection, appending to config.log.
22122 # Unfortunately, on DOS this fails, as config.log is still kept open
22123 # by configure, so config.status won't be able to write to it; its
22124 # output is simply discarded. So we exec the FD to /dev/null,
22125 # effectively closing config.log, so it can be properly (re)opened and
22126 # appended to by config.status. When coming back to configure, we
22127 # need to make the FD available again.
22128 if test "$no_create" != yes; then
22130 ac_config_status_args=
22131 test "$silent" = yes &&
22132 ac_config_status_args="$ac_config_status_args --quiet"
22134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22137 # would make configure fail if this is the last instruction.
22138 $ac_cs_success || { (exit 1); exit 1; }
22143 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22144 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22149 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22150 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22152 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22153 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22155 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22156 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22158 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22159 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22161 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22162 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22164 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22165 chmod 755 $c/sqlite
22168 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22169 largefile_support="yes"
22173 # A whole lot of hand springs to get the compiler version.
22174 # This is because gcc changed the output in version 3.0
22176 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22177 if test "x${CCVERSION}" = "x" ; then
22178 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22180 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22181 if test x"${CXXVERSION}" = x ; then
22182 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22185 if test "x${subsysdir}" = "x${sbindir}" ; then
22188 echo "You have set --sbindir and --with-subsys-dir"
22189 echo " both equal to: ${subsysdir} "
22190 echo " This is not permitted. Please reconfigure."
22192 echo "Aborting configuration ..."
22198 if test "x${db_name}" = "xInternal" ; then
22201 echo "You have not specified either --enable-client-only or one of the"
22202 echo " supported databases: MySQL, PostgreSQL, or SQLite".
22203 echo " This is not permitted. Please reconfigure."
22205 echo "Aborting the configuration ..."
22212 Configuration on `date`:
22214 Host: $host -- ${DISTNAME} ${DISTVER}
22215 Bacula version: ${VERSION} (${DATE})
22216 Source code location: ${srcdir}
22217 Install binaries: ${sbindir}
22218 Install config files: ${sysconfdir}
22219 Scripts directory: ${scriptdir}
22220 Working directory: ${working_dir}
22221 PID directory: ${piddir}
22222 Subsys directory: ${subsysdir}
22223 C Compiler: ${CC} ${CCVERSION}
22224 C++ Compiler: ${CXX} ${CXXVERSION}
22225 Compiler flags: ${WCFLAGS} ${CFLAGS}
22226 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22228 Statically Linked Tools: ${support_static_tools}
22229 Statically Linked FD: ${support_static_fd}
22230 Statically Linked SD: ${support_static_sd}
22231 Statically Linked DIR: ${support_static_dir}
22232 Statically Linked CONS: ${support_static_cons}
22233 Database type: ${db_name}
22234 Database lib: ${DB_LIBS}
22236 Job Output Email: ${job_email}
22237 Traceback Email: ${dump_email}
22238 SMTP Host Address: ${smtp_host}
22240 Director Port: ${dir_port}
22241 File daemon Port: ${fd_port}
22242 Storage daemon Port: ${sd_port}
22244 Director User: ${dir_user}
22245 Director Group: ${dir_group}
22246 Storage Daemon User: ${sd_user}
22247 Storage DaemonGroup: ${sd_group}
22248 File Daemon User: ${fd_user}
22249 File Daemon Group: ${fd_group}
22251 SQL binaries Directory ${SQL_BINDIR}
22253 Large file support: $largefile_support
22254 Bacula conio support: ${got_conio} ${CONS_LIBS}
22255 readline support: ${got_readline} ${PRTREADLINE_SRC}
22256 TCP Wrappers support: ${TCPW_MSG}
22257 ZLIB support: ${have_zlib}
22258 enable-smartalloc: ${support_smartalloc}
22259 enable-gnome: ${support_gnome} ${gnome_version}
22260 enable-wx-console: ${support_wx_console}
22261 client-only: ${build_client_only}
22262 ACL support: ${have_acl}
22269 # cweb support: ${got_cweb} ${CWEB_SRC}
22270 # gmp support: ${got_gmp} ${GMP_SRC}